Changeset 1754038
- Timestamp:
- 10/27/2017 04:18:49 PM (8 years ago)
- Location:
- gallery-slideshow
- Files:
-
- 2 deleted
- 6 edited
-
tags/1.4/gallery-slideshow.php (modified) (2 diffs)
-
tags/1.4/gss.js (modified) (1 diff)
-
tags/1.4/gss_html.php (modified) (1 diff)
-
tags/1.4/jquery.cycle2.center.min.js (deleted)
-
trunk/gallery-slideshow.php (modified) (2 diffs)
-
trunk/gss.js (modified) (1 diff)
-
trunk/gss_html.php (modified) (1 diff)
-
trunk/jquery.cycle2.center.min.js (deleted)
Legend:
- Unmodified
- Added
- Removed
-
gallery-slideshow/tags/1.4/gallery-slideshow.php
r1722213 r1754038 17 17 static function gss_shortcode($atts) { 18 18 wp_enqueue_script( 'cycle2' ); 19 wp_enqueue_script( 'cycle2_center' );19 // wp_enqueue_script( 'cycle2_center' ); 20 20 wp_enqueue_script( 'cycle2_carousel' ); 21 21 wp_enqueue_script( 'gss_js' ); … … 36 36 static function gss_register_scripts() { 37 37 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' ); 39 39 wp_register_script( 'cycle2_carousel', plugins_url( 'jquery.cycle2.carousel.min.js' , __FILE__ ), array('cycle2'), 'v20140114' ); 40 40 wp_register_script( 'gss_js', plugins_url( 'gss.js', __FILE__ ) ); -
gallery-slideshow/tags/1.4/gss.js
r1722206 r1754038 29 29 jQuery(this).load(function() { 30 30 imgw = jQuery(this).width(); 31 if(centering == true && imgw < (ssw*0.9)){31 /* if(centering == true && imgw < (ssw*0.9)){ 32 32 margin = Math.round((ssw - imgw)/2); 33 33 jQuery(this).css('margin-left', margin); 34 } 35 elseif(imgw != ssw && imgw > (ssw*0.9)){34 } */ 35 if(imgw != ssw && imgw > (ssw*0.9)){ 36 36 jQuery(this).css('margin-left', ''); 37 37 jQuery(this).css('width', '100%'); -
gallery-slideshow/tags/1.4/gss_html.php
r1722206 r1754038 41 41 'pager' => '#' . $name . '_pager', 42 42 'pager-template' => '<a href=#> </a>', 43 'speed' => '750' ,44 'center-horz' => 'true'43 'speed' => '750' 44 //, 'center-horz' => 'true' 45 45 ); 46 46 $has_captions = !empty( $longest_cap['text'] ) ? true : false; -
gallery-slideshow/trunk/gallery-slideshow.php
r1722213 r1754038 17 17 static function gss_shortcode($atts) { 18 18 wp_enqueue_script( 'cycle2' ); 19 wp_enqueue_script( 'cycle2_center' );19 // wp_enqueue_script( 'cycle2_center' ); 20 20 wp_enqueue_script( 'cycle2_carousel' ); 21 21 wp_enqueue_script( 'gss_js' ); … … 36 36 static function gss_register_scripts() { 37 37 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' ); 39 39 wp_register_script( 'cycle2_carousel', plugins_url( 'jquery.cycle2.carousel.min.js' , __FILE__ ), array('cycle2'), 'v20140114' ); 40 40 wp_register_script( 'gss_js', plugins_url( 'gss.js', __FILE__ ) ); -
gallery-slideshow/trunk/gss.js
r1722206 r1754038 24 24 jQuery(document).on('cycle-post-initialize', '.cycle-slideshow', function(){ 25 25 if (!jQuery(this).hasClass('carousel-pager')){ 26 var centering = jQuery(this).data('cycle-center-horz');26 // var centering = jQuery(this).data('cycle-center-horz'); 27 27 var ssw = jQuery(this).width(); 28 28 jQuery('a.cycle-slide', this).each(function() { 29 29 jQuery(this).load(function() { 30 30 imgw = jQuery(this).width(); 31 if(centering == true && imgw < (ssw*0.9)){31 /* if(centering == true && imgw < (ssw*0.9)){ 32 32 margin = Math.round((ssw - imgw)/2); 33 33 jQuery(this).css('margin-left', margin); 34 } 35 elseif(imgw != ssw && imgw > (ssw*0.9)){34 } */ 35 if(imgw != ssw && imgw > (ssw*0.9)){ 36 36 jQuery(this).css('margin-left', ''); 37 37 jQuery(this).css('width', '100%'); -
gallery-slideshow/trunk/gss_html.php
r1722206 r1754038 41 41 'pager' => '#' . $name . '_pager', 42 42 'pager-template' => '<a href=#> </a>', 43 'speed' => '750' ,44 'center-horz' => 'true'43 'speed' => '750' 44 //, 'center-horz' => 'true' 45 45 ); 46 46 $has_captions = !empty( $longest_cap['text'] ) ? true : false;
Note: See TracChangeset
for help on using the changeset viewer.