# qi-blocks/trunk/inc/masonry/helper.php

Qi Blocks, version trunk. 21 lines.

- Page: https://pluginprobe.com/plugins/qi-blocks/trunk/code/inc/masonry/helper.php
- Raw: https://pluginprobe.com/plugins/qi-blocks/trunk/raw/inc/masonry/helper.php
- Modified: 2024-04-11T10:02:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/qi-blocks/trunk/code/inc/masonry/helper.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	// Exit if accessed directly.
	exit;
}

if ( ! function_exists( 'qi_blocks_register_masonry_3rd_party_scripts' ) ) {
	/**
	 * Function that set additional 3rd party scripts
	 */
	function qi_blocks_register_masonry_3rd_party_scripts() {

		// Register masonry scripts.
		wp_register_script( 'isotope', QI_BLOCKS_INC_URL_PATH . '/masonry/assets/plugins/isotope.pkgd.min.js', array( 'jquery' ), '3.0.6', true );
		wp_register_script( 'packery', QI_BLOCKS_INC_URL_PATH . '/masonry/assets/plugins/packery-mode.pkgd.min.js', array( 'jquery' ), '2.0.1', true );
	}

	add_action( 'qi_blocks_action_additional_3rd_party_scripts', 'qi_blocks_register_masonry_3rd_party_scripts' );
}

```
