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