Plugin Directory

Changeset 1754038


Ignore:
Timestamp:
10/27/2017 04:18:49 PM (8 years ago)
Author:
jethin
Message:

removing Cycle2 center plugin; image centering now handled via css.

Location:
gallery-slideshow
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • gallery-slideshow/tags/1.4/gallery-slideshow.php

    r1722213 r1754038  
    1717    static function gss_shortcode($atts) {
    1818        wp_enqueue_script( 'cycle2' );
    19         wp_enqueue_script( 'cycle2_center' );
     19        // wp_enqueue_script( 'cycle2_center' );
    2020        wp_enqueue_script( 'cycle2_carousel' );
    2121        wp_enqueue_script( 'gss_js' );
     
    3636    static function gss_register_scripts() {
    3737        wp_register_script( 'cycle2', plugins_url( 'jquery.cycle2.min.js' , __FILE__ ), array('jquery'), '2.1.3' );
    38         wp_register_script( 'cycle2_center', plugins_url( 'jquery.cycle2.center.min.js' , __FILE__ ), array('cycle2'), 'v20140128' );
     38        // wp_register_script( 'cycle2_center', plugins_url( 'jquery.cycle2.center.min.js' , __FILE__ ), array('cycle2'), 'v20140128' );
    3939        wp_register_script( 'cycle2_carousel', plugins_url( 'jquery.cycle2.carousel.min.js' , __FILE__ ), array('cycle2'), 'v20140114' );
    4040        wp_register_script( 'gss_js', plugins_url( 'gss.js', __FILE__ ) );
  • gallery-slideshow/tags/1.4/gss.js

    r1722206 r1754038  
    2929            jQuery(this).load(function() {
    3030                imgw = jQuery(this).width();
    31                 if(centering == true && imgw < (ssw*0.9)){
     31                /* if(centering == true && imgw < (ssw*0.9)){
    3232                    margin = Math.round((ssw - imgw)/2);
    3333                    jQuery(this).css('margin-left', margin);
    34                 }
    35                 else if(imgw != ssw && imgw > (ssw*0.9)){
     34                } */
     35                if(imgw != ssw && imgw > (ssw*0.9)){
    3636                    jQuery(this).css('margin-left', '');
    3737                    jQuery(this).css('width', '100%');
  • gallery-slideshow/tags/1.4/gss_html.php

    r1722206 r1754038  
    4141        'pager' => '#' . $name . '_pager',
    4242        'pager-template' => '<a href=#>&nbsp;</a>',
    43         'speed' => '750',
    44         'center-horz' => 'true'
     43        'speed' => '750'
     44        //, 'center-horz' => 'true'
    4545    );
    4646    $has_captions = !empty( $longest_cap['text'] ) ? true : false;
  • gallery-slideshow/trunk/gallery-slideshow.php

    r1722213 r1754038  
    1717    static function gss_shortcode($atts) {
    1818        wp_enqueue_script( 'cycle2' );
    19         wp_enqueue_script( 'cycle2_center' );
     19        // wp_enqueue_script( 'cycle2_center' );
    2020        wp_enqueue_script( 'cycle2_carousel' );
    2121        wp_enqueue_script( 'gss_js' );
     
    3636    static function gss_register_scripts() {
    3737        wp_register_script( 'cycle2', plugins_url( 'jquery.cycle2.min.js' , __FILE__ ), array('jquery'), '2.1.3' );
    38         wp_register_script( 'cycle2_center', plugins_url( 'jquery.cycle2.center.min.js' , __FILE__ ), array('cycle2'), 'v20140128' );
     38        // wp_register_script( 'cycle2_center', plugins_url( 'jquery.cycle2.center.min.js' , __FILE__ ), array('cycle2'), 'v20140128' );
    3939        wp_register_script( 'cycle2_carousel', plugins_url( 'jquery.cycle2.carousel.min.js' , __FILE__ ), array('cycle2'), 'v20140114' );
    4040        wp_register_script( 'gss_js', plugins_url( 'gss.js', __FILE__ ) );
  • gallery-slideshow/trunk/gss.js

    r1722206 r1754038  
    2424jQuery(document).on('cycle-post-initialize', '.cycle-slideshow', function(){
    2525    if (!jQuery(this).hasClass('carousel-pager')){
    26         var centering = jQuery(this).data('cycle-center-horz');
     26        // var centering = jQuery(this).data('cycle-center-horz'); 
    2727        var ssw = jQuery(this).width();
    2828        jQuery('a.cycle-slide', this).each(function() {
    2929            jQuery(this).load(function() {
    3030                imgw = jQuery(this).width();
    31                 if(centering == true && imgw < (ssw*0.9)){
     31                /* if(centering == true && imgw < (ssw*0.9)){
    3232                    margin = Math.round((ssw - imgw)/2);
    3333                    jQuery(this).css('margin-left', margin);
    34                 }
    35                 else if(imgw != ssw && imgw > (ssw*0.9)){
     34                } */
     35                if(imgw != ssw && imgw > (ssw*0.9)){
    3636                    jQuery(this).css('margin-left', '');
    3737                    jQuery(this).css('width', '100%');
  • gallery-slideshow/trunk/gss_html.php

    r1722206 r1754038  
    4141        'pager' => '#' . $name . '_pager',
    4242        'pager-template' => '<a href=#>&nbsp;</a>',
    43         'speed' => '750',
    44         'center-horz' => 'true'
     43        'speed' => '750'
     44        //, 'center-horz' => 'true'
    4545    );
    4646    $has_captions = !empty( $longest_cap['text'] ) ? true : false;
Note: See TracChangeset for help on using the changeset viewer.