PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 1.0.5
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v1.0.5
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
← All changes | src/init.php +2 -20 1.3.11.0.5 View file →
@@ -19,10 +19,8 @@
19 19 'blockspare-frontend-block-style-css',
20 20 plugins_url('dist/blocks.style.build.css', dirname(__FILE__)),
21 21 array()
22 22 );
23 -
24 -
25 23 wp_enqueue_style('slick', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/css/slick.css', array(), '', 'all');
26 24 wp_enqueue_script('slick-js', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/js/slick.js', array('jquery'), '', true);
27 25 wp_register_script('countup', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/countup/jquery.counterup' . $min . '.js', array('waypoint'), true);
28 26
@@ -29,9 +27,9 @@
29 27 wp_enqueue_script('waypoint', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/countup/waypoints.min.js', array('jquery'), '', true);
30 28 wp_enqueue_script('jquery-masonry');
31 29
32 30 wp_enqueue_script('blockspare-script', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/frontend.js', array('jquery', 'waypoint', 'countup'), '', true);
33 - wp_enqueue_script('blockspare-tabs', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/tabs.js', array('jquery'), '', true);
31 +
34 32 }
35 33
36 34 add_action('init', 'blockspare_blocks_block_assets');
37 35
@@ -70,20 +68,8 @@
70 68 $blockspare_priview_img_url = BLOCKSPARE_PLUGIN_URL . 'dist/images/blockspare-placeholder-img.jpg';
71 69 $blockspare_food_img_url = BLOCKSPARE_PLUGIN_URL . 'src/assets/blockspare-placeholder-img-square.jpg';
72 70
73 71
74 - $taxonomies = get_categories();
75 - $txnm = array();
76 -
77 - foreach( $taxonomies as $type ) {
78 -
79 -
80 - $txnm[] = array(
81 - 'label' => $type->name,
82 - 'value' => $type->term_id,
83 - );
84 - }
85 -
86 72 wp_localize_script(
87 73 'blockspare-blocks-block-js',
88 74 'blockspare_globals',
89 75 array(
@@ -89,13 +75,9 @@
89 75 array(
90 76 'srcUrl' => untrailingslashit(plugins_url('/', BLOCKSPARE_BASE_DIR . '/dist/')),
91 77 'rest_url' => esc_url(rest_url()),
92 78 'img' => $blockspare_priview_img_url,
93 - 'menu_img_url' => $blockspare_food_img_url,
94 - 'taxonomies'=> json_encode($txnm),
95 - 'config' => '',
96 - 'configuration' => '',
97 - 'settings' => '',
79 + 'menu_img_url' => $blockspare_food_img_url
98 80 )
99 81 );
100 82 }
101 83