Changeset 1004682
- Timestamp:
- 10/09/2014 06:49:47 PM (10 years ago)
- Location:
- wordpress-easy-slides/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wordpress-easy-slides/trunk/readme.txt
r1004534 r1004682 4 4 Requires at least: 3.1.1 5 5 Tested up to: 4.0 6 Stable tag: 1. 36 Stable tag: 1.4 7 7 8 8 -
wordpress-easy-slides/trunk/wp_easy_slides.php
r870340 r1004682 1 <?php1 <?php 2 2 /* 3 Plugin Name: WordPress Easy Slides 4 Version: 1. 33 Plugin Name: WordPress Easy Slides 4 Version: 1.4 5 5 Plugin URI: http://www.doumiaoer.com/?p=1271 6 6 Description:Generate a section in wordpress page or post where sildes show automatically … … 16 16 } 17 17 18 register_activation_hook( __FILE__, 'display_easySlides_install'); 18 register_activation_hook( __FILE__, 'display_easySlides_install'); 19 19 20 20 register_deactivation_hook( __FILE__, 'display_easySlides_remove' ); … … 44 44 } 45 45 46 46 47 47 function wp_easy_slides_options_subpanel() { 48 48 49 49 ?> 50 50 <div class="wrap"> 51 51 52 52 <h2><?php _e("Easy Slides Settings",'wp_easy_slides');?></h2> 53 <p><?php _e("<a href=\"http://www.doumiaoer.com/\">WordPress Easy Slides </a>Plugin can generate generate a section in wordpress page or post where sildes show automatically.",'wp_easy_slides');?> </p> 53 <p><?php _e("<a href=\"http://www.doumiaoer.com/\">WordPress Easy Slides </a>Plugin can generate generate a section in wordpress page or post where sildes show automatically.",'wp_easy_slides');?> </p> 54 54 <?php _e("Any problem or need help, please contact",'wp_easy_slides');?><a href="mailto:[email protected]">jun wang</a>.</p> 55 55 <div> … … 57 57 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=K9U3MHJH3UMKS&lc=CA¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"> 58 58 <?php _e("Do you like this Plugin? Consider to donate!",'wp_easy_slides');?></a> 59 </span> 59 </span> 60 60 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=K9U3MHJH3UMKS&lc=CA¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"> 61 61 <img src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" align="left" /> 62 62 </a> 63 </div> 63 </div> 64 64 <div> 65 65 <h2><?php _e("Basic setting",'wp_easy_slides');?></h2> 66 66 <form method="post" action="options.php"> 67 <?php /* the code below is used to save form into db 下面这行代码用来保存表单中内容到数据库*/ ?>67 <?php /* the code below is used to save form into db ??????????????????? */ ?> 68 68 <?php wp_nonce_field('update-options'); ?> 69 69 … … 72 72 <td> 73 73 <input name="display_easySlides_title" type="text" size="35" id="display_easySlides_title" value="<?php echo get_option('display_easySlides_title'); ?>" /> 74 74 75 75 </td> 76 76 </tr> … … 86 86 </div> 87 87 88 <?php } 89 88 <?php } 89 90 90 add_action('wp_enqueue_scripts', 'my_scripts_method'); 91 91 function my_scripts_method() { … … 132 132 } 133 133 #wpEasySllides .caption { 134 z-index:600; 135 background-color:#000; 136 color:#ffffff; 137 height:80px; 138 width:100%; 134 z-index:600; 135 background-color:#000; 136 color:#ffffff; 137 height:80px; 138 width:100%; 139 139 position:absolute; 140 140 bottom:0; … … 151 151 <?php 152 152 } 153 153 154 154 155 155 add_action('wp_head', 'load_js'); … … 157 157 ?> 158 158 <script type='text/javascript'> 159 159 160 160 jQuery(document).ready(function(){ 161 161 slideShow(); … … 163 163 164 164 function slideShow() { 165 jQuery('#wpEasySllides a').css({opacity: 0.0}); 166 jQuery('#wpEasySllides a:first').css({opacity: 1.0}); 165 jQuery('#wpEasySllides a').css({opacity: 0.0}); 166 jQuery('#wpEasySllides a:first').css({opacity: 1.0}); 167 167 //Set the caption background to semi-transparent 168 168 jQuery('#wpEasySllides .caption').css({opacity: 0.6}); 169 169 jQuery('#wpEasySllides .caption').css({width: jQuery('#wpEasySllides a').find('img').css('width')}); 170 170 jQuery('#wpEasySllides .content').html(jQuery('#wpEasySllides a:first').find('img').attr('rel')) 171 .animate({opacity: 0.6}, 400); 171 .animate({opacity: 0.6}, 400); 172 172 setInterval('wpEasySllides()',5000); //change to next image after 5 seconds 173 173 174 174 } 175 175 … … 177 177 var current = (jQuery('#wpEasySllides a.show')? jQuery('#wpEasySllides a.show') : jQuery('#wpEasySllides a:first')); 178 178 //Get next image, if it reached the end of the slideshow, rotate it back to the first image 179 var next = ((current.next().length) ? ((current.next().hasClass('caption'))? jQuery('#wpEasySllides a:first') :current.next()) : jQuery('#wpEasySllides a:first')); 179 var next = ((current.next().length) ? ((current.next().hasClass('caption'))? jQuery('#wpEasySllides a:first') :current.next()) : jQuery('#wpEasySllides a:first')); 180 180 //Get next image caption 181 var caption = next.find('img').attr('rel'); 181 var caption = next.find('img').attr('rel'); 182 182 //Set the fade in effect for the next image, show class has higher z-index 183 183 next.css({opacity: 0.0}) … … 186 186 //Hide the current image 187 187 current.animate({opacity: 0.0}, 1000) 188 .removeClass('show'); 188 .removeClass('show'); 189 189 //Set the opacity to 0 and height to 1px 190 jQuery('#wpEasySllides .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 }); 190 jQuery('#wpEasySllides .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 }); 191 191 //Animate the caption, opacity to 0.5 and heigth to 60px, a slide up effect 192 jQuery('#wpEasySllides .caption').animate({opacity: 0.6},80 ).animate({height: '80px'},500 ); 192 jQuery('#wpEasySllides .caption').animate({opacity: 0.6},80 ).animate({height: '80px'},500 ); 193 193 //Display the content 194 jQuery('#wpEasySllides .content').html(caption); 194 jQuery('#wpEasySllides .content').html(caption); 195 195 } 196 196 </script> … … 200 200 function wp_sliders_show() { 201 201 $wp_easyslides_title = get_option('display_easySlides_title'); 202 202 203 203 if($wp_easyslides_title != '') { 204 204 $wp_slides_title_display = $wp_easyslides_title; … … 206 206 $wp_slides_title_display = 'Wordpress Easy Slides'; 207 207 } 208 208 209 209 $result .= '<h1>'.$wp_slides_title_display.'</h1>'; 210 210 $result .= '<div id="wpEasySllides"> 211 211 <a href="http://www.doumiaoer.com/?p=1271" class="show"> 212 212 <img src="wp-content/plugins/wordpress-easy-slides/images_easySlides/copenhagenDenmark.jpg" alt="copenhagenDenmark" width="580" height="360" title="" alt="" rel="<h3>Copenhagen</h3>Copenhagen Denmark" /> 213 </a> 213 </a> 214 214 <a href="http://www.doumiaoer.com"> 215 215 <img src="wp-content/plugins/wordpress-easy-slides/images_easySlides/lundSweden.jpg" alt="lundSweden" width="580" height="360" title="" alt="" rel="<h3>Lund</h3>lund of Sweden"/> 216 </a> 216 </a> 217 217 <a href="#"> 218 218 <img src="wp-content/plugins/wordpress-easy-slides/images_easySlides/simonLakeCanada.jpg" alt="simonLakeCanada" width="580" height="360" title="" alt="" rel="<h3>simon lake</h3>simon Lake Canada "/> 219 </a> 220 219 </a> 220 221 221 <div class="caption"><div class="content"></div></div> 222 222 </div> 223 223 <div class="clear"></div>'; 224 224 225 225 echo $result; 226 226 }
Note: See TracChangeset
for help on using the changeset viewer.