Plugin Directory

Changeset 1004682


Ignore:
Timestamp:
10/09/2014 06:49:47 PM (10 years ago)
Author:
Philip_wang
Message:

version num

Location:
wordpress-easy-slides/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-easy-slides/trunk/readme.txt

    r1004534 r1004682  
    44Requires at least: 3.1.1
    55Tested up to: 4.0
    6 Stable tag: 1.3
     6Stable tag: 1.4
    77
    88
  • wordpress-easy-slides/trunk/wp_easy_slides.php

    r870340 r1004682  
    1 <?php
     1<?php
    22/*
    3 Plugin Name: WordPress Easy Slides 
    4 Version: 1.3
     3Plugin Name: WordPress Easy Slides
     4Version: 1.4
    55Plugin URI: http://www.doumiaoer.com/?p=1271
    66Description:Generate a section in wordpress page or post where sildes show automatically
     
    1616}
    1717
    18 register_activation_hook( __FILE__, 'display_easySlides_install'); 
     18register_activation_hook( __FILE__, 'display_easySlides_install');
    1919
    2020register_deactivation_hook( __FILE__, 'display_easySlides_remove' );
     
    4444    }
    4545
    46    
     46
    4747    function wp_easy_slides_options_subpanel() {
    4848
    4949?>
    5050    <div class="wrap">
    51        
     51
    5252        <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>
    5454        <?php _e("Any problem or need help, please contact",'wp_easy_slides');?><a href="mailto:[email protected]">jun wang</a>.</p>
    5555        <div>
     
    5757        <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=K9U3MHJH3UMKS&lc=CA&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted">
    5858        <?php _e("Do you like this Plugin? Consider to donate!",'wp_easy_slides');?></a>
    59         </span> 
     59        </span>
    6060        <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=K9U3MHJH3UMKS&lc=CA&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted">
    6161        <img src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" align="left" />
    6262        </a>
    63         </div>     
     63        </div>
    6464 <div>
    6565        <h2><?php _e("Basic setting",'wp_easy_slides');?></h2>
    6666        <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 ??????????????????? */ ?>
    6868            <?php wp_nonce_field('update-options'); ?>
    6969
     
    7272            <td>
    7373                <input name="display_easySlides_title" type="text" size="35"  id="display_easySlides_title"  value="<?php echo get_option('display_easySlides_title'); ?>"  />
    74              
     74
    7575            </td>
    7676            </tr>
     
    8686    </div>
    8787
    88 <?php } 
    89    
     88<?php }
     89
    9090    add_action('wp_enqueue_scripts', 'my_scripts_method');
    9191    function my_scripts_method() {
     
    132132        }
    133133        #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%;
    139139            position:absolute;
    140140            bottom:0;
     
    151151        <?php
    152152    }
    153    
     153
    154154
    155155    add_action('wp_head', 'load_js');
     
    157157    ?>
    158158        <script type='text/javascript'>
    159        
     159
    160160        jQuery(document).ready(function(){
    161161                slideShow();
     
    163163
    164164        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});
    167167            //Set the caption background to semi-transparent
    168168            jQuery('#wpEasySllides .caption').css({opacity: 0.6});
    169169            jQuery('#wpEasySllides .caption').css({width: jQuery('#wpEasySllides a').find('img').css('width')});
    170170            jQuery('#wpEasySllides .content').html(jQuery('#wpEasySllides a:first').find('img').attr('rel'))
    171             .animate({opacity: 0.6}, 400);         
     171            .animate({opacity: 0.6}, 400);
    172172            setInterval('wpEasySllides()',5000); //change to next image after 5 seconds
    173            
     173
    174174        }
    175175
     
    177177            var current = (jQuery('#wpEasySllides a.show')?  jQuery('#wpEasySllides a.show') : jQuery('#wpEasySllides a:first'));
    178178            //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'));
    180180            //Get next image caption
    181             var caption = next.find('img').attr('rel');             
     181            var caption = next.find('img').attr('rel');
    182182            //Set the fade in effect for the next image, show class has higher z-index
    183183            next.css({opacity: 0.0})
     
    186186            //Hide the current image
    187187            current.animate({opacity: 0.0}, 1000)
    188             .removeClass('show');           
     188            .removeClass('show');
    189189            //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 });
    191191            //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 );
    193193            //Display the content
    194             jQuery('#wpEasySllides .content').html(caption);   
     194            jQuery('#wpEasySllides .content').html(caption);
    195195        }
    196196        </script>
     
    200200    function wp_sliders_show() {
    201201        $wp_easyslides_title = get_option('display_easySlides_title');
    202        
     202
    203203        if($wp_easyslides_title != '') {
    204204            $wp_slides_title_display = $wp_easyslides_title;
     
    206206            $wp_slides_title_display =  'Wordpress Easy Slides';
    207207        }
    208    
     208
    209209        $result .= '<h1>'.$wp_slides_title_display.'</h1>';
    210210        $result .= '<div id="wpEasySllides">
    211211            <a href="http://www.doumiaoer.com/?p=1271" class="show">
    212212                <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>
    214214            <a href="http://www.doumiaoer.com">
    215215                <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>
    217217            <a href="#">
    218218                <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
    221221            <div class="caption"><div class="content"></div></div>
    222222        </div>
    223223        <div class="clear"></div>';
    224        
     224
    225225        echo $result;
    226226    }
Note: See TracChangeset for help on using the changeset viewer.