Gutenberg Blocks – ACF Blocks Suite - Version 1.7.0

Version Description

  • New: Template Overide Feature
  • Bug Fixes & Code improvement
  • ACF Blocks Pro Released
Download this release

Release Info

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

Code changes from version 1.6.0 to 1.7.0

Files changed (319) hide show
  1. acf-blocks.php +409 -505
  2. acf-json/group_5cbd743876860.json +355 -296
  3. acf-json/group_5cbd9e696a100.json +404 -321
  4. acf-json/group_5cbdba3909312.json +242 -180
  5. acf-json/group_5cbdd1a0caf81.json +573 -574
  6. acf-json/group_5cbef16c004be.json +294 -292
  7. acf-json/group_5cc04e691b1a8.json +222 -200
  8. acf-json/group_5cc6b8e86e751.json +233 -233
  9. acf-json/group_5cc6cf92e231a.json +204 -204
  10. acf-json/group_5cc6dfe67784b.json +353 -329
  11. acf-json/group_5cc7092c01eb4.json +213 -213
  12. acf-json/group_5cd00bce35670.json +2 -2
  13. acf-json/group_5cde975abf269.json +204 -198
  14. acf-json/group_5cf238e5e1203.json +2 -2
  15. acf-json/group_5cfe3ba49f760.json +2 -2
  16. acf-json/group_5cff80b5c59d1.json +2 -2
  17. acf-json/group_5cff8a6c26332.json +2 -2
  18. acf-json/group_5d7b6d4b9609e.json +1195 -0
  19. acf-json/group_5d7f7f7dd9f24.json +556 -0
  20. acf-json/group_5d80d38c44b1c.json +512 -0
  21. acf-json/group_5d85f76783fa0.json +596 -0
  22. acf-json/group_5d88ac7ea4495.json +379 -0
  23. acf-json/group_5d89edcb99f5e.json +541 -0
  24. acf-json/group_5d8c7aea13336.json +2 -2
  25. acf-json/group_5d9c6dc7208c4.json +210 -0
  26. acf-json/group_5d9c78624c0c3.json +207 -0
  27. acf-json/group_5d9f3016200d1.json +243 -0
  28. acf-json/group_5d9f3dcad2c3d.json +1183 -0
  29. acf-json/group_5da1986955b15.json +1405 -0
  30. acf-json/group_5db1a62d812f2.json +1404 -0
  31. acf-json/index.php +0 -0
  32. admin/admin-styles.css +99 -0
  33. admin/class-acf-admin-page.php +47 -0
  34. block-templates/{accordion.php → free/acfb-accordion.php} +0 -0
  35. block-templates/{click-to-tweet.php → free/acfb-clicktotweet.php} +0 -0
  36. block-templates/{counter-number.php → free/acfb-counternumber.php} +0 -0
  37. block-templates/{image-slider.php → free/acfb-image-slider.php} +1 -1
  38. block-templates/{multi-buttons.php → free/acfb-multibuttons.php} +6 -3
  39. block-templates/{photo-collage.php → free/acfb-photocollage.php} +4 -4
  40. block-templates/{posts.php → free/acfb-posts.php} +90 -12
  41. block-templates/{price-list.php → free/acfb-pricelist.php} +38 -1
  42. block-templates/{pricing-box.php → free/acfb-pricingbox.php} +44 -24
  43. block-templates/{progress-bar.php → free/acfb-progressbar.php} +0 -0
  44. block-templates/{scrollable-image.php → free/acfb-scrollable-image.php} +2 -2
  45. block-templates/{social-sharing.php → free/acfb-socialsharing.php} +0 -0
  46. block-templates/{star-rating.php → free/acfb-starrating.php} +4 -0
  47. block-templates/{tabs.php → free/acfb-tabs.php} +0 -0
  48. block-templates/{team.php → free/acfb-team.php} +45 -6
  49. block-templates/{testimonial.php → free/acfb-testimonial.php} +48 -1
  50. block-templates/{toggle.php → free/acfb-toggle.php} +0 -0
  51. block-templates/loop-templates/post-grid.php +0 -42
  52. block-templates/loop-templates/post-list.php +0 -40
  53. css/acfblocks.css +1968 -15
  54. css/magnific-popup.css +351 -0
  55. css/swiper.min.css +0 -0
  56. css/twentytwenty.css +203 -0
  57. free-acf-blocks.php +305 -0
  58. freemius/.gitignore +0 -11
  59. freemius/LICENSE.txt +0 -0
  60. freemius/README.md +0 -253
  61. freemius/assets/css/admin/account.css +0 -0
  62. freemius/assets/css/admin/add-ons.css +0 -0
  63. freemius/assets/css/admin/affiliation.css +0 -0
  64. freemius/assets/css/admin/checkout.css +0 -0
  65. freemius/assets/css/admin/common.css +0 -0
  66. freemius/assets/css/admin/connect.css +0 -0
  67. freemius/assets/css/admin/debug.css +0 -0
  68. freemius/assets/css/admin/dialog-boxes.css +0 -0
  69. freemius/assets/css/admin/gdpr-optin-notice.css +0 -0
  70. freemius/assets/css/admin/index.php +0 -0
  71. freemius/assets/css/customizer.css +0 -0
  72. freemius/assets/css/index.php +0 -0
  73. freemius/assets/img/acf-blocks.svg +1 -0
  74. freemius/assets/img/index.php +0 -0
  75. freemius/assets/img/plugin-icon.png +0 -0
  76. freemius/assets/img/theme-icon.png +0 -0
  77. freemius/assets/index.php +0 -0
  78. freemius/assets/js/index.php +0 -0
  79. freemius/assets/js/nojquery.ba-postmessage.js +0 -0
  80. freemius/assets/js/nojquery.ba-postmessage.min.js +0 -0
  81. freemius/assets/js/postmessage.js +0 -0
  82. freemius/assets/scss/_colors.scss +0 -0
  83. freemius/assets/scss/_functions.scss +0 -0
  84. freemius/assets/scss/_load.scss +0 -0
  85. freemius/assets/scss/_mixins.scss +0 -0
  86. freemius/assets/scss/_start.scss +0 -0
  87. freemius/assets/scss/_vars.scss +0 -0
  88. freemius/assets/scss/admin/_ajax-loader.scss +0 -0
  89. freemius/assets/scss/admin/_auto-install.scss +0 -0
  90. freemius/assets/scss/admin/_buttons.scss +0 -0
  91. freemius/assets/scss/admin/_deactivation-feedback.scss +0 -0
  92. freemius/assets/scss/admin/_gdpr-consent.scss +0 -0
  93. freemius/assets/scss/admin/_license-activation.scss +0 -0
  94. freemius/assets/scss/admin/_license-key-resend.scss +0 -0
  95. freemius/assets/scss/admin/_modal-common.scss +0 -0
  96. freemius/assets/scss/admin/_multisite-options.scss +0 -0
  97. freemius/assets/scss/admin/_plugin-upgrade-notice.scss +0 -0
  98. freemius/assets/scss/admin/_subscription-cancellation.scss +0 -0
  99. freemius/assets/scss/admin/_themes.scss +0 -0
  100. freemius/assets/scss/admin/_tooltip.scss +0 -0
  101. freemius/assets/scss/admin/account.scss +0 -0
  102. freemius/assets/scss/admin/add-ons.scss +0 -0
  103. freemius/assets/scss/admin/affiliation.scss +0 -0
  104. freemius/assets/scss/admin/checkout.scss +0 -0
  105. freemius/assets/scss/admin/common.scss +0 -0
  106. freemius/assets/scss/admin/connect.scss +0 -0
  107. freemius/assets/scss/admin/debug.scss +0 -0
  108. freemius/assets/scss/admin/dialog-boxes.scss +0 -0
  109. freemius/assets/scss/admin/gdpr-optin-notice.scss +0 -0
  110. freemius/assets/scss/admin/index.php +0 -0
  111. freemius/assets/scss/customizer.scss +0 -0
  112. freemius/assets/scss/index.php +0 -0
  113. freemius/config.php +0 -0
  114. freemius/includes/class-freemius-abstract.php +0 -0
  115. freemius/includes/class-freemius.php +0 -0
  116. freemius/includes/class-fs-admin-notices.php +0 -0
  117. freemius/includes/class-fs-api.php +0 -0
  118. freemius/includes/class-fs-logger.php +0 -0
  119. freemius/includes/class-fs-options.php +0 -0
  120. freemius/includes/class-fs-plugin-updater.php +0 -0
  121. freemius/includes/class-fs-security.php +0 -0
  122. freemius/includes/class-fs-storage.php +0 -0
  123. freemius/includes/class-fs-user-lock.php +0 -0
  124. freemius/includes/customizer/class-fs-customizer-support-section.php +0 -0
  125. freemius/includes/customizer/class-fs-customizer-upsell-control.php +0 -0
  126. freemius/includes/customizer/index.php +0 -0
  127. freemius/includes/debug/class-fs-debug-bar-panel.php +0 -0
  128. freemius/includes/debug/debug-bar-start.php +0 -0
  129. freemius/includes/debug/index.php +0 -0
  130. freemius/includes/entities/class-fs-affiliate-terms.php +0 -0
  131. freemius/includes/entities/class-fs-affiliate.php +0 -0
  132. freemius/includes/entities/class-fs-billing.php +0 -0
  133. freemius/includes/entities/class-fs-entity.php +0 -0
  134. freemius/includes/entities/class-fs-payment.php +0 -0
  135. freemius/includes/entities/class-fs-plugin-info.php +0 -0
  136. freemius/includes/entities/class-fs-plugin-license.php +0 -0
  137. freemius/includes/entities/class-fs-plugin-plan.php +0 -0
  138. freemius/includes/entities/class-fs-plugin-tag.php +0 -0
  139. freemius/includes/entities/class-fs-plugin.php +0 -0
  140. freemius/includes/entities/class-fs-pricing.php +0 -0
  141. freemius/includes/entities/class-fs-scope-entity.php +0 -0
  142. freemius/includes/entities/class-fs-site.php +0 -0
  143. freemius/includes/entities/class-fs-subscription.php +0 -0
  144. freemius/includes/entities/class-fs-user.php +0 -0
  145. freemius/includes/entities/index.php +0 -0
  146. freemius/includes/fs-core-functions.php +0 -0
  147. freemius/includes/fs-essential-functions.php +0 -0
  148. freemius/includes/fs-plugin-info-dialog.php +0 -0
  149. freemius/includes/i18n.php +0 -0
  150. freemius/includes/index.php +0 -0
  151. freemius/includes/l10n.php +0 -0
  152. freemius/includes/managers/class-fs-admin-menu-manager.php +0 -0
  153. freemius/includes/managers/class-fs-admin-notice-manager.php +0 -0
  154. freemius/includes/managers/class-fs-cache-manager.php +0 -0
  155. freemius/includes/managers/class-fs-gdpr-manager.php +0 -0
  156. freemius/includes/managers/class-fs-key-value-storage.php +0 -0
  157. freemius/includes/managers/class-fs-license-manager.php +0 -0
  158. freemius/includes/managers/class-fs-option-manager.php +0 -0
  159. freemius/includes/managers/class-fs-plan-manager.php +0 -0
  160. freemius/includes/managers/class-fs-plugin-manager.php +0 -0
  161. freemius/includes/managers/index.php +0 -0
  162. freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +0 -0
  163. freemius/includes/sdk/Exceptions/EmptyArgumentException.php +0 -0
  164. freemius/includes/sdk/Exceptions/Exception.php +0 -0
  165. freemius/includes/sdk/Exceptions/InvalidArgumentException.php +0 -0
  166. freemius/includes/sdk/Exceptions/OAuthException.php +0 -0
  167. freemius/includes/sdk/Exceptions/index.php +0 -0
  168. freemius/includes/sdk/FreemiusBase.php +0 -0
  169. freemius/includes/sdk/FreemiusWordPress.php +0 -0
  170. freemius/includes/sdk/LICENSE.txt +0 -0
  171. freemius/includes/sdk/index.php +0 -0
  172. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +0 -0
  173. freemius/includes/supplements/fs-essential-functions-2.2.1.php +0 -0
  174. freemius/includes/supplements/index.php +0 -0
  175. freemius/index.php +0 -0
  176. freemius/languages/freemius-da_DK.mo +0 -0
  177. freemius/languages/freemius-da_DK.po +0 -0
  178. freemius/languages/freemius-en.mo +0 -0
  179. freemius/languages/freemius-en.po +0 -0
  180. freemius/languages/freemius-es_ES.mo +0 -0
  181. freemius/languages/freemius-es_ES.po +0 -0
  182. freemius/languages/freemius-fr_FR.mo +0 -0
  183. freemius/languages/freemius-fr_FR.po +0 -0
  184. freemius/languages/freemius-he_IL.mo +0 -0
  185. freemius/languages/freemius-he_IL.po +0 -0
  186. freemius/languages/freemius-hu_HU.mo +0 -0
  187. freemius/languages/freemius-hu_HU.po +0 -0
  188. freemius/languages/freemius-it_IT.mo +0 -0
  189. freemius/languages/freemius-it_IT.po +0 -0
  190. freemius/languages/freemius-ja_JP.mo +0 -0
  191. freemius/languages/freemius-ja_JP.po +0 -0
  192. freemius/languages/freemius-nl_NL.mo +0 -0
  193. freemius/languages/freemius-nl_NL.po +0 -0
  194. freemius/languages/freemius-ru_RU.mo +0 -0
  195. freemius/languages/freemius-ru_RU.po +0 -0
  196. freemius/languages/freemius.pot +0 -0
  197. freemius/languages/index.php +0 -0
  198. freemius/package.json +0 -27
  199. freemius/require.php +0 -0
  200. freemius/start.php +0 -0
  201. freemius/templates/account.php +0 -0
  202. freemius/templates/account/billing.php +0 -0
  203. freemius/templates/account/index.php +0 -0
  204. freemius/templates/account/partials/activate-license-button.php +0 -0
  205. freemius/templates/account/partials/addon.php +0 -0
  206. freemius/templates/account/partials/deactivate-license-button.php +0 -0
  207. freemius/templates/account/partials/index.php +0 -0
  208. freemius/templates/account/partials/site.php +0 -0
  209. freemius/templates/account/payments.php +0 -0
  210. freemius/templates/add-ons.php +0 -0
  211. freemius/templates/add-trial-to-pricing.php +0 -0
  212. freemius/templates/admin-notice.php +0 -0
  213. freemius/templates/ajax-loader.php +0 -0
  214. freemius/templates/auto-installation.php +0 -0
  215. freemius/templates/checkout.php +0 -0
  216. freemius/templates/connect.php +0 -0
  217. freemius/templates/contact.php +0 -0
  218. freemius/templates/debug.php +0 -0
  219. freemius/templates/debug/api-calls.php +0 -0
  220. freemius/templates/debug/index.php +0 -0
  221. freemius/templates/debug/logger.php +0 -0
  222. freemius/templates/debug/plugins-themes-sync.php +0 -0
  223. freemius/templates/debug/scheduled-crons.php +0 -0
  224. freemius/templates/email.php +0 -0
  225. freemius/templates/firewall-issues-js.php +0 -0
  226. freemius/templates/forms/affiliation.php +0 -0
  227. freemius/templates/forms/deactivation/contact.php +0 -0
  228. freemius/templates/forms/deactivation/form.php +0 -0
  229. freemius/templates/forms/deactivation/index.php +0 -0
  230. freemius/templates/forms/deactivation/retry-skip.php +0 -0
  231. freemius/templates/forms/index.php +0 -0
  232. freemius/templates/forms/license-activation.php +0 -0
  233. freemius/templates/forms/optout.php +0 -0
  234. freemius/templates/forms/premium-versions-upgrade-handler.php +0 -0
  235. freemius/templates/forms/premium-versions-upgrade-metadata.php +0 -0
  236. freemius/templates/forms/resend-key.php +0 -0
  237. freemius/templates/forms/subscription-cancellation.php +0 -0
  238. freemius/templates/forms/trial-start.php +0 -0
  239. freemius/templates/gdpr-optin-js.php +0 -0
  240. freemius/templates/index.php +0 -0
  241. freemius/templates/js/index.php +0 -0
  242. freemius/templates/js/jquery.content-change.php +0 -0
  243. freemius/templates/js/open-license-activation.php +0 -0
  244. freemius/templates/js/style-premium-theme.php +0 -0
  245. freemius/templates/partials/network-activation.php +0 -0
  246. freemius/templates/plugin-icon.php +0 -0
  247. freemius/templates/plugin-info/description.php +0 -0
  248. freemius/templates/plugin-info/features.php +0 -0
  249. freemius/templates/plugin-info/index.php +0 -0
  250. freemius/templates/plugin-info/screenshots.php +0 -0
  251. freemius/templates/powered-by.php +0 -0
  252. freemius/templates/pricing.php +0 -0
  253. freemius/templates/secure-https-header.php +0 -0
  254. freemius/templates/sticky-admin-notice-js.php +0 -0
  255. freemius/templates/tabs-capture-js.php +0 -0
  256. freemius/templates/tabs.php +0 -0
  257. img/c-gfive-1.png +0 -0
  258. img/c-gfive-2.png +0 -0
  259. img/c-gfive-3.png +0 -0
  260. img/c-gfour-1.png +0 -0
  261. img/c-gfour-2.png +0 -0
  262. img/gfour-eight.png +0 -0
  263. img/gfour-eleven.png +0 -0
  264. img/gfour-fifteen.png +0 -0
  265. img/gfour-five.png +0 -0
  266. img/gfour-four.png +0 -0
  267. img/gfour-fourteen.png +0 -0
  268. img/gfour-nine.png +0 -0
  269. img/gfour-one.png +0 -0
  270. img/gfour-seven.png +0 -0
  271. img/gfour-six.png +0 -0
  272. img/gfour-ten.png +0 -0
  273. img/gfour-thirteen.png +0 -0
  274. img/gfour-three.png +0 -0
  275. img/gfour-twelve.png +0 -0
  276. img/gfour-two.png +0 -0
  277. img/gthree-five.png +0 -0
  278. img/gthree-four.png +0 -0
  279. img/gthree-one.png +0 -0
  280. img/gthree-six.png +0 -0
  281. img/gthree-three.png +0 -0
  282. img/gthree-two.png +0 -0
  283. img/gtwo-one.png +0 -0
  284. img/gtwo-two.png +0 -0
  285. img/placeholder-image.jpg +0 -0
  286. img/placeholder-vertical.jpg +0 -0
  287. img/pt-four-one.png +0 -0
  288. img/pt-four-two.png +0 -0
  289. img/svgexport-1.svg +0 -0
  290. img/svgexport-10.svg +0 -0
  291. img/svgexport-11.svg +0 -0
  292. img/svgexport-2.svg +0 -0
  293. img/svgexport-3.svg +0 -0
  294. img/svgexport-4.svg +0 -0
  295. img/svgexport-5.svg +0 -0
  296. img/svgexport-6.svg +0 -0
  297. img/svgexport-7.svg +0 -0
  298. img/svgexport-8.svg +0 -0
  299. img/svgexport-9.svg +0 -0
  300. js/accordion.js +0 -0
  301. js/before-after-image.js +75 -0
  302. js/frontend.js +0 -0
  303. js/gallery-custom.js +25 -0
  304. js/image-accordion.js +33 -0
  305. js/image-slider.js +8 -0
  306. js/jquery.event.move.js +599 -0
  307. js/jquery.magnific-popup.js +1860 -0
  308. js/jquery.twentytwenty.js +151 -0
  309. js/post-slider.js +113 -0
  310. js/post-ticker.js +49 -0
  311. js/skins.js +4 -0
  312. js/swiper.min.js +0 -0
  313. js/tabs.js +0 -0
  314. js/toggle.js +0 -0
  315. js/types/base.js +304 -0
  316. js/types/grid.js +52 -0
  317. js/types/justified.js +149 -0
  318. js/types/masonry.js +67 -0
  319. readme.txt +64 -25
acf-blocks.php CHANGED
@@ -1,9 +1,10 @@
1
  <?php
 
2
  /**
3
  * Plugin Name: ACF Blocks
4
  * Plugin URI: https://acfblocks.com/
5
  * Description: Supercharge your Gutenberg editor with high quality beautiful WordPress blocks. Ready-to-use ACF Blocks!
6
- * Version: 1.6.0
7
  * Author: munirkamal
8
  * Author URI: https://munirkamal.wordpress.com
9
  * License: GPL2
@@ -11,528 +12,431 @@
11
  * Text Domain: acfb
12
  * Domain Path: /languages
13
  */
 
 
 
14
 
15
- // Freemius
16
- if ( ! function_exists( 'acfb_fs' ) ) {
17
- // Create a helper function for easy SDK access.
18
- function acfb_fs() {
19
- global $acfb_fs;
20
-
21
- if ( ! isset( $acfb_fs ) ) {
22
- // Include Freemius SDK.
23
- require_once dirname(__FILE__) . '/freemius/start.php';
24
-
25
- $acfb_fs = fs_dynamic_init( array(
26
- 'id' => '3703',
27
- 'slug' => 'acf-blocks',
28
- 'type' => 'plugin',
29
- 'public_key' => 'pk_5e62b729dd843294873241dcc6402',
30
- 'is_premium' => false,
31
- 'has_addons' => false,
32
- 'has_paid_plans' => false,
33
- 'menu' => array(
34
- 'first-path' => 'plugins.php',
35
- 'account' => false,
36
- 'support' => false,
 
 
 
37
  ),
38
- ) );
 
 
 
 
 
 
 
 
39
  }
40
-
41
- return $acfb_fs;
 
 
 
42
  }
43
-
44
- // Init Freemius.
45
- acfb_fs();
46
- // Signal that SDK was initiated.
47
- do_action( 'acfb_fs_loaded' );
48
- }
49
-
50
-
51
- // Add Custom Blocks Panel in Gutenberg
52
- function acfb_block_categories( $categories, $post ) {
53
- return array_merge(
54
- $categories,
55
- array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  array(
57
- 'slug' => 'acfb-blocks',
58
- 'title' => __( 'ACF Blocks', 'acfblocks-master' ),
59
- ),
60
  )
 
 
 
 
 
 
 
 
 
 
61
  );
62
- }
63
- add_filter( 'block_categories', 'acfb_block_categories', 10, 2 );
64
-
65
-
66
- // Register Blocks
67
- add_action('acf/init', 'acfb_blocks');
68
- function acfb_blocks() {
69
-
70
- // check function exists.
71
- if( function_exists('acf_register_block_type') ) {
72
-
73
- // register a testimonial block.
74
- acf_register_block_type(array(
75
- 'name' => 'acfb-testimonial',
76
- 'mode' => 'preview',
77
- 'title' => __('Testimonial'),
78
- 'description' => __('Let others know what your clients or customers say about you.'),
79
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/testimonial.php',
80
- 'category' => 'acfb-blocks',
81
- 'icon' => '<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"></defs><title/><g data-name="22-chat" id="_22-chat"><polygon class="acfb_svg_icon" points="31 3 1 3 1 23 8 23 14 29 14 23 31 23 31 3"/><line class="acfb_svg_icon" x1="7" x2="25" y1="9" y2="9"/><line class="acfb_svg_icon" x1="7" x2="25" y1="13" y2="13"/><line class="acfb_svg_icon" x1="7" x2="25" y1="17" y2="17"/></g></svg>',
82
- 'enqueue_assets' => function(){
83
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
84
- },
85
- ));
86
-
87
- // register a team block.
88
- acf_register_block_type(array(
89
- 'name' => 'acfb-team',
90
- 'mode' => 'preview',
91
- 'title' => __('Team'),
92
- 'description' => __('Introduce your team to your site visitors in style.'),
93
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/team.php',
94
- 'category' => 'acfb-blocks',
95
- 'icon' => '<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="79-users" id="_79-users"><circle class="acfb_svg_icon" cx="16" cy="13" r="5"/><path class="acfb_svg_icon" d="M23,28A7,7,0,0,0,9,28Z"/><path class="acfb_svg_icon" d="M24,14a5,5,0,1,0-4-8"/><path class="acfb_svg_icon" d="M25,24h6a7,7,0,0,0-7-7"/><path class="acfb_svg_icon" d="M12,6a5,5,0,1,0-4,8"/><path class="acfb_svg_icon" d="M8,17a7,7,0,0,0-7,7H7"/></g></svg>',
96
- 'enqueue_assets' => function(){
97
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
98
- },
99
- ));
100
-
101
- // register a multi buttons block.
102
- acf_register_block_type(array(
103
- 'name' => 'acfb-multibuttons',
104
- 'mode' => 'preview',
105
- 'title' => __('Multi Buttons'),
106
- 'description' => __('Display multiple buttons inline with ease.'),
107
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/multi-buttons.php',
108
- 'category' => 'acfb-blocks',
109
- 'icon' => '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="36.option-memu" id="_36.option-memu"><rect class="acfb_svg_icon" height="4" width="4" x="1" y="10"/><rect class="acfb_svg_icon" height="4" width="4" x="10" y="10"/><rect class="acfb_svg_icon" height="4" width="4" x="19" y="10"/></g></svg>',
110
- 'enqueue_assets' => function(){
111
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
112
- },
113
- ));
114
-
115
- // register a pricing box block.
116
- acf_register_block_type(array(
117
- 'name' => 'acfb-pricingbox',
118
- 'mode' => 'preview',
119
- 'title' => __('Pricing Box'),
120
- 'description' => __('Display your plans and offers in style.'),
121
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/pricing-box.php',
122
- 'category' => 'acfb-blocks',
123
- 'icon' => '<svg height="512pt" viewBox="0 -47 512 512" width="512pt" xmlns="http://www.w3.org/2000/svg"><path d="m85.332031 145.859375v-43.800781c9.648438 2.433594 16.574219 10.882812 17.066407 20.820312 0 4.714844 3.820312 8.535156 8.535156 8.535156 4.710937 0 8.53125-3.820312 8.53125-8.535156-.652344-19.355468-14.988282-35.507812-34.132813-38.460937v-7.617188c0-4.714843-3.820312-8.535156-8.53125-8.535156-4.714843 0-8.535156 3.820313-8.535156 8.535156v7.617188c-19.140625 2.949219-33.476563 19.105469-34.132813 38.460937.65625 19.359375 14.992188 35.511719 34.132813 38.460938v43.804687c-9.648437-2.433593-16.574219-10.886719-17.066406-20.824219 0-4.714843-3.820313-8.535156-8.53125-8.535156-4.714844 0-8.535157 3.820313-8.535157 8.535156.65625 19.359376 14.992188 35.511719 34.132813 38.460938v7.617188c0 4.714843 3.820313 8.535156 8.535156 8.535156 4.710938 0 8.53125-3.820313 8.53125-8.535156v-7.617188c19.144531-2.949219 33.480469-19.101562 34.132813-38.460938-.652344-19.359374-14.988282-35.511718-34.132813-38.460937zm-34.132812-22.980469c.496093-9.9375 7.421875-18.386718 17.066406-20.820312v41.644531c-9.644531-2.4375-16.570313-10.886719-17.066406-20.824219zm34.132812 82.265625v-41.644531c9.925781 1.988281 17.066407 10.703125 17.066407 20.824219 0 10.121093-7.140626 18.835937-17.066407 20.824219zm0 0"/><path d="m298.667969 109.226562c0 4.714844 3.820312 8.535157 8.53125 8.535157 4.714843 0 8.535156-3.820313 8.535156-8.535157 0-26.597656-22.304687-48.613281-51.199219-52.300781v-14.257812c0-4.714844-3.824218-8.535157-8.535156-8.535157s-8.535156 3.820313-8.535156 8.535157v14.257812c-28.894532 3.6875-51.199219 25.703125-51.199219 52.300781 0 26.597657 22.304687 48.617188 51.199219 52.308594v71.554688c-18.386719-1.878906-32.773438-16.683594-34.132813-35.117188 0-4.710937-3.820312-8.53125-8.53125-8.53125-4.714843 0-8.535156 3.820313-8.535156 8.53125 0 26.597656 22.304687 48.613282 51.199219 52.300782v14.261718c0 4.710938 3.824218 8.53125 8.535156 8.53125s8.535156-3.820312 8.535156-8.53125v-14.257812c28.894532-3.691406 51.199219-25.703125 51.199219-52.300782 0-26.601562-22.304687-48.617187-51.199219-52.304687v-71.558594c18.386719 1.875 32.773438 16.679688 34.132813 35.113281zm-85.335938 0c1.359375-18.433593 15.746094-33.234374 34.132813-35.113281v70.230469c-18.386719-1.878906-32.773438-16.683594-34.132813-35.117188zm85.335938 88.746094c-1.359375 18.433594-15.746094 33.234375-34.132813 35.113282v-70.230469c18.386719 1.882812 32.773438 16.683593 34.132813 35.117187zm0 0"/><path d="m426.667969 161.339844v43.804687c-9.648438-2.433593-16.574219-10.882812-17.066407-20.820312 0-4.710938-3.820312-8.535157-8.535156-8.535157-4.710937 0-8.53125 3.824219-8.53125 8.535157.652344 19.359375 14.988282 35.511719 34.132813 38.460937v7.613282c0 4.714843 3.820312 8.535156 8.53125 8.535156 4.714843 0 8.535156-3.820313 8.535156-8.535156v-7.617188c19.140625-2.949219 33.476563-19.101562 34.132813-38.460938-.65625-19.359374-14.992188-35.511718-34.132813-38.460937v-43.800781c9.648437 2.433594 16.574219 10.882812 17.066406 20.820312 0 4.714844 3.820313 8.535156 8.53125 8.535156 4.714844 0 8.535157-3.820312 8.535157-8.535156-.65625-19.355468-14.992188-35.507812-34.132813-38.460937v-7.617188c0-4.714843-3.820313-8.535156-8.535156-8.535156-4.710938 0-8.53125 3.820313-8.53125 8.535156v7.617188c-19.144531 2.949219-33.480469 19.105469-34.132813 38.460937.652344 19.359375 14.988282 35.511719 34.132813 38.460938zm34.132812 22.980468c-.492187 9.9375-7.417969 18.386719-17.066406 20.820313v-41.640625c9.648437 2.433594 16.574219 10.882812 17.066406 20.820312zm-34.132812-82.261718v41.644531c-9.648438-2.4375-16.574219-10.886719-17.066407-20.824219.492188-9.9375 7.417969-18.386718 17.066407-20.820312zm0 0"/><path d="m494.933594 25.601562h-128v-8.535156c-.011719-9.421875-7.644532-17.0546872-17.066406-17.066406h-187.734376c-9.421874.0117188-17.054687 7.644531-17.066406 17.066406v8.535156h-128c-9.421875.007813-17.0546872 7.644532-17.066406 17.066407v221.867187c.0117188 9.417969 7.644531 17.054688 17.066406 17.066406h128v8.53125c.011719 9.421876 7.644532 17.054688 17.066406 17.066407h187.734376c9.421874-.011719 17.054687-7.644531 17.066406-17.066407v-8.53125h128c9.421875-.011718 17.054687-7.648437 17.066406-17.066406v-221.867187c-.011719-9.421875-7.644531-17.058594-17.066406-17.066407zm-477.867188 238.933594v-221.867187h128v221.867187zm145.066406 25.597656v-273.066406h187.734376v17.066406l.007812 238.894532-.007812.039062.007812.039063v17.027343zm332.800782-25.597656h-128v-221.867187h128zm0 0"/><path d="m222.382812 362.15625c-5-4.992188-13.097656-4.992188-18.097656 0l-34.132812 34.128906c-3.660156 3.660156-4.757813 9.164063-2.777344 13.945313 1.984375 4.78125 6.648438 7.902343 11.824219 7.902343h68.265625c5.175781-.003906 9.839844-3.121093 11.820312-7.902343 1.980469-4.777344.886719-10.28125-2.769531-13.941407zm-32.882812 38.910156 23.832031-23.832031 23.835938 23.832031zm0 0"/><path d="m341.332031 358.398438h-68.265625c-5.175781.003906-9.835937 3.121093-11.816406 7.902343s-.890625 10.285157 2.765625 13.945313l34.136719 34.132812c5 4.988282 13.097656 4.988282 18.097656 0l34.132812-34.128906c3.660157-3.660156 4.753907-9.164062 2.773438-13.949219-1.980469-4.78125-6.648438-7.898437-11.824219-7.902343zm-34.132812 40.902343-23.832031-23.835937h47.667968zm0 0"/><path d="m119.464844 298.667969h-85.332032c-4.710937 0-8.53125 3.820312-8.53125 8.53125 0 4.714843 3.820313 8.535156 8.53125 8.535156h85.332032c4.714844 0 8.535156-3.820313 8.535156-8.535156 0-4.710938-3.820312-8.53125-8.535156-8.53125zm0 0"/><path d="m315.734375 341.332031c4.710937 0 8.53125-3.820312 8.53125-8.53125 0-4.714843-3.820313-8.535156-8.53125-8.535156h-119.46875c-4.710937 0-8.53125 3.820313-8.53125 8.535156 0 4.710938 3.820313 8.53125 8.53125 8.53125zm0 0"/><path d="m477.867188 298.667969h-85.332032c-4.714844 0-8.535156 3.820312-8.535156 8.53125 0 4.714843 3.820312 8.535156 8.535156 8.535156h85.332032c4.710937 0 8.53125-3.820313 8.53125-8.535156 0-4.710938-3.820313-8.53125-8.53125-8.53125zm0 0"/></svg>',
124
- 'enqueue_assets' => function(){
125
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
126
- },
127
- ));
128
-
129
- // register a Star Rating block.
130
- acf_register_block_type(array(
131
- 'name' => 'acfb-starrating',
132
- 'mode' => 'preview',
133
- 'title' => __('Star Rating'),
134
- 'description' => __('Add start ratings anywhere easily.'),
135
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/star-rating.php',
136
- 'category' => 'acfb-blocks',
137
- 'icon' => '<svg id="Outlined" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g id="Fill"><path d="M28.61,11.67H20l-2.66-8.2a1.39,1.39,0,0,0-2.64,0L12,11.67H3.39a1.39,1.39,0,0,0-.82,2.51l7,5.07L6.89,27.46a1.39,1.39,0,0,0,1.32,1.82A1.43,1.43,0,0,0,9,29l7-5.07L23,29a1.43,1.43,0,0,0,.81.27,1.39,1.39,0,0,0,1.32-1.82l-2.66-8.21,7-5.07A1.39,1.39,0,0,0,28.61,11.67Zm-7.34,6-1.17.86.44,1.38,2.09,6.41-5.45-4L16,21.46l-1.18.86-5.45,4,2.09-6.41.44-1.38-1.17-.86-5.45-4h8.19l.45-1.38L16,5.89l2.08,6.4.45,1.38h8.19Z"/></g></svg>',
138
- 'enqueue_assets' => function(){
139
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
140
- },
141
- ));
142
-
143
- // register a Progress Bar block.
144
- acf_register_block_type(array(
145
- 'name' => 'acfb-progressbar',
146
- 'mode' => 'preview',
147
- 'title' => __('Progress Bar'),
148
- 'description' => __('Show your progress using percentage defined progress bars.'),
149
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/progress-bar.php',
150
- 'category' => 'acfb-blocks',
151
- 'icon' => '<svg width="455.14px" height="455.14px" enable-background="new 0 0 455.138 455.139" version="1.1" viewBox="0 0 455.138 455.139" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
152
- <path d="m0 141.65v171.83h455.14v-171.83h-455.14zm432.72 149.42h-410.31v-127h410.31v127h-5e-3zm-328.43-19.606h-59.766v-89.652h59.767v89.652zm89.653 0h-59.765v-89.652h59.765v89.652zm93.387 0h-59.768v-89.652h59.768v89.652z"/>
153
- </svg>',
154
- 'enqueue_assets' => function(){
155
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
156
- },
157
- ));
158
-
159
- // register a Counter Number block.
160
- acf_register_block_type(array(
161
- 'name' => 'acfb-counternumber',
162
- 'mode' => 'preview',
163
- 'title' => __('Counter Number'),
164
- 'description' => __('Display stats with animated counter numbers.'),
165
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/counter-number.php',
166
- 'category' => 'acfb-blocks',
167
- 'icon' => '<svg id="Outlined" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g id="Fill"><path d="M16.71,22.29l-1.42,1.42L17.59,26H16A10,10,0,0,1,8.93,8.93L7.51,7.51A12,12,0,0,0,16,28h1.59l-2.3,2.29,1.42,1.42L20,28.41a2,2,0,0,0,0-2.82Z"/><path d="M16,4H14.41l2.3-2.29L15.29.29,12,3.59a2,2,0,0,0,0,2.82l3.29,3.3,1.42-1.42L14.41,6H16a10,10,0,0,1,7.07,17.07l1.42,1.42A12,12,0,0,0,16,4Z"/></g></svg>',
168
- 'enqueue_assets' => function(){
169
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
170
- wp_enqueue_script( 'acfb-blocks-js', plugin_dir_url( __FILE__ ) . 'js/frontend.js', array('jquery'), '', false );
171
- },
172
- ));
173
-
174
- // register a Price List block.
175
- acf_register_block_type(array(
176
- 'name' => 'acfb-pricelist',
177
- 'mode' => 'preview',
178
- 'title' => __('Price List'),
179
- 'description' => __('Display price list for any product easily.'),
180
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/price-list.php',
181
- 'category' => 'acfb-blocks',
182
- 'icon' => '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="6.list-menu" id="_6.list-menu"><line class="acfb_svg_icon" x1="1" x2="4" y1="6" y2="6"/><line class="acfb_svg_icon" x1="1" x2="4" y1="12" y2="12"/><line class="acfb_svg_icon" x1="1" x2="4" y1="18" y2="18"/><line class="acfb_svg_icon" x1="8" x2="23" y1="6" y2="6"/><line class="acfb_svg_icon" x1="8" x2="23" y1="12" y2="12"/><line class="acfb_svg_icon" x1="8" x2="23" y1="18" y2="18"/></g></svg>',
183
- 'enqueue_assets' => function(){
184
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
185
- },
186
- ));
187
-
188
- // register a Click To Tweet block.
189
- acf_register_block_type(array(
190
- 'name' => 'acfb-clicktotweet',
191
- 'mode' => 'preview',
192
- 'title' => __('Click To Tweet'),
193
- 'description' => __('Add a tweet-able quote to let your reader tweet with 1-click.'),
194
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/click-to-tweet.php',
195
- 'category' => 'acfb-blocks',
196
- 'icon' => '<svg enable-background="new 0 0 511.271 511.271" version="1.1" viewBox="0 0 511.271 511.271" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
197
- <path d="m508.34 94.243c-2.603-2.603-6.942-3.471-10.414-2.603l-17.356 6.075c10.414-12.149 17.356-25.166 21.695-37.315 1.736-4.339 0.868-7.81-1.736-10.414-2.603-2.603-6.942-3.471-10.414-1.736-24.298 10.414-45.125 19.092-62.481 24.298 0 0.868-0.868 0-1.736 0-13.885-7.81-47.729-25.166-72.027-25.166-61.614 0.868-111.08 52.936-111.08 116.28v3.471c-90.251-17.356-139.72-43.39-193.52-99.797l-8.676-8.678-5.207 10.414c-29.505 56.407-8.678 107.61 25.166 142.32-15.62-2.603-26.034-7.81-35.58-15.62-3.471-2.603-7.81-3.471-12.149-0.868-3.471 1.736-5.207 6.942-4.339 11.281 12.149 40.786 42.522 73.763 75.498 93.722-15.62 0-28.637-1.736-41.654-10.414-3.471-1.736-8.678-1.736-12.149 0.868s-5.207 6.942-3.471 11.281c15.62 44.258 45.993 67.688 94.59 73.763-25.166 14.753-58.142 26.902-109.34 27.77-5.207 0-9.546 3.471-11.281 7.81-1.736 5.207 0 9.546 3.471 13.017 31.241 25.166 100.66 39.919 186.58 39.919 152.73 0 277.7-136.24 277.7-303.73v-2.603c19.092-9.546 34.712-27.77 42.522-52.936 0.867-3.472-1e-3 -7.811-2.604-10.414zm-52.068 49.464l-5.207 1.736v14.753c0 157.94-117.15 286.37-260.34 286.37-78.97 0-131.9-13.017-160.54-26.902 59.878-4.339 94.59-23.431 121.49-44.258l21.695-15.62h-26.034c-49.464 0-79.837-13.885-97.193-46.861 15.62 5.207 32.108 5.207 50.332 4.339 6.942-0.868 13.885-0.868 20.827-0.868l2.603-17.356c-32.976-9.546-72.027-39.051-91.119-78.969 17.356 7.81 36.447 9.546 53.803 9.546h26.902l-21.694-15.621c-18.224-13.017-72.027-59.01-45.993-124.96 55.539 54.671 108.48 79.837 203.93 97.193l10.414 1.736v-24.298c0-53.803 41.654-98.061 93.722-98.929 19.959-0.868 52.936 17.356 62.481 22.563 5.207 2.603 10.414 3.471 15.62 1.736 13.017-4.339 28.637-10.414 45.993-17.356-7.81 13.017-18.224 25.166-32.108 36.448-3.471 2.603-4.339 7.81-2.603 12.149s6.942 6.075 11.281 4.339l33.844-11.281c-6.075 11.28-15.621 24.297-32.109 30.371z"/>
198
- </svg>',
199
- 'enqueue_assets' => function(){
200
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
201
- },
202
- ));
203
-
204
-
205
- // register a Post block.
206
- acf_register_block_type(array(
207
- 'name' => 'acfb-posts',
208
- 'mode' => 'preview',
209
- 'title' => __('Posts'),
210
- 'description' => __('Display a grid or list of your blog posts.'),
211
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/posts.php',
212
- 'category' => 'acfb-blocks',
213
- 'icon' => '<svg enable-background="new 0 0 512 512" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
214
- <path d="M0,30v452h512V30H0z M482,452H30V120h452V452z M482,90H30V60h452V90z"/>
215
- <path d="M271,160v252h181V160H271z M422,382H301V190h121V382z"/>
216
- <rect x="60" y="160" width="181" height="30"/>
217
- <rect x="60" y="220" width="121" height="30"/>
218
- <rect x="60" y="300" width="181" height="30"/>
219
- <rect x="60" y="360" width="121" height="30"/>
220
- </svg>',
221
- 'enqueue_assets' => function(){
222
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
223
- },
224
- ));
225
-
226
- // register a Photo Collage block.
227
- acf_register_block(array(
228
- 'name' => 'acfb-photocollage',
229
- 'mode' => 'preview',
230
- 'title' => __('Photo Collage'),
231
- 'description' => __('Display beautiful photo collage using pre-made templates.'),
232
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/photo-collage.php',
233
- 'category' => 'acfb-blocks',
234
- 'icon' => '<svg enable-background="new 0 0 140.637 140.637" version="1.1" viewBox="0 0 140.64 140.64" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
235
- <path d="m138.14 140.61h-135.64c-1.381 0-2.5-1.119-2.5-2.5v-135.59c0-1.381 1.119-2.5 2.5-2.5h135.64c1.381 0 2.5 1.119 2.5 2.5v135.59c0 1.381-1.119 2.5-2.5 2.5zm-50.637-5h48.091v-17.599h-48.091v17.599zm-53.138 0h48.138v-17.599h-48.138v17.599zm-29.362 0h24.362v-17.599h-24.362v17.599zm106.27-22.599h24.317v-17.598h-24.317v17.598zm-26.273 0h21.273v-17.598h-48.136v17.599h26.863zm-53.138 0h21.274v-17.598h-48.136v17.599h26.862zm76.911-22.598h26.817v-17.599h-48.09v17.598h21.273zm-53.136 0h26.863v-17.599h-48.138v17.598h21.275zm-50.637 0h24.362v-17.599h-24.362v17.599zm106.27-22.599h24.317v-17.598h-24.317v17.598zm-26.273 0h21.273v-17.598h-48.136v17.599h26.863zm-53.138 0h21.274v-17.598h-48.136v17.599h26.862zm76.911-22.598h26.817v-17.599h-48.09v17.599h21.273zm-53.136 0h26.863v-17.599h-48.138v17.599h21.275zm-50.637 0h24.362v-17.599h-24.362v17.599zm106.27-22.599h24.317v-17.598h-24.317v17.598zm-26.273 0h21.273v-17.598h-48.136v17.598h26.863zm-53.138 0h21.274v-17.598h-48.136v17.598h26.862z"/>
236
- </svg>',
237
- 'enqueue_assets' => function(){
238
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
239
- },
240
- ));
241
-
242
- // register a Social Sharing Block.
243
- acf_register_block(array(
244
- 'name' => 'acfb-socialsharing',
245
- 'mode' => 'preview',
246
- 'title' => __('Social Sharing'),
247
- 'description' => __('Super fast and customizable Social Media Sharing Buttons for WordPress. No JavaScript. No tracking.'),
248
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/social-sharing.php',
249
- 'category' => 'acfb-blocks',
250
- 'icon' => '<svg enable-background="new 0 0 481.6 481.6" version="1.1" viewBox="0 0 481.6 481.6" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
251
- <path d="m381.6 309.4c-27.7 0-52.4 13.2-68.2 33.6l-132.3-73.9c3.1-8.9 4.8-18.5 4.8-28.4 0-10-1.7-19.5-4.9-28.5l132.2-73.8c15.7 20.5 40.5 33.8 68.3 33.8 47.4 0 86.1-38.6 86.1-86.1s-38.6-86.1-86.1-86.1-86.1 38.6-86.1 86.1c0 10 1.7 19.6 4.9 28.5l-132.1 73.8c-15.7-20.6-40.5-33.8-68.3-33.8-47.4 0-86.1 38.6-86.1 86.1s38.7 86.1 86.2 86.1c27.8 0 52.6-13.3 68.4-33.9l132.2 73.9c-3.2 9-5 18.7-5 28.7 0 47.4 38.6 86.1 86.1 86.1s86.1-38.6 86.1-86.1-38.7-86.1-86.2-86.1zm0-282.3c32.6 0 59.1 26.5 59.1 59.1s-26.5 59.1-59.1 59.1-59.1-26.5-59.1-59.1 26.6-59.1 59.1-59.1zm-281.6 272.7c-32.6 0-59.1-26.5-59.1-59.1s26.5-59.1 59.1-59.1 59.1 26.5 59.1 59.1-26.6 59.1-59.1 59.1zm281.6 154.7c-32.6 0-59.1-26.5-59.1-59.1s26.5-59.1 59.1-59.1 59.1 26.5 59.1 59.1-26.5 59.1-59.1 59.1z"/>
252
- </svg>',
253
- 'enqueue_assets' => function(){
254
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
255
- },
256
- ));
257
-
258
- //Register a Image Slider Block
259
- acf_register_block(array(
260
- 'name' => 'acfb-image-slider',
261
- 'mode' => 'preview',
262
- 'title' => __('Image Slider'),
263
- 'description' => __('Display your images as a slider or carousel.'),
264
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/image-slider.php',
265
- 'category' => 'acfb-blocks',
266
- 'icon' => '<svg width="682pt" height="682pt" viewBox="-21 -91 682.66669 682" xmlns="http://www.w3.org/2000/svg">
267
- <path d="m639.98 7.5312c-0.33594-6.6172-5.7969-11.863-12.484-11.863h-615c-6.6875 0-12.148 5.2461-12.484 11.863-0.015625 0.21484-0.015625 0.42578-0.015625 0.64062v474.99c0 6.9062 5.6016 12.508 12.5 12.508h615c6.8984 0 12.5-5.6016 12.5-12.508v-474.99c0-0.21484 0-0.42578-0.015625-0.64062zm-24.984 463.12h-590v-367.46h590zm0-392.46h-590v-57.668h590z"/>
268
- <path d="m213.75 62.723h-100c-6.9062 0-12.5-5.5977-12.5-12.5 0-6.9102 5.5938-12.504 12.5-12.504h100c6.9062 0 12.5 5.5938 12.5 12.504 0 6.9023-5.5938 12.5-12.5 12.5z"/>
269
- <path d="m63.773 62.723c-6.9023 0-12.504-5.5977-12.504-12.5 0-6.9102 5.5898-12.504 12.496-12.504h0.007813c6.9062 0 12.5 5.5938 12.5 12.504 0 6.9023-5.5938 12.5-12.5 12.5z"/>
270
- <path d="m558.75 176.72h-50v-11.258c0-13.789-11.211-25.004-25-25.004h-327.5c-13.789 0-25 11.215-25 25.004v11.258h-50c-13.789 0-25 11.215-25 25.004v127.54c0 13.793 11.211 25.008 25 25.008h50v11.258c0 13.789 11.211 25.004 25 25.004h327.5c13.789 0 25-11.215 25-25.004v-11.258h50c13.789 0 25-11.215 25-25.008v-127.54c0-13.789-11.211-25.004-25-25.004zm-427.5 152.54h-50v-127.54h50l0.015625 127.54s0 0-0.015625 0zm352.52 36.266s0 0-0.015625 0h-327.5v-200.07h327.5v36.266l0.015625 127.89zm74.984-36.266h-50v-127.54h50l0.015625 127.54s0 0-0.015625 0z"/>
271
- <path d="m230.8 314.23c-3.125 0-6.2539-1.168-8.6836-3.5117l-37.5-36.227c-2.4375-2.3555-3.8164-5.6055-3.8164-8.9922 0-3.3945 1.3789-6.6406 3.8164-9l37.5-36.227c4.9727-4.793 12.879-4.6562 17.68 0.30859 4.793 4.9727 4.6562 12.887-0.30859 17.68l-28.195 27.238 28.195 27.23c4.9648 4.8008 5.1016 12.715 0.30859 17.68-2.457 2.5391-5.7266 3.8203-8.9961 3.8203z"/>
272
- <path d="m410.45 314.23c-3.2695 0-6.5391-1.2812-8.9961-3.8203-4.793-4.9648-4.6562-12.883 0.30859-17.68l28.195-27.234-28.195-27.234c-4.9648-4.793-5.1016-12.715-0.30859-17.68 4.8008-4.9648 12.711-5.1016 17.68-0.30859l37.5 36.227c2.4375 2.3594 3.8164 5.6055 3.8164 8.9961 0 3.3906-1.3789 6.6406-3.8164 8.9961l-37.5 36.227c-2.4297 2.3438-5.5586 3.5117-8.6836 3.5117z"/>
273
- <path d="m320.02 435.65c-6.9023 0-12.504-5.5977-12.504-12.5 0-6.9062 5.5898-12.508 12.496-12.508h0.007813c6.9062 0 12.5 5.6016 12.5 12.508 0 6.9023-5.5938 12.5-12.5 12.5z"/>
274
- <path d="m370.02 435.65c-6.9023 0-12.504-5.5977-12.504-12.5 0-6.9062 5.5898-12.508 12.496-12.508h0.007813c6.9062 0 12.5 5.6016 12.5 12.508 0 6.9023-5.5938 12.5-12.5 12.5z"/>
275
- <path d="m270.02 435.65c-6.9023 0-12.504-5.5977-12.504-12.5 0-6.9062 5.5898-12.508 12.496-12.508h0.007813c6.9062 0 12.5 5.6016 12.5 12.508 0 6.9023-5.5938 12.5-12.5 12.5z"/>
276
- </svg>',
277
- 'enqueue_assets' => function(){
278
- wp_enqueue_style( 'acfb-image-slider-css', plugin_dir_url( __FILE__ ) . 'css/swiper.min.css' );
279
- wp_enqueue_script('jQuery');
280
- wp_enqueue_script( 'acfb-image-slider-swiper-js' ,plugin_dir_url( __FILE__ ) . 'js/swiper.min.js', array('jquery'), '', true );
281
-
282
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
283
-
284
- wp_enqueue_script( 'acfb-image-slider-custom' ,plugin_dir_url( __FILE__ ) . 'js/image-slider.js', array('jquery'), '', true );
285
- },
286
- ));
287
-
288
-
289
- // register a Tabs Block.
290
- acf_register_block(array(
291
- 'name' => 'acfb-tabs',
292
- 'mode' => 'preview',
293
- 'title' => __('Tabs'),
294
- 'description' => __('Add tabbed content in your posts/pages.'),
295
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/tabs.php',
296
- 'category' => 'acfb-blocks',
297
- 'icon' => '<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M861.29152 933.87264H162.70848c-40.08448 0-72.58112-32.49664-72.58112-72.58624V162.70848c0-40.08448 32.49664-72.58112 72.58112-72.58112h203.10016V222.72h568.06912v638.58176c-0.00512 40.07936-32.49664 72.57088-72.58624 72.57088z m5.74976-644.3264H156.95872v524.05248c0 34.12992 27.66336 61.7984 61.7984 61.7984h586.48064c34.12992 0 61.7984-27.66848 61.7984-61.7984V289.54624z m-200.49408-199.41888h194.74432c40.0896 0 72.58624 32.49664 72.58624 72.58112v34.944h-267.33056V90.12736z m-275.67616 0h250.61888v107.52512H390.87104V90.12736z"/></svg>',
298
- 'enqueue_assets' => function(){
299
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
300
- wp_enqueue_script( 'acfb-tabs-js', plugin_dir_url( __FILE__ ) . 'js/tabs.js', array('jquery'), '', true );
301
- },
302
- ));
303
-
304
- // register a Toggle Block.
305
- acf_register_block(array(
306
- 'name' => 'acfb-toggle',
307
- 'mode' => 'preview',
308
- 'title' => __('Toggle'),
309
- 'description' => __('Add toggleable content in your pages/posts.'),
310
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/toggle.php',
311
- 'category' => 'acfb-blocks',
312
- 'icon' => '<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l0 1024 1024 0 0-1024-1024 0zM963.764706 60.235294l0 542.117647-903.529412 0 0-542.117647 903.529412 0zM963.764706 662.588235l0 120.470588-903.529412 0 0-120.470588 903.529412 0zM60.235294 963.764706l0-120.470588 903.529412 0 0 120.470588-903.529412 0z" /></svg>',
313
- 'enqueue_assets' => function(){
314
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
315
- wp_enqueue_script( 'acfb-toggle-js', plugin_dir_url( __FILE__ ) . 'js/toggle.js', array('jquery'), '', true );
316
- },
317
- ));
318
-
319
- // register a Accordion Block.
320
- acf_register_block(array(
321
- 'name' => 'acfb-accordion',
322
- 'mode' => 'preview',
323
- 'title' => __('Accordion'),
324
- 'description' => __('Add accordion content in your pages/posts.'),
325
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/accordion.php',
326
- 'category' => 'acfb-blocks',
327
- 'icon' => '<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v180.705882h1024V0H0z m963.764706 120.470588H60.235294V60.235294h903.529412v60.235294zM0 783.058824h1024V240.941176H0v542.117648z m60.235294-481.882353h903.529412v421.647058H60.235294V301.176471zM0 1024h1024v-180.705882H0v180.705882z m60.235294-120.470588h903.529412v60.235294H60.235294v-60.235294z" /></svg>',
328
- 'enqueue_assets' => function(){
329
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
330
- wp_enqueue_script( 'acfb-accordion-js', plugin_dir_url( __FILE__ ) . 'js/accordion.js', array('jquery'), '', true );
331
- },
332
- ));
333
-
334
-
335
- // register a Scrollable Image Block.
336
- acf_register_block(array(
337
- 'name' => 'acfb-scrollable-image',
338
- 'mode' => 'preview',
339
- 'title' => __('Scrollable Image'),
340
- 'description' => __('Add Scrollable Image in your pages/posts.'),
341
- 'render_template' => plugin_dir_path( __FILE__ ) . 'block-templates/scrollable-image.php',
342
- 'category' => 'acfb-blocks',
343
- 'icon' => '<svg height="512pt" viewBox="-90 0 512 512" width="512pt" xmlns="http://www.w3.org/2000/svg"><path d="m166.238281 430.144531-89.769531-94.898437 29.058594-27.488282 60.632812 64.097657 60.273438-64.058594 29.132812 27.410156zm165.761719-38.144531v-272c0-66.167969-53.832031-120-120-120h-92c-66.167969 0-120 53.832031-120 120v272c0 66.167969 53.832031 120 120 120h92c66.167969 0 120-53.832031 120-120zm-120-352c44.113281 0 80 35.886719 80 80v272c0 44.113281-35.886719 80-80 80h-92c-44.113281 0-80-35.886719-80-80v-272c0-44.113281 35.886719-80 80-80zm-46 41c-11.046875 0-20 8.953125-20 20s8.953125 20 20 20 20-8.953125 20-20-8.953125-20-20-20zm0 80c-11.046875 0-20 8.953125-20 20s8.953125 20 20 20 20-8.953125 20-20-8.953125-20-20-20zm0 80c-11.046875 0-20 8.953125-20 20s8.953125 20 20 20 20-8.953125 20-20-8.953125-20-20-20zm0 0"/></svg>',
344
- 'enqueue_assets' => function(){
345
- wp_enqueue_style( 'acfb-blocks-css', plugin_dir_url( __FILE__ ) . 'css/acfblocks.css' );
346
- },
347
- ));
348
-
349
  }
350
 
351
- }
352
-
353
-
354
-
355
- // Save Acf
356
- add_filter('acf/settings/save_json', 'acfb_json_save_point');
357
- function acfb_json_save_point( $acfb_path ) {
 
 
358
 
359
- // update path
360
- $acfb_path = plugin_dir_path( __FILE__ ) . '/acf-json';
 
 
 
 
 
 
 
 
 
 
 
361
 
362
- // return
363
- return $acfb_path;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
 
365
- }
366
-
367
-
368
- // Load Acf
369
- add_filter('acf/settings/load_json', 'acfb_json_load_point');
370
- function acfb_json_load_point( $acfb_path ) {
 
 
 
 
 
 
 
 
 
 
 
 
371
 
372
- // remove original path (optional)
373
- unset($acfb_path[0]);
 
 
 
 
 
 
374
 
375
- // append path
376
- $acfb_path[] = plugin_dir_path( __FILE__ ) . '/acf-json';
 
 
 
 
 
 
 
377
 
378
- // return
379
- return $acfb_path;
 
 
 
 
 
 
 
 
380
 
381
- }
382
-
383
-
384
-
385
-
386
- // Excerpt Limit
387
- function acfb_excerpt($acfb_excerpt_limit) {
388
- $acfb_excerpt = explode(' ', get_the_excerpt(), $acfb_excerpt_limit);
389
- if (count($acfb_excerpt)>=$acfb_excerpt_limit) {
390
- array_pop($acfb_excerpt);
391
- $acfb_excerpt = implode(" ",$acfb_excerpt).'...';
392
- } else {
393
- $acfb_excerpt = implode(" ",$acfb_excerpt);
394
- }
395
- $acfb_excerpt = preg_replace('`[[^]]*]`','',$acfb_excerpt);
396
- return $acfb_excerpt;
397
- }
398
-
399
-
400
-
401
-
402
- // Default Value in post List Elements
403
- add_filter('acf/load_value/name=acfb_post_list_elements', 'acfb_post_list_elements_defaults', 10, 3);
404
- function acfb_post_list_elements_defaults($value, $post_id, $field) {
405
- if ($value !== NULL) {
406
- // $value will only be NULL on a new post
407
- return $value;
 
 
 
 
 
 
 
 
 
 
408
  }
409
- // add default layouts
410
- $value = array(
411
- array(
412
- 'acf_fc_layout' => 'post_list_title'
413
- ),
414
- array(
415
- 'acf_fc_layout' => 'post_list_meta_data'
416
- ),
417
- array(
418
- 'acf_fc_layout' => 'post_list_content'
419
- ),
420
- array(
421
- 'acf_fc_layout' => 'post_list_read_more_button'
422
- )
423
- );
424
- return $value;
425
-
426
- }
427
-
428
-
429
-
430
- // Default Value in post Grid Elements
431
- add_filter('acf/load_value/name=acfb_post_grid_elements', 'acfb_post_grid_elements_defaults', 10, 3);
432
- function acfb_post_grid_elements_defaults($value, $post_id, $field) {
433
- if ($value !== NULL) {
434
- // $value will only be NULL on a new post
435
- return $value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  }
437
- // add default layouts
438
- $value = array(
439
- array(
440
- 'acf_fc_layout' => 'post_grid_image'
441
- ),
442
- array(
443
- 'acf_fc_layout' => 'post_grid_title'
444
- ),
445
- array(
446
- 'acf_fc_layout' => 'post_grid_meta_data'
447
- ),
448
- array(
449
- 'acf_fc_layout' => 'post_grid_content'
450
- ),
451
- array(
452
- 'acf_fc_layout' => 'post_grid_read_more_button'
453
- )
454
- );
455
- return $value;
456
- }
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
- add_filter('acf/load_field/name=2_grid_layouts', 'acfb_two_grid_icons');
465
- function acfb_two_grid_icons( $field ) {
466
-
467
- $field['choices'] = array(
468
- 'one' => '<img src="' . plugins_url( 'img/gtwo-one.png', __FILE__ ) . '" />',
469
- 'two' => '<img src="' . plugins_url( 'img/gtwo-two.png', __FILE__ ) . '" />'
470
- );
471
-
472
- return $field;
473
- }
474
-
475
- add_filter('acf/load_field/name=3_grid_layouts', 'acfb_three_grid_icons');
476
- function acfb_three_grid_icons( $field ) {
477
-
478
- $field['choices'] = array(
479
- 'one' => '<img src="' . plugins_url( 'img/gthree-one.png', __FILE__ ) . '" />',
480
- 'two' => '<img src="' . plugins_url( 'img/gthree-two.png', __FILE__ ) . '" />',
481
- 'three' => '<img src="' . plugins_url( 'img/gthree-three.png', __FILE__ ) . '" />',
482
- 'four' => '<img src="' . plugins_url( 'img/gthree-four.png', __FILE__ ) . '" />',
483
- 'five' => '<img src="' . plugins_url( 'img/gthree-five.png', __FILE__ ) . '" />',
484
- 'six' => '<img src="' . plugins_url( 'img/gthree-six.png', __FILE__ ) . '" />'
485
- );
486
-
487
- return $field;
488
- }
489
-
490
-
491
- add_filter('acf/load_field/name=4_grid_layouts', 'acfb_four_grid_icons');
492
- function acfb_four_grid_icons( $field ) {
493
-
494
- $field['choices'] = array(
495
- 'one' => '<img src="' . plugins_url( 'img/gfour-one.png', __FILE__ ) . '" />',
496
- 'two' => '<img src="' . plugins_url( 'img/gfour-two.png', __FILE__ ) . '" />',
497
- 'three' => '<img src="' . plugins_url( 'img/gfour-three.png', __FILE__ ) . '" />',
498
- 'four' => '<img src="' . plugins_url( 'img/gfour-four.png', __FILE__ ) . '" />',
499
- 'five' => '<img src="' . plugins_url( 'img/gfour-five.png', __FILE__ ) . '" />',
500
- 'six' => '<img src="' . plugins_url( 'img/gfour-six.png', __FILE__ ) . '" />',
501
- 'seven' => '<img src="' . plugins_url( 'img/gfour-seven.png', __FILE__ ) . '" />',
502
- 'eight' => '<img src="' . plugins_url( 'img/gfour-eight.png', __FILE__ ) . '" />',
503
- 'nine' => '<img src="' . plugins_url( 'img/gfour-nine.png', __FILE__ ) . '" />',
504
- 'ten' => '<img src="' . plugins_url( 'img/gfour-ten.png', __FILE__ ) . '" />',
505
- 'eleven' => '<img src="' . plugins_url( 'img/gfour-eleven.png', __FILE__ ) . '" />',
506
- 'twelve' => '<img src="' . plugins_url( 'img/gfour-twelve.png', __FILE__ ) . '" />',
507
- 'thirteen' => '<img src="' . plugins_url( 'img/gfour-thirteen.png', __FILE__ ) . '" />',
508
- 'fourteen' => '<img src="' . plugins_url( 'img/gfour-fourteen.png', __FILE__ ) . '" />',
509
- 'fifteen' => '<img src="' . plugins_url( 'img/gfour-fifteen.png', __FILE__ ) . '" />',
510
- );
511
 
512
- return $field;
513
  }
514
 
515
-
516
-
517
-
518
-
519
-
520
- add_filter('acf/load_field/name=social_network', 'Social_icons');
521
- function Social_icons( $field ) {
522
-
523
- $field['choices'] = array(
524
- '1' => '<svg class="acfb_social_icons acfb_social_facebook_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
525
- '2' => '<svg class="acfb_social_icons acfb_social_twitter_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
526
- '3' => '<svg class="acfb_social_icons acfb_social_email_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
527
- '4' => '<svg class="acfb_social_icons acfb_social_pinterest_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.14.5C5.86.5 2.7 5 2.7 8.75c0 2.27.86 4.3 2.7 5.05.3.12.57 0 .66-.33l.27-1.06c.1-.32.06-.44-.2-.73-.52-.62-.86-1.44-.86-2.6 0-3.33 2.5-6.32 6.5-6.32 3.55 0 5.5 2.17 5.5 5.07 0 3.8-1.7 7.02-4.2 7.02-1.37 0-2.4-1.14-2.07-2.54.4-1.68 1.16-3.48 1.16-4.7 0-1.07-.58-1.98-1.78-1.98-1.4 0-2.55 1.47-2.55 3.42 0 1.25.43 2.1.43 2.1l-1.7 7.2c-.5 2.13-.08 4.75-.04 5 .02.17.22.2.3.1.14-.18 1.82-2.26 2.4-4.33.16-.58.93-3.63.93-3.63.45.88 1.8 1.65 3.22 1.65 4.25 0 7.13-3.87 7.13-9.05C20.5 4.15 17.18.5 12.14.5z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
528
- '5' => '<svg class="acfb_social_icons acfb_social_linkedin_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
529
- '6' => '<svg class="acfb_social_icons acfb_social_reddit_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 11.5c0-1.65-1.35-3-3-3-.96 0-1.86.48-2.42 1.24-1.64-1-3.75-1.64-6.07-1.72.08-1.1.4-3.05 1.52-3.7.72-.4 1.73-.24 3 .5C17.2 6.3 18.46 7.5 20 7.5c1.65 0 3-1.35 3-3s-1.35-3-3-3c-1.38 0-2.54.94-2.88 2.22-1.43-.72-2.64-.8-3.6-.25-1.64.94-1.95 3.47-2 4.55-2.33.08-4.45.7-6.1 1.72C4.86 8.98 3.96 8.5 3 8.5c-1.65 0-3 1.35-3 3 0 1.32.84 2.44 2.05 2.84-.03.22-.05.44-.05.66 0 3.86 4.5 7 10 7s10-3.14 10-7c0-.22-.02-.44-.05-.66 1.2-.4 2.05-1.54 2.05-2.84zM2.3 13.37C1.5 13.07 1 12.35 1 11.5c0-1.1.9-2 2-2 .64 0 1.22.32 1.6.82-1.1.85-1.92 1.9-2.3 3.05zm3.7.13c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm9.8 4.8c-1.08.63-2.42.96-3.8.96-1.4 0-2.74-.34-3.8-.95-.24-.13-.32-.44-.2-.68.15-.24.46-.32.7-.18 1.83 1.06 4.76 1.06 6.6 0 .23-.13.53-.05.67.2.14.23.06.54-.18.67zm.2-2.8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm5.7-2.13c-.38-1.16-1.2-2.2-2.3-3.05.38-.5.97-.82 1.6-.82 1.1 0 2 .9 2 2 0 .84-.53 1.57-1.3 1.87z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
530
- '7' => '<svg class="acfb_social_icons acfb_social_xing_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.2 9.7l-3-5.4C7.2 4 7 4 6.8 4h-5c-.3 0-.4 0-.5.2v.5L4 10 .4 16v.5c0 .2.2.3.4.3h5c.3 0 .4 0 .5-.2l4-6.6v-.5zM24 .2l-.5-.2H18s-.2 0-.3.3l-8 14v.4l5.2 9c0 .2 0 .3.3.3h5.4s.3 0 .4-.2c.2-.2.2-.4 0-.5l-5-8.8L24 .7V.2z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
531
- '8' => '<svg class="acfb_social_icons acfb_social_whatsapp_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.1 3.9C17.9 1.7 15 .5 12 .5 5.8.5.7 5.6.7 11.9c0 2 .5 3.9 1.5 5.6L.6 23.4l6-1.6c1.6.9 3.5 1.3 5.4 1.3 6.3 0 11.4-5.1 11.4-11.4-.1-2.8-1.2-5.7-3.3-7.8zM12 21.4c-1.7 0-3.3-.5-4.8-1.3l-.4-.2-3.5 1 1-3.4L4 17c-1-1.5-1.4-3.2-1.4-5.1 0-5.2 4.2-9.4 9.4-9.4 2.5 0 4.9 1 6.7 2.8 1.8 1.8 2.8 4.2 2.8 6.7-.1 5.2-4.3 9.4-9.5 9.4zm5.1-7.1c-.3-.1-1.7-.9-1.9-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.1-.2.2-.3.2-.6.1s-1.2-.5-2.3-1.4c-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6s.3-.3.4-.5c.2-.1.3-.3.4-.5.1-.2 0-.4 0-.5C10 9 9.3 7.6 9 7c-.1-.4-.4-.3-.5-.3h-.6s-.4.1-.7.3c-.3.3-1 1-1 2.4s1 2.8 1.1 3c.1.2 2 3.1 4.9 4.3.7.3 1.2.5 1.6.6.7.2 1.3.2 1.8.1.6-.1 1.7-.7 1.9-1.3.2-.7.2-1.2.2-1.3-.1-.3-.3-.4-.6-.5z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
532
- '9' => '<svg class="acfb_social_icons acfb_social_hackernews_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140"><path fill-rule="evenodd" d="M60.94 82.314L17 0h20.08l25.85 52.093c.397.927.86 1.888 1.39 2.883.53.994.995 2.02 1.393 3.08.265.4.463.764.596 1.095.13.334.262.63.395.898.662 1.325 1.26 2.618 1.79 3.877.53 1.26.993 2.42 1.39 3.48 1.06-2.254 2.22-4.673 3.48-7.258 1.26-2.585 2.552-5.27 3.877-8.052L103.49 0h18.69L77.84 83.308v53.087h-16.9v-54.08z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
533
- '10' => '<svg class="acfb_social_icons acfb_social_vk_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.547 7h-3.29a.743.743 0 0 0-.655.392s-1.312 2.416-1.734 3.23C14.734 12.813 14 12.126 14 11.11V7.603A1.104 1.104 0 0 0 12.896 6.5h-2.474a1.982 1.982 0 0 0-1.75.813s1.255-.204 1.255 1.49c0 .42.022 1.626.04 2.64a.73.73 0 0 1-1.272.503 21.54 21.54 0 0 1-2.498-4.543.693.693 0 0 0-.63-.403h-2.99a.508.508 0 0 0-.48.685C3.005 10.175 6.918 18 11.38 18h1.878a.742.742 0 0 0 .742-.742v-1.135a.73.73 0 0 1 1.23-.53l2.247 2.112a1.09 1.09 0 0 0 .746.295h2.953c1.424 0 1.424-.988.647-1.753-.546-.538-2.518-2.617-2.518-2.617a1.02 1.02 0 0 1-.078-1.323c.637-.84 1.68-2.212 2.122-2.8.603-.804 1.697-2.507.197-2.507z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
534
- '11' => '<svg class="acfb_social_icons acfb_social_telegram_main"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.707 8.475C.275 8.64 0 9.508 0 9.508s.284.867.718 1.03l5.09 1.897 1.986 6.38a1.102 1.102 0 0 0 1.75.527l2.96-2.41a.405.405 0 0 1 .494-.013l5.34 3.87a1.1 1.1 0 0 0 1.046.135 1.1 1.1 0 0 0 .682-.803l3.91-18.795A1.102 1.102 0 0 0 22.5.075L.706 8.475z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
535
- );
536
-
537
- return $field;
538
- }
1
  <?php
2
+
3
  /**
4
  * Plugin Name: ACF Blocks
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: 1.7.0
8
  * Author: munirkamal
9
  * Author URI: https://munirkamal.wordpress.com
10
  * License: GPL2
12
  * Text Domain: acfb
13
  * Domain Path: /languages
14
  */
15
+ if ( !defined( 'ABSPATH' ) ) {
16
+ exit;
17
+ }
18
 
19
+ if ( function_exists( 'acfb_fs' ) ) {
20
+ acfb_fs()->set_basename( false, __FILE__ );
21
+ } else {
22
+
23
+ if ( !function_exists( 'acfb_fs' ) ) {
24
+ function acfb_fs()
25
+ {
26
+ global $acfb_fs ;
27
+
28
+ if ( !isset( $acfb_fs ) ) {
29
+ // Include Freemius SDK.
30
+ require_once dirname( __FILE__ ) . '/freemius/start.php';
31
+ $acfb_fs = fs_dynamic_init( array(
32
+ 'id' => '3703',
33
+ 'slug' => 'acf-blocks',
34
+ 'premium_slug' => 'acf-blocks-pro',
35
+ 'type' => 'plugin',
36
+ 'public_key' => 'pk_5e62b729dd843294873241dcc6402',
37
+ 'is_premium' => false,
38
+ 'premium_suffix' => 'pro',
39
+ 'has_addons' => false,
40
+ 'has_paid_plans' => true,
41
+ 'trial' => array(
42
+ 'days' => 7,
43
+ 'is_require_payment' => false,
44
  ),
45
+ 'menu' => array(
46
+ 'slug' => 'acf-blocks',
47
+ 'support' => false,
48
+ ),
49
+ 'is_live' => true,
50
+ ) );
51
+ }
52
+
53
+ return $acfb_fs;
54
  }
55
+
56
+ // Init Freemius.
57
+ acfb_fs();
58
+ // Signal that SDK was initiated.
59
+ do_action( 'acfb_fs_loaded' );
60
  }
61
+
62
+
63
+ if ( !function_exists( 'acfb_fs' ) ) {
64
+ // Create a helper function for easy SDK access.
65
+ function acfb_fs()
66
+ {
67
+ global $acfb_fs ;
68
+
69
+ if ( !isset( $acfb_fs ) ) {
70
+ // Include Freemius SDK.
71
+ require_once dirname( __FILE__ ) . '/freemius/start.php';
72
+ $acfb_fs = fs_dynamic_init( array(
73
+ 'id' => '3703',
74
+ 'slug' => 'acf-blocks',
75
+ 'premium_slug' => 'acf-blocks-pro',
76
+ 'type' => 'plugin',
77
+ 'public_key' => 'pk_5e62b729dd843294873241dcc6402',
78
+ 'is_premium' => false,
79
+ 'premium_suffix' => 'pro',
80
+ 'has_addons' => false,
81
+ 'has_paid_plans' => true,
82
+ 'menu' => array(
83
+ 'slug' => 'acf-blocks',
84
+ ),
85
+ 'is_live' => true,
86
+ ) );
87
+ }
88
+
89
+ return $acfb_fs;
90
+ }
91
+
92
+ // Init Freemius.
93
+ acfb_fs();
94
+ // Signal that SDK was initiated.
95
+ do_action( 'acfb_fs_loaded' );
96
+ }
97
+
98
+ $free_blocks_init = plugin_dir_path( __FILE__ ) . 'free-acf-blocks.php';
99
+ $pro_blocks_init = plugin_dir_path( __FILE__ ) . 'pro-acf-blocks.php';
100
+ if ( file_exists( $free_blocks_init ) ) {
101
+ require_once $free_blocks_init;
102
+ }
103
+ if ( file_exists( $pro_blocks_init ) ) {
104
+ require_once $pro_blocks_init;
105
+ }
106
+ // Add Custom Blocks Panel in Gutenberg
107
+ function acfb_block_categories( $categories, $post )
108
+ {
109
+ return array_merge( $categories, array( array(
110
+ 'slug' => 'acfb-blocks',
111
+ 'title' => __( 'ACF Blocks', 'acfblocks-master' ),
112
+ ) ) );
113
+ }
114
+
115
+ add_filter(
116
+ 'block_categories',
117
+ 'acfb_block_categories',
118
+ 10,
119
+ 2
120
+ );
121
+ // Save Acf
122
+ add_filter( 'acf/settings/save_json', 'acfb_json_save_point' );
123
+ function acfb_json_save_point( $acfb_path )
124
+ {
125
+ // update path
126
+ $acfb_path = plugin_dir_path( __FILE__ ) . '/acf-json';
127
+ // return
128
+ return $acfb_path;
129
+ }
130
+
131
+ // Load Acf
132
+ add_filter( 'acf/settings/load_json', 'acfb_json_load_point' );
133
+ function acfb_json_load_point( $acfb_path )
134
+ {
135
+ // remove original path (optional)
136
+ unset( $acfb_path[0] );
137
+ // append path
138
+ $acfb_path[] = plugin_dir_path( __FILE__ ) . '/acf-json';
139
+ // return
140
+ return $acfb_path;
141
+ }
142
+
143
+ // Excerpt Limit
144
+ function acfb_excerpt( $acfb_excerpt_limit )
145
+ {
146
+ $acfb_excerpt = explode( ' ', get_the_excerpt(), $acfb_excerpt_limit );
147
+
148
+ if ( count( $acfb_excerpt ) >= $acfb_excerpt_limit ) {
149
+ array_pop( $acfb_excerpt );
150
+ $acfb_excerpt = implode( " ", $acfb_excerpt ) . '...';
151
+ } else {
152
+ $acfb_excerpt = implode( " ", $acfb_excerpt );
153
+ }
154
+
155
+ $acfb_excerpt = preg_replace( '`[[^]]*]`', '', $acfb_excerpt );
156
+ return $acfb_excerpt;
157
+ }
158
+
159
+ // Default Value in post List Elements
160
+ add_filter(
161
+ 'acf/load_value/name=acfb_post_list_elements',
162
+ 'acfb_post_list_elements_defaults',
163
+ 10,
164
+ 3
165
+ );
166
+ function acfb_post_list_elements_defaults( $value, $post_id, $field )
167
+ {
168
+ if ( $value !== NULL ) {
169
+ // $value will only be NULL on a new post
170
+ return $value;
171
+ }
172
+ // add default layouts
173
+ $value = array(
174
+ array(
175
+ 'acf_fc_layout' => 'post_list_title',
176
+ ),
177
+ array(
178
+ 'acf_fc_layout' => 'post_list_meta_data',
179
+ ),
180
+ array(
181
+ 'acf_fc_layout' => 'post_list_content',
182
+ ),
183
  array(
184
+ 'acf_fc_layout' => 'post_list_read_more_button',
 
 
185
  )
186
+ );
187
+ return $value;
188
+ }
189
+
190
+ // Default Value in post Grid Elements
191
+ add_filter(
192
+ 'acf/load_value/name=acfb_post_grid_elements',
193
+ 'acfb_post_grid_elements_defaults',
194
+ 10,
195
+ 3
196
  );
197
+ function acfb_post_grid_elements_defaults( $value, $post_id, $field )
198
+ {
199
+ if ( $value !== NULL ) {
200
+ // $value will only be NULL on a new post
201
+ return $value;
202
+ }
203
+ // add default layouts
204
+ $value = array(
205
+ array(
206
+ 'acf_fc_layout' => 'post_grid_image',
207
+ ),
208
+ array(
209
+ 'acf_fc_layout' => 'post_grid_title',
210
+ ),
211
+ array(
212
+ 'acf_fc_layout' => 'post_grid_meta_data',
213
+ ),
214
+ array(
215
+ 'acf_fc_layout' => 'post_grid_content',
216
+ ),
217
+ array(
218
+ 'acf_fc_layout' => 'post_grid_read_more_button',
219
+ )
220
+ );
221
+ return $value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  }
223
 
224
+ add_filter( 'acf/load_field/name=2_grid_layouts', 'acfb_two_grid_icons' );
225
+ function acfb_two_grid_icons( $field )
226
+ {
227
+ $field['choices'] = array(
228
+ 'one' => '<img src="' . plugins_url( 'img/gtwo-one.png', __FILE__ ) . '" />',
229
+ 'two' => '<img src="' . plugins_url( 'img/gtwo-two.png', __FILE__ ) . '" />',
230
+ );
231
+ return $field;
232
+ }
233
 
234
+ add_filter( 'acf/load_field/name=3_grid_layouts', 'acfb_three_grid_icons' );
235
+ function acfb_three_grid_icons( $field )
236
+ {
237
+ $field['choices'] = array(
238
+ 'one' => '<img src="' . plugins_url( 'img/gthree-one.png', __FILE__ ) . '" />',
239
+ 'two' => '<img src="' . plugins_url( 'img/gthree-two.png', __FILE__ ) . '" />',
240
+ 'three' => '<img src="' . plugins_url( 'img/gthree-three.png', __FILE__ ) . '" />',
241
+ 'four' => '<img src="' . plugins_url( 'img/gthree-four.png', __FILE__ ) . '" />',
242
+ 'five' => '<img src="' . plugins_url( 'img/gthree-five.png', __FILE__ ) . '" />',
243
+ 'six' => '<img src="' . plugins_url( 'img/gthree-six.png', __FILE__ ) . '" />',
244
+ );
245
+ return $field;
246
+ }
247
 
248
+ add_filter( 'acf/load_field/name=4_grid_layouts', 'acfb_four_grid_icons' );
249
+ function acfb_four_grid_icons( $field )
250
+ {
251
+ $field['choices'] = array(
252
+ 'one' => '<img src="' . plugins_url( 'img/gfour-one.png', __FILE__ ) . '" />',
253
+ 'two' => '<img src="' . plugins_url( 'img/gfour-two.png', __FILE__ ) . '" />',
254
+ 'three' => '<img src="' . plugins_url( 'img/gfour-three.png', __FILE__ ) . '" />',
255
+ 'four' => '<img src="' . plugins_url( 'img/gfour-four.png', __FILE__ ) . '" />',
256
+ 'five' => '<img src="' . plugins_url( 'img/gfour-five.png', __FILE__ ) . '" />',
257
+ 'six' => '<img src="' . plugins_url( 'img/gfour-six.png', __FILE__ ) . '" />',
258
+ 'seven' => '<img src="' . plugins_url( 'img/gfour-seven.png', __FILE__ ) . '" />',
259
+ 'eight' => '<img src="' . plugins_url( 'img/gfour-eight.png', __FILE__ ) . '" />',
260
+ 'nine' => '<img src="' . plugins_url( 'img/gfour-nine.png', __FILE__ ) . '" />',
261
+ 'ten' => '<img src="' . plugins_url( 'img/gfour-ten.png', __FILE__ ) . '" />',
262
+ 'eleven' => '<img src="' . plugins_url( 'img/gfour-eleven.png', __FILE__ ) . '" />',
263
+ 'twelve' => '<img src="' . plugins_url( 'img/gfour-twelve.png', __FILE__ ) . '" />',
264
+ 'thirteen' => '<img src="' . plugins_url( 'img/gfour-thirteen.png', __FILE__ ) . '" />',
265
+ 'fourteen' => '<img src="' . plugins_url( 'img/gfour-fourteen.png', __FILE__ ) . '" />',
266
+ 'fifteen' => '<img src="' . plugins_url( 'img/gfour-fifteen.png', __FILE__ ) . '" />',
267
+ );
268
+ return $field;
269
+ }
270
 
271
+ add_filter( 'acf/load_field/name=social_network', 'Social_icons' );
272
+ function Social_icons( $field )
273
+ {
274
+ $field['choices'] = array(
275
+ '1' => '<svg class="acfb_social_icons acfb_social_facebook_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
276
+ '2' => '<svg class="acfb_social_icons acfb_social_twitter_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
277
+ '3' => '<svg class="acfb_social_icons acfb_social_email_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
278
+ '4' => '<svg class="acfb_social_icons acfb_social_pinterest_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.14.5C5.86.5 2.7 5 2.7 8.75c0 2.27.86 4.3 2.7 5.05.3.12.57 0 .66-.33l.27-1.06c.1-.32.06-.44-.2-.73-.52-.62-.86-1.44-.86-2.6 0-3.33 2.5-6.32 6.5-6.32 3.55 0 5.5 2.17 5.5 5.07 0 3.8-1.7 7.02-4.2 7.02-1.37 0-2.4-1.14-2.07-2.54.4-1.68 1.16-3.48 1.16-4.7 0-1.07-.58-1.98-1.78-1.98-1.4 0-2.55 1.47-2.55 3.42 0 1.25.43 2.1.43 2.1l-1.7 7.2c-.5 2.13-.08 4.75-.04 5 .02.17.22.2.3.1.14-.18 1.82-2.26 2.4-4.33.16-.58.93-3.63.93-3.63.45.88 1.8 1.65 3.22 1.65 4.25 0 7.13-3.87 7.13-9.05C20.5 4.15 17.18.5 12.14.5z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
279
+ '5' => '<svg class="acfb_social_icons acfb_social_linkedin_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
280
+ '6' => '<svg class="acfb_social_icons acfb_social_reddit_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 11.5c0-1.65-1.35-3-3-3-.96 0-1.86.48-2.42 1.24-1.64-1-3.75-1.64-6.07-1.72.08-1.1.4-3.05 1.52-3.7.72-.4 1.73-.24 3 .5C17.2 6.3 18.46 7.5 20 7.5c1.65 0 3-1.35 3-3s-1.35-3-3-3c-1.38 0-2.54.94-2.88 2.22-1.43-.72-2.64-.8-3.6-.25-1.64.94-1.95 3.47-2 4.55-2.33.08-4.45.7-6.1 1.72C4.86 8.98 3.96 8.5 3 8.5c-1.65 0-3 1.35-3 3 0 1.32.84 2.44 2.05 2.84-.03.22-.05.44-.05.66 0 3.86 4.5 7 10 7s10-3.14 10-7c0-.22-.02-.44-.05-.66 1.2-.4 2.05-1.54 2.05-2.84zM2.3 13.37C1.5 13.07 1 12.35 1 11.5c0-1.1.9-2 2-2 .64 0 1.22.32 1.6.82-1.1.85-1.92 1.9-2.3 3.05zm3.7.13c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm9.8 4.8c-1.08.63-2.42.96-3.8.96-1.4 0-2.74-.34-3.8-.95-.24-.13-.32-.44-.2-.68.15-.24.46-.32.7-.18 1.83 1.06 4.76 1.06 6.6 0 .23-.13.53-.05.67.2.14.23.06.54-.18.67zm.2-2.8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm5.7-2.13c-.38-1.16-1.2-2.2-2.3-3.05.38-.5.97-.82 1.6-.82 1.1 0 2 .9 2 2 0 .84-.53 1.57-1.3 1.87z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
281
+ '7' => '<svg class="acfb_social_icons acfb_social_xing_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.2 9.7l-3-5.4C7.2 4 7 4 6.8 4h-5c-.3 0-.4 0-.5.2v.5L4 10 .4 16v.5c0 .2.2.3.4.3h5c.3 0 .4 0 .5-.2l4-6.6v-.5zM24 .2l-.5-.2H18s-.2 0-.3.3l-8 14v.4l5.2 9c0 .2 0 .3.3.3h5.4s.3 0 .4-.2c.2-.2.2-.4 0-.5l-5-8.8L24 .7V.2z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
282
+ '8' => '<svg class="acfb_social_icons acfb_social_whatsapp_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.1 3.9C17.9 1.7 15 .5 12 .5 5.8.5.7 5.6.7 11.9c0 2 .5 3.9 1.5 5.6L.6 23.4l6-1.6c1.6.9 3.5 1.3 5.4 1.3 6.3 0 11.4-5.1 11.4-11.4-.1-2.8-1.2-5.7-3.3-7.8zM12 21.4c-1.7 0-3.3-.5-4.8-1.3l-.4-.2-3.5 1 1-3.4L4 17c-1-1.5-1.4-3.2-1.4-5.1 0-5.2 4.2-9.4 9.4-9.4 2.5 0 4.9 1 6.7 2.8 1.8 1.8 2.8 4.2 2.8 6.7-.1 5.2-4.3 9.4-9.5 9.4zm5.1-7.1c-.3-.1-1.7-.9-1.9-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.1-.2.2-.3.2-.6.1s-1.2-.5-2.3-1.4c-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6s.3-.3.4-.5c.2-.1.3-.3.4-.5.1-.2 0-.4 0-.5C10 9 9.3 7.6 9 7c-.1-.4-.4-.3-.5-.3h-.6s-.4.1-.7.3c-.3.3-1 1-1 2.4s1 2.8 1.1 3c.1.2 2 3.1 4.9 4.3.7.3 1.2.5 1.6.6.7.2 1.3.2 1.8.1.6-.1 1.7-.7 1.9-1.3.2-.7.2-1.2.2-1.3-.1-.3-.3-.4-.6-.5z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
283
+ '9' => '<svg class="acfb_social_icons acfb_social_hackernews_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140"><path fill-rule="evenodd" d="M60.94 82.314L17 0h20.08l25.85 52.093c.397.927.86 1.888 1.39 2.883.53.994.995 2.02 1.393 3.08.265.4.463.764.596 1.095.13.334.262.63.395.898.662 1.325 1.26 2.618 1.79 3.877.53 1.26.993 2.42 1.39 3.48 1.06-2.254 2.22-4.673 3.48-7.258 1.26-2.585 2.552-5.27 3.877-8.052L103.49 0h18.69L77.84 83.308v53.087h-16.9v-54.08z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
284
+ '10' => '<svg class="acfb_social_icons acfb_social_vk_main" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.547 7h-3.29a.743.743 0 0 0-.655.392s-1.312 2.416-1.734 3.23C14.734 12.813 14 12.126 14 11.11V7.603A1.104 1.104 0 0 0 12.896 6.5h-2.474a1.982 1.982 0 0 0-1.75.813s1.255-.204 1.255 1.49c0 .42.022 1.626.04 2.64a.73.73 0 0 1-1.272.503 21.54 21.54 0 0 1-2.498-4.543.693.693 0 0 0-.63-.403h-2.99a.508.508 0 0 0-.48.685C3.005 10.175 6.918 18 11.38 18h1.878a.742.742 0 0 0 .742-.742v-1.135a.73.73 0 0 1 1.23-.53l2.247 2.112a1.09 1.09 0 0 0 .746.295h2.953c1.424 0 1.424-.988.647-1.753-.546-.538-2.518-2.617-2.518-2.617a1.02 1.02 0 0 1-.078-1.323c.637-.84 1.68-2.212 2.122-2.8.603-.804 1.697-2.507.197-2.507z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
285
+ '11' => '<svg class="acfb_social_icons acfb_social_telegram_main"xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.707 8.475C.275 8.64 0 9.508 0 9.508s.284.867.718 1.03l5.09 1.897 1.986 6.38a1.102 1.102 0 0 0 1.75.527l2.96-2.41a.405.405 0 0 1 .494-.013l5.34 3.87a1.1 1.1 0 0 0 1.046.135 1.1 1.1 0 0 0 .682-.803l3.91-18.795A1.102 1.102 0 0 0 22.5.075L.706 8.475z" stroke="none" fill="#666666" stroke-width="2px"/></svg>',
286
+ );
287
+ return $field;
288
+ }
289
 
290
+ add_filter( 'acf/load_field/name=acfb_post_tiled_collage_three_grid_layouts', 'acfb_post_tiled_three_grid_icons' );
291
+ function acfb_post_tiled_three_grid_icons( $field )
292
+ {
293
+ $field['choices'] = array(
294
+ 'one' => '<img src="' . plugins_url( 'img/gthree-three.png', __FILE__ ) . '" />',
295
+ );
296
+ return $field;
297
+ }
298
 
299
+ add_filter( 'acf/load_field/name=acfb_post_tiled_collage_four_grid_layouts', 'acfb_post_tiled_four_grid_icons' );
300
+ function acfb_post_tiled_four_grid_icons( $field )
301
+ {
302
+ $field['choices'] = array(
303
+ 'one' => '<img src="' . plugins_url( 'img/c-gfour-1.png', __FILE__ ) . '" />',
304
+ 'two' => '<img src="' . plugins_url( 'img/c-gfour-2.png', __FILE__ ) . '" />',
305
+ );
306
+ return $field;
307
+ }
308
 
309
+ add_filter( 'acf/load_field/name=acfb_post_tiled_collage_five_grid_layouts', 'acfb_post_tiled_five_grid_icons' );
310
+ function acfb_post_tiled_five_grid_icons( $field )
311
+ {
312
+ $field['choices'] = array(
313
+ 'one' => '<img src="' . plugins_url( 'img/c-gfive-1.png', __FILE__ ) . '" />',
314
+ 'two' => '<img src="' . plugins_url( 'img/c-gfive-2.png', __FILE__ ) . '" />',
315
+ 'three' => '<img src="' . plugins_url( 'img/c-gfive-3.png', __FILE__ ) . '" />',
316
+ );
317
+ return $field;
318
+ }
319
 
320
+ // Hexa Color Convert To Rgb or Rgba
321
+ function hex2rgba( $color, $opacity = false )
322
+ {
323
+ $default = 'rgb(0,0,0)';
324
+ //Return default if no color provided
325
+ if ( empty($color) ) {
326
+ return $default;
327
+ }
328
+ //Sanitize $color if "#" is provided
329
+ if ( $color[0] == '#' ) {
330
+ $color = substr( $color, 1 );
331
+ }
332
+ //Check if color has 6 or 3 characters and get values
333
+
334
+ if ( strlen( $color ) == 6 ) {
335
+ $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
336
+ } elseif ( strlen( $color ) == 3 ) {
337
+ $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
338
+ } else {
339
+ return $default;
340
+ }
341
+
342
+ //Convert hexadec to rgb
343
+ $rgb = array_map( 'hexdec', $hex );
344
+ //Check if opacity is set(rgba or rgb)
345
+
346
+ if ( $opacity ) {
347
+ if ( abs( $opacity ) > 1 ) {
348
+ $opacity = 1.0;
349
+ }
350
+ $output = 'rgba(' . implode( ",", $rgb ) . ',' . $opacity . ')';
351
+ } else {
352
+ $output = 'rgb(' . implode( ",", $rgb ) . ')';
353
+ }
354
+
355
+ //Return rgb(a) color string
356
+ return $output;
357
  }
358
+
359
+ // Post type Select Box Filter
360
+ function acfb_get_post_type( $field )
361
+ {
362
+ $args = array(
363
+ 'public' => true,
364
+ );
365
+ $posttype = get_post_types( $args );
366
+ if ( in_array( "attachment", $posttype ) ) {
367
+ unset( $posttype['attachment'] );
368
+ }
369
+ $posttype_items = array();
370
+ foreach ( $posttype as $posttypeitem ) {
371
+ $posttype_items[$posttypeitem] = $posttypeitem;
372
+ }
373
+ $field['choices'] = $posttype_items;
374
+ return $field;
375
+ }
376
+
377
+ add_filter( 'acf/load_field/name=acfb_post_type', 'acfb_get_post_type' );
378
+ // Taxonomy Select Box Filter
379
+ // function acfb_get_post_taxanomy( $field ) {
380
+ // $taxonomies = get_object_taxonomies( 'post' );
381
+ // $tax_items = array();
382
+ // foreach($taxonomies as $taxonomy) {
383
+ // $tax_items[] = $taxonomy;
384
+ // }
385
+ // $field['choices'] = $tax_items;
386
+ // return $field;
387
+ // }
388
+ // add_filter('acf/load_field/name=acfb_taxonomy', 'acfb_get_post_taxanomy');
389
+ // Terms Select Box Filter
390
+ // function acfb_get_post_terms( $field ) {
391
+ // $terms = get_terms([
392
+ // 'taxonomy' => 'category',
393
+ // 'hide_empty' => false,
394
+ // ]);
395
+ // $items = array();
396
+ // foreach($terms as $term) {
397
+ // $items[] = $term->name;
398
+ // }
399
+ // $field['choices'] = $items;
400
+ // return $field;
401
+ // }
402
+ // add_filter('acf/load_field/name=acfb_taxonomy_terms', 'acfb_get_post_terms');
403
+ // Template Overide
404
+ function acf_blocks_template( $block )
405
+ {
406
+ $acfb_temp = str_replace( "acf/", "", $block['name'] );
407
+ // Look for a file in theme
408
+
409
+ if ( $theme_template = locate_template( 'block-templates/' . $acfb_temp . '.php' ) ) {
410
+ require $theme_template;
411
+ } else {
412
+ // Nothing found, let's look in our plugin
413
+ $free_template = plugin_dir_path( __FILE__ ) . 'block-templates/free/' . $acfb_temp . '.php';
414
+ $pro_template = plugin_dir_path( __FILE__ ) . 'block-templates/pro/' . $acfb_temp . '.php';
415
+ if ( file_exists( $free_template ) ) {
416
+ require $free_template;
417
+ }
418
+ if ( file_exists( $pro_template ) ) {
419
+ require $pro_template;
420
+ }
421
+ }
422
+
423
+ }
424
+
425
+ // Admin Page
426
+ if ( file_exists( plugin_dir_path( __FILE__ ) . '/admin/class-acf-admin-page.php' ) ) {
427
+ require_once plugin_dir_path( __FILE__ ) . '/admin/class-acf-admin-page.php';
428
+ }
429
+ add_action( 'admin_enqueue_scripts', 'acfb_admin_styles' );
430
+ function acfb_admin_styles()
431
+ {
432
+ wp_enqueue_style(
433
+ 'admin_css_foo',
434
+ plugin_dir_url( __FILE__ ) . '/admin/admin-styles.css',
435
+ false,
436
+ '1.0.0'
437
+ );
438
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
 
 
440
  }
441
 
442
+ // freemius end
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
acf-json/group_5cbd743876860.json CHANGED
@@ -1,297 +1,356 @@
1
  {
2
- "key": "group_5cbd743876860",
3
- "title": "Testimonials Block",
4
- "private": true,
5
- "fields": [
6
- {
7
- "key": "field_5cc81f63ae3fb",
8
- "label": "Content",
9
- "name": "",
10
- "type": "tab",
11
- "instructions": "",
12
- "required": 0,
13
- "conditional_logic": 0,
14
- "wrapper": {
15
- "width": "",
16
- "class": "",
17
- "id": ""
18
- },
19
- "placement": "top",
20
- "endpoint": 0
21
- },
22
- {
23
- "key": "field_5cbd749b53ab6",
24
- "label": "Text",
25
- "name": "acfb_testimonial_text",
26
- "type": "textarea",
27
- "instructions": "",
28
- "required": 0,
29
- "conditional_logic": 0,
30
- "wrapper": {
31
- "width": "",
32
- "class": "",
33
- "id": ""
34
- },
35
- "default_value": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris",
36
- "placeholder": "",
37
- "maxlength": "",
38
- "rows": "",
39
- "new_lines": ""
40
- },
41
- {
42
- "key": "field_5cbd74eb53ab7",
43
- "label": "Image",
44
- "name": "acfb_testimonial_image",
45
- "type": "image",
46
- "instructions": "",
47
- "required": 0,
48
- "conditional_logic": 0,
49
- "wrapper": {
50
- "width": "",
51
- "class": "",
52
- "id": ""
53
- },
54
- "return_format": "url",
55
- "preview_size": "thumbnail",
56
- "library": "all",
57
- "min_width": "",
58
- "min_height": "",
59
- "min_size": "",
60
- "max_width": "",
61
- "max_height": "",
62
- "max_size": "",
63
- "mime_types": ""
64
- },
65
- {
66
- "key": "field_5cbd844b488e6",
67
- "label": "Image Alt",
68
- "name": "acfb_testimonial_image_alt",
69
- "type": "text",
70
- "instructions": "",
71
- "required": 0,
72
- "conditional_logic": 0,
73
- "wrapper": {
74
- "width": "",
75
- "class": "",
76
- "id": ""
77
- },
78
- "default_value": "Avatar",
79
- "placeholder": "Avatar",
80
- "prepend": "",
81
- "append": "",
82
- "maxlength": ""
83
- },
84
- {
85
- "key": "field_5cbd752e53ab8",
86
- "label": "Name",
87
- "name": "acfb_testimonial_name",
88
- "type": "text",
89
- "instructions": "",
90
- "required": 0,
91
- "conditional_logic": 0,
92
- "wrapper": {
93
- "width": "",
94
- "class": "",
95
- "id": ""
96
- },
97
- "default_value": "Name Here",
98
- "placeholder": "Name Here",
99
- "prepend": "",
100
- "append": "",
101
- "maxlength": ""
102
- },
103
- {
104
- "key": "field_5cbd753753ab9",
105
- "label": "Position",
106
- "name": "acfb_testimonial_position",
107
- "type": "text",
108
- "instructions": "",
109
- "required": 0,
110
- "conditional_logic": 0,
111
- "wrapper": {
112
- "width": "",
113
- "class": "",
114
- "id": ""
115
- },
116
- "default_value": "Position",
117
- "placeholder": "Position",
118
- "prepend": "",
119
- "append": "",
120
- "maxlength": ""
121
- },
122
- {
123
- "key": "field_5cc81fc1ae3fc",
124
- "label": "Design",
125
- "name": "",
126
- "type": "tab",
127
- "instructions": "",
128
- "required": 0,
129
- "conditional_logic": 0,
130
- "wrapper": {
131
- "width": "",
132
- "class": "",
133
- "id": ""
134
- },
135
- "placement": "top",
136
- "endpoint": 0
137
- },
138
- {
139
- "key": "field_5cbd95e83fdd9",
140
- "label": "Background Color",
141
- "name": "acfb_testimonial_background_color",
142
- "type": "color_picker",
143
- "instructions": "",
144
- "required": 0,
145
- "conditional_logic": 0,
146
- "wrapper": {
147
- "width": "",
148
- "class": "",
149
- "id": ""
150
- },
151
- "default_value": "#f3f4f5"
152
- },
153
- {
154
- "key": "field_5cbd960d3fdda",
155
- "label": "Text Color",
156
- "name": "acfb_testimonial_text_color",
157
- "type": "color_picker",
158
- "instructions": "",
159
- "required": 0,
160
- "conditional_logic": 0,
161
- "wrapper": {
162
- "width": "",
163
- "class": "",
164
- "id": ""
165
- },
166
- "default_value": "#191e23"
167
- },
168
- {
169
- "key": "field_5cbd96f33fddc",
170
- "label": "Text Size",
171
- "name": "acfb_testimonial_text_size",
172
- "type": "range",
173
- "instructions": "",
174
- "required": 0,
175
- "conditional_logic": 0,
176
- "wrapper": {
177
- "width": "",
178
- "class": "",
179
- "id": ""
180
- },
181
- "default_value": 18,
182
- "min": "",
183
- "max": 200,
184
- "step": "",
185
- "prepend": "",
186
- "append": "px"
187
- },
188
- {
189
- "key": "field_5cbd967a3fddb",
190
- "label": "Image Size",
191
- "name": "acfb_testimonial_image_size",
192
- "type": "range",
193
- "instructions": "",
194
- "required": 0,
195
- "conditional_logic": 0,
196
- "wrapper": {
197
- "width": "",
198
- "class": "",
199
- "id": ""
200
- },
201
- "default_value": 55,
202
- "min": "",
203
- "max": 200,
204
- "step": "",
205
- "prepend": "",
206
- "append": "px"
207
- },
208
- {
209
- "key": "field_5cbd97143fddd",
210
- "label": "Name Color",
211
- "name": "acfb_testimonial_name_color",
212
- "type": "color_picker",
213
- "instructions": "",
214
- "required": 0,
215
- "conditional_logic": 0,
216
- "wrapper": {
217
- "width": "",
218
- "class": "",
219
- "id": ""
220
- },
221
- "default_value": "#191e23"
222
- },
223
- {
224
- "key": "field_5cbd97423fdde",
225
- "label": "Name Size",
226
- "name": "acfb_testimonial_name_size",
227
- "type": "range",
228
- "instructions": "",
229
- "required": 0,
230
- "conditional_logic": 0,
231
- "wrapper": {
232
- "width": "",
233
- "class": "",
234
- "id": ""
235
- },
236
- "default_value": 18,
237
- "min": "",
238
- "max": 200,
239
- "step": "",
240
- "prepend": "",
241
- "append": "px"
242
- },
243
- {
244
- "key": "field_5cbd977a3fddf",
245
- "label": "Position Color",
246
- "name": "acfb_testimonial_position_color",
247
- "type": "color_picker",
248
- "instructions": "",
249
- "required": 0,
250
- "conditional_logic": 0,
251
- "wrapper": {
252
- "width": "",
253
- "class": "",
254
- "id": ""
255
- },
256
- "default_value": "#191e23"
257
- },
258
- {
259
- "key": "field_5cbd979b3fde0",
260
- "label": "Position Size",
261
- "name": "acfb_testimonial_position_size",
262
- "type": "range",
263
- "instructions": "",
264
- "required": 0,
265
- "conditional_logic": 0,
266
- "wrapper": {
267
- "width": "",
268
- "class": "",
269
- "id": ""
270
- },
271
- "default_value": 14,
272
- "min": "",
273
- "max": 200,
274
- "step": "",
275
- "prepend": "",
276
- "append": "px"
277
- }
278
- ],
279
- "location": [
280
- [
281
- {
282
- "param": "block",
283
- "operator": "==",
284
- "value": "acf/acfb-testimonial"
285
- }
286
- ]
287
- ],
288
- "menu_order": 0,
289
- "position": "normal",
290
- "style": "default",
291
- "label_placement": "top",
292
- "instruction_placement": "label",
293
- "hide_on_screen": "",
294
- "active": 1,
295
- "description": "",
296
- "modified": 1558698542
297
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  {
2
+ "key": "group_5cbd743876860",
3
+ "title": "Testimonials Block",
4
+ "fields": [
5
+ {
6
+ "key": "field_5cc81f63ae3fb",
7
+ "label": "Content",
8
+ "name": "",
9
+ "type": "tab",
10
+ "instructions": "",
11
+ "required": 0,
12
+ "conditional_logic": 0,
13
+ "wrapper": {
14
+ "width": "",
15
+ "class": "",
16
+ "id": ""
17
+ },
18
+ "placement": "top",
19
+ "endpoint": 0
20
+ },
21
+ {
22
+ "key": "field_5cbd749b53ab6",
23
+ "label": "Text",
24
+ "name": "acfb_testimonial_text",
25
+ "type": "textarea",
26
+ "instructions": "",
27
+ "required": 0,
28
+ "conditional_logic": 0,
29
+ "wrapper": {
30
+ "width": "",
31
+ "class": "",
32
+ "id": ""
33
+ },
34
+ "default_value": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris",
35
+ "placeholder": "",
36
+ "maxlength": "",
37
+ "rows": "",
38
+ "new_lines": ""
39
+ },
40
+ {
41
+ "key": "field_5cbd74eb53ab7",
42
+ "label": "Image",
43
+ "name": "acfb_testimonial_image",
44
+ "type": "image",
45
+ "instructions": "",
46
+ "required": 0,
47
+ "conditional_logic": 0,
48
+ "wrapper": {
49
+ "width": "",
50
+ "class": "",
51
+ "id": ""
52
+ },
53
+ "return_format": "url",
54
+ "preview_size": "thumbnail",
55
+ "library": "all",
56
+ "min_width": "",
57
+ "min_height": "",
58
+ "min_size": "",
59
+ "max_width": "",
60
+ "max_height": "",
61
+ "max_size": "",
62
+ "mime_types": ""
63
+ },
64
+ {
65
+ "key": "field_5cbd844b488e6",
66
+ "label": "Image Alt",
67
+ "name": "acfb_testimonial_image_alt",
68
+ "type": "text",
69
+ "instructions": "",
70
+ "required": 0,
71
+ "conditional_logic": 0,
72
+ "wrapper": {
73
+ "width": "",
74
+ "class": "",
75
+ "id": ""
76
+ },
77
+ "default_value": "Avatar",
78
+ "placeholder": "Avatar",
79
+ "prepend": "",
80
+ "append": "",
81
+ "maxlength": ""
82
+ },
83
+ {
84
+ "key": "field_5dc5217032c37",
85
+ "label": "Image Position",
86
+ "name": "acfb_testimonial_image_position",
87
+ "type": "button_group",
88
+ "instructions": "",
89
+ "required": 0,
90
+ "conditional_logic": 0,
91
+ "wrapper": {
92
+ "width": "",
93
+ "class": "",
94
+ "id": ""
95
+ },
96
+ "choices": {
97
+ "acfb_testimonial_image_top": "Top",
98
+ "acfb_testimonial_image_left": "Left"
99
+ },
100
+ "allow_null": 0,
101
+ "default_value": "acfb_testimonial_image_left",
102
+ "layout": "horizontal",
103
+ "return_format": "value"
104
+ },
105
+ {
106
+ "key": "field_5cbd752e53ab8",
107
+ "label": "Name",
108
+ "name": "acfb_testimonial_name",
109
+ "type": "text",
110
+ "instructions": "",
111
+ "required": 0,
112
+ "conditional_logic": 0,
113
+ "wrapper": {
114
+ "width": "",
115
+ "class": "",
116
+ "id": ""
117
+ },
118
+ "default_value": "Name Here",
119
+ "placeholder": "Name Here",
120
+ "prepend": "",
121
+ "append": "",
122
+ "maxlength": ""
123
+ },
124
+ {
125
+ "key": "field_5cbd753753ab9",
126
+ "label": "Position",
127
+ "name": "acfb_testimonial_position",
128
+ "type": "text",
129
+ "instructions": "",
130
+ "required": 0,
131
+ "conditional_logic": 0,
132
+ "<