Changeset 890210
- Timestamp:
- 04/09/2014 04:53:22 PM (12 years ago)
- Location:
- gallery-slideshow
- Files:
-
- 2 edited
-
tags/1.3/gallery-slideshow.php (modified) (1 diff)
-
trunk/gallery-slideshow.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gallery-slideshow/tags/1.3/gallery-slideshow.php
r889506 r890210 65 65 add_action( 'save_post', 'gss_embed_metadata' ); 66 66 67 ?>div></div>';68 if( !$has_captions ){69 $html .= $pager;70 }71 if( $has_captions ){72 $html .= '<div class="gss-long-cap">' . $longest_cap['text'] . "\n\t\t</div>";73 $html .= '<div id="' . $name . '_captions" class="gss-captions">' . "\n\t\t</div>";74 }75 $html .= "\n\t</div>\n</div>\n\n";76 return $html;77 }78 79 static function gss_enqueue_scripts() {80 wp_register_script( 'cycle2', plugins_url( 'jquery.cycle2.min.js' , __FILE__ ), array('jquery'), '2.0.2' );81 wp_register_script( 'cycle2_center', plugins_url( 'jquery.cycle2.center.min.js' , __FILE__ ), array('cycle2'), 'v20140114' );82 wp_register_script( 'gss_js', plugins_url( 'gss.js', __FILE__ ) );83 wp_register_style( 'gss_css', plugins_url( 'gss.css', __FILE__ ) );84 wp_enqueue_script( 'cycle2' );85 wp_enqueue_script( 'cycle2_center' );86 wp_enqueue_script( 'gss_js' );87 wp_enqueue_style( 'gss_css' );88 $custom_js = plugin_dir_path( __FILE__ ) . 'gss-custom.js';89 if ( file_exists($custom_js) ) {90 wp_register_script( 'gss-custom-js', plugins_url( 'gss-custom.js' , __FILE__ ) );91 wp_enqueue_script( 'gss-custom-js' );92 }93 }94 }95 96 gallery_ss::init();97 98 67 ?> -
gallery-slideshow/trunk/gallery-slideshow.php
r889506 r890210 65 65 add_action( 'save_post', 'gss_embed_metadata' ); 66 66 67 ?>div></div>';68 if( !$has_captions ){69 $html .= $pager;70 }71 if( $has_captions ){72 $html .= '<div class="gss-long-cap">' . $longest_cap['text'] . "\n\t\t</div>";73 $html .= '<div id="' . $name . '_captions" class="gss-captions">' . "\n\t\t</div>";74 }75 $html .= "\n\t</div>\n</div>\n\n";76 return $html;77 }78 79 static function gss_enqueue_scripts() {80 wp_register_script( 'cycle2', plugins_url( 'jquery.cycle2.min.js' , __FILE__ ), array('jquery'), '2.0.2' );81 wp_register_script( 'cycle2_center', plugins_url( 'jquery.cycle2.center.min.js' , __FILE__ ), array('cycle2'), 'v20140114' );82 wp_register_script( 'gss_js', plugins_url( 'gss.js', __FILE__ ) );83 wp_register_style( 'gss_css', plugins_url( 'gss.css', __FILE__ ) );84 wp_enqueue_script( 'cycle2' );85 wp_enqueue_script( 'cycle2_center' );86 wp_enqueue_script( 'gss_js' );87 wp_enqueue_style( 'gss_css' );88 $custom_js = plugin_dir_path( __FILE__ ) . 'gss-custom.js';89 if ( file_exists($custom_js) ) {90 wp_register_script( 'gss-custom-js', plugins_url( 'gss-custom.js' , __FILE__ ) );91 wp_enqueue_script( 'gss-custom-js' );92 }93 }94 }95 96 gallery_ss::init();97 98 67 ?>
Note: See TracChangeset
for help on using the changeset viewer.