PluginProbe
Qi Blocks / 1.2
Qi Blocks v1.2
1.5.3 1.5.2 1.5.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 All 45 releases
qi-blocks / inc / masonry / helper.php

helper.php in Qi Blocks 1.2, at inc/masonry/helper.php

19 lines 697 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 defined( 'ABSPATH' ) || exit;
5
6 if ( ! function_exists( 'qi_blocks_register_masonry_3rd_party_scripts' ) ) {
7 /**
8 * Function that set additional 3rd party scripts
9 */
10 function qi_blocks_register_masonry_3rd_party_scripts() {
11
12 // Register masonry scripts
13 wp_register_script( 'isotope', QI_BLOCKS_INC_URL_PATH . '/masonry/assets/plugins/isotope.pkgd.min.js', array( 'jquery' ), false, true );
14 wp_register_script( 'packery', QI_BLOCKS_INC_URL_PATH . '/masonry/assets/plugins/packery-mode.pkgd.min.js', array( 'jquery' ), false, true );
15 }
16
17 add_action( 'qi_blocks_action_additional_3rd_party_scripts', 'qi_blocks_register_masonry_3rd_party_scripts' );
18 }
19