/** * Enqueue scripts that the default gallery template relies on */ function enqueue_dependencies($gallery) { if ('yes' === $gallery->get_meta('default_loading_animation', 'yes')) { wp_enqueue_script('jquery'); foogallery_enqueue_imagesloaded_script(); } }
/** * Enqueue scripts that the masonry gallery template relies on */ function enqueue_masonry_dependencies() { wp_enqueue_script('jquery'); wp_enqueue_script('masonry'); foogallery_enqueue_imagesloaded_script(); }