Gutenberg Blocks – ACF Blocks Suite - Version 2.6.6

Version Description

  • Improved: Templates Library
  • Fixed: Bugs
Download this release

Release Info

Developer munirkamal
Plugin Icon 128x128 Gutenberg Blocks – ACF Blocks Suite
Version 2.6.6
Comparing to
See all releases

Code changes from version 2.6.5 to 2.6.6

Files changed (38) hide show
  1. acf-blocks.php +1 -1
  2. acf-json/index.php +2 -2
  3. acfblocks-templates/free/acfb-accordion.php +72 -72
  4. acfblocks-templates/free/acfb-business-hours.php +205 -205
  5. acfblocks-templates/free/acfb-clicktotweet.php +73 -73
  6. acfblocks-templates/free/acfb-counternumber.php +53 -53
  7. acfblocks-templates/free/acfb-divider.php +155 -155
  8. acfblocks-templates/free/acfb-facebook-page.php +45 -45
  9. acfblocks-templates/free/acfb-fb-like-button.php +27 -27
  10. acfblocks-templates/free/acfb-image-slider.php +104 -104
  11. acfblocks-templates/free/acfb-multibuttons.php +75 -75
  12. acfblocks-templates/free/acfb-photocollage.php +90 -90
  13. acfblocks-templates/free/acfb-posts.php +263 -263
  14. acfblocks-templates/free/acfb-pricelist.php +115 -115
  15. acfblocks-templates/free/acfb-pricingbox.php +151 -151
  16. acfblocks-templates/free/acfb-progressbar.php +61 -61
  17. acfblocks-templates/free/acfb-random-image.php +49 -49
  18. acfblocks-templates/free/acfb-scrollable-image.php +42 -42
  19. acfblocks-templates/free/acfb-socialsharing.php +113 -113
  20. acfblocks-templates/free/acfb-starrating.php +63 -63
  21. acfblocks-templates/free/acfb-tabs.php +79 -79
  22. acfblocks-templates/free/acfb-team.php +127 -127
  23. acfblocks-templates/free/acfb-toggle.php +56 -56
  24. admin/admin-script.js +34 -34
  25. admin/admin-styles.css +158 -158
  26. css/acfblocks.css +3258 -3258
  27. css/animated-headline.css +1207 -1207
  28. extendify-sdk/app/Admin.php +7 -2
  29. extendify-sdk/extendify-sdk.php +1 -0
  30. extendify-sdk/public/build/extendify-sdk.js +1 -1
  31. extendify-sdk/readme.txt +1 -1
  32. extendify-sdk/src/buttons.js +21 -13
  33. extendify-sdk/src/components/Beacon.js +75 -0
  34. extendify-sdk/src/components/SidebarSingle.js +1 -1
  35. extendify-sdk/src/layout/MainWindow.js +5 -14
  36. extendify-sdk/src/layout/Toolbar.js +1 -5
  37. free-acf-blocks.php +435 -435
  38. freemius/includes/class-freemius.php +0 -4921
acf-blocks.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: ACF Blocks Suite
5
  * Plugin URI: https://acfblocks.com/
6
  * Description: Supercharge your Gutenberg editor with high quality beautiful WordPress blocks. Ready-to-use ACF Blocks!
7
- * Version: 2.6.5
8
  * Author: munirkamal
9
  * Author URI: https://munirkamal.wordpress.com
10
  * License: GPL2
4
  * Plugin Name: ACF Blocks Suite
5
  * Plugin URI: https://acfblocks.com/
6
  * Description: Supercharge your Gutenberg editor with high quality beautiful WordPress blocks. Ready-to-use ACF Blocks!
7
+ * Version: 2.6.6
8
  * Author: munirkamal
9
  * Author URI: https://munirkamal.wordpress.com
10
  * License: GPL2
acf-json/index.php CHANGED
@@ -1,3 +1,3 @@
1
- <?php
2
- // Silence is golden.
3
  ?>
1
+ <?php
2
+ // Silence is golden.
3
  ?>
acfblocks-templates/free/acfb-accordion.php CHANGED
@@ -1,73 +1,73 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_accordion_title_typo'),
5
- get_field('acfb_accordion_content_content')
6
- )
7
- );
8
-
9
- $acfb_accordion_padding = acfb_padding_name('acfb_accordion_padding');
10
- $acfb_accordion_margin = acfb_margin_name('acfb_accordion_margin');
11
- $acfb_accordion_title_typo = acfb_ffaimly_name('acfb_accordion_title_typo');
12
- $acfb_accordion_content_content = acfb_ffaimly_name('acfb_accordion_content_content');
13
-
14
-
15
- $uid = $block['id'];
16
- $uid_accordion = str_replace("block","accordion",$uid);
17
-
18
- $className = 'acfb_accordion_block';
19
- if( !empty($block['className']) ) {
20
- $className .= ' ' . $block['className'];
21
- }
22
- if( !empty($block['align']) ) {
23
- $className .= ' align' . $block['align'];
24
- }
25
-
26
- ?>
27
-
28
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
29
- <style>
30
- .<?php echo $uid; ?> {
31
- <?php echo get_padding_field($acfb_accordion_padding); ?>
32
- <?php echo get_margin_field($acfb_accordion_margin); ?>
33
- }
34
-
35
- .<?php echo $uid; ?> .acfb_accordion .acfb_accordion_title {
36
- background: <?php the_field('acfb_accordion_title_background'); ?>;
37
- color: <?php the_field('acfb_accordion_title_color'); ?>;
38
- <?php echo get_typo_field($acfb_accordion_title_typo); ?>
39
- text-align: <?php the_field('acfb_accordion_title_alignment'); ?>;
40
- }
41
-
42
- .<?php echo $uid; ?> .acfb_accordion .acfb_accordion_title:hover{
43
- background: <?php the_field('acfb_accordion_title_hover_background'); ?>;
44
- color: <?php the_field('acfb_accordion_title_hover_color'); ?>;
45
- }
46
-
47
- .<?php echo $uid; ?> .acfb_accordion .acfb_accordion_content {
48
- background: <?php the_field('acfb_accordion_content_background'); ?>;
49
- color: <?php the_field('acfb_accordion_content_color'); ?>;
50
- <?php echo get_typo_field($acfb_accordion_content_content); ?>
51
- }
52
- </style>
53
-
54
-
55
- <?php if( have_rows('acfb_add_accordion') ): ?>
56
-
57
- <div class="acfb_accordion">
58
-
59
- <?php while( have_rows('acfb_add_accordion') ): the_row(); ?>
60
- <a href="#<?php echo $uid_accordion; ?>-<?php echo get_row_index(); ?>" class="first acfb_accordion_title"> <?php the_sub_field('acfb_accordion_title'); ?></a>
61
- <div id="<?php echo $uid_accordion; ?>-<?php echo get_row_index(); ?>" class="acfb_accordion_content">
62
- <div class="acfb_accordion_content_inner">
63
- <?php the_sub_field('acfb_accordion_content'); ?>
64
- </div>
65
- </div>
66
- <?php endwhile; ?>
67
-
68
- </div>
69
-
70
- <?php endif; ?>
71
-
72
-
73
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_accordion_title_typo'),
5
+ get_field('acfb_accordion_content_content')
6
+ )
7
+ );
8
+
9
+ $acfb_accordion_padding = acfb_padding_name('acfb_accordion_padding');
10
+ $acfb_accordion_margin = acfb_margin_name('acfb_accordion_margin');
11
+ $acfb_accordion_title_typo = acfb_ffaimly_name('acfb_accordion_title_typo');
12
+ $acfb_accordion_content_content = acfb_ffaimly_name('acfb_accordion_content_content');
13
+
14
+
15
+ $uid = $block['id'];
16
+ $uid_accordion = str_replace("block","accordion",$uid);
17
+
18
+ $className = 'acfb_accordion_block';
19
+ if( !empty($block['className']) ) {
20
+ $className .= ' ' . $block['className'];
21
+ }
22
+ if( !empty($block['align']) ) {
23
+ $className .= ' align' . $block['align'];
24
+ }
25
+
26
+ ?>
27
+
28
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
29
+ <style>
30
+ .<?php echo $uid; ?> {
31
+ <?php echo get_padding_field($acfb_accordion_padding); ?>
32
+ <?php echo get_margin_field($acfb_accordion_margin); ?>
33
+ }
34
+
35
+ .<?php echo $uid; ?> .acfb_accordion .acfb_accordion_title {
36
+ background: <?php the_field('acfb_accordion_title_background'); ?>;
37
+ color: <?php the_field('acfb_accordion_title_color'); ?>;
38
+ <?php echo get_typo_field($acfb_accordion_title_typo); ?>
39
+ text-align: <?php the_field('acfb_accordion_title_alignment'); ?>;
40
+ }
41
+
42
+ .<?php echo $uid; ?> .acfb_accordion .acfb_accordion_title:hover{
43
+ background: <?php the_field('acfb_accordion_title_hover_background'); ?>;
44
+ color: <?php the_field('acfb_accordion_title_hover_color'); ?>;
45
+ }
46
+
47
+ .<?php echo $uid; ?> .acfb_accordion .acfb_accordion_content {
48
+ background: <?php the_field('acfb_accordion_content_background'); ?>;
49
+ color: <?php the_field('acfb_accordion_content_color'); ?>;
50
+ <?php echo get_typo_field($acfb_accordion_content_content); ?>
51
+ }
52
+ </style>
53
+
54
+
55
+ <?php if( have_rows('acfb_add_accordion') ): ?>
56
+
57
+ <div class="acfb_accordion">
58
+
59
+ <?php while( have_rows('acfb_add_accordion') ): the_row(); ?>
60
+ <a href="#<?php echo $uid_accordion; ?>-<?php echo get_row_index(); ?>" class="first acfb_accordion_title"> <?php the_sub_field('acfb_accordion_title'); ?></a>
61
+ <div id="<?php echo $uid_accordion; ?>-<?php echo get_row_index(); ?>" class="acfb_accordion_content">
62
+ <div class="acfb_accordion_content_inner">
63
+ <?php the_sub_field('acfb_accordion_content'); ?>
64
+ </div>
65
+ </div>
66
+ <?php endwhile; ?>
67
+
68
+ </div>
69
+
70
+ <?php endif; ?>
71
+
72
+
73
  </div><!-- Uid -->
acfblocks-templates/free/acfb-business-hours.php CHANGED
@@ -1,206 +1,206 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_bh_text_typo')
5
- )
6
- );
7
-
8
-
9
- $acfb_bh_inner_padding = acfb_padding_name('acfb_bh_inner_padding');
10
- $acfb_bh_padding = acfb_padding_name('acfb_bh_padding');
11
- $acfb_bh_margin = acfb_margin_name('acfb_bh_margin');
12
- $acfb_bh_text_typo = acfb_ffaimly_name('acfb_bh_text_typo');
13
-
14
-
15
- $uid = $block['id'];
16
-
17
- $className = 'acfb_business_hours';
18
- if( !empty($block['className']) ) {
19
- $className .= ' ' . $block['className'];
20
- }
21
- if( !empty($block['align']) ) {
22
- $className .= ' align' . $block['align'];
23
- }
24
-
25
- ?>
26
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
27
- <style type="text/css">
28
- .<?php echo $uid; ?> {
29
- <?php echo get_padding_field($acfb_bh_padding); ?>
30
- <?php echo get_margin_field($acfb_bh_margin); ?>
31
- }
32
-
33
-
34
- .<?php echo $uid; ?> .acfb_bh_wrapper{
35
- background: <?php the_field('acfb_bh_background_color'); ?>;
36
- padding-top: <?php echo $acfb_bh_inner_padding['padding_top']; ?>px;
37
- padding-bottom: <?php echo $acfb_bh_inner_padding['padding_bottom']; ?>px;
38
- padding-left: <?php echo $acfb_bh_inner_padding['padding_left']; ?>px;
39
- padding-right: <?php echo $acfb_bh_inner_padding['padding_right']; ?>px;
40
- }
41
-
42
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_day,
43
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_time_wrapper .acfb_bh_open_time,
44
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_time_wrapper .acfb_bh_seprator,
45
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_time_wrapper .acfb_bh_close_time{
46
- color: <?php the_field('acfb_bh_oh_color'); ?>;
47
- }
48
-
49
-
50
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_cl_time .acfb_bh_day,
51
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_cl_time .acfb_bh_close_wrapper{
52
- color: <?php the_field('acfb_bh_ch_color'); ?>;
53
- }
54
-
55
-
56
- .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_item{
57
- border-bottom: 1px solid <?php the_field('acfb_bh_border_color'); ?>;
58
- <?php echo get_typo_field($acfb_bh_text_typo); ?>
59
- }
60
-
61
- </style>
62
-
63
- <?php
64
-
65
- $acfb_bh_mon_oc = '';
66
- if(get_field("acfb_bh_monday") == 'true'){
67
- $acfb_bh_mon_oc = "acfb_bh_op_time";
68
- } else{
69
- $acfb_bh_mon_oc = "acfb_bh_cl_time";
70
- }
71
-
72
- if(get_field("acfb_bh_tuesday") == 'true'){
73
- $acfb_bh_tue_oc = "acfb_bh_op_time";
74
- } else{
75
- $acfb_bh_tue_oc = "acfb_bh_cl_time";
76
- }
77
-
78
- if(get_field("acfb_bh_wednesday") == 'true'){
79
- $acfb_bh_wed_oc = "acfb_bh_op_time";
80
- } else{
81
- $acfb_bh_wed_oc = "acfb_bh_cl_time";
82
- }
83
-
84
- if(get_field("acfb_bh_thursday") == 'true'){
85
- $acfb_bh_thu_oc = "acfb_bh_op_time";
86
- } else{
87
- $acfb_bh_thu_oc = "acfb_bh_cl_time";
88
- }
89
-
90
- if(get_field("acfb_bh_friday") == 'true'){
91
- $acfb_bh_fri_oc = "acfb_bh_op_time";
92
- } else{
93
- $acfb_bh_fri_oc = "acfb_bh_cl_time";
94
- }
95
-
96
- if(get_field("acfb_bh_saturday") == 'true'){
97
- $acfb_bh_sat_oc = "acfb_bh_op_time";
98
- } else{
99
- $acfb_bh_sat_oc = "acfb_bh_cl_time";
100
- }
101
-
102
- if(get_field("acfb_bh_sunday") == 'true'){
103
- $acfb_bh_sun_oc = "acfb_bh_op_time";
104
- } else{
105
- $acfb_bh_sun_oc = "acfb_bh_cl_time";
106
- }
107
- ?>
108
-
109
- <div class="acfb_bh_wrapper">
110
- <ul>
111
-
112
- <li class="acfb_bh_item <?php echo $acfb_bh_mon_oc; ?>">
113
- <span class="acfb_bh_day">Monday</span>
114
- <?php if( get_field('acfb_bh_monday') == 'ture' ): ?>
115
- <span class="acfb_bh_time_wrapper">
116
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_monday_oh'); ?></span>
117
- <span class="acfb_bh_seprator"> - </span>
118
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_monday_ch'); ?></span>
119
- </span>
120
- <?php else: ?>
121
- <span class="acfb_bh_close_wrapper">Closed</span>
122
- <?php endif; ?>
123
- </li>
124
-
125
- <li class="acfb_bh_item <?php echo $acfb_bh_tue_oc; ?>">
126
- <span class="acfb_bh_day">Tuesday</span>
127
- <?php if( get_field('acfb_bh_tuesday') == 'ture' ): ?>
128
- <span class="acfb_bh_time_wrapper">
129
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_tuesday_oh'); ?></span>
130
- <span class="acfb_bh_seprator"> - </span>
131
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_tuesday_ch'); ?></span>
132
- </span>
133
- <?php else: ?>
134
- <span class="acfb_bh_close_wrapper">Closed</span>
135
- <?php endif; ?>
136
- </li>
137
-
138
- <li class="acfb_bh_item <?php echo $acfb_bh_wed_oc; ?>">
139
- <span class="acfb_bh_day">Wednesday</span>
140
- <?php if( get_field('acfb_bh_wednesday') == 'ture' ): ?>
141
- <span class="acfb_bh_time_wrapper">
142
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_wednesday_oh'); ?></span>
143
- <span class="acfb_bh_seprator"> - </span>
144
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_wednesday_ch'); ?></span>
145
- </span>
146
- <?php else: ?>
147
- <span class="acfb_bh_close_wrapper">Closed</span>
148
- <?php endif; ?>
149
- </li>
150
-
151
- <li class="acfb_bh_item <?php echo $acfb_bh_thu_oc; ?>">
152
- <span class="acfb_bh_day">Thursday</span>
153
- <?php if( get_field('acfb_bh_thursday') == 'ture' ): ?>
154
- <span class="acfb_bh_time_wrapper">
155
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_thursday_oh'); ?></span>
156
- <span class="acfb_bh_seprator"> - </span>
157
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_thursday_ch'); ?></span>
158
- </span>
159
- <?php else: ?>
160
- <span class="acfb_bh_close_wrapper">Closed</span>
161
- <?php endif; ?>
162
- </li>
163
-
164
- <li class="acfb_bh_item <?php echo $acfb_bh_fri_oc; ?>">
165
- <span class="acfb_bh_day">Friday</span>
166
- <?php if( get_field('acfb_bh_friday') == 'ture' ): ?>
167
- <span class="acfb_bh_time_wrapper">
168
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_friday_oh'); ?></span>
169
- <span class="acfb_bh_seprator"> - </span>
170
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_friday_ch'); ?></span>
171
- </span>
172
- <?php else: ?>
173
- <span class="acfb_bh_close_wrapper">Closed</span>
174
- <?php endif; ?>
175
- </li>
176
-
177
- <li class="acfb_bh_item <?php echo $acfb_bh_sat_oc; ?>">
178
- <span class="acfb_bh_day">Saturday</span>
179
- <?php if( get_field('acfb_bh_saturday') == 'ture' ): ?>
180
- <span class="acfb_bh_time_wrapper">
181
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_saturday_oh'); ?></span>
182
- <span class="acfb_bh_seprator"> - </span>
183
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_saturday_ch'); ?></span>
184
- </span>
185
- <?php else: ?>
186
- <span class="acfb_bh_close_wrapper">Closed</span>
187
- <?php endif; ?>
188
- </li>
189
-
190
- <li class="acfb_bh_item <?php echo $acfb_bh_sun_oc; ?>">
191
- <span class="acfb_bh_day">Sunday</span>
192
- <?php if( get_field('acfb_bh_sunday') == 'ture' ): ?>
193
- <span class="acfb_bh_time_wrapper">
194
- <span class="acfb_bh_open_time"><?php the_field('acfb_bh_sunday_oh'); ?></span>
195
- <span class="acfb_bh_seprator"> - </span>
196
- <span class="acfb_bh_close_time"><?php the_field('acfb_bh_sunday_ch'); ?></span>
197
- </span>
198
- <?php else: ?>
199
- <span class="acfb_bh_close_wrapper">Closed</span>
200
- <?php endif; ?>
201
- </li>
202
-
203
- </ul>
204
- </div>
205
-
206
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_bh_text_typo')
5
+ )
6
+ );
7
+
8
+
9
+ $acfb_bh_inner_padding = acfb_padding_name('acfb_bh_inner_padding');
10
+ $acfb_bh_padding = acfb_padding_name('acfb_bh_padding');
11
+ $acfb_bh_margin = acfb_margin_name('acfb_bh_margin');
12
+ $acfb_bh_text_typo = acfb_ffaimly_name('acfb_bh_text_typo');
13
+
14
+
15
+ $uid = $block['id'];
16
+
17
+ $className = 'acfb_business_hours';
18
+ if( !empty($block['className']) ) {
19
+ $className .= ' ' . $block['className'];
20
+ }
21
+ if( !empty($block['align']) ) {
22
+ $className .= ' align' . $block['align'];
23
+ }
24
+
25
+ ?>
26
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
27
+ <style type="text/css">
28
+ .<?php echo $uid; ?> {
29
+ <?php echo get_padding_field($acfb_bh_padding); ?>
30
+ <?php echo get_margin_field($acfb_bh_margin); ?>
31
+ }
32
+
33
+
34
+ .<?php echo $uid; ?> .acfb_bh_wrapper{
35
+ background: <?php the_field('acfb_bh_background_color'); ?>;
36
+ padding-top: <?php echo $acfb_bh_inner_padding['padding_top']; ?>px;
37
+ padding-bottom: <?php echo $acfb_bh_inner_padding['padding_bottom']; ?>px;
38
+ padding-left: <?php echo $acfb_bh_inner_padding['padding_left']; ?>px;
39
+ padding-right: <?php echo $acfb_bh_inner_padding['padding_right']; ?>px;
40
+ }
41
+
42
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_day,
43
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_time_wrapper .acfb_bh_open_time,
44
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_time_wrapper .acfb_bh_seprator,
45
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_op_time .acfb_bh_time_wrapper .acfb_bh_close_time{
46
+ color: <?php the_field('acfb_bh_oh_color'); ?>;
47
+ }
48
+
49
+
50
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_cl_time .acfb_bh_day,
51
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_cl_time .acfb_bh_close_wrapper{
52
+ color: <?php the_field('acfb_bh_ch_color'); ?>;
53
+ }
54
+
55
+
56
+ .<?php echo $uid; ?> .acfb_bh_wrapper .acfb_bh_item{
57
+ border-bottom: 1px solid <?php the_field('acfb_bh_border_color'); ?>;
58
+ <?php echo get_typo_field($acfb_bh_text_typo); ?>
59
+ }
60
+
61
+ </style>
62
+
63
+ <?php
64
+
65
+ $acfb_bh_mon_oc = '';
66
+ if(get_field("acfb_bh_monday") == 'true'){
67
+ $acfb_bh_mon_oc = "acfb_bh_op_time";
68
+ } else{
69
+ $acfb_bh_mon_oc = "acfb_bh_cl_time";
70
+ }
71
+
72
+ if(get_field("acfb_bh_tuesday") == 'true'){
73
+ $acfb_bh_tue_oc = "acfb_bh_op_time";
74
+ } else{
75
+ $acfb_bh_tue_oc = "acfb_bh_cl_time";
76
+ }
77
+
78
+ if(get_field("acfb_bh_wednesday") == 'true'){
79
+ $acfb_bh_wed_oc = "acfb_bh_op_time";
80
+ } else{
81
+ $acfb_bh_wed_oc = "acfb_bh_cl_time";
82
+ }
83
+
84
+ if(get_field("acfb_bh_thursday") == 'true'){
85
+ $acfb_bh_thu_oc = "acfb_bh_op_time";
86
+ } else{
87
+ $acfb_bh_thu_oc = "acfb_bh_cl_time";
88
+ }
89
+
90
+ if(get_field("acfb_bh_friday") == 'true'){
91
+ $acfb_bh_fri_oc = "acfb_bh_op_time";
92
+ } else{
93
+ $acfb_bh_fri_oc = "acfb_bh_cl_time";
94
+ }
95
+
96
+ if(get_field("acfb_bh_saturday") == 'true'){
97
+ $acfb_bh_sat_oc = "acfb_bh_op_time";
98
+ } else{
99
+ $acfb_bh_sat_oc = "acfb_bh_cl_time";
100
+ }
101
+
102
+ if(get_field("acfb_bh_sunday") == 'true'){
103
+ $acfb_bh_sun_oc = "acfb_bh_op_time";
104
+ } else{
105
+ $acfb_bh_sun_oc = "acfb_bh_cl_time";
106
+ }
107
+ ?>
108
+
109
+ <div class="acfb_bh_wrapper">
110
+ <ul>
111
+
112
+ <li class="acfb_bh_item <?php echo $acfb_bh_mon_oc; ?>">
113
+ <span class="acfb_bh_day">Monday</span>
114
+ <?php if( get_field('acfb_bh_monday') == 'ture' ): ?>
115
+ <span class="acfb_bh_time_wrapper">
116
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_monday_oh'); ?></span>
117
+ <span class="acfb_bh_seprator"> - </span>
118
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_monday_ch'); ?></span>
119
+ </span>
120
+ <?php else: ?>
121
+ <span class="acfb_bh_close_wrapper">Closed</span>
122
+ <?php endif; ?>
123
+ </li>
124
+
125
+ <li class="acfb_bh_item <?php echo $acfb_bh_tue_oc; ?>">
126
+ <span class="acfb_bh_day">Tuesday</span>
127
+ <?php if( get_field('acfb_bh_tuesday') == 'ture' ): ?>
128
+ <span class="acfb_bh_time_wrapper">
129
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_tuesday_oh'); ?></span>
130
+ <span class="acfb_bh_seprator"> - </span>
131
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_tuesday_ch'); ?></span>
132
+ </span>
133
+ <?php else: ?>
134
+ <span class="acfb_bh_close_wrapper">Closed</span>
135
+ <?php endif; ?>
136
+ </li>
137
+
138
+ <li class="acfb_bh_item <?php echo $acfb_bh_wed_oc; ?>">
139
+ <span class="acfb_bh_day">Wednesday</span>
140
+ <?php if( get_field('acfb_bh_wednesday') == 'ture' ): ?>
141
+ <span class="acfb_bh_time_wrapper">
142
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_wednesday_oh'); ?></span>
143
+ <span class="acfb_bh_seprator"> - </span>
144
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_wednesday_ch'); ?></span>
145
+ </span>
146
+ <?php else: ?>
147
+ <span class="acfb_bh_close_wrapper">Closed</span>
148
+ <?php endif; ?>
149
+ </li>
150
+
151
+ <li class="acfb_bh_item <?php echo $acfb_bh_thu_oc; ?>">
152
+ <span class="acfb_bh_day">Thursday</span>
153
+ <?php if( get_field('acfb_bh_thursday') == 'ture' ): ?>
154
+ <span class="acfb_bh_time_wrapper">
155
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_thursday_oh'); ?></span>
156
+ <span class="acfb_bh_seprator"> - </span>
157
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_thursday_ch'); ?></span>
158
+ </span>
159
+ <?php else: ?>
160
+ <span class="acfb_bh_close_wrapper">Closed</span>
161
+ <?php endif; ?>
162
+ </li>
163
+
164
+ <li class="acfb_bh_item <?php echo $acfb_bh_fri_oc; ?>">
165
+ <span class="acfb_bh_day">Friday</span>
166
+ <?php if( get_field('acfb_bh_friday') == 'ture' ): ?>
167
+ <span class="acfb_bh_time_wrapper">
168
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_friday_oh'); ?></span>
169
+ <span class="acfb_bh_seprator"> - </span>
170
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_friday_ch'); ?></span>
171
+ </span>
172
+ <?php else: ?>
173
+ <span class="acfb_bh_close_wrapper">Closed</span>
174
+ <?php endif; ?>
175
+ </li>
176
+
177
+ <li class="acfb_bh_item <?php echo $acfb_bh_sat_oc; ?>">
178
+ <span class="acfb_bh_day">Saturday</span>
179
+ <?php if( get_field('acfb_bh_saturday') == 'ture' ): ?>
180
+ <span class="acfb_bh_time_wrapper">
181
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_saturday_oh'); ?></span>
182
+ <span class="acfb_bh_seprator"> - </span>
183
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_saturday_ch'); ?></span>
184
+ </span>
185
+ <?php else: ?>
186
+ <span class="acfb_bh_close_wrapper">Closed</span>
187
+ <?php endif; ?>
188
+ </li>
189
+
190
+ <li class="acfb_bh_item <?php echo $acfb_bh_sun_oc; ?>">
191
+ <span class="acfb_bh_day">Sunday</span>
192
+ <?php if( get_field('acfb_bh_sunday') == 'ture' ): ?>
193
+ <span class="acfb_bh_time_wrapper">
194
+ <span class="acfb_bh_open_time"><?php the_field('acfb_bh_sunday_oh'); ?></span>
195
+ <span class="acfb_bh_seprator"> - </span>
196
+ <span class="acfb_bh_close_time"><?php the_field('acfb_bh_sunday_ch'); ?></span>
197
+ </span>
198
+ <?php else: ?>
199
+ <span class="acfb_bh_close_wrapper">Closed</span>
200
+ <?php endif; ?>
201
+ </li>
202
+
203
+ </ul>
204
+ </div>
205
+
206
  </div><!-- Uid -->
acfblocks-templates/free/acfb-clicktotweet.php CHANGED
@@ -1,74 +1,74 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_click_to_tweet_text_typo'),
5
- get_field('acfb_click_to_tweet_button_typo')
6
- )
7
- );
8
-
9
-
10
- $acfb_click_to_inner_padding = acfb_padding_name('acfb_click_to_inner_padding');
11
- $acfb_click_to_tweet_padding = acfb_padding_name('acfb_click_to_tweet_padding');
12
- $acfb_click_to_tweet_margin = acfb_margin_name('acfb_click_to_tweet_margin');
13
- $acfb_click_to_tweet_text_typo = acfb_ffaimly_name('acfb_click_to_tweet_text_typo');
14
- $acfb_click_to_tweet_button_typo = acfb_ffaimly_name('acfb_click_to_tweet_button_typo');
15
-
16
- $uid = $block['id'];
17
-
18
- $className = 'acfb_click_to_tweet_block';
19
- if( !empty($block['className']) ) {
20
- $className .= ' ' . $block['className'];
21
- }
22
- if( !empty($block['align']) ) {
23
- $className .= ' align' . $block['align'];
24
- }
25
-
26
- ?>
27
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
28
- <style type="text/css">
29
- .<?php echo $uid; ?> {
30
- <?php echo get_padding_field($acfb_click_to_tweet_padding); ?>
31
- <?php echo get_margin_field($acfb_click_to_tweet_margin); ?>
32
- }
33
-
34
- .<?php echo $uid; ?> .acfb_click_to_tweet {
35
- background-color: <?php the_field('acfb_click_to_tweet_bg_color'); ?>;
36
- padding-top: <?php echo $acfb_click_to_inner_padding['padding_top']; ?>px;
37
- padding-bottom: <?php echo $acfb_click_to_inner_padding['padding_bottom']; ?>px;
38
- padding-left: <?php echo $acfb_click_to_inner_padding['padding_left']; ?>px;
39
- padding-right: <?php echo $acfb_click_to_inner_padding['padding_right']; ?>px;
40
- }
41
-
42
- .<?php echo $uid; ?> .acfb_click_to_tweet a {
43
- color: <?php the_field('acfb_click_to_tweet_text_color'); ?> !important;
44
- <?php echo get_typo_field($acfb_click_to_tweet_text_typo); ?>
45
- }
46
-
47
- .<?php echo $uid; ?> .acfb_click_to_tweet a:hover, .<?php echo $uid; ?> .acfb_click_to_tweet:hover a:after{
48
- color: <?php the_field('acfb_click_to_tweet_button_hover_color'); ?>;
49
- }
50
-
51
- .<?php echo $uid; ?> .acfb_click_to_tweet a:after {
52
- content: '<?php the_field('acfb_click_to_tweet_button_text'); ?>';
53
- color: <?php the_field('acfb_click_to_tweet_button_color'); ?>;
54
- <?php echo get_typo_field($acfb_click_to_tweet_button_typo); ?>
55
- }
56
-
57
- </style>
58
-
59
- <?php
60
- $acfb_by_line = '';
61
- if(get_field('acfb_click_to_tweet_handler')){
62
- $acfb_by_line = 'by: @' . get_field('acfb_click_to_tweet_handler');
63
- }
64
- ?>
65
-
66
-
67
- <div class="acfb_click_to_tweet">
68
- <a onclick="window.open(&quot;https://twitter.com/share?url=&quot; +
69
- document.querySelector(&quot;link[rel='canonical']&quot;).href + &quot;&amp;text=&quot; + encodeURIComponent(this.innerText) + &quot; - <?php echo $acfb_by_line; ?> &quot;, &quot;sharer&quot;, &quot;; toolbar=0, status=0, width=626, height=436&quot;); return false;" rel="nofollow" title="Share to Twitter">
70
- <?php the_field('acfb_click_to_tweet_content'); ?>
71
- </a>
72
- </div>
73
-
74
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_click_to_tweet_text_typo'),
5
+ get_field('acfb_click_to_tweet_button_typo')
6
+ )
7
+ );
8
+
9
+
10
+ $acfb_click_to_inner_padding = acfb_padding_name('acfb_click_to_inner_padding');
11
+ $acfb_click_to_tweet_padding = acfb_padding_name('acfb_click_to_tweet_padding');
12
+ $acfb_click_to_tweet_margin = acfb_margin_name('acfb_click_to_tweet_margin');
13
+ $acfb_click_to_tweet_text_typo = acfb_ffaimly_name('acfb_click_to_tweet_text_typo');
14
+ $acfb_click_to_tweet_button_typo = acfb_ffaimly_name('acfb_click_to_tweet_button_typo');
15
+
16
+ $uid = $block['id'];
17
+
18
+ $className = 'acfb_click_to_tweet_block';
19
+ if( !empty($block['className']) ) {
20
+ $className .= ' ' . $block['className'];
21
+ }
22
+ if( !empty($block['align']) ) {
23
+ $className .= ' align' . $block['align'];
24
+ }
25
+
26
+ ?>
27
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
28
+ <style type="text/css">
29
+ .<?php echo $uid; ?> {
30
+ <?php echo get_padding_field($acfb_click_to_tweet_padding); ?>
31
+ <?php echo get_margin_field($acfb_click_to_tweet_margin); ?>
32
+ }
33
+
34
+ .<?php echo $uid; ?> .acfb_click_to_tweet {
35
+ background-color: <?php the_field('acfb_click_to_tweet_bg_color'); ?>;
36
+ padding-top: <?php echo $acfb_click_to_inner_padding['padding_top']; ?>px;
37
+ padding-bottom: <?php echo $acfb_click_to_inner_padding['padding_bottom']; ?>px;
38
+ padding-left: <?php echo $acfb_click_to_inner_padding['padding_left']; ?>px;
39
+ padding-right: <?php echo $acfb_click_to_inner_padding['padding_right']; ?>px;
40
+ }
41
+
42
+ .<?php echo $uid; ?> .acfb_click_to_tweet a {
43
+ color: <?php the_field('acfb_click_to_tweet_text_color'); ?> !important;
44
+ <?php echo get_typo_field($acfb_click_to_tweet_text_typo); ?>
45
+ }
46
+
47
+ .<?php echo $uid; ?> .acfb_click_to_tweet a:hover, .<?php echo $uid; ?> .acfb_click_to_tweet:hover a:after{
48
+ color: <?php the_field('acfb_click_to_tweet_button_hover_color'); ?>;
49
+ }
50
+
51
+ .<?php echo $uid; ?> .acfb_click_to_tweet a:after {
52
+ content: '<?php the_field('acfb_click_to_tweet_button_text'); ?>';
53
+ color: <?php the_field('acfb_click_to_tweet_button_color'); ?>;
54
+ <?php echo get_typo_field($acfb_click_to_tweet_button_typo); ?>
55
+ }
56
+
57
+ </style>
58
+
59
+ <?php
60
+ $acfb_by_line = '';
61
+ if(get_field('acfb_click_to_tweet_handler')){
62
+ $acfb_by_line = 'by: @' . get_field('acfb_click_to_tweet_handler');
63
+ }
64
+ ?>
65
+
66
+
67
+ <div class="acfb_click_to_tweet">
68
+ <a onclick="window.open(&quot;https://twitter.com/share?url=&quot; +
69
+ document.querySelector(&quot;link[rel='canonical']&quot;).href + &quot;&amp;text=&quot; + encodeURIComponent(this.innerText) + &quot; - <?php echo $acfb_by_line; ?> &quot;, &quot;sharer&quot;, &quot;; toolbar=0, status=0, width=626, height=436&quot;); return false;" rel="nofollow" title="Share to Twitter">
70
+ <?php the_field('acfb_click_to_tweet_content'); ?>
71
+ </a>
72
+ </div>
73
+
74
  </div><!-- Uid -->
acfblocks-templates/free/acfb-counternumber.php CHANGED
@@ -1,54 +1,54 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_counter_number_typo'),
5
- get_field('acfb_counter_title_typo')
6
- )
7
- );
8
-
9
-
10
- $acfb_counter_number_padding = acfb_padding_name('acfb_counter_number_padding');
11
- $acfb_counter_number_margin = acfb_margin_name('acfb_counter_number_margin');
12
- $acfb_counter_number_typo = acfb_ffaimly_name('acfb_counter_number_typo');
13
- $acfb_counter_title_typo = acfb_ffaimly_name('acfb_counter_title_typo');
14
-
15
-
16
- $uid = $block['id'];
17
-
18
- $className = 'acfb_counter_number_block';
19
- if( !empty($block['className']) ) {
20
- $className .= ' ' . $block['className'];
21
- }
22
- if( !empty($block['align']) ) {
23
- $className .= ' align' . $block['align'];
24
- }
25
-
26
- ?>
27
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
28
- <style type="text/css">
29
- .<?php echo $uid; ?> {
30
- <?php echo get_padding_field($acfb_counter_number_padding); ?>
31
- <?php echo get_margin_field($acfb_counter_number_margin); ?>
32
- }
33
-
34
- .<?php echo $uid; ?> .acfb_counter_number_wrapper{
35
- color: <?php the_field('acfb_counter_number_color'); ?>;
36
- <?php echo get_typo_field($acfb_counter_number_typo); ?>
37
- }
38
-
39
- .<?php echo $uid; ?> .acfb_counter .acfb_counter_title{
40
- color: <?php the_field('acfb_counter_number_title_color'); ?>;
41
- <?php echo get_typo_field($acfb_counter_title_typo); ?>
42
- }
43
- </style>
44
-
45
- <div class="acfb_counter">
46
- <div class="acfb_counter_number_wrapper">
47
- <span class="acfb_counter_number_prefix"><?php the_field('acfb_counter_number_prefix'); ?></span>
48
- <span class="acfb_counter_number"><?php the_field('acfb_counter_number'); ?></span>
49
- <span class="acfb_counter_number_suffix"><?php the_field('acfb_counter_number_suffix'); ?></span>
50
- </div>
51
- <div class="acfb_counter_title"><?php the_field('acfb_counter_number_title'); ?></div>
52
- </div>
53
-
54
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_counter_number_typo'),
5
+ get_field('acfb_counter_title_typo')
6
+ )
7
+ );
8
+
9
+
10
+ $acfb_counter_number_padding = acfb_padding_name('acfb_counter_number_padding');
11
+ $acfb_counter_number_margin = acfb_margin_name('acfb_counter_number_margin');
12
+ $acfb_counter_number_typo = acfb_ffaimly_name('acfb_counter_number_typo');
13
+ $acfb_counter_title_typo = acfb_ffaimly_name('acfb_counter_title_typo');
14
+
15
+
16
+ $uid = $block['id'];
17
+
18
+ $className = 'acfb_counter_number_block';
19
+ if( !empty($block['className']) ) {
20
+ $className .= ' ' . $block['className'];
21
+ }
22
+ if( !empty($block['align']) ) {
23
+ $className .= ' align' . $block['align'];
24
+ }
25
+
26
+ ?>
27
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
28
+ <style type="text/css">
29
+ .<?php echo $uid; ?> {
30
+ <?php echo get_padding_field($acfb_counter_number_padding); ?>
31
+ <?php echo get_margin_field($acfb_counter_number_margin); ?>
32
+ }
33
+
34
+ .<?php echo $uid; ?> .acfb_counter_number_wrapper{
35
+ color: <?php the_field('acfb_counter_number_color'); ?>;
36
+ <?php echo get_typo_field($acfb_counter_number_typo); ?>
37
+ }
38
+
39
+ .<?php echo $uid; ?> .acfb_counter .acfb_counter_title{
40
+ color: <?php the_field('acfb_counter_number_title_color'); ?>;
41
+ <?php echo get_typo_field($acfb_counter_title_typo); ?>
42
+ }
43
+ </style>
44
+
45
+ <div class="acfb_counter">
46
+ <div class="acfb_counter_number_wrapper">
47
+ <span class="acfb_counter_number_prefix"><?php the_field('acfb_counter_number_prefix'); ?></span>
48
+ <span class="acfb_counter_number"><?php the_field('acfb_counter_number'); ?></span>
49
+ <span class="acfb_counter_number_suffix"><?php the_field('acfb_counter_number_suffix'); ?></span>
50
+ </div>
51
+ <div class="acfb_counter_title"><?php the_field('acfb_counter_number_title'); ?></div>
52
+ </div>
53
+
54
  </div><!-- Uid -->
acfblocks-templates/free/acfb-divider.php CHANGED
@@ -1,156 +1,156 @@
1
- <?php
2
- $uid = $block['id'];
3
-
4
- $className = 'acfb_divider_block';
5
- if( !empty($block['className']) ) {
6
- $className .= ' ' . $block['className'];
7
- }
8
- if( !empty($block['align']) ) {
9
- $className .= ' align' . $block['align'];
10
- }
11
-
12
- echo parse_link(
13
- array(
14
- get_field('acfb_divider_text_typo')
15
- )
16
- );
17
-
18
- $acfb_divider_padding = acfb_padding_name('acfb_divider_padding');
19
- $acfb_divider_margin = acfb_margin_name('acfb_divider_margin');
20
- $acfb_divider_text_typo = acfb_ffaimly_name('acfb_divider_text_typo');
21
-
22
-
23
-
24
-
25
- $acfb_divider_color = get_field('acfb_divider_color');
26
- $acfb_dc = str_replace('#' , "" , get_field('acfb_divider_color'));
27
-
28
- $acfb_divider_fancy_styles = get_field('acfb_divider_fancy_styles');
29
- $acfb_fancy_divider = '';
30
- if($acfb_divider_fancy_styles === 'curly'){
31
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,21c3.3,0,8.3-0.9,15.7-7.1c6.6-5.4,4.4-9.3,2.4-10.3c-3.4-1.8-7.7,1.3-7.3,8.8C11.2,20,17.1,21,24,21'/%3E%3C/svg%3E";
32
- } elseif($acfb_divider_fancy_styles === 'curved'){
33
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,6,13,12,13S18,6,24,6'/%3E%3C/svg%3E";
34
-
35
- } elseif($acfb_divider_fancy_styles === 'slashes'){
36
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 20 16' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cg transform='translate(-12.000000, 0)'%3E%3Cpath d='M28,0L10,18'/%3E%3Cpath d='M18,0L0,18'/%3E%3Cpath d='M48,0L30,18'/%3E%3Cpath d='M38,0L20,18'/%3E%3C/g%3E%3C/svg%3E";
37
- } elseif($acfb_divider_fancy_styles === 'squared'){
38
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpolyline points='0,6 6,6 6,18 18,18 18,6 24,6 '/%3E%3C/svg%3E";
39
- } elseif($acfb_divider_fancy_styles === 'wavy'){
40
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,0.9,11.1,6.9,11.1S18,6,24,6'/%3E%3C/svg%3E";
41
- } elseif($acfb_divider_fancy_styles === 'tree'){
42
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 126 26' fill='%23$acfb_dc' stroke='none'%3E%3Cpath d='M111.9,18.3v3.4H109v-3.4H111.9z M90.8,18.3v3.4H88v-3.4H90.8z M69.8,18.3v3.4h-2.9v-3.4H69.8z M48.8,18.3v3.4h-2.9v-3.4H48.8z M27.7,18.3v3.4h-2.9v-3.4H27.7z M6.7,18.3v3.4H3.8v-3.4H6.7z M46.4,4l4.3,4.8l-1.8,0l3.5,4.4l-2.2-0.1l3,3.3l-11,0.4l3.6-3.8l-2.9-0.1l3.1-4.2l-1.9,0L46.4,4z M111.4,4l2.4,4.8l-1.8,0l3.5,4.4l-2.5-0.1l3.3,3.3h-11l3.1-3.4l-2.5-0.1l3.1-4.2l-1.9,0L111.4,4z M89.9,4l2.9,4.8l-1.9,0l3.2,4.2l-2.5,0l3.5,3.5l-11-0.4l3-3.1l-2.4,0L88,8.8l-1.9,0L89.9,4z M68.6,4l3,4.4l-1.9,0.1l3.4,4.1l-2.7,0.1l3.8,3.7H63.8l2.9-3.6l-2.9,0.1L67,8.7l-2,0.1L68.6,4z M26.5,4l3,4.4l-1.9,0.1l3.7,4.7l-2.5-0.1l3.3,3.3H21l3.1-3.4l-2.5-0.1l3.2-4.3l-2,0.1L26.5,4z M4.9,4l3.7,4.8l-1.5,0l3.1,4.2L7.6,13l3.4,3.4H0l3-3.3l-2.3,0.1l3.5-4.4l-2.3,0L4.9,4z'/%3E%3C/svg%3E";
43
- } elseif($acfb_divider_fancy_styles === 'zigzag'){
44
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpolyline points='0,18 12,6 24,18 '/%3E%3C/svg%3E";
45
- } elseif($acfb_divider_fancy_styles === 'rhombus'){
46
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='%23$acfb_dc' stroke='none'%3E%3Cpath d='M12.7,2.3c-0.4-0.4-1.1-0.4-1.5,0l-8,9.1c-0.3,0.4-0.3,0.9,0,1.2l8,9.1c0.4,0.4,1.1,0.4,1.5,0l8-9.1c0.3-0.4,0.3-0.9,0-1.2L12.7,2.3z'/%3E%3C/svg%3E";
47
- } elseif($acfb_divider_fancy_styles === 'parallelogram'){
48
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='%23$acfb_dc' stroke='none'%3E%3Cpolygon points='9.4,2 24,2 14.6,21.6 0,21.6'/%3E%3C/svg%3E";
49
- } elseif($acfb_divider_fancy_styles === 'x'){
50
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 126 26' fill='%23$acfb_dc' stroke='none'%3E%3Cpath d='M10.7,6l2.5,2.6l-4,4.3l4,5.4l-2.5,1.9l-4.5-5.2l-3.9,4.2L0.7,17L4,13.1L0,8.6l2.3-1.3l3.9,3.9L10.7,6z M23.9,6.6l4.2,4.5L32,7.2l2.3,1.3l-4,4.5l3.2,3.9L32,19.1l-3.9-3.3l-4.5,4.3l-2.5-1.9l4.4-5.1l-4.2-3.9L23.9,6.6zM73.5,6L76,8.6l-4,4.3l4,5.4l-2.5,1.9l-4.5-5.2l-3.9,4.2L63.5,17l4.1-4.7L63.5,8l2.3-1.3l4.1,3.6L73.5,6z M94,6l2.5,2.6l-4,4.3l4,5.4L94,20.1l-3.9-5l-3.9,4.2L84,17l3.2-3.9L84,8.6l2.3-1.3l3.2,3.9L94,6z M106.9,6l4.5,5.1l3.9-3.9l2.3,1.3l-4,4.5l3.2,3.9l-1.6,2.1l-3.9-4.2l-4.5,5.2l-2.5-1.9l4-5.4l-4-4.3L106.9,6z M53.1,6l2.5,2.6l-4,4.3l4,4.6l-2.5,1.9l-4.5-4.5l-3.5,4.5L43.1,17l3.2-3.9l-4-4.5l2.3-1.3l3.9,3.9L53.1,6z'/%3E%3C/svg%3E";
51
- } else{
52
- $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 120 26' fill='%23$acfb_dc' stroke='none'%3E%3Cpolygon points='0,14.4 0,21 11.5,12.4 21.3,20 30.4,11.1 40.3,20 51,12.4 60.6,20 69.6,11.1 79.3,20 90.1,12.4 99.6,20 109.7,11.1 120,21 120,14.4 109.7,5 99.6,13 90.1,5 79.3,14.5 71,5.7 60.6,12.4 51,5 40.3,14.5 31.1,5 21.3,13 11.5,5 '/%3E%3C/svg%3E";
53
- }
54
-
55
-
56
- $acfb_divider_image = null;
57
- if(get_field('acfb_divider_image')){
58
- $acfb_divider_image = get_field('acfb_divider_image');
59
- } else{
60
- $acfb_divider_image = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
61
- }
62
-
63
- ?>
64
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
65
- <style type="text/css">
66
- .<?php echo $uid; ?>{
67
- <?php echo get_padding_field($acfb_divider_padding); ?>
68
- <?php echo get_margin_field($acfb_divider_margin); ?>
69
- }
70
-
71
- .<?php echo $uid; ?> .acfb_divider{
72
- display: -webkit-box;
73
- display: -webkit-flex;
74
- display: -ms-flexbox;
75
- display: flex;
76
- direction: ltr;
77
- align-items: center;
78
- }
79
-
80
- .<?php echo $uid; ?> .acfb_divider::before{
81
- <?php if(get_field('acfb_divider_image_sf') === 'simple'): ?>
82
- border-top-style: <?php the_field('acfb_divider_simple_styles'); ?>;
83
- border-top-color: <?php echo $acfb_divider_color; ?>;
84
- border-top-width: <?php the_field('acfb_simple_divider_bw') ?>px;
85
- <?php else: ?>
86
- background: url("<?php echo $acfb_fancy_divider ?>");
87
- height: <?php the_field('acfb_fancy_divider_height') ?>px;
88
- <?php if(get_field("acfb_divider_fancy_styles") !== "tree" && get_field("acfb_divider_fancy_styles") !== "x"): ?>
89
- background-size: 20px 100%;
90
- <?php endif; ?>
91
- <?php endif; ?>
92
- <?php if(get_field('acfb_divider_alignment') !== 'left'): ?>
93
- content: "";
94
- <?php endif; ?>
95
- display: block;
96
- -webkit-box-flex: 1;
97
- -webkit-flex-grow: 1;
98
- -ms-flex-positive: 1;
99
- flex-grow: 1;
100
- }
101
-
102
- .<?php echo $uid; ?> .acfb_divider .acfb_divider_element{
103
- width: <?php the_field('acfb_divider_element_width'); ?>%;
104
- margin-left: <?php the_field('acfb_divider_element_spacing'); ?>px;
105
- margin-right: <?php the_field('acfb_divider_element_spacing'); ?>px;
106
- text-align: center;
107
- <?php
108
- if(get_field('acfb_select_divider_style') === 'text'){
109
- echo get_typo_field($acfb_divider_text_typo);
110
- echo "color:" . get_field('acfb_divider_text_color');
111
- }
112
- ?>
113
- }
114
-
115
- <?php if(get_field('acfb_select_divider_style') === 'image'): ?>
116
- .acfb_divider .acfb_divider_element img{
117
- width: <?php the_field('acfb_divider_image_width'); ?>%;
118
- }
119
- <?php endif; ?>
120
-
121
- .<?php echo $uid; ?> .acfb_divider::after{
122
- <?php if(get_field('acfb_divider_image_sf') === 'simple'): ?>
123
- border-top-style: <?php the_field('acfb_divider_simple_styles'); ?>;
124
- border-top-color: <?php echo $acfb_divider_color; ?>;
125
- border-top-width: <?php the_field('acfb_simple_divider_bw') ?>px;
126
- <?php else: ?>
127
- background: url("<?php echo $acfb_fancy_divider ?>");
128
- height: <?php the_field('acfb_fancy_divider_height') ?>px;
129
- <?php if(get_field("acfb_divider_fancy_styles") !== "tree" && get_field("acfb_divider_fancy_styles") !== "x"): ?>
130
- background-size: 20px 100%;
131
- <?php endif; ?>
132
- <?php endif; ?>
133
- <?php if(get_field('acfb_divider_alignment') !== 'right'): ?>
134
- content: "";
135
- <?php endif; ?>
136
- display: block;
137
- -webkit-box-flex: 1;
138
- -webkit-flex-grow: 1;
139
- -ms-flex-positive: 1;
140
- flex-grow: 1;
141
- }
142
- </style>
143
-
144
- <div class="acfb_divider">
145
- <div class="acfb_divider_element">
146
- <?php
147
- if(get_field('acfb_select_divider_style') === 'text'){
148
- the_field('acfb_divider_text');
149
- } else{
150
- echo "<img src='". $acfb_divider_image ."'>";
151
- }
152
- ?>
153
- </div>
154
- </div>
155
-
156
  </div><!-- Uid -->
1
+ <?php
2
+ $uid = $block['id'];
3
+
4
+ $className = 'acfb_divider_block';
5
+ if( !empty($block['className']) ) {
6
+ $className .= ' ' . $block['className'];
7
+ }
8
+ if( !empty($block['align']) ) {
9
+ $className .= ' align' . $block['align'];
10
+ }
11
+
12
+ echo parse_link(
13
+ array(
14
+ get_field('acfb_divider_text_typo')
15
+ )
16
+ );
17
+
18
+ $acfb_divider_padding = acfb_padding_name('acfb_divider_padding');
19
+ $acfb_divider_margin = acfb_margin_name('acfb_divider_margin');
20
+ $acfb_divider_text_typo = acfb_ffaimly_name('acfb_divider_text_typo');
21
+
22
+
23
+
24
+
25
+ $acfb_divider_color = get_field('acfb_divider_color');
26
+ $acfb_dc = str_replace('#' , "" , get_field('acfb_divider_color'));
27
+
28
+ $acfb_divider_fancy_styles = get_field('acfb_divider_fancy_styles');
29
+ $acfb_fancy_divider = '';
30
+ if($acfb_divider_fancy_styles === 'curly'){
31
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,21c3.3,0,8.3-0.9,15.7-7.1c6.6-5.4,4.4-9.3,2.4-10.3c-3.4-1.8-7.7,1.3-7.3,8.8C11.2,20,17.1,21,24,21'/%3E%3C/svg%3E";
32
+ } elseif($acfb_divider_fancy_styles === 'curved'){
33
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,6,13,12,13S18,6,24,6'/%3E%3C/svg%3E";
34
+
35
+ } elseif($acfb_divider_fancy_styles === 'slashes'){
36
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 20 16' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cg transform='translate(-12.000000, 0)'%3E%3Cpath d='M28,0L10,18'/%3E%3Cpath d='M18,0L0,18'/%3E%3Cpath d='M48,0L30,18'/%3E%3Cpath d='M38,0L20,18'/%3E%3C/g%3E%3C/svg%3E";
37
+ } elseif($acfb_divider_fancy_styles === 'squared'){
38
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpolyline points='0,6 6,6 6,18 18,18 18,6 24,6 '/%3E%3C/svg%3E";
39
+ } elseif($acfb_divider_fancy_styles === 'wavy'){
40
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,0.9,11.1,6.9,11.1S18,6,24,6'/%3E%3C/svg%3E";
41
+ } elseif($acfb_divider_fancy_styles === 'tree'){
42
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 126 26' fill='%23$acfb_dc' stroke='none'%3E%3Cpath d='M111.9,18.3v3.4H109v-3.4H111.9z M90.8,18.3v3.4H88v-3.4H90.8z M69.8,18.3v3.4h-2.9v-3.4H69.8z M48.8,18.3v3.4h-2.9v-3.4H48.8z M27.7,18.3v3.4h-2.9v-3.4H27.7z M6.7,18.3v3.4H3.8v-3.4H6.7z M46.4,4l4.3,4.8l-1.8,0l3.5,4.4l-2.2-0.1l3,3.3l-11,0.4l3.6-3.8l-2.9-0.1l3.1-4.2l-1.9,0L46.4,4z M111.4,4l2.4,4.8l-1.8,0l3.5,4.4l-2.5-0.1l3.3,3.3h-11l3.1-3.4l-2.5-0.1l3.1-4.2l-1.9,0L111.4,4z M89.9,4l2.9,4.8l-1.9,0l3.2,4.2l-2.5,0l3.5,3.5l-11-0.4l3-3.1l-2.4,0L88,8.8l-1.9,0L89.9,4z M68.6,4l3,4.4l-1.9,0.1l3.4,4.1l-2.7,0.1l3.8,3.7H63.8l2.9-3.6l-2.9,0.1L67,8.7l-2,0.1L68.6,4z M26.5,4l3,4.4l-1.9,0.1l3.7,4.7l-2.5-0.1l3.3,3.3H21l3.1-3.4l-2.5-0.1l3.2-4.3l-2,0.1L26.5,4z M4.9,4l3.7,4.8l-1.5,0l3.1,4.2L7.6,13l3.4,3.4H0l3-3.3l-2.3,0.1l3.5-4.4l-2.3,0L4.9,4z'/%3E%3C/svg%3E";
43
+ } elseif($acfb_divider_fancy_styles === 'zigzag'){
44
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' stroke='%23$acfb_dc' stroke-width='1' fill='none' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpolyline points='0,18 12,6 24,18 '/%3E%3C/svg%3E";
45
+ } elseif($acfb_divider_fancy_styles === 'rhombus'){
46
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='%23$acfb_dc' stroke='none'%3E%3Cpath d='M12.7,2.3c-0.4-0.4-1.1-0.4-1.5,0l-8,9.1c-0.3,0.4-0.3,0.9,0,1.2l8,9.1c0.4,0.4,1.1,0.4,1.5,0l8-9.1c0.3-0.4,0.3-0.9,0-1.2L12.7,2.3z'/%3E%3C/svg%3E";
47
+ } elseif($acfb_divider_fancy_styles === 'parallelogram'){
48
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='%23$acfb_dc' stroke='none'%3E%3Cpolygon points='9.4,2 24,2 14.6,21.6 0,21.6'/%3E%3C/svg%3E";
49
+ } elseif($acfb_divider_fancy_styles === 'x'){
50
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 126 26' fill='%23$acfb_dc' stroke='none'%3E%3Cpath d='M10.7,6l2.5,2.6l-4,4.3l4,5.4l-2.5,1.9l-4.5-5.2l-3.9,4.2L0.7,17L4,13.1L0,8.6l2.3-1.3l3.9,3.9L10.7,6z M23.9,6.6l4.2,4.5L32,7.2l2.3,1.3l-4,4.5l3.2,3.9L32,19.1l-3.9-3.3l-4.5,4.3l-2.5-1.9l4.4-5.1l-4.2-3.9L23.9,6.6zM73.5,6L76,8.6l-4,4.3l4,5.4l-2.5,1.9l-4.5-5.2l-3.9,4.2L63.5,17l4.1-4.7L63.5,8l2.3-1.3l4.1,3.6L73.5,6z M94,6l2.5,2.6l-4,4.3l4,5.4L94,20.1l-3.9-5l-3.9,4.2L84,17l3.2-3.9L84,8.6l2.3-1.3l3.2,3.9L94,6z M106.9,6l4.5,5.1l3.9-3.9l2.3,1.3l-4,4.5l3.2,3.9l-1.6,2.1l-3.9-4.2l-4.5,5.2l-2.5-1.9l4-5.4l-4-4.3L106.9,6z M53.1,6l2.5,2.6l-4,4.3l4,4.6l-2.5,1.9l-4.5-4.5l-3.5,4.5L43.1,17l3.2-3.9l-4-4.5l2.3-1.3l3.9,3.9L53.1,6z'/%3E%3C/svg%3E";
51
+ } else{
52
+ $acfb_fancy_divider = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 120 26' fill='%23$acfb_dc' stroke='none'%3E%3Cpolygon points='0,14.4 0,21 11.5,12.4 21.3,20 30.4,11.1 40.3,20 51,12.4 60.6,20 69.6,11.1 79.3,20 90.1,12.4 99.6,20 109.7,11.1 120,21 120,14.4 109.7,5 99.6,13 90.1,5 79.3,14.5 71,5.7 60.6,12.4 51,5 40.3,14.5 31.1,5 21.3,13 11.5,5 '/%3E%3C/svg%3E";
53
+ }
54
+
55
+
56
+ $acfb_divider_image = null;
57
+ if(get_field('acfb_divider_image')){
58
+ $acfb_divider_image = get_field('acfb_divider_image');
59
+ } else{
60
+ $acfb_divider_image = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
61
+ }
62
+
63
+ ?>
64
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
65
+ <style type="text/css">
66
+ .<?php echo $uid; ?>{
67
+ <?php echo get_padding_field($acfb_divider_padding); ?>
68
+ <?php echo get_margin_field($acfb_divider_margin); ?>
69
+ }
70
+
71
+ .<?php echo $uid; ?> .acfb_divider{
72
+ display: -webkit-box;
73
+ display: -webkit-flex;
74
+ display: -ms-flexbox;
75
+ display: flex;
76
+ direction: ltr;
77
+ align-items: center;
78
+ }
79
+
80
+ .<?php echo $uid; ?> .acfb_divider::before{
81
+ <?php if(get_field('acfb_divider_image_sf') === 'simple'): ?>
82
+ border-top-style: <?php the_field('acfb_divider_simple_styles'); ?>;
83
+ border-top-color: <?php echo $acfb_divider_color; ?>;
84
+ border-top-width: <?php the_field('acfb_simple_divider_bw') ?>px;
85
+ <?php else: ?>
86
+ background: url("<?php echo $acfb_fancy_divider ?>");
87
+ height: <?php the_field('acfb_fancy_divider_height') ?>px;
88
+ <?php if(get_field("acfb_divider_fancy_styles") !== "tree" && get_field("acfb_divider_fancy_styles") !== "x"): ?>
89
+ background-size: 20px 100%;
90
+ <?php endif; ?>
91
+ <?php endif; ?>
92
+ <?php if(get_field('acfb_divider_alignment') !== 'left'): ?>
93
+ content: "";
94
+ <?php endif; ?>
95
+ display: block;
96
+ -webkit-box-flex: 1;
97
+ -webkit-flex-grow: 1;
98
+ -ms-flex-positive: 1;
99
+ flex-grow: 1;
100
+ }
101
+
102
+ .<?php echo $uid; ?> .acfb_divider .acfb_divider_element{
103
+ width: <?php the_field('acfb_divider_element_width'); ?>%;
104
+ margin-left: <?php the_field('acfb_divider_element_spacing'); ?>px;
105
+ margin-right: <?php the_field('acfb_divider_element_spacing'); ?>px;
106
+ text-align: center;
107
+ <?php
108
+ if(get_field('acfb_select_divider_style') === 'text'){
109
+ echo get_typo_field($acfb_divider_text_typo);
110
+ echo "color:" . get_field('acfb_divider_text_color');
111
+ }
112
+ ?>
113
+ }
114
+
115
+ <?php if(get_field('acfb_select_divider_style') === 'image'): ?>
116
+ .acfb_divider .acfb_divider_element img{
117
+ width: <?php the_field('acfb_divider_image_width'); ?>%;
118
+ }
119
+ <?php endif; ?>
120
+
121
+ .<?php echo $uid; ?> .acfb_divider::after{
122
+ <?php if(get_field('acfb_divider_image_sf') === 'simple'): ?>
123
+ border-top-style: <?php the_field('acfb_divider_simple_styles'); ?>;
124
+ border-top-color: <?php echo $acfb_divider_color; ?>;
125
+ border-top-width: <?php the_field('acfb_simple_divider_bw') ?>px;
126
+ <?php else: ?>
127
+ background: url("<?php echo $acfb_fancy_divider ?>");
128
+ height: <?php the_field('acfb_fancy_divider_height') ?>px;
129
+ <?php if(get_field("acfb_divider_fancy_styles") !== "tree" && get_field("acfb_divider_fancy_styles") !== "x"): ?>
130
+ background-size: 20px 100%;
131
+ <?php endif; ?>
132
+ <?php endif; ?>
133
+ <?php if(get_field('acfb_divider_alignment') !== 'right'): ?>
134
+ content: "";
135
+ <?php endif; ?>
136
+ display: block;
137
+ -webkit-box-flex: 1;
138
+ -webkit-flex-grow: 1;
139
+ -ms-flex-positive: 1;
140
+ flex-grow: 1;
141
+ }
142
+ </style>
143
+
144
+ <div class="acfb_divider">
145
+ <div class="acfb_divider_element">
146
+ <?php
147
+ if(get_field('acfb_select_divider_style') === 'text'){
148
+ the_field('acfb_divider_text');
149
+ } else{
150
+ echo "<img src='". $acfb_divider_image ."'>";
151
+ }
152
+ ?>
153
+ </div>
154
+ </div>
155
+
156
  </div><!-- Uid -->
acfblocks-templates/free/acfb-facebook-page.php CHANGED
@@ -1,46 +1,46 @@
1
- <?php
2
- $acfb_fb_page_margin = acfb_margin_name('acfb_fb_page_margin');
3
- $acfb_fb_page_padding = acfb_padding_name('acfb_fb_page_padding');
4
- $acfb_fb_timeline_tab = '';
5
- $acfb_fb_events_tab = '';
6
- $acfb_fb_messages_tab = '';
7
-
8
-
9
- if(get_field('acfb_fb_timeline_tab') == 'true'){
10
- $acfb_fb_timeline_tab = 'timeline';
11
- }
12
-
13
- if(get_field('acfb_fb_events_tab') == 'true'){
14
- $acfb_fb_events_tab = 'events';
15
- }
16
-
17
- if(get_field('acfb_fb_messages_tab') == 'true'){
18
- $acfb_fb_messages_tab = 'messages';
19
- }
20
-
21
-
22
- $uid = $block['id'];
23
-
24
- $className = 'acfb_facebook_page_block';
25
- if( !empty($block['className']) ) {
26
- $className .= ' ' . $block['className'];
27
- }
28
- if( !empty($block['align']) ) {
29
- $className .= ' align' . $block['align'];
30
- }
31
- ?>
32
-
33
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
34
- <style type="text/css">
35
- .<?php echo $uid; ?> {
36
- <?php echo get_margin_field($acfb_fb_page_margin); ?>
37
- <?php echo get_padding_field($acfb_fb_page_padding); ?>
38
- }
39
- </style>
40
-
41
-
42
- <div class="acfb_fb_page_wrap" style="width: 100%;">
43
- <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F<?php the_field('acfb_fb_page_id'); ?>%2F&tabs=<?php echo $acfb_fb_timeline_tab; ?>,<?php echo $acfb_fb_events_tab; ?>,<?php echo $acfb_fb_messages_tab; ?>&width=<?php the_field('acfb_fb_page_width'); ?>&height=<?php the_field('acfb_fb_page_height'); ?>&small_header=<?php the_field('acfb_fb_small_header'); ?>&adapt_container_width=true&hide_cover=<?php the_field('acfb_fb_cover_photo'); ?>&hide_cta=<?php the_field('acfb_fb_cta_button'); ?>&show_facepile=<?php the_field('acfb_fb_profile_photos'); ?>&appId" width="<?php the_field('acfb_fb_page_width'); ?>" height="<?php the_field('acfb_fb_page_height'); ?>" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
44
- </div>
45
-
46
  </div><!-- Uid -->
1
+ <?php
2
+ $acfb_fb_page_margin = acfb_margin_name('acfb_fb_page_margin');
3
+ $acfb_fb_page_padding = acfb_padding_name('acfb_fb_page_padding');
4
+ $acfb_fb_timeline_tab = '';
5
+ $acfb_fb_events_tab = '';
6
+ $acfb_fb_messages_tab = '';
7
+
8
+
9
+ if(get_field('acfb_fb_timeline_tab') == 'true'){
10
+ $acfb_fb_timeline_tab = 'timeline';
11
+ }
12
+
13
+ if(get_field('acfb_fb_events_tab') == 'true'){
14
+ $acfb_fb_events_tab = 'events';
15
+ }
16
+
17
+ if(get_field('acfb_fb_messages_tab') == 'true'){
18
+ $acfb_fb_messages_tab = 'messages';
19
+ }
20
+
21
+
22
+ $uid = $block['id'];
23
+
24
+ $className = 'acfb_facebook_page_block';
25
+ if( !empty($block['className']) ) {
26
+ $className .= ' ' . $block['className'];
27
+ }
28
+ if( !empty($block['align']) ) {
29
+ $className .= ' align' . $block['align'];
30
+ }
31
+ ?>
32
+
33
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
34
+ <style type="text/css">
35
+ .<?php echo $uid; ?> {
36
+ <?php echo get_margin_field($acfb_fb_page_margin); ?>
37
+ <?php echo get_padding_field($acfb_fb_page_padding); ?>
38
+ }
39
+ </style>
40
+
41
+
42
+ <div class="acfb_fb_page_wrap" style="width: 100%;">
43
+ <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F<?php the_field('acfb_fb_page_id'); ?>%2F&tabs=<?php echo $acfb_fb_timeline_tab; ?>,<?php echo $acfb_fb_events_tab; ?>,<?php echo $acfb_fb_messages_tab; ?>&width=<?php the_field('acfb_fb_page_width'); ?>&height=<?php the_field('acfb_fb_page_height'); ?>&small_header=<?php the_field('acfb_fb_small_header'); ?>&adapt_container_width=true&hide_cover=<?php the_field('acfb_fb_cover_photo'); ?>&hide_cta=<?php the_field('acfb_fb_cta_button'); ?>&show_facepile=<?php the_field('acfb_fb_profile_photos'); ?>&appId" width="<?php the_field('acfb_fb_page_width'); ?>" height="<?php the_field('acfb_fb_page_height'); ?>" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
44
+ </div>
45
+
46
  </div><!-- Uid -->
acfblocks-templates/free/acfb-fb-like-button.php CHANGED
@@ -1,28 +1,28 @@
1
- <?php
2
- $uid = $block['id'];
3
-
4
- $className = 'acfb_fb_like_button_block';
5
- if( !empty($block['className']) ) {
6
- $className .= ' ' . $block['className'];
7
- }
8
- if( !empty($block['align']) ) {
9
- $className .= ' align' . $block['align'];
10
- }
11
-
12
- $acfb_flb_margin = acfb_margin_name('acfb_flb_margin');
13
- $acfb_flb_padding = acfb_padding_name('acfb_flb_padding');
14
- ?>
15
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
16
- <style type="text/css">
17
- .<?php echo $uid; ?> {
18
- <?php echo get_margin_field($acfb_flb_margin); ?>
19
- <?php echo get_padding_field($acfb_flb_padding); ?>
20
- }
21
- </style>
22
-
23
-
24
- <div class="acfb_fb_button_container">
25
- <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2F<?php the_field("acfb_flb_link"); ?>&layout=<?php the_field("acfb_flb_layout"); ?>&action=<?php the_field("acfb_flb_type"); ?>&size=<?php the_field("acfb_flb_size"); ?>&share=<?php the_field("acfb_flb_share_button"); ?>&appId" width="100%" height="<?php the_field("acfb_flb_height"); ?>" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
26
- </div>
27
-
28
  </div><!-- Uid -->
1
+ <?php
2
+ $uid = $block['id'];
3
+
4
+ $className = 'acfb_fb_like_button_block';
5
+ if( !empty($block['className']) ) {
6
+ $className .= ' ' . $block['className'];
7
+ }
8
+ if( !empty($block['align']) ) {
9
+ $className .= ' align' . $block['align'];
10
+ }
11
+
12
+ $acfb_flb_margin = acfb_margin_name('acfb_flb_margin');
13
+ $acfb_flb_padding = acfb_padding_name('acfb_flb_padding');
14
+ ?>
15
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
16
+ <style type="text/css">
17
+ .<?php echo $uid; ?> {
18
+ <?php echo get_margin_field($acfb_flb_margin); ?>
19
+ <?php echo get_padding_field($acfb_flb_padding); ?>
20
+ }
21
+ </style>
22
+
23
+
24
+ <div class="acfb_fb_button_container">
25
+ <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2F<?php the_field("acfb_flb_link"); ?>&layout=<?php the_field("acfb_flb_layout"); ?>&action=<?php the_field("acfb_flb_type"); ?>&size=<?php the_field("acfb_flb_size"); ?>&share=<?php the_field("acfb_flb_share_button"); ?>&appId" width="100%" height="<?php the_field("acfb_flb_height"); ?>" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe>
26
+ </div>
27
+
28
  </div><!-- Uid -->
acfblocks-templates/free/acfb-image-slider.php CHANGED
@@ -1,105 +1,105 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_slider_caption_typo')
5
- )
6
- );
7
-
8
-
9
- $acfb_slider_padding = acfb_padding_name('acfb_slider_padding');
10
- $acfb_slider_margin = acfb_margin_name('acfb_slider_margin');
11
- $acfb_slider_caption_typo = acfb_ffaimly_name('acfb_slider_caption_typo');
12
-
13
-
14
- $uid = $block['id'];
15
- $acfb_slider_images = get_field('acfb_slider_images');
16
- $acfb_slide_placeholder = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
17
-
18
- $className = 'acfb_slider_block';
19
- if( !empty($block['className']) ) {
20
- $className .= ' ' . $block['className'];
21
- }
22
- if( !empty($block['align']) ) {
23
- $className .= ' align' . $block['align'];
24
- }
25
-
26
- ?>
27
-
28
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
29
- <style type="text/css">
30
- .<?php echo $uid; ?> {
31
- <?php echo get_padding_field($acfb_slider_padding); ?>
32
- <?php echo get_margin_field($acfb_slider_margin); ?>
33
- }
34
-
35
-
36
- .<?php echo $uid; ?> .swiper-container .swiper-wrapper .swiper-slide{
37
- <?php if(get_field('acfb_slider_caption') == 'true'): ?>
38
- display: flex;
39
- justify-content: <?php the_field("acfb_slider_caption_horizontal_position"); ?>;
40
- <?php endif; ?>
41
- height: <?php the_field('acfb_slider_height'); ?>px !important;
42
- }
43
-
44
- .<?php echo $uid; ?> .swiper-container .swiper-wrapper .swiper-slide .acfb_caption{
45
- background-color: <?php the_field("acfb_slider_caption_background"); ?>;
46
- <?php echo get_typo_field($acfb_slider_caption_typo); ?>
47
- color: <?php the_field("acfb_slider_caption_color"); ?>;
48
- align-self: <?php the_field("acfb_slider_caption_vertical_position"); ?>;
49
- }
50
-
51
- .<?php echo $uid; ?> .swiper-container .swiper-wrapper .swiper-slide img{
52
- <?php if(get_field("acfb_slider_height")): ?>
53
- -ms-flex: 1;
54
- flex: 1;
55
- width: 100%;
56
- height: 100%;
57
- -o-object-fit: cover;
58
- object-fit: cover;
59
- <?php endif; ?>
60
- }
61
- </style>
62
-
63
- <div class="swiper-container" data-slidesperview="<?php the_field("acfb_slides_per_view"); ?>" data-delay="<?php the_field("acfb_slider_delay"); ?>" data-effect="<?php the_field("acfb_slider_transition_effect"); ?>" data-centerslide="<?php the_field("acfb_slider_center_slide"); ?>" data-gutter="<?php the_field("acfb_slider_gutter_space"); ?>" data-autoplay="<?php the_field("acfb_slider_autoplay"); ?>" data-autoheight="<?php the_field("acfb_slider_auto_height"); ?>">
64
- <div class="swiper-wrapper">
65
-
66
- <?php if($acfb_slider_images): ?>
67
-
68
- <?php foreach( $acfb_slider_images as $acfb_slide_image ): ?>
69
- <div class="swiper-slide">
70
- <img src="<?php echo $acfb_slide_image['url']; ?>"/>
71
- <?php if(get_field('acfb_slider_caption') == 'true' && $acfb_slide_image['caption']): ?>
72
- <span class="acfb_caption"><?php echo $acfb_slide_image['caption']; ?></span>
73
- <?php endif; ?>
74
- </div>
75
- <?php endforeach; ?>
76
-
77
- <?php else: ?>
78
-
79
- <?php for ($acfb_slide_count = 0 ; $acfb_slide_count < 6; $acfb_slide_count++): ?>
80
- <div class="swiper-slide">
81
- <img src="<?php echo $acfb_slide_placeholder; ?>"/>
82
- <?php if(get_field('acfb_slider_caption') == 'true'): ?>
83
- <span class="acfb_caption">Caption</span>
84
- <?php endif; ?>
85
- </div>
86
- <?php endfor; ?>
87
-
88
- <?php endif; ?>
89
-
90
- </div>
91
- <?php if(get_field("acfb_slider_dot_control") == 'true'): ?><div class="swiper-pagination"></div><?php endif; ?>
92
- <?php if(get_field("acfb_slider_arrow_control") == 'true'): ?>
93
- <div class="acfb-button-prev"><svg enable-background="new 0 0 477.175 477.175" version="1.1" viewBox="0 0 477.18 477.18" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
94
- <path d="m145.19 238.58 215.5-215.5c5.3-5.3 5.3-13.8 0-19.1s-13.8-5.3-19.1 0l-225.1 225.1c-5.3 5.3-5.3 13.8 0 19.1l225.1 225c2.6 2.6 6.1 4 9.5 4s6.9-1.3 9.5-4c5.3-5.3 5.3-13.8 0-19.1l-215.4-215.5z"/>
95
- </svg>
96
- </div>
97
- <div class="acfb-button-next">
98
- <svg enable-background="new 0 0 477.175 477.175" version="1.1" viewBox="0 0 477.18 477.18" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
99
- <path d="m360.73 229.08-225.1-225.1c-5.3-5.3-13.8-5.3-19.1 0s-5.3 13.8 0 19.1l215.5 215.5-215.5 215.5c-5.3 5.3-5.3 13.8 0 19.1 2.6 2.6 6.1 4 9.5 4s6.9-1.3 9.5-4l225.1-225.1c5.3-5.2 5.3-13.8 0.1-19z"/>
100
- </svg>
101
- </div>
102
- <?php endif; ?>
103
- </div>
104
-
105
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_slider_caption_typo')
5
+ )
6
+ );
7
+
8
+
9
+ $acfb_slider_padding = acfb_padding_name('acfb_slider_padding');
10
+ $acfb_slider_margin = acfb_margin_name('acfb_slider_margin');
11
+ $acfb_slider_caption_typo = acfb_ffaimly_name('acfb_slider_caption_typo');
12
+
13
+
14
+ $uid = $block['id'];
15
+ $acfb_slider_images = get_field('acfb_slider_images');
16
+ $acfb_slide_placeholder = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
17
+
18
+ $className = 'acfb_slider_block';
19
+ if( !empty($block['className']) ) {
20
+ $className .= ' ' . $block['className'];
21
+ }
22
+ if( !empty($block['align']) ) {
23
+ $className .= ' align' . $block['align'];
24
+ }
25
+
26
+ ?>
27
+
28
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
29
+ <style type="text/css">
30
+ .<?php echo $uid; ?> {
31
+ <?php echo get_padding_field($acfb_slider_padding); ?>
32
+ <?php echo get_margin_field($acfb_slider_margin); ?>
33
+ }
34
+
35
+
36
+ .<?php echo $uid; ?> .swiper-container .swiper-wrapper .swiper-slide{
37
+ <?php if(get_field('acfb_slider_caption') == 'true'): ?>
38
+ display: flex;
39
+ justify-content: <?php the_field("acfb_slider_caption_horizontal_position"); ?>;
40
+ <?php endif; ?>
41
+ height: <?php the_field('acfb_slider_height'); ?>px !important;
42
+ }
43
+
44
+ .<?php echo $uid; ?> .swiper-container .swiper-wrapper .swiper-slide .acfb_caption{
45
+ background-color: <?php the_field("acfb_slider_caption_background"); ?>;
46
+ <?php echo get_typo_field($acfb_slider_caption_typo); ?>
47
+ color: <?php the_field("acfb_slider_caption_color"); ?>;
48
+ align-self: <?php the_field("acfb_slider_caption_vertical_position"); ?>;
49
+ }
50
+
51
+ .<?php echo $uid; ?> .swiper-container .swiper-wrapper .swiper-slide img{
52
+ <?php if(get_field("acfb_slider_height")): ?>
53
+ -ms-flex: 1;
54
+ flex: 1;
55
+ width: 100%;
56
+ height: 100%;
57
+ -o-object-fit: cover;
58
+ object-fit: cover;
59
+ <?php endif; ?>
60
+ }
61
+ </style>
62
+
63
+ <div class="swiper-container" data-slidesperview="<?php the_field("acfb_slides_per_view"); ?>" data-delay="<?php the_field("acfb_slider_delay"); ?>" data-effect="<?php the_field("acfb_slider_transition_effect"); ?>" data-centerslide="<?php the_field("acfb_slider_center_slide"); ?>" data-gutter="<?php the_field("acfb_slider_gutter_space"); ?>" data-autoplay="<?php the_field("acfb_slider_autoplay"); ?>" data-autoheight="<?php the_field("acfb_slider_auto_height"); ?>">
64
+ <div class="swiper-wrapper">
65
+
66
+ <?php if($acfb_slider_images): ?>
67
+
68
+ <?php foreach( $acfb_slider_images as $acfb_slide_image ): ?>
69
+ <div class="swiper-slide">
70
+ <img src="<?php echo $acfb_slide_image['url']; ?>"/>
71
+ <?php if(get_field('acfb_slider_caption') == 'true' && $acfb_slide_image['caption']): ?>
72
+ <span class="acfb_caption"><?php echo $acfb_slide_image['caption']; ?></span>
73
+ <?php endif; ?>
74
+ </div>
75
+ <?php endforeach; ?>
76
+
77
+ <?php else: ?>
78
+
79
+ <?php for ($acfb_slide_count = 0 ; $acfb_slide_count < 6; $acfb_slide_count++): ?>
80
+ <div class="swiper-slide">
81
+ <img src="<?php echo $acfb_slide_placeholder; ?>"/>
82
+ <?php if(get_field('acfb_slider_caption') == 'true'): ?>
83
+ <span class="acfb_caption">Caption</span>
84
+ <?php endif; ?>
85
+ </div>
86
+ <?php endfor; ?>
87
+
88
+ <?php endif; ?>
89
+
90
+ </div>
91
+ <?php if(get_field("acfb_slider_dot_control") == 'true'): ?><div class="swiper-pagination"></div><?php endif; ?>
92
+ <?php if(get_field("acfb_slider_arrow_control") == 'true'): ?>
93
+ <div class="acfb-button-prev"><svg enable-background="new 0 0 477.175 477.175" version="1.1" viewBox="0 0 477.18 477.18" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
94
+ <path d="m145.19 238.58 215.5-215.5c5.3-5.3 5.3-13.8 0-19.1s-13.8-5.3-19.1 0l-225.1 225.1c-5.3 5.3-5.3 13.8 0 19.1l225.1 225c2.6 2.6 6.1 4 9.5 4s6.9-1.3 9.5-4c5.3-5.3 5.3-13.8 0-19.1l-215.4-215.5z"/>
95
+ </svg>
96
+ </div>
97
+ <div class="acfb-button-next">
98
+ <svg enable-background="new 0 0 477.175 477.175" version="1.1" viewBox="0 0 477.18 477.18" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
99
+ <path d="m360.73 229.08-225.1-225.1c-5.3-5.3-13.8-5.3-19.1 0s-5.3 13.8 0 19.1l215.5 215.5-215.5 215.5c-5.3 5.3-5.3 13.8 0 19.1 2.6 2.6 6.1 4 9.5 4s6.9-1.3 9.5-4l225.1-225.1c5.3-5.2 5.3-13.8 0.1-19z"/>
100
+ </svg>
101
+ </div>
102
+ <?php endif; ?>
103
+ </div>
104
+
105
  </div><!-- Uid -->
acfblocks-templates/free/acfb-multibuttons.php CHANGED
@@ -1,76 +1,76 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_multibutton_text_typo')
5
- )
6
- );
7
-
8
-
9
- $acfb_multibutton_button_padding = acfb_padding_name('acfb_multibutton_button_padding');
10
- $acfb_multibutton_padding = acfb_padding_name('acfb_multibutton_padding');
11
- $acfb_multibutton_margin = acfb_margin_name('acfb_multibutton_margin');
12
- $acfb_multibutton_text_typo = acfb_ffaimly_name('acfb_multibutton_text_typo');
13
-
14
-
15
- $uid = $block['id'];
16
-
17
- $className = 'acfb_multibuttons_block';
18
- if( !empty($block['className']) ) {
19
- $className .= ' ' . $block['className'];
20
- }
21
- if( !empty($block['align']) ) {
22
- $className .= ' align' . $block['align'];
23
- }
24
-
25
- ?>
26
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
27
- <style type="text/css">
28
- .<?php echo $uid; ?> {
29
- <?php echo get_padding_field($acfb_multibutton_padding); ?>
30
- <?php echo get_margin_field($acfb_multibutton_margin); ?>
31
- }
32
-
33
- .<?php echo $uid; ?> .acfb_multibuttons_wrap {
34
- justify-content: <?php the_field('acfb_multibutton_alignment'); ?>;
35
- }
36
-
37
- .<?php echo $uid; ?> .acfb_multibuttons_wrap .acfb_button{
38
- <?php echo get_typo_field($acfb_multibutton_text_typo); ?>
39
- border-radius: <?php the_field('acfb_multibutton_border_radius'); ?>px;
40
- margin-right: <?php the_field('acfb_multibutton_gutter_space'); ?>px;
41
- padding-top: <?php echo $acfb_multibutton_button_padding['padding_top']; ?>px;
42
- padding-bottom: <?php echo $acfb_multibutton_button_padding['padding_bottom']; ?>px;
43
- padding-left: <?php echo $acfb_multibutton_button_padding['padding_left']; ?>px;
44
- padding-right: <?php echo $acfb_multibutton_button_padding['padding_right']; ?>px;
45
- }
46
- </style>
47
-
48
- <div class="acfb_multibuttons_wrap">
49
- <?php
50
- if( have_rows('acfb_multi_buttons') ):
51
- while ( have_rows('acfb_multi_buttons') ) : the_row(); ?>
52
-
53
- <style type="text/css">
54
- .<?php echo $uid; ?> .acfb_multibuttons_wrap .acfb_order_<?php echo get_row_index(); ?>{
55
- background-color: <?php the_sub_field('acfb_multibutton_background_color'); ?>;
56
- color: <?php the_sub_field('acfb_multibutton_text_color'); ?> !important;
57
- }
58
-
59
- .<?php echo $uid; ?> .acfb_multibuttons_wrap .acfb_order_<?php echo get_row_index(); ?>:hover{
60
- background-color: <?php the_sub_field('acfb_multibutton_background_hover_color'); ?>;
61
- color: <?php the_sub_field('acfb_multibutton_text_hover_color'); ?> !important;
62
- }
63
-
64
- </style>
65
-
66
- <a href="<?php the_sub_field('acfb_multibutton_url'); ?>" class="acfb_button acfb_order_<?php echo get_row_index(); ?>">
67
- <?php the_sub_field('acfb_multibutton_text'); ?>
68
- </a>
69
-
70
- <?php
71
- endwhile;
72
- endif;
73
- ?>
74
-
75
- </div>
76
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_multibutton_text_typo')
5
+ )
6
+ );
7
+
8
+
9
+ $acfb_multibutton_button_padding = acfb_padding_name('acfb_multibutton_button_padding');
10
+ $acfb_multibutton_padding = acfb_padding_name('acfb_multibutton_padding');
11
+ $acfb_multibutton_margin = acfb_margin_name('acfb_multibutton_margin');
12
+ $acfb_multibutton_text_typo = acfb_ffaimly_name('acfb_multibutton_text_typo');
13
+
14
+
15
+ $uid = $block['id'];
16
+
17
+ $className = 'acfb_multibuttons_block';
18
+ if( !empty($block['className']) ) {
19
+ $className .= ' ' . $block['className'];
20
+ }
21
+ if( !empty($block['align']) ) {
22
+ $className .= ' align' . $block['align'];
23
+ }
24
+
25
+ ?>
26
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
27
+ <style type="text/css">
28
+ .<?php echo $uid; ?> {
29
+ <?php echo get_padding_field($acfb_multibutton_padding); ?>
30
+ <?php echo get_margin_field($acfb_multibutton_margin); ?>
31
+ }
32
+
33
+ .<?php echo $uid; ?> .acfb_multibuttons_wrap {
34
+ justify-content: <?php the_field('acfb_multibutton_alignment'); ?>;
35
+ }
36
+
37
+ .<?php echo $uid; ?> .acfb_multibuttons_wrap .acfb_button{
38
+ <?php echo get_typo_field($acfb_multibutton_text_typo); ?>
39
+ border-radius: <?php the_field('acfb_multibutton_border_radius'); ?>px;
40
+ margin-right: <?php the_field('acfb_multibutton_gutter_space'); ?>px;
41
+ padding-top: <?php echo $acfb_multibutton_button_padding['padding_top']; ?>px;
42
+ padding-bottom: <?php echo $acfb_multibutton_button_padding['padding_bottom']; ?>px;
43
+ padding-left: <?php echo $acfb_multibutton_button_padding['padding_left']; ?>px;
44
+ padding-right: <?php echo $acfb_multibutton_button_padding['padding_right']; ?>px;
45
+ }
46
+ </style>
47
+
48
+ <div class="acfb_multibuttons_wrap">
49
+ <?php
50
+ if( have_rows('acfb_multi_buttons') ):
51
+ while ( have_rows('acfb_multi_buttons') ) : the_row(); ?>
52
+
53
+ <style type="text/css">
54
+ .<?php echo $uid; ?> .acfb_multibuttons_wrap .acfb_order_<?php echo get_row_index(); ?>{
55
+ background-color: <?php the_sub_field('acfb_multibutton_background_color'); ?>;
56
+ color: <?php the_sub_field('acfb_multibutton_text_color'); ?> !important;
57
+ }
58
+
59
+ .<?php echo $uid; ?> .acfb_multibuttons_wrap .acfb_order_<?php echo get_row_index(); ?>:hover{
60
+ background-color: <?php the_sub_field('acfb_multibutton_background_hover_color'); ?>;
61
+ color: <?php the_sub_field('acfb_multibutton_text_hover_color'); ?> !important;
62
+ }
63
+
64
+ </style>
65
+
66
+ <a href="<?php the_sub_field('acfb_multibutton_url'); ?>" class="acfb_button acfb_order_<?php echo get_row_index(); ?>">
67
+ <?php the_sub_field('acfb_multibutton_text'); ?>
68
+ </a>
69
+
70
+ <?php
71
+ endwhile;
72
+ endif;
73
+ ?>
74
+
75
+ </div>
76
  </div><!-- Uid -->
acfblocks-templates/free/acfb-photocollage.php CHANGED
@@ -1,91 +1,91 @@
1
- <?php
2
- $acfb_photo_collage_padding = acfb_padding_name('acfb_photo_collage_padding');
3
- $acfb_photo_collage_margin = acfb_margin_name('acfb_photo_collage_margin');
4
-
5
- $uid = $block['id'];
6
-
7
- $className = 'acfb_photo_collage_block';
8
- if( !empty($block['className']) ) {
9
- $className .= ' ' . $block['className'];
10
- }
11
- if( !empty($block['align']) ) {
12
- $className .= ' align' . $block['align'];
13
- }
14
-
15
- $images_field = get_field('acfb_photo_collage_images');
16
- $images0 = null;
17
- $images1 = null;
18
- $images2 = null;
19
- $images3 = null;
20
-
21
-
22
- if($images_field){
23
- $images0 = $images_field['0']['url'];
24
- } else{
25
- $images0 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
26
- }
27
-
28
- if ( $images_field && count($images_field) > 1 ) {
29
- $images1 = $images_field['1']['url'];
30
- } else{
31
- $images1 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
32
- }
33
-
34
- if ( $images_field && count($images_field) > 2 ) {
35
- $images2 = $images_field['2']['url'];
36
- } else{
37
- $images2 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
38
- }
39
-
40
- if ( $images_field && count($images_field) > 3 ) {
41
- $images3 = $images_field['3']['url'];
42
- } else{
43
- $images3 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
44
- }
45
-
46
- ?>
47
-
48
-
49
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
50
- <style type="text/css">
51
- .<?php echo $uid; ?>{
52
- <?php echo get_padding_field($acfb_photo_collage_padding); ?>
53
- <?php echo get_margin_field($acfb_photo_collage_margin); ?>
54
- }
55
-
56
-
57
- .<?php echo $uid; ?> .acfb_photo_collage{
58
- width: <?php the_field('acfb_photo_collage_layout_width'); ?>%;
59
- height: <?php the_field('acfb_photo_collage_layout_height'); ?>px;
60
- grid-gap: <?php the_field('acfb_photo_collage_layout_gutter_space'); ?>px;
61
- }
62
- </style>
63
-
64
-
65
- <?php if(get_field('select_grid') == '2'): ?>
66
-
67
- <div class="acfb_two-grid-style-<?php the_field('2_grid_layouts');?> acfb_collage_<?php the_field('select_grid');?> acfb_photo_collage">
68
- <div class="acfb_one" style="background-image: url('<?php echo $images0; ?>');"></div>
69
- <div class="acfb_two" style="background-image: url('<?php echo $images1; ?>');"></div>
70
- </div>
71
-
72
- <?php elseif( get_field('select_grid') == '3' ): ?>
73
-
74
- <div class="acfb_three-grid-style-<?php the_field('3_grid_layouts');?> acfb_collage_<?php the_field('select_grid');?> acfb_photo_collage">
75
- <div class="acfb_one" style="background-image: url('<?php echo $images0; ?>');"></div>
76
- <div class="acfb_two" style="background-image: url('<?php echo $images1; ?>');"></div>
77
- <div class="acfb_three" style="background-image: url('<?php echo $images2; ?>');"></div>
78
- </div>
79
-
80
- <?php elseif( get_field('select_grid') == '4' ): ?>
81
-
82
- <div class="acfb_four-grid-style-<?php the_field('4_grid_layouts');?> acfb_collage_<?php the_field('select_grid');?> acfb_photo_collage">
83
- <div class="acfb_one" style="background-image: url('<?php echo $images0; ?>');"></div>
84
- <div class="acfb_two" style="background-image: url('<?php echo $images1; ?>');"></div>
85
- <div class="acfb_three" style="background-image: url('<?php echo $images2; ?>');"></div>
86
- <div class="acfb_four" style="background-image: url('<?php echo $images3; ?>');"></div>
87
- </div>
88
-
89
- <?php endif; ?>
90
-
91
  </div><!-- Uid -->
1
+ <?php
2
+ $acfb_photo_collage_padding = acfb_padding_name('acfb_photo_collage_padding');
3
+ $acfb_photo_collage_margin = acfb_margin_name('acfb_photo_collage_margin');
4
+
5
+ $uid = $block['id'];
6
+
7
+ $className = 'acfb_photo_collage_block';
8
+ if( !empty($block['className']) ) {
9
+ $className .= ' ' . $block['className'];
10
+ }
11
+ if( !empty($block['align']) ) {
12
+ $className .= ' align' . $block['align'];
13
+ }
14
+
15
+ $images_field = get_field('acfb_photo_collage_images');
16
+ $images0 = null;
17
+ $images1 = null;
18
+ $images2 = null;
19
+ $images3 = null;
20
+
21
+
22
+ if($images_field){
23
+ $images0 = $images_field['0']['url'];
24
+ } else{
25
+ $images0 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
26
+ }
27
+
28
+ if ( $images_field && count($images_field) > 1 ) {
29
+ $images1 = $images_field['1']['url'];
30
+ } else{
31
+ $images1 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
32
+ }
33
+
34
+ if ( $images_field && count($images_field) > 2 ) {
35
+ $images2 = $images_field['2']['url'];
36
+ } else{
37
+ $images2 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
38
+ }
39
+
40
+ if ( $images_field && count($images_field) > 3 ) {
41
+ $images3 = $images_field['3']['url'];
42
+ } else{
43
+ $images3 = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
44
+ }
45
+
46
+ ?>
47
+
48
+
49
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
50
+ <style type="text/css">
51
+ .<?php echo $uid; ?>{
52
+ <?php echo get_padding_field($acfb_photo_collage_padding); ?>
53
+ <?php echo get_margin_field($acfb_photo_collage_margin); ?>
54
+ }
55
+
56
+
57
+ .<?php echo $uid; ?> .acfb_photo_collage{
58
+ width: <?php the_field('acfb_photo_collage_layout_width'); ?>%;
59
+ height: <?php the_field('acfb_photo_collage_layout_height'); ?>px;
60
+ grid-gap: <?php the_field('acfb_photo_collage_layout_gutter_space'); ?>px;
61
+ }
62
+ </style>
63
+
64
+
65
+ <?php if(get_field('select_grid') == '2'): ?>
66
+
67
+ <div class="acfb_two-grid-style-<?php the_field('2_grid_layouts');?> acfb_collage_<?php the_field('select_grid');?> acfb_photo_collage">
68
+ <div class="acfb_one" style="background-image: url('<?php echo $images0; ?>');"></div>
69
+ <div class="acfb_two" style="background-image: url('<?php echo $images1; ?>');"></div>
70
+ </div>
71
+
72
+ <?php elseif( get_field('select_grid') == '3' ): ?>
73
+
74
+ <div class="acfb_three-grid-style-<?php the_field('3_grid_layouts');?> acfb_collage_<?php the_field('select_grid');?> acfb_photo_collage">
75
+ <div class="acfb_one" style="background-image: url('<?php echo $images0; ?>');"></div>
76
+ <div class="acfb_two" style="background-image: url('<?php echo $images1; ?>');"></div>
77
+ <div class="acfb_three" style="background-image: url('<?php echo $images2; ?>');"></div>
78
+ </div>
79
+
80
+ <?php elseif( get_field('select_grid') == '4' ): ?>
81
+
82
+ <div class="acfb_four-grid-style-<?php the_field('4_grid_layouts');?> acfb_collage_<?php the_field('select_grid');?> acfb_photo_collage">
83
+ <div class="acfb_one" style="background-image: url('<?php echo $images0; ?>');"></div>
84
+ <div class="acfb_two" style="background-image: url('<?php echo $images1; ?>');"></div>
85
+ <div class="acfb_three" style="background-image: url('<?php echo $images2; ?>');"></div>
86
+ <div class="acfb_four" style="background-image: url('<?php echo $images3; ?>');"></div>
87
+ </div>
88
+
89
+ <?php endif; ?>
90
+
91
  </div><!-- Uid -->
acfblocks-templates/free/acfb-posts.php CHANGED
@@ -1,264 +1,264 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_post_title_typo'),
5
- get_field('acfb_post_meta_typo'),
6
- get_field('acfb_post_excerpt_typo'),
7
- get_field('acfb_post_button_typo')
8
- )
9
- );
10
-
11
- $acfb_post_button_padding = acfb_padding_name('acfb_post_button_padding');
12
- $acfb_post_padding = acfb_padding_name('acfb_post_padding');
13
- $acfb_post_margin = acfb_margin_name('acfb_post_margin');
14
- $acfb_post_title_typo = acfb_ffaimly_name('acfb_post_title_typo');
15
- $acfb_post_meta_typo = acfb_ffaimly_name('acfb_post_meta_typo');
16
- $acfb_post_excerpt_typo = acfb_ffaimly_name('acfb_post_excerpt_typo');
17
- $acfb_post_button_typo = acfb_ffaimly_name('acfb_post_button_typo');
18
-
19
-
20
- $uid = $block['id'];
21
-
22
- $className = 'acfb_posts_block';
23
- if( !empty($block['className']) ) {
24
- $className .= ' ' . $block['className'];
25
- }
26
- if( !empty($block['align']) ) {
27
- $className .= ' align' . $block['align'];
28
- }
29
-
30
- ?>
31
-
32
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
33
-
34
- <?php
35
- $acfb_posts_layout = get_field('acfb_posts_layout');
36
- $acfb_number_of_posts = get_field('acfb_number_of_posts');
37
- $acfb_posts_columns = get_field('acfb_posts_columns');
38
- $acfb_post_excerpt_length = get_field('acfb_post_excerpt_length');
39
- $acfb_post_title_html_tag = get_field('acfb_post_title_html_tag');
40
- ?>
41
- <style type="text/css">
42
- .<?php echo $uid; ?> {
43
- <?php echo get_padding_field($acfb_post_padding); ?>
44
- <?php echo get_margin_field($acfb_post_margin); ?>
45
- }
46
-
47
- .<?php echo $uid; ?> .acfb_post {
48
- background: <?php the_field('acfb_post_background_color'); ?>;
49
- }
50
-
51
- <?php if( get_field('acfb_post_title_custom_typography') == '1' ): ?>
52
- .<?php echo $uid; ?> .acfb_post .acfb_post_title a{
53
- <?php echo get_typo_field($acfb_post_title_typo); ?>
54
- }
55
- <?php endif; ?>
56
-
57
- <?php if( get_field('acfb_post_title_custom_color') == '1' ): ?>
58
- .<?php echo $uid; ?> .acfb_post .acfb_post_title a{
59
- color: <?php the_field('acfb_post_title_color'); ?> !important;
60
- }
61
-
62
- .<?php echo $uid; ?> .acfb_post .acfb_post_title a:hover{
63
- color: <?php the_field('acfb_post_title_hover_color'); ?> !important;
64
- }
65
- <?php endif; ?>
66
-
67
-
68
- <?php if( get_field('acfb_post_meta_custom_typography') == '1' ): ?>
69
- .<?php echo $uid; ?> .acfb_post .acfb_post_meta{
70
- <?php echo get_typo_field($acfb_post_meta_typo); ?>
71
- }
72
- <?php endif; ?>
73
-
74
- <?php if( get_field('acfb_post_meta_custom_color') == '1' ): ?>
75
- .<?php echo $uid; ?> .acfb_post .acfb_post_meta{
76
- color: <?php the_field('acfb_post_meta_color'); ?>;
77
- }
78
- <?php endif; ?>
79
-
80
- <?php if( get_field('acfb_post_excerpt_custom_typography') == '1' ): ?>
81
- .<?php echo $uid; ?> .acfb_post .acfb_post_excerpt{
82
- <?php echo get_typo_field($acfb_post_excerpt_typo); ?>
83
- }
84
- <?php endif; ?>
85
-
86
- <?php if( get_field('acfb_post_excerpt_custom_color') == '1' ): ?>
87
- .<?php echo $uid; ?> .acfb_post .acfb_post_excerpt{
88
- color: <?php the_field('acfb_post_excerpt_color'); ?>;
89
- }
90
- <?php endif; ?>
91
-
92
-
93
- <?php if( get_field('acfb_post_button_custom_typography') == '1' ): ?>
94
- .<?php echo $uid; ?> .acfb_post .acfb_post_button a{
95
- <?php echo get_typo_field($acfb_post_button_typo); ?>
96
- }
97
- <?php endif; ?>
98
-
99
- <?php if( get_field('acfb_post_button_custom_color') == '1' ): ?>
100
- .<?php echo $uid; ?> .acfb_post .acfb_post_button a{
101
- background-color: <?php the_field('acfb_post_button_background_color'); ?>;
102
- color: <?php the_field('acfb_post_button_text_color'); ?> !important;
103
- padding-top: <?php echo $acfb_post_button_padding['padding_top']; ?>px;
104
- padding-bottom: <?php echo $acfb_post_button_padding['padding_bottom']; ?>px;
105
- padding-left: <?php echo $acfb_post_button_padding['padding_left']; ?>px;
106
- padding-right: <?php echo $acfb_post_button_padding['padding_right']; ?>px;
107
- }
108
-
109
- .<?php echo $uid; ?> .acfb_post .acfb_post_button a:hover{
110
- background-color: <?php the_field('acfb_post_button_background_hover_color'); ?>;
111
- color: <?php the_field('acfb_post_button_text_hover_color'); ?> !important;
112
- }
113
- <?php endif; ?>
114
- </style>
115
-
116
-
117
- <?php
118
-
119
- $acfb_grid_col = '';
120
- if($acfb_posts_layout == 'grid'){
121
- $acfb_grid_col = "acfb_post_" . $acfb_posts_columns;
122
- }
123
-
124
- $acfb_cat = get_field( 'acfb_category_filters' );
125
-
126
- $acfb_cat_names = array();
127
- if(is_array($acfb_cat)){
128
- foreach($acfb_cat as $catskey => $catsval){
129
- $acfb_cat_names[] = $catsval;
130
- }
131
- }
132
-
133
- $args = array(
134
- 'post_type' => 'post',
135
- 'post_status' => 'publish',
136
- 'posts_per_page' => $acfb_number_of_posts,
137
- 'cat' => $acfb_cat_names,
138
- );
139
-
140
-
141
- // the query
142
- $the_query = new WP_Query( $args ); ?>
143
-
144
- <?php if ( $the_query->have_posts() ) : ?>
145
-
146
- <div class="acfb_post_<?php echo $acfb_posts_layout; ?> <?php echo $acfb_grid_col; ?>">
147
-
148
- <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
149
-
150
- <?php
151
- $acfb_thumb = '';
152
- if ( has_post_thumbnail() ){
153
- $acfb_thumb = 'thumb';
154
- } else {
155
- $acfb_thumb = 'no_thumb';
156
- }
157
- ?>
158
-
159
- <div class="acfb_post <?php echo $acfb_thumb; ?>">
160
-
161
- <?php
162
- if($acfb_posts_layout == 'list'){ ?>
163
-
164
- <!-- List -->
165
- <div class="acfb_post_list_thumbnail">
166
- <?php the_post_thumbnail(); ?>
167
- </div>
168
- <div class="acfb_post_list_content">
169
- <?php
170
- if( have_rows('acfb_post_list_elements') ):
171
-
172
- while ( have_rows('acfb_post_list_elements') ) : the_row(); ?>
173
-
174
- <?php if( get_row_layout() == 'post_list_title' ): ?>
175
- <div class="acfb_post_title">
176
- <<?php echo $acfb_post_title_html_tag; ?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></<?php echo $acfb_post_title_html_tag; ?>>
177
- </div>
178
- <?php endif; ?>
179
-
180
- <?php if( get_row_layout() == 'post_list_meta_data' ): ?>
181
- <div class="acfb_post_meta">
182
- <span class="acfb_post_author"><?php the_author(); ?></span> -
183
- <span class="acfb_post_date"><?php the_time('F jS, Y') ?></span>
184
- </div>
185
- <?php endif; ?>
186
-
187
- <?php if( get_row_layout() == 'post_list_content' ): ?>
188
- <div class="acfb_post_excerpt">
189
- <?php echo acfb_excerpt($acfb_post_excerpt_length); ?>
190
- </div>
191
- <?php endif; ?>
192
-
193
- <?php if( get_row_layout() == 'post_list_read_more_button' ): ?>
194
- <div class="acfb_post_button">
195
- <a href="<?php the_permalink(); ?>" class="acfb_post_btn">Read More</a>
196
- </div>
197
- <?php endif; ?>
198
-
199
-
200
- <?php
201
- endwhile;
202
- endif;
203
- ?>
204
- </div>
205
-
206
- <?php } elseif ($acfb_posts_layout == 'grid') { ?>
207
-
208
- <!-- Grid -->
209
- <?php
210
- if( have_rows('acfb_post_grid_elements') ):
211
-
212
- while ( have_rows('acfb_post_grid_elements') ) : the_row(); ?>
213
-
214
- <?php if( get_row_layout() == 'post_grid_image' ): ?>
215
- <div class="acfb_post_thumbnail">
216
- <?php the_post_thumbnail(); ?>
217
- </div>
218
- <?php endif; ?>
219
-
220
- <?php if( get_row_layout() == 'post_grid_title' ): ?>
221
- <div class="acfb_post_title">
222
- <<?php echo $acfb_post_title_html_tag; ?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></<?php echo $acfb_post_title_html_tag; ?>>
223
- </div>
224
- <?php endif; ?>
225
-
226
- <?php if( get_row_layout() == 'post_grid_meta_data' ): ?>
227
- <div class="acfb_post_meta">
228
- <span class="acfb_post_author"><?php the_author(); ?></span> -
229
- <span class="acfb_post_date"><?php the_time('F jS, Y') ?></span>
230
- </div>
231
- <?php endif; ?>
232
-
233
- <?php if( get_row_layout() == 'post_grid_content' ): ?>
234
- <div class="acfb_post_excerpt">
235
- <?php echo acfb_excerpt($acfb_post_excerpt_length); ?>
236
- </div>
237
- <?php endif; ?>
238
-
239
- <?php if( get_row_layout() == 'post_grid_read_more_button' ): ?>
240
- <div class="acfb_post_button">
241
- <a href="<?php the_permalink(); ?>" class="acfb_post_btn">Read More</a>
242
- </div>
243
- <?php endif; ?>
244
-
245
-
246
- <?php
247
- endwhile;
248
- endif;
249
- ?>
250
-
251
- <?php } ?>
252
-
253
- </div>
254
- <?php endwhile; ?>
255
-
256
- </div>
257
-
258
- <?php wp_reset_postdata(); ?>
259
-
260
- <?php else : ?>
261
- <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
262
- <?php endif; ?>
263
-
264
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_post_title_typo'),
5
+ get_field('acfb_post_meta_typo'),
6
+ get_field('acfb_post_excerpt_typo'),
7
+ get_field('acfb_post_button_typo')
8
+ )
9
+ );
10
+
11
+ $acfb_post_button_padding = acfb_padding_name('acfb_post_button_padding');
12
+ $acfb_post_padding = acfb_padding_name('acfb_post_padding');
13
+ $acfb_post_margin = acfb_margin_name('acfb_post_margin');
14
+ $acfb_post_title_typo = acfb_ffaimly_name('acfb_post_title_typo');
15
+ $acfb_post_meta_typo = acfb_ffaimly_name('acfb_post_meta_typo');
16
+ $acfb_post_excerpt_typo = acfb_ffaimly_name('acfb_post_excerpt_typo');
17
+ $acfb_post_button_typo = acfb_ffaimly_name('acfb_post_button_typo');
18
+
19
+
20
+ $uid = $block['id'];
21
+
22
+ $className = 'acfb_posts_block';
23
+ if( !empty($block['className']) ) {
24
+ $className .= ' ' . $block['className'];
25
+ }
26
+ if( !empty($block['align']) ) {
27
+ $className .= ' align' . $block['align'];
28
+ }
29
+
30
+ ?>
31
+
32
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
33
+
34
+ <?php
35
+ $acfb_posts_layout = get_field('acfb_posts_layout');
36
+ $acfb_number_of_posts = get_field('acfb_number_of_posts');
37
+ $acfb_posts_columns = get_field('acfb_posts_columns');
38
+ $acfb_post_excerpt_length = get_field('acfb_post_excerpt_length');
39
+ $acfb_post_title_html_tag = get_field('acfb_post_title_html_tag');
40
+ ?>
41
+ <style type="text/css">
42
+ .<?php echo $uid; ?> {
43
+ <?php echo get_padding_field($acfb_post_padding); ?>
44
+ <?php echo get_margin_field($acfb_post_margin); ?>
45
+ }
46
+
47
+ .<?php echo $uid; ?> .acfb_post {
48
+ background: <?php the_field('acfb_post_background_color'); ?>;
49
+ }
50
+
51
+ <?php if( get_field('acfb_post_title_custom_typography') == '1' ): ?>
52
+ .<?php echo $uid; ?> .acfb_post .acfb_post_title a{
53
+ <?php echo get_typo_field($acfb_post_title_typo); ?>
54
+ }
55
+ <?php endif; ?>
56
+
57
+ <?php if( get_field('acfb_post_title_custom_color') == '1' ): ?>
58
+ .<?php echo $uid; ?> .acfb_post .acfb_post_title a{
59
+ color: <?php the_field('acfb_post_title_color'); ?> !important;
60
+ }
61
+
62
+ .<?php echo $uid; ?> .acfb_post .acfb_post_title a:hover{
63
+ color: <?php the_field('acfb_post_title_hover_color'); ?> !important;
64
+ }
65
+ <?php endif; ?>
66
+
67
+
68
+ <?php if( get_field('acfb_post_meta_custom_typography') == '1' ): ?>
69
+ .<?php echo $uid; ?> .acfb_post .acfb_post_meta{
70
+ <?php echo get_typo_field($acfb_post_meta_typo); ?>
71
+ }
72
+ <?php endif; ?>
73
+
74
+ <?php if( get_field('acfb_post_meta_custom_color') == '1' ): ?>
75
+ .<?php echo $uid; ?> .acfb_post .acfb_post_meta{
76
+ color: <?php the_field('acfb_post_meta_color'); ?>;
77
+ }
78
+ <?php endif; ?>
79
+
80
+ <?php if( get_field('acfb_post_excerpt_custom_typography') == '1' ): ?>
81
+ .<?php echo $uid; ?> .acfb_post .acfb_post_excerpt{
82
+ <?php echo get_typo_field($acfb_post_excerpt_typo); ?>
83
+ }
84
+ <?php endif; ?>
85
+
86
+ <?php if( get_field('acfb_post_excerpt_custom_color') == '1' ): ?>
87
+ .<?php echo $uid; ?> .acfb_post .acfb_post_excerpt{
88
+ color: <?php the_field('acfb_post_excerpt_color'); ?>;
89
+ }
90
+ <?php endif; ?>
91
+
92
+
93
+ <?php if( get_field('acfb_post_button_custom_typography') == '1' ): ?>
94
+ .<?php echo $uid; ?> .acfb_post .acfb_post_button a{
95
+ <?php echo get_typo_field($acfb_post_button_typo); ?>
96
+ }
97
+ <?php endif; ?>
98
+
99
+ <?php if( get_field('acfb_post_button_custom_color') == '1' ): ?>
100
+ .<?php echo $uid; ?> .acfb_post .acfb_post_button a{
101
+ background-color: <?php the_field('acfb_post_button_background_color'); ?>;
102
+ color: <?php the_field('acfb_post_button_text_color'); ?> !important;
103
+ padding-top: <?php echo $acfb_post_button_padding['padding_top']; ?>px;
104
+ padding-bottom: <?php echo $acfb_post_button_padding['padding_bottom']; ?>px;
105
+ padding-left: <?php echo $acfb_post_button_padding['padding_left']; ?>px;
106
+ padding-right: <?php echo $acfb_post_button_padding['padding_right']; ?>px;
107
+ }
108
+
109
+ .<?php echo $uid; ?> .acfb_post .acfb_post_button a:hover{
110
+ background-color: <?php the_field('acfb_post_button_background_hover_color'); ?>;
111
+ color: <?php the_field('acfb_post_button_text_hover_color'); ?> !important;
112
+ }
113
+ <?php endif; ?>
114
+ </style>
115
+
116
+
117
+ <?php
118
+
119
+ $acfb_grid_col = '';
120
+ if($acfb_posts_layout == 'grid'){
121
+ $acfb_grid_col = "acfb_post_" . $acfb_posts_columns;
122
+ }
123
+
124
+ $acfb_cat = get_field( 'acfb_category_filters' );
125
+
126
+ $acfb_cat_names = array();
127
+ if(is_array($acfb_cat)){
128
+ foreach($acfb_cat as $catskey => $catsval){
129
+ $acfb_cat_names[] = $catsval;
130
+ }
131
+ }
132
+
133
+ $args = array(
134
+ 'post_type' => 'post',
135
+ 'post_status' => 'publish',
136
+ 'posts_per_page' => $acfb_number_of_posts,
137
+ 'cat' => $acfb_cat_names,
138
+ );
139
+
140
+
141
+ // the query
142
+ $the_query = new WP_Query( $args ); ?>
143
+
144
+ <?php if ( $the_query->have_posts() ) : ?>
145
+
146
+ <div class="acfb_post_<?php echo $acfb_posts_layout; ?> <?php echo $acfb_grid_col; ?>">
147
+
148
+ <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
149
+
150
+ <?php
151
+ $acfb_thumb = '';
152
+ if ( has_post_thumbnail() ){
153
+ $acfb_thumb = 'thumb';
154
+ } else {
155
+ $acfb_thumb = 'no_thumb';
156
+ }
157
+ ?>
158
+
159
+ <div class="acfb_post <?php echo $acfb_thumb; ?>">
160
+
161
+ <?php
162
+ if($acfb_posts_layout == 'list'){ ?>
163
+
164
+ <!-- List -->
165
+ <div class="acfb_post_list_thumbnail">
166
+ <?php the_post_thumbnail(); ?>
167
+ </div>
168
+ <div class="acfb_post_list_content">
169
+ <?php
170
+ if( have_rows('acfb_post_list_elements') ):
171
+
172
+ while ( have_rows('acfb_post_list_elements') ) : the_row(); ?>
173
+
174
+ <?php if( get_row_layout() == 'post_list_title' ): ?>
175
+ <div class="acfb_post_title">
176
+ <<?php echo $acfb_post_title_html_tag; ?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></<?php echo $acfb_post_title_html_tag; ?>>
177
+ </div>
178
+ <?php endif; ?>
179
+
180
+ <?php if( get_row_layout() == 'post_list_meta_data' ): ?>
181
+ <div class="acfb_post_meta">
182
+ <span class="acfb_post_author"><?php the_author(); ?></span> -
183
+ <span class="acfb_post_date"><?php the_time('F jS, Y') ?></span>
184
+ </div>
185
+ <?php endif; ?>
186
+
187
+ <?php if( get_row_layout() == 'post_list_content' ): ?>
188
+ <div class="acfb_post_excerpt">
189
+ <?php echo acfb_excerpt($acfb_post_excerpt_length); ?>
190
+ </div>
191
+ <?php endif; ?>
192
+
193
+ <?php if( get_row_layout() == 'post_list_read_more_button' ): ?>
194
+ <div class="acfb_post_button">
195
+ <a href="<?php the_permalink(); ?>" class="acfb_post_btn">Read More</a>
196
+ </div>
197
+ <?php endif; ?>
198
+
199
+
200
+ <?php
201
+ endwhile;
202
+ endif;
203
+ ?>
204
+ </div>
205
+
206
+ <?php } elseif ($acfb_posts_layout == 'grid') { ?>
207
+
208
+ <!-- Grid -->
209
+ <?php
210
+ if( have_rows('acfb_post_grid_elements') ):
211
+
212
+ while ( have_rows('acfb_post_grid_elements') ) : the_row(); ?>
213
+
214
+ <?php if( get_row_layout() == 'post_grid_image' ): ?>
215
+ <div class="acfb_post_thumbnail">
216
+ <?php the_post_thumbnail(); ?>
217
+ </div>
218
+ <?php endif; ?>
219
+
220
+ <?php if( get_row_layout() == 'post_grid_title' ): ?>
221
+ <div class="acfb_post_title">
222
+ <<?php echo $acfb_post_title_html_tag; ?>><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></<?php echo $acfb_post_title_html_tag; ?>>
223
+ </div>
224
+ <?php endif; ?>
225
+
226
+ <?php if( get_row_layout() == 'post_grid_meta_data' ): ?>
227
+ <div class="acfb_post_meta">
228
+ <span class="acfb_post_author"><?php the_author(); ?></span> -
229
+ <span class="acfb_post_date"><?php the_time('F jS, Y') ?></span>
230
+ </div>
231
+ <?php endif; ?>
232
+
233
+ <?php if( get_row_layout() == 'post_grid_content' ): ?>
234
+ <div class="acfb_post_excerpt">
235
+ <?php echo acfb_excerpt($acfb_post_excerpt_length); ?>
236
+ </div>
237
+ <?php endif; ?>
238
+
239
+ <?php if( get_row_layout() == 'post_grid_read_more_button' ): ?>
240
+ <div class="acfb_post_button">
241
+ <a href="<?php the_permalink(); ?>" class="acfb_post_btn">Read More</a>
242
+ </div>
243
+ <?php endif; ?>
244
+
245
+
246
+ <?php
247
+ endwhile;
248
+ endif;
249
+ ?>
250
+
251
+ <?php } ?>
252
+
253
+ </div>
254
+ <?php endwhile; ?>
255
+
256
+ </div>
257
+
258
+ <?php wp_reset_postdata(); ?>
259
+
260
+ <?php else : ?>
261
+ <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
262
+ <?php endif; ?>
263
+
264
  </div><!-- Uid -->
acfblocks-templates/free/acfb-pricelist.php CHANGED
@@ -1,116 +1,116 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_price_list_title_typo'),
5
- get_field('acfb_price_list_description_typo')
6
- )
7
- );
8
-
9
-
10
- $acfb_price_list_padding = acfb_padding_name('acfb_price_list_padding');
11
- $acfb_price_list_margin = acfb_margin_name('acfb_price_list_margin');
12
- $acfb_price_list_title_typo = acfb_ffaimly_name('acfb_price_list_title_typo');
13
- $acfb_price_list_description_typo = acfb_ffaimly_name('acfb_price_list_description_typo');
14
-
15
- $uid = $block['id'];
16
-
17
- $className = 'acfb_price_list_block';
18
- if( !empty($block['className']) ) {
19
- $className .= ' ' . $block['className'];
20
- }
21
- if( !empty($block['align']) ) {
22
- $className .= ' align' . $block['align'];
23
- }
24
-
25
- ?>
26
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
27
- <style type="text/css">
28
- .<?php echo $uid; ?> {
29
- <?php echo get_padding_field($acfb_price_list_padding); ?>
30
- <?php echo get_margin_field($acfb_price_list_margin); ?>
31
- }
32
-
33
- <?php if(get_field('acfb_price_list_image_position') == 'acfb_price_list_image_top'): ?>
34
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item{
35
- grid-template-areas: 'acfbPli' 'acfbPlt';
36
- }
37
-
38
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text{
39
- margin-top: 10px;
40
- }
41
-
42
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
43
- grid-template-areas: 'acfbPlTitle acfbPlSep acfbPlPrice';
44
- }
45
-
46
- <?php elseif(get_field('acfb_price_list_image_position') == 'acfb_price_list_image_left'): ?>
47
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item{
48
- grid-template-columns: 20% auto;
49
- grid-template-areas: 'acfbPli acfbPlt';
50
- }
51
-
52
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
53
- grid-template-areas: 'acfbPlTitle acfbPlSep acfbPlPrice';
54
- }
55
-
56
- <?php elseif(get_field('acfb_price_list_image_position') == 'acfb_price_list_image_right'): ?>
57
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item{
58
- grid-template-columns: auto 20%;
59
- grid-template-areas: 'acfbPlt acfbPli';
60
- }
61
-
62
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
63
- grid-template-areas: 'acfbPlPrice acfbPlSep acfbPlTitle';
64
- }
65
-
66
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text{
67
- text-align: right;
68
- }
69
- <?php endif; ?>
70
-
71
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
72
- color: <?php the_field('acfb_price_list_title_&_price_color'); ?>;
73
- <?php echo get_typo_field($acfb_price_list_title_typo); ?>
74
- }
75
-
76
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header .acfb_price_list_separator {
77
- border-bottom-style: <?php the_field('acfb_price_list_separator_styles'); ?>;
78
- border-bottom-width: <?php the_field('acfb_price_list_separator_size'); ?>px;
79
- border-bottom-color: <?php the_field('acfb_price_list_separator_color'); ?>;
80
-
81
- }
82
-
83
- .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text p.acfb_price_list_description {
84
- color: <?php the_field('acfb_price_list_description_color'); ?>;
85
- <?php echo get_typo_field($acfb_price_list_description_typo); ?>
86
- }
87
-
88
- </style>
89
-
90
-
91
- <?php
92
- $acfb_image = '';
93
- if(!get_field('acfb_price_list_image')){
94
- $acfb_image = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
95
- } else{
96
- $acfb_image = get_field('acfb_price_list_image');
97
- }
98
- ?>
99
-
100
- <div class="acfb_price_list_wrap">
101
- <a href="<?php the_field('acfb_price_list_link'); ?>" class="acfb_price_list_item">
102
- <div class="acfb_price_list_image">
103
- <img src="<?php echo $acfb_image; ?>" alt="<?php the_field('acfb_price_list_image_alt'); ?>">
104
- </div>
105
- <div class="acfb_price_list_text">
106
- <div class="acfb_price_list_header">
107
- <span class="acfb_price_list_title"><?php the_field('acfb_price_list_title'); ?></span>
108
- <span class="acfb_price_list_separator"></span>
109
- <span class="acfb_price_list_price"><?php the_field('acfb_price_list_price_prefix'); ?><?php the_field('acfb_price_list_price'); ?></span>
110
- </div>
111
- <p class="acfb_price_list_description"><?php the_field('acfb_price_list_description'); ?></p>
112
- </div>
113
- </a>
114
- </div>
115
-
116
  </div><!-- Uid -->
1
+ <?php
2
+ echo parse_link(
3
+ array(
4
+ get_field('acfb_price_list_title_typo'),
5
+ get_field('acfb_price_list_description_typo')
6
+ )
7
+ );
8
+
9
+
10
+ $acfb_price_list_padding = acfb_padding_name('acfb_price_list_padding');
11
+ $acfb_price_list_margin = acfb_margin_name('acfb_price_list_margin');
12
+ $acfb_price_list_title_typo = acfb_ffaimly_name('acfb_price_list_title_typo');
13
+ $acfb_price_list_description_typo = acfb_ffaimly_name('acfb_price_list_description_typo');
14
+
15
+ $uid = $block['id'];
16
+
17
+ $className = 'acfb_price_list_block';
18
+ if( !empty($block['className']) ) {
19
+ $className .= ' ' . $block['className'];
20
+ }
21
+ if( !empty($block['align']) ) {
22
+ $className .= ' align' . $block['align'];
23
+ }
24
+
25
+ ?>
26
+ <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
27
+ <style type="text/css">
28
+ .<?php echo $uid; ?> {
29
+ <?php echo get_padding_field($acfb_price_list_padding); ?>
30
+ <?php echo get_margin_field($acfb_price_list_margin); ?>
31
+ }
32
+
33
+ <?php if(get_field('acfb_price_list_image_position') == 'acfb_price_list_image_top'): ?>
34
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item{
35
+ grid-template-areas: 'acfbPli' 'acfbPlt';
36
+ }
37
+
38
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text{
39
+ margin-top: 10px;
40
+ }
41
+
42
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
43
+ grid-template-areas: 'acfbPlTitle acfbPlSep acfbPlPrice';
44
+ }
45
+
46
+ <?php elseif(get_field('acfb_price_list_image_position') == 'acfb_price_list_image_left'): ?>
47
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item{
48
+ grid-template-columns: 20% auto;
49
+ grid-template-areas: 'acfbPli acfbPlt';
50
+ }
51
+
52
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
53
+ grid-template-areas: 'acfbPlTitle acfbPlSep acfbPlPrice';
54
+ }
55
+
56
+ <?php elseif(get_field('acfb_price_list_image_position') == 'acfb_price_list_image_right'): ?>
57
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item{
58
+ grid-template-columns: auto 20%;
59
+ grid-template-areas: 'acfbPlt acfbPli';
60
+ }
61
+
62
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
63
+ grid-template-areas: 'acfbPlPrice acfbPlSep acfbPlTitle';
64
+ }
65
+
66
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text{
67
+ text-align: right;
68
+ }
69
+ <?php endif; ?>
70
+
71
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header{
72
+ color: <?php the_field('acfb_price_list_title_&_price_color'); ?>;
73
+ <?php echo get_typo_field($acfb_price_list_title_typo); ?>
74
+ }
75
+
76
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text .acfb_price_list_header .acfb_price_list_separator {
77
+ border-bottom-style: <?php the_field('acfb_price_list_separator_styles'); ?>;
78
+ border-bottom-width: <?php the_field('acfb_price_list_separator_size'); ?>px;
79
+ border-bottom-color: <?php the_field('acfb_price_list_separator_color'); ?>;
80
+
81
+ }
82
+
83
+ .<?php echo $uid; ?> .acfb_price_list_wrap .acfb_price_list_item .acfb_price_list_text p.acfb_price_list_description {
84
+ color: <?php the_field('acfb_price_list_description_color'); ?>;
85
+ <?php echo get_typo_field($acfb_price_list_description_typo); ?>
86
+ }
87
+
88
+ </style>
89
+
90
+
91
+ <?php
92
+ $acfb_image = '';
93
+ if(!get_field('acfb_price_list_image')){
94
+ $acfb_image = plugins_url() . '/acf-blocks/img/placeholder-image.jpg';
95
+ } else{
96
+ $acfb_image = get_field('acfb_price_list_image');
97
+ }
98
+ ?>
99
+
100
+ <div class="acfb_price_list_wrap">
101
+ <a href="<?php the_field('acfb_price_list_link'); ?>" class="acfb_price_list_item">
102
+ <div class="acfb_price_list_image">
103
+ <img src="<?php echo $acfb_image; ?>" alt="<?php the_field('acfb_price_list_image_alt'); ?>">
104
+ </div>
105
+ <div class="acfb_price_list_text">
106
+ <div class="acfb_price_list_header">
107
+ <span class="acfb_price_list_title"><?php the_field('acfb_price_list_title'); ?></span>
108
+ <span class="acfb_price_list_separator"></span>
109
+ <span class="acfb_price_list_price"><?php the_field('acfb_price_list_price_prefix'); ?><?php the_field('acfb_price_list_price'); ?></span>
110
+ </div>
111
+ <p class="acfb_price_list_description"><?php the_field('acfb_price_list_description'); ?></p>
112
+ </div>
113
+ </a>
114
+ </div>
115
+
116
  </div><!-- Uid -->
acfblocks-templates/free/acfb-pricingbox.php CHANGED
@@ -1,152 +1,152 @@
1
- <?php
2
- echo parse_link(
3
- array(
4
- get_field('acfb_pricingbox_title_typo'),
5
- get_field('acfb_pricingbox_prefix_typo'),
6
- get_field('acfb_pricingbox_price_typo'),
7
- get_field('acfb_pricingbox_suffix_typo'),
8
- get_field('acfb_pricingbox_subtext_typo'),
9
- get_field('acfb_pricingbox_button_typo'),
10
- get_field('acfb_pricingbox_description_typo')
11
- )
12
- );
13
-
14
-
15
- $acfb_pricingbox_inner_padding = acfb_padding_name('acfb_pricingbox_inner_padding');
16
- $acfb_pricingbox_inner_button_padding = acfb_padding_name('acfb_pricingbox_inner_button_padding');
17
- $acfb_pricingbox_padding = acfb_padding_name('acfb_pricingbox_padding');
18
- $acfb_pricingbox_margin = acfb_margin_name('acfb_pricingbox_margin');
19
- $acfb_pricingbox_title_typo = acfb_ffaimly_name('acfb_pricingbox_title_typo');
20
- $acfb_pricingbox_prefix_typo = acfb_ffaimly_name('acfb_pricingbox_prefix_typo');
21
- $acfb_pricingbox_price_typo = acfb_ffaimly_name('acfb_pricingbox_price_typo');
22
- $acfb_pricingbox_suffix_typo = acfb_ffaimly_name('acfb_pricingbox_suffix_typo');
23
- $acfb_pricingbox_subtext_typo = acfb_ffaimly_name('acfb_pricingbox_subtext_typo');
24
- $acfb_pricingbox_button_typo = acfb_ffaimly_name('acfb_pricingbox_button_typo');
25
- $acfb_pricingbox_description_typo = acfb_ffaimly_name('acfb_pricingbox_description_typo');
26
-
27
-
28
- $uid = $block['id'];
29
-
30
- $className = 'acfb_pricing_table_block';
31
- if( !empty($block['className']) ) {
32
- $className .= ' ' . $block['className'];
33
- }
34
- if( !empty($block['align']) ) {
35
- $className .= ' align' . $block['align'];
36
- }
37
-
38
- ?>
39
- <div class="<?php echo $uid; ?> <?php echo esc_attr($className); ?>">
40
- <style type="text/css">
41
- .<?php echo $uid; ?> {
42
- <?php echo get_padding_field($acfb_pricingbox_padding); ?>
43
- <?php echo get_margin_field($acfb_pricingbox_margin); ?>
44
- }
45
-
46
- .<?php echo $uid; ?> .acfb_pricing_table_wrap{
47
- background-color: <?php the_field('acfb_pricingbox_background_color'); ?>;
48
- padding-top: <?php echo $acfb_pricingbox_inner_padding['padding_top']; ?>px;
49
- padding-bottom: <?php echo $acfb_pricingbox_inner_padding['padding_bottom']; ?>px;
50
- padding-left: <?php echo $acfb_pricingbox_inner_padding['padding_left']; ?>px;
51
- padding-right: <?php echo $acfb_pricingbox_inner_padding['padding_right']; ?>px;
52
- }
53
-
54
- .<?php echo $uid; ?> .acfb_pricing_table_wrap img{
55
- width: <?php the_field('acfb_pricingbox_image_size'); ?>%;
56
- }
57
-
58
- .<?php echo $uid; ?> h3.acfb_pricing_box_title{
59
- color: <?php the_field('acfb_pricingbox_title_color'); ?>;
60
- <?php echo get_typo_field($acfb_pricingbox_title_typo); ?>
61
- }
62
-
63
- .<?php echo $uid; ?> .acfb_pricing_box_price_line .acfb_pricing_box_price_prefix{
64
- color: <?php the_field('acfb_pricingbox_prefix_color'); ?>;
65
- <?php echo get_typo_field($acfb_pricingbox_prefix_typo); ?>
66
- }
67
-
68
- .<?php echo $uid; ?> .acfb_pricing_box_price_line .acfb_pricing_box_price{
69
- color: <?php the_field('acfb_pricingbox_price_color'); ?>;
70
- <?php echo get_typo_field($acfb_pricingbox_price_typo); ?>
71
- }
72
-
73
- .<?php echo $uid; ?> .acfb_pricing_box_price_line .acfb_pricing_box_price_suffix{
74
- color: <?php the_field('acfb_pricingbox_suffix_color'); ?>;
75
- <?php echo get_typo_field($acfb_pricingbox_suffix_typo); ?>
76
- }
77
-
78
- .<?php echo $uid; ?> .acfb_pricing_box_subprice{
79
- color: <?php the_field('acfb_pricingbox_subtext_color'); ?>;
80
- <?php echo get_typo_field($acfb_pricingbox_subtext_typo); ?>
81
- }
82
-
83
- .<?php echo $uid; ?> .acfb_pricing_box_button a{
84
- background-color: <?php the_field('acfb_pricingbox_button_background_color'); ?>;
85
- color: <?php the_field('acfb_pricingbox_button_text_color'); ?> !important;
86
- <?php echo get_typo_field($acfb_pricingbox_button_typo); ?>
87
- padding-top: <?php echo $acfb_pricingbox_inner_button_padding['padding_top']; ?>px;
88
- padding-bottom: <?php echo $acfb_pricingbox_inner_button_padding['padding_bottom']; ?>px;
89
- padding-left: <?php echo $acfb_pricingbox_inner_button_padding['padding_left']; ?>px;
90
- padding-right: <?php echo $acfb_pricingbox_inner_button_padding['padding_right']; ?>px;
91
- }
92
-
93
- .<?php echo $uid; ?> .acfb_pricing_box_button a:hover{
94
- background-color: <?php the_field('acfb_pricingbox_button_background_hover_color'); ?>;
95
- color: <?php the_field('acfb_pricingbox_button_text_hover_color'); ?> !important;
96
- }
97
-
98
- .<?php echo $uid; ?> .acfb_pricing_table_wrap .acfb_pricing_box_description{
99
- color: <?php the_field('acfb_pricingbox_description_color'); ?>;
100
- <?php echo get_typo_field($acfb_pricingbox_description_typo); ?>
101
- }
102
- </style>
103
-
104
- <div class="acfb_pricing_table_wrap">
105
-
106
- <?php if(get_field('acfb_pricingbox_image')): ?>
107
- <img src="<?php the_field('acfb_pricingbox_image'); ?>" alt="<?php the_field('acfb_pricingbox_image_alt'); ?>" class="acfb_pricing_table_imgicon">
108
- <?php endif; ?>
109
-
110
- <?php if(get_field('acfb_pricingbox_title')): ?>
111
- <h3 class="acfb_pricing_box_title"><?php the_field('acfb_pricingbox_title'); ?></h3>
112
- <?php endif; ?>
113
-
114
- <?php if(get_field('acfb_pricingbox_price_prefix') || get_field('acfb_pricingbox_price') || get_field('acfb_pricingbox_price_suffix') || get_field('acfb_pricingbox_sub_text') ): ?>
115
- <div class="acfb_pricing_box_price_wrapper">
116
-
117
- <?php if(get_field('acfb_pricingbox_price_prefix') || get_field('acfb_pricingbox_price') || get_field('acfb_pricingbox_price_suffix')): ?>
118
- <div class="acfb_pricing_box_price_line">
119
- <?php if(get_field('acfb_pricingbox_price_prefix')): ?>
120
- <span class="acfb_pricing_box_price_prefix"><?php the_field('acfb_pricingbox_price_prefix'); ?></span>
121
- <?php endif; ?>
122
-
123
- <?php if(get_field('acfb_pricingbox_price')): ?>
124
- <span class="acfb_pricing_box_price"><?php the_field('acfb_pricingbox_price'); ?></span>
125
- <?php endif; ?>
126
-
127
- <?php if(get_field('acfb_pricingbox_price_suffix')): ?>
128
- <span class="acfb_pricing_box_price_suffix"><?php the_field('acfb_pricingbox_price_suffix'); ?></span>
129
- <?php endif; ?>
130
- </div>
131
- <?php endif; ?>