WordPress.org

Plugin Directory

Changeset 435137


Ignore:
Timestamp:
09/08/11 10:47:56 (3 years ago)
Author:
casben79
Message:

0.7 Bugfixes

Location:
wp-slick-slider/tags/0.7/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-slick-slider/tags/0.7/includes/output.php

    r435128 r435137  
    164164     
    165165    if( $pause_resume_links ): 
    166         $out .= '<a href="javascript:void(0)" class="wpss_pause">' . __( 'Pause' , 'wp_slick_slider' ) . '</a>'; 
    167         $out .= '<a href="javascript:void(0)" class="wpss_resume">' . __( 'Resume' , 'wp_slick_slider' ) . '</a>'; 
     166        $out .= '<a href="javascript:void(0)" class="wpss_pause_' . $slider . '">' . __( 'Pause' , 'wp_slick_slider' ) . '</a>'; 
     167        $out .= '<a href="javascript:void(0)" class="wpss_resume_' . $slider . '">' . __( 'Resume' , 'wp_slick_slider' ) . '</a>'; 
    168168    endif; 
    169169 
  • wp-slick-slider/tags/0.7/includes/wpss-functions.php

    r435128 r435137  
    5959            echo "'pager' : '#wpss_slideshow_pager_" . $slide->slug . "' \n"; 
    6060            echo "}); \n\n"; 
     61             
     62            //Use Pause Resume Buttons? 
     63            if( isset( $data['wpss_usepauseresume'] ) ){ 
     64                echo "$( '.wpss_pause_" . $slide->slug . "' ).click( function(){ $( '#wpss_slideshow_" . $slide->slug . " .wpss_slideshow_' ).cycle( 'pause' ) }) \n"; 
     65                echo "$( '.wpss_resume_" . $slide->slug . "' ).click( function(){ $( '#wpss_slideshow_" . $slide->slug . " .wpss_slideshow_' ).cycle( 'resume' ) }) \n"; 
     66            } 
    6167 
    6268        } 
    63         //Use Pause Resume Buttons? 
    64         if( isset( $data['wpss_usepauseresume'] ) ){ 
    65             echo "$( '.wpss_pause' ).click( function(){ $( '#wpss_slideshow_" . $slide->slug . " .wpss_slideshow_' ).cycle( 'pause' ) }) \n"; 
    66             echo "$( '.wpss_resume' ).click( function(){ $( '#wpss_slideshow_" . $slide->slug . " .wpss_slideshow_' ).cycle( 'resume' ) }) \n"; 
    67         } 
     69         
    6870 
    6971        echo "})</script>"; 
Note: See TracChangeset for help on using the changeset viewer.