PluginProbe
Qi Blocks / trunk
Qi Blocks vtrunk
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 trunk, at inc/masonry/helper.php

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