Plugin Directory

Changeset 2190396


Ignore:
Timestamp:
11/12/2019 09:11:27 AM (6 years ago)
Author:
vmoshikov
Message:

Add jQuery and $ noConflict()

Location:
monster-gallery
Files:
3 edited
6 copied

Legend:

Unmodified
Added
Removed
  • monster-gallery/tags/1.3.1/assets/js/script.js

    r2190383 r2190396  
    1 $(function(){
    2     $('.wp-block-gallery.monster-slider').flickity({
     1jQuery.noConflict();
     2
     3jQuery(function(){
     4    jQuery('.wp-block-gallery.monster-slider').flickity({
    35        cellAlign: 'center',
    46        contain: true,
  • monster-gallery/tags/1.3.1/functions.php

    r2190383 r2190396  
    33Plugin URI: https://moshikov.co/
    44Description: Customise classic Gutenberg gallery. Add carousels slider (Flickity) and lightbox (Fancybox) script.
    5 Version: 1.3
     5Version: 1.3.1
    66Author: Vladislav Moshikov
    77Author URI: http://moshikov.co/
     
    1616    wp_enqueue_style( 'mstyle_flickity', plugins_url( 'assets/css/flickity.min.css', __FILE__ ) );
    1717
     18    // Plugin elements
     19    wp_enqueue_script( 'monstergallery_script_scripts', plugins_url( 'assets/js/script.js?', __FILE__ ) );
     20    wp_enqueue_style( 'monstergallery_script_style', plugins_url( 'assets/css/style.css', __FILE__ ) );
     21
    1822    // Fancybox library (https://fancyapps.com/fancybox/3/)
    1923    wp_enqueue_script( 'monstergallery_script_fancybox', plugins_url( 'assets/js/jquery.fancybox.min.js', __FILE__ ) );
    2024    wp_enqueue_style( 'mstyle_fancybox', plugins_url( 'assets/css/jquery.fancybox.min.css', __FILE__ ) );
    21 
    22     // Plugin elements
    23     wp_enqueue_script( 'monstergallery_script_scripts', plugins_url( 'assets/js/script.js', __FILE__ ) );
    24     wp_enqueue_style( 'monstergallery_script_style', plugins_url( 'assets/css/style.css', __FILE__ ) );
    2525
    2626
  • monster-gallery/tags/1.3.1/readme.txt

    r2190383 r2190396  
    55Requires at least: 5.0
    66Tested up to: 5.2.4
    7 Stable tag: 1.3
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • monster-gallery/trunk/assets/js/script.js

    r2190383 r2190396  
    1 $(function(){
    2     $('.wp-block-gallery.monster-slider').flickity({
     1jQuery.noConflict();
     2
     3jQuery(function(){
     4    jQuery('.wp-block-gallery.monster-slider').flickity({
    35        cellAlign: 'center',
    46        contain: true,
  • monster-gallery/trunk/functions.php

    r2190383 r2190396  
    33Plugin URI: https://moshikov.co/
    44Description: Customise classic Gutenberg gallery. Add carousels slider (Flickity) and lightbox (Fancybox) script.
    5 Version: 1.3
     5Version: 1.3.1
    66Author: Vladislav Moshikov
    77Author URI: http://moshikov.co/
     
    1616    wp_enqueue_style( 'mstyle_flickity', plugins_url( 'assets/css/flickity.min.css', __FILE__ ) );
    1717
     18    // Plugin elements
     19    wp_enqueue_script( 'monstergallery_script_scripts', plugins_url( 'assets/js/script.js?', __FILE__ ) );
     20    wp_enqueue_style( 'monstergallery_script_style', plugins_url( 'assets/css/style.css', __FILE__ ) );
     21
    1822    // Fancybox library (https://fancyapps.com/fancybox/3/)
    1923    wp_enqueue_script( 'monstergallery_script_fancybox', plugins_url( 'assets/js/jquery.fancybox.min.js', __FILE__ ) );
    2024    wp_enqueue_style( 'mstyle_fancybox', plugins_url( 'assets/css/jquery.fancybox.min.css', __FILE__ ) );
    21 
    22     // Plugin elements
    23     wp_enqueue_script( 'monstergallery_script_scripts', plugins_url( 'assets/js/script.js', __FILE__ ) );
    24     wp_enqueue_style( 'monstergallery_script_style', plugins_url( 'assets/css/style.css', __FILE__ ) );
    2525
    2626
  • monster-gallery/trunk/readme.txt

    r2190383 r2190396  
    55Requires at least: 5.0
    66Tested up to: 5.2.4
    7 Stable tag: 1.3
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.