PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 1.3.2
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v1.3.2
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 +26 -4 1.0.31.3.2 View file →
@@ -19,18 +19,19 @@
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 +
23 25 wp_enqueue_style('slick', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/css/slick.css', array(), '', 'all');
24 26 wp_enqueue_script('slick-js', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/js/slick.js', array('jquery'), '', true);
25 27 wp_register_script('countup', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/countup/jquery.counterup' . $min . '.js', array('waypoint'), true);
26 28
27 29 wp_enqueue_script('waypoint', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/countup/waypoints.min.js', array('jquery'), '', true);
28 - wp_register_script('circle-progress', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/skillbar/circle-progress.min.js', array('jquery'), '', true);
29 30 wp_enqueue_script('jquery-masonry');
30 31
31 32 wp_enqueue_script('blockspare-script', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/frontend.js', array('jquery', 'waypoint', 'countup'), '', true);
32 -
33 + wp_enqueue_script('blockspare-tabs', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/tabs.js', array('jquery'), '', true);
33 34 }
34 35
35 36 add_action('init', 'blockspare_blocks_block_assets');
36 37
@@ -64,12 +65,25 @@
64 65 array(),
65 66 filemtime(plugin_dir_path(__FILE__) . 'assets/fontawesome/css/all.css')
66 67 );
67 68
68 - $blockspare_priview_img_url = BLOCKSPARE_PLUGIN_URL . 'src/assets/blockspare-placeholder-img.jpg';
69 +
70 + $blockspare_priview_img_url = BLOCKSPARE_PLUGIN_URL . 'dist/images/blockspare-placeholder-img.jpg';
69 71 $blockspare_food_img_url = BLOCKSPARE_PLUGIN_URL . 'src/assets/blockspare-placeholder-img-square.jpg';
70 72
71 73
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 +
72 86 wp_localize_script(
73 87 'blockspare-blocks-block-js',
74 88 'blockspare_globals',
75 89 array(
@@ -75,9 +89,13 @@
75 89 array(
76 90 'srcUrl' => untrailingslashit(plugins_url('/', BLOCKSPARE_BASE_DIR . '/dist/')),
77 91 'rest_url' => esc_url(rest_url()),
78 92 'img' => $blockspare_priview_img_url,
79 - 'menu_img_url' => $blockspare_food_img_url
93 + 'menu_img_url' => $blockspare_food_img_url,
94 + 'taxonomies'=> json_encode($txnm),
95 + 'config' => '',
96 + 'configuration' => '',
97 + 'settings' => '',
80 98 )
81 99 );
82 100 }
83 101
@@ -94,8 +112,9 @@
94 112 //Load Gutenberg Block php Files
95 113 include(BLOCKSPARE_PLUGIN_DIR . '/src/blocks/social-sharing/index.php');
96 114 include(BLOCKSPARE_PLUGIN_DIR . '/src/blocks/latest-posts-grid/index.php');
97 115 include(BLOCKSPARE_PLUGIN_DIR . '/src/blocks/latest-posts-list/index.php');
116 + //include(BLOCKSPARE_PLUGIN_DIR . '/src/blocks/pattern/pattern.php');
98 117
99 118
100 119 }
101 120
@@ -107,7 +126,10 @@
107 126 function blockspare_enqueue_admin_style()
108 127 {
109 128 wp_enqueue_style('slick', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/css/slick.css', array(), '', 'all');
110 129 }
130 +
131 +
132 +
111 133
112 134
113 135