-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpage-brandasset.php
219 lines (193 loc) · 5.76 KB
/
page-brandasset.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?php
/* Template Name: Brand Assets */
get_header(); ?>
<div id="<?php echo get_field('main_id'); ?>" class="page-halfbanner">
<?php get_template_part('inc/halfbanner'); ?>
<?php if ( !empty( get_the_content() ) ){ ?>
<section class="block block-text bg-white">
<div class="container-sm block-pad-v">
<div class="richtext text-lg-center">
<?php the_content(); ?>
</div>
</div>
</section>
<?php }?>
<div class="container">
<section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3><?php _e( 'Color Palette', 'html5blank' ); ?></h3>
</div>
<div class="col-lg-4">
</div>
</div>
</div>
<div class="row content">
<?php
$index = 0;
while( have_rows('brand_palette') ): the_row();
$index++;
?>
<div class="col-md col-6">
<div class="palette-item">
<div class="thumb" style="background:<?php the_sub_field('hexcolor'); ?>"></div>
<div class="text">
<h4 class="mb-3"><?php the_sub_field('color_title'); ?></h4>
<p><?php echo nl2br(get_sub_field('other_text')); ?></p>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</section>
<section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3><?php _e( 'Typography', 'html5blank' ); ?></h3>
</div>
<div class="col-lg-4">
<a href="https://fonts.google.com/selection?selection.family=Montserrat|Open+Sans|Roboto+Condensed" target="_blank" class="btn btn-download">
<i class="icon-el offsite"></i> Google Fonts
</a>
</div>
</div>
</div>
<div class="row content">
<?php
$index = 0;
while( have_rows('brand_typography') ): the_row();
$index++; ?>
<div class="col-lg-4">
<div class="typography-item">
<span class="lg" style="font-family:<?php the_sub_field('font_name'); ?>">
<?php the_sub_field('font_name'); ?>
</span>
<div class="text-gray">
<p><?php the_sub_field('font_description'); ?></p>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</section>
<section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3><?php _e( 'Dash Logos', 'html5blank' ); ?></h3>
</div>
<div class="col-lg-4">
<!-- <a href="#" target="_blank" class="btn btn-download">
<i class="icon-el offsite"></i> Download all icons
</a> -->
</div>
</div>
</div>
<div class="row content">
<?php while( have_rows('brand_logos') ): the_row();?>
<div class="col-lg-3 col-6">
<div class="brandasset-item">
<div class="image">
<img src="<?php the_sub_field('brand_logo_image'); ?>" alt class="img-fluid">
</div>
<div class="richtext">
<h4 class="mb-3"><?php the_sub_field('brand_logo_title'); ?></h4>
</div>
<div class="text">
<?php while( have_rows('brand_logo_links') ): the_row();?>
<a href="<?php the_sub_field('brand_logo_file'); ?>" download>
<i class="icon-el download"></i> <?php the_sub_field('brand_logo_title'); ?>
</a>
<?php endwhile; ?>
</div>
</div>
</div>
<?php endwhile; ?>
</section>
<section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3><?php _e( 'Dash Icons', 'html5blank' ); ?></h3>
</div>
<div class="col-lg-4">
</div>
</div>
</div>
<div class="row content">
<?php while( have_rows('brand_icons') ): the_row();?>
<div class="col-lg-3 col-6">
<div class="brandasset-item">
<div class="image">
<img src="<?php the_sub_field('brand_icon_image'); ?>" alt class="img-fluid">
</div>
<div class="richtext">
<h4 class="mb-3"><?php the_sub_field('brand_icon_title'); ?></h4>
</div>
<div class="text">
<?php while( have_rows('brand_icon_links') ): the_row();?>
<a href="<?php the_sub_field('brand_icon_file'); ?>" download>
<i class="icon-el download"></i> <?php the_sub_field('brand_icon_title'); ?>
</a>
<?php endwhile; ?>
</div>
</div>
</div>
<?php endwhile; ?>
</section>
<!-- <section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3>Dash Coins</h3>
</div>
<div class="col-lg-4">
</div>
</div>
</div>
</section> -->
<div class="row">
<div class="col-lg-8">
<section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3><?php _e( 'Raw code snippet for scalable SVG', 'html5blank' ); ?></h3>
</div>
<div class="col-lg-4">
<a href="#" class="btn btn-download copy-trigger" data-target="#brand-logo-copy">
<i class="icon-el offsite"></i> <?php _e( 'Copy to Clipboard', 'html5blank' ); ?>
</a>
</div>
</div>
</div>
<div class="content">
<textarea class="form-control" id="brand-logo-copy"><?php echo get_field( "brand_svg_code" ); ?></textarea>
</div>
</section>
</div>
<div class="col-lg-4">
<section class="block-brand">
<div class="header">
<div class="row align-items-center">
<div class="col-lg-8">
<h3><?php _e( 'Result', 'html5blank' ); ?></h3>
</div>
</div>
</div>
<div class="content">
<div class="icon-inline logo">
<?php echo get_field( "brand_svg_code" ); ?>
</div>
</div>
</section>
</div>
</div>
<!-- <div class="pb-5">
<a href="#" class="btn btn-ghost blue">Download all assets</a>
</div> -->
</div>
</div>
<?php get_footer(); ?>