diff --git a/.gitignore b/.gitignore index 5d8cdb3c..95a85cb5 100755 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .idea /stats.json /src/blocks/all-blocks +*.code-workspace \ No newline at end of file diff --git a/getwid.php b/getwid.php index 4d86a4dd..80b1a2fe 100755 --- a/getwid.php +++ b/getwid.php @@ -3,7 +3,7 @@ * Plugin Name: Getwid * Plugin URI: https://motopress.com/products/getwid/ * Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor. - * Version: 1.8.2 + * Version: 1.8.3 * Author: MotoPress * Author URI: https://motopress.com/ * License: GPLv2 or later diff --git a/includes/blocks/accordion.php b/includes/blocks/accordion.php index 46268428..300daa20 100755 --- a/includes/blocks/accordion.php +++ b/includes/blocks/accordion.php @@ -46,7 +46,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/advanced-heading.php b/includes/blocks/advanced-heading.php index 47265662..0f5fe0ce 100755 --- a/includes/blocks/advanced-heading.php +++ b/includes/blocks/advanced-heading.php @@ -22,7 +22,7 @@ public function getLabel() { return __('Advanced Heading', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/advanced-spacer.php b/includes/blocks/advanced-spacer.php index aae99b14..230ec1dc 100755 --- a/includes/blocks/advanced-spacer.php +++ b/includes/blocks/advanced-spacer.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Advanced Spacer', 'getwid'); } - private function block_frontend_assets( $attributes = null ) { + public function block_frontend_assets( $attributes = null ) { if ( is_admin() ) { return; diff --git a/includes/blocks/banner.php b/includes/blocks/banner.php index 0a32ff8b..c37ce894 100755 --- a/includes/blocks/banner.php +++ b/includes/blocks/banner.php @@ -22,7 +22,7 @@ public function getLabel() { return __('Banner', 'getwid'); } - private function block_frontend_assets( $attributes = null ) { + public function block_frontend_assets( $attributes = null ) { if ( is_admin() ) { return; diff --git a/includes/blocks/circle-progress-bar.php b/includes/blocks/circle-progress-bar.php index 2b8d6bf1..97a6d0b6 100755 --- a/includes/blocks/circle-progress-bar.php +++ b/includes/blocks/circle-progress-bar.php @@ -31,7 +31,7 @@ public function getLabel() { return __('Circular Progress Bar', 'getwid'); } - private function block_frontend_assets( $attributes = null ) { + public function block_frontend_assets( $attributes = null ) { if ( is_admin() ) { return; diff --git a/includes/blocks/contact-form.php b/includes/blocks/contact-form.php index 6417b2ee..b304fbe4 100755 --- a/includes/blocks/contact-form.php +++ b/includes/blocks/contact-form.php @@ -114,7 +114,7 @@ public function render_captcha_block( $attributes ) { } /* #endregion */ - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/content-slider.php b/includes/blocks/content-slider.php index 1e00b972..1af19f84 100644 --- a/includes/blocks/content-slider.php +++ b/includes/blocks/content-slider.php @@ -77,7 +77,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/content-timeline.php b/includes/blocks/content-timeline.php index 38429530..f7ca77e8 100755 --- a/includes/blocks/content-timeline.php +++ b/includes/blocks/content-timeline.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Content Timeline', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/countdown.php b/includes/blocks/countdown.php index dd460e05..40465279 100755 --- a/includes/blocks/countdown.php +++ b/includes/blocks/countdown.php @@ -184,7 +184,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/counter.php b/includes/blocks/counter.php index 5989d89d..13fe3e24 100755 --- a/includes/blocks/counter.php +++ b/includes/blocks/counter.php @@ -54,7 +54,7 @@ public function block_editor_scripts( $scripts ) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/custom-post-type.php b/includes/blocks/custom-post-type.php index 050f0853..d6e1d540 100755 --- a/includes/blocks/custom-post-type.php +++ b/includes/blocks/custom-post-type.php @@ -130,7 +130,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/google-map.php b/includes/blocks/google-map.php index c5d1bf58..1b65c55b 100755 --- a/includes/blocks/google-map.php +++ b/includes/blocks/google-map.php @@ -79,7 +79,7 @@ public function get_google_api_key() { wp_send_json_success( $response ); } - private function block_frontend_assets( $attributes = [], $content = '' ) { + public function block_frontend_assets( $attributes = [], $content = '' ) { if ( is_admin() ) { return; diff --git a/includes/blocks/image-hotspot.php b/includes/blocks/image-hotspot.php index 78faf1c3..65578c1d 100755 --- a/includes/blocks/image-hotspot.php +++ b/includes/blocks/image-hotspot.php @@ -126,7 +126,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/images-slider.php b/includes/blocks/images-slider.php index e6e6bbba..59029849 100755 --- a/includes/blocks/images-slider.php +++ b/includes/blocks/images-slider.php @@ -82,7 +82,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/images-stack.php b/includes/blocks/images-stack.php index d6b90208..69febffd 100755 --- a/includes/blocks/images-stack.php +++ b/includes/blocks/images-stack.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Image Stack Gallery', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/instagram.php b/includes/blocks/instagram.php index ae9b9418..af0376f2 100755 --- a/includes/blocks/instagram.php +++ b/includes/blocks/instagram.php @@ -71,7 +71,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/mailchimp.php b/includes/blocks/mailchimp.php index e44a0281..1f7f074b 100755 --- a/includes/blocks/mailchimp.php +++ b/includes/blocks/mailchimp.php @@ -62,7 +62,7 @@ private function register_mailchimp_blocks() { /* #endregion */ } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/media-text-slider.php b/includes/blocks/media-text-slider.php index 420024dd..fb71831b 100755 --- a/includes/blocks/media-text-slider.php +++ b/includes/blocks/media-text-slider.php @@ -84,7 +84,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/person.php b/includes/blocks/person.php index 67f366d6..66f248b7 100755 --- a/includes/blocks/person.php +++ b/includes/blocks/person.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Person', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/post-carousel.php b/includes/blocks/post-carousel.php index fe0cf955..ceb1d9bb 100755 --- a/includes/blocks/post-carousel.php +++ b/includes/blocks/post-carousel.php @@ -219,7 +219,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/post-slider.php b/includes/blocks/post-slider.php index 4026ba02..9d3a4390 100755 --- a/includes/blocks/post-slider.php +++ b/includes/blocks/post-slider.php @@ -207,7 +207,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/price-box.php b/includes/blocks/price-box.php index 90148e5a..6b87d55c 100755 --- a/includes/blocks/price-box.php +++ b/includes/blocks/price-box.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Price Box', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/price-list.php b/includes/blocks/price-list.php index f9136b8f..0a6e4410 100755 --- a/includes/blocks/price-list.php +++ b/includes/blocks/price-list.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Price List', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/progress-bar.php b/includes/blocks/progress-bar.php index 0da7f915..be09f30b 100755 --- a/includes/blocks/progress-bar.php +++ b/includes/blocks/progress-bar.php @@ -31,7 +31,7 @@ public function getLabel() { return __('Progress Bar', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/recent-posts.php b/includes/blocks/recent-posts.php index 1c83f886..7e385006 100755 --- a/includes/blocks/recent-posts.php +++ b/includes/blocks/recent-posts.php @@ -94,7 +94,7 @@ public function getLabel() { return __('Recent Posts', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/section.php b/includes/blocks/section.php index b2234536..db45a97d 100755 --- a/includes/blocks/section.php +++ b/includes/blocks/section.php @@ -118,7 +118,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets( $attributes = [], $content = '' ) { + public function block_frontend_assets( $attributes = [], $content = '' ) { if ( is_admin() ) { return; diff --git a/includes/blocks/social-links.php b/includes/blocks/social-links.php index a04d9305..55905921 100755 --- a/includes/blocks/social-links.php +++ b/includes/blocks/social-links.php @@ -35,7 +35,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/table-of-contents.php b/includes/blocks/table-of-contents.php index ff7753f0..d8671db1 100755 --- a/includes/blocks/table-of-contents.php +++ b/includes/blocks/table-of-contents.php @@ -31,7 +31,7 @@ public function getLabel() { return __('Table of Contents', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/table.php b/includes/blocks/table.php index ca947343..0c941950 100755 --- a/includes/blocks/table.php +++ b/includes/blocks/table.php @@ -22,7 +22,7 @@ public function getLabel() { return __( 'Table', 'getwid' ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/tabs.php b/includes/blocks/tabs.php index 5cbc751f..04d3ffdf 100755 --- a/includes/blocks/tabs.php +++ b/includes/blocks/tabs.php @@ -37,7 +37,7 @@ public function block_editor_scripts($scripts) { return $scripts; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/acf/background-image.php b/includes/blocks/template-parts/acf/background-image.php index 2e63734b..042c9fc9 100644 --- a/includes/blocks/template-parts/acf/background-image.php +++ b/includes/blocks/template-parts/acf/background-image.php @@ -160,7 +160,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/acf/image.php b/includes/blocks/template-parts/acf/image.php index 4184258e..fddf2ddc 100644 --- a/includes/blocks/template-parts/acf/image.php +++ b/includes/blocks/template-parts/acf/image.php @@ -39,7 +39,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/acf/select.php b/includes/blocks/template-parts/acf/select.php index 5c01d497..e8b26c60 100644 --- a/includes/blocks/template-parts/acf/select.php +++ b/includes/blocks/template-parts/acf/select.php @@ -62,7 +62,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/acf/wysiwyg.php b/includes/blocks/template-parts/acf/wysiwyg.php index 6f0282bf..062e9399 100644 --- a/includes/blocks/template-parts/acf/wysiwyg.php +++ b/includes/blocks/template-parts/acf/wysiwyg.php @@ -55,7 +55,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-author.php b/includes/blocks/template-parts/post-author.php index 50b129c0..bd0ffc93 100755 --- a/includes/blocks/template-parts/post-author.php +++ b/includes/blocks/template-parts/post-author.php @@ -62,7 +62,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-button.php b/includes/blocks/template-parts/post-button.php index 92a4f733..4126862b 100755 --- a/includes/blocks/template-parts/post-button.php +++ b/includes/blocks/template-parts/post-button.php @@ -47,7 +47,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-categories.php b/includes/blocks/template-parts/post-categories.php index 5d7fae04..da13e4f9 100755 --- a/includes/blocks/template-parts/post-categories.php +++ b/includes/blocks/template-parts/post-categories.php @@ -67,7 +67,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-comments.php b/includes/blocks/template-parts/post-comments.php index 85711e64..ce97c7a5 100755 --- a/includes/blocks/template-parts/post-comments.php +++ b/includes/blocks/template-parts/post-comments.php @@ -63,7 +63,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-content.php b/includes/blocks/template-parts/post-content.php index d117ebb9..38461622 100755 --- a/includes/blocks/template-parts/post-content.php +++ b/includes/blocks/template-parts/post-content.php @@ -50,7 +50,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-custom-field.php b/includes/blocks/template-parts/post-custom-field.php index 246e3b7d..a64c1802 100755 --- a/includes/blocks/template-parts/post-custom-field.php +++ b/includes/blocks/template-parts/post-custom-field.php @@ -53,7 +53,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-date.php b/includes/blocks/template-parts/post-date.php index 83ede1a2..20894078 100755 --- a/includes/blocks/template-parts/post-date.php +++ b/includes/blocks/template-parts/post-date.php @@ -70,7 +70,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-featured-background-image.php b/includes/blocks/template-parts/post-featured-background-image.php index 39f254cd..7b78b6ee 100755 --- a/includes/blocks/template-parts/post-featured-background-image.php +++ b/includes/blocks/template-parts/post-featured-background-image.php @@ -161,7 +161,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-featured-image.php b/includes/blocks/template-parts/post-featured-image.php index ce6ec9e7..1241a210 100755 --- a/includes/blocks/template-parts/post-featured-image.php +++ b/includes/blocks/template-parts/post-featured-image.php @@ -36,7 +36,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-link.php b/includes/blocks/template-parts/post-link.php index 3f5b1799..e03dc4f9 100755 --- a/includes/blocks/template-parts/post-link.php +++ b/includes/blocks/template-parts/post-link.php @@ -41,7 +41,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-meta.php b/includes/blocks/template-parts/post-meta.php index 711e4429..245d4c91 100755 --- a/includes/blocks/template-parts/post-meta.php +++ b/includes/blocks/template-parts/post-meta.php @@ -45,7 +45,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-tags.php b/includes/blocks/template-parts/post-tags.php index ff4c0fd2..02a1ca55 100755 --- a/includes/blocks/template-parts/post-tags.php +++ b/includes/blocks/template-parts/post-tags.php @@ -66,7 +66,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/template-parts/post-title.php b/includes/blocks/template-parts/post-title.php index cb86ca6f..27e1e846 100755 --- a/includes/blocks/template-parts/post-title.php +++ b/includes/blocks/template-parts/post-title.php @@ -58,7 +58,7 @@ public function __construct() { ); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/testimonial.php b/includes/blocks/testimonial.php index a173eb8e..d814055d 100755 --- a/includes/blocks/testimonial.php +++ b/includes/blocks/testimonial.php @@ -23,7 +23,7 @@ public function getLabel() { return __('Testimonial', 'getwid'); } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/toggle.php b/includes/blocks/toggle.php index ee165442..77a4b935 100755 --- a/includes/blocks/toggle.php +++ b/includes/blocks/toggle.php @@ -41,7 +41,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/blocks/video-popup.php b/includes/blocks/video-popup.php index 025631da..8cfc39bd 100755 --- a/includes/blocks/video-popup.php +++ b/includes/blocks/video-popup.php @@ -56,7 +56,7 @@ public function block_frontend_styles($styles) { return $styles; } - private function block_frontend_assets() { + public function block_frontend_assets() { if ( is_admin() ) { return; diff --git a/includes/settings-page.php b/includes/settings-page.php index 129dc12c..85f3f0f6 100755 --- a/includes/settings-page.php +++ b/includes/settings-page.php @@ -173,7 +173,7 @@ public function registerFields() { /* #endregion */ /* #region AssetsOptimization */ - add_settings_field( 'getwid_assets_optimization', __( 'Performance Optimization', 'getwid' ) . ' (Beta)', + add_settings_field( 'getwid_assets_optimization', __( 'Performance Optimization', 'getwid' ), [ $this, 'renderAssetsOptimization'], 'getwid_general', 'getwid_general' ); register_setting( 'getwid_general', 'getwid_load_assets_on_demand', [ 'type' => 'boolean', 'default' => false, 'sanitize_callback' => 'rest_sanitize_boolean' ] ); @@ -236,7 +236,7 @@ public function renderSectionContentWidth() { ?> -
+ /> - +/> - +
\n"
"Language-Team: LANGUAGE