PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 1.3.5
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v1.3.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 +22 -10 1.3.31.3.5 View file →
@@ -7,22 +7,34 @@
7 7 function blockspare_blocks_block_assets()
8 8 {
9 9
10 10 $min = (SCRIPT_DEBUG == true) ? '' : '.min';
11 +
12 + // Load the compiled styles.
11 13 wp_enqueue_style(
14 + 'blockspare-frontend-block-style-css',
15 + plugins_url('dist/blocks.style.build.css', dirname(__FILE__)),
16 + array()
17 + );
18 +
19 + }
20 +
21 + add_action('init', 'blockspare_blocks_block_assets');
22 +
23 +
24 + add_action('wp_enqueue_scripts', 'blockspare_load_scripts');
25 +
26 + function blockspare_load_scripts(){
27 +
28 + $min = (SCRIPT_DEBUG == true) ? '' : '.min';
29 +
30 + wp_enqueue_style(
12 31 'blockspare-blocks-fontawesome-front',
13 32 plugins_url('src/assets/fontawesome/css/all.css', dirname(__FILE__)),
14 33 array(),
15 34 filemtime(plugin_dir_path(__FILE__) . 'assets/fontawesome/css/all.css')
16 35 );
17 - // Load the compiled styles.
18 - wp_enqueue_style(
19 - 'blockspare-frontend-block-style-css',
20 - plugins_url('dist/blocks.style.build.css', dirname(__FILE__)),
21 - array()
22 - );
23 -
24 -
36 +
25 37 wp_enqueue_style('slick', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/css/slick.css', array(), '', 'all');
26 38 wp_enqueue_script('slick-js', BLOCKSPARE_PLUGIN_URL . 'src/assets/slick/js/slick.js', array('jquery'), '', true);
27 39 wp_register_script('countup', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/countup/jquery.counterup' . $min . '.js', array('waypoint'), true);
28 40
@@ -29,12 +41,12 @@
29 41 wp_enqueue_script('waypoint', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/countup/waypoints.min.js', array('jquery'), '', true);
30 42 wp_enqueue_script('jquery-masonry');
31 43
32 44 wp_enqueue_script('blockspare-script', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/frontend.js', array('jquery', 'waypoint', 'countup'), '', true);
45 +
33 46 wp_enqueue_script('blockspare-tabs', BLOCKSPARE_PLUGIN_URL . 'src/assets/js/tabs.js', array('jquery'), '', true);
47 +
34 48 }
35 -
36 - add_action('init', 'blockspare_blocks_block_assets');
37 49
38 50 if (!function_exists('blockspare_create_block')) {
39 51
40 52