WordPress.org

Plugin Directory

Changeset 1696512 for smooth-slider


Ignore:
Timestamp:
07/14/17 20:20:52 (6 months ago)
Author:
internet techies
Message:

version 2.8.7

Location:
smooth-slider
Files:
112 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • smooth-slider/trunk/css/skins/default/functions.php

    r1293997 r1696512  
    136136         
    137137        /* Added for embeding any shortcode on slide - start */ 
    138         $smooth_eshortcode=get_post_meta($post_id, '_smooth_embed_shortcode', true); 
     138        $smooth_eshortcode=html_entity_decode( get_post_meta($post_id, '_smooth_embed_shortcode', true), ENT_QUOTES ); 
    139139        if(!empty($smooth_eshortcode)){ 
    140140            $shortcode_html=do_shortcode($smooth_eshortcode); 
  • smooth-slider/trunk/includes/media-images.php

    r1201527 r1696512  
    4141           }  
    4242      $form_fields['slider_name[]'] = array( 
    43               'label'      => __(''), 
     43              'label'      => '', 
    4444              'input'      => 'html', 
    4545              'html'       => '<select name="attachments['.$post->ID.'][slider_name][]" multiple="multiple" size="2" style="height:4em;">'.$sname_html.'</select>', 
  • smooth-slider/trunk/readme.txt

    r1531414 r1696512  
    44Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider, mp3, video 
    55Requires at least: 3.0 
    6 Tested up to: 4.6.1 
    7 Stable tag: 2.8.6 
     6Tested up to: 4.8 
     7Stable tag: 2.8.7 
    88License: GPLv2 or later 
    99 
     
    217217 
    218218== Changelog == 
     219 
     220Version 2.8.7 (07/15/2017) 
     221 
     2221. Fix - Expiry date issue with non-English WordPress installations. 
     2232. Fix - Minor security fixes. 
    219224 
    220225Version 2.8.6 (11/10/2016) 
  • smooth-slider/trunk/settings/settings.php

    r1293997 r1696512  
    6666function smooth_slider_settings_page() { 
    6767global $smooth_slider,$default_slider;  
    68 //print_r($default_slider); 
    69 //die("test"); 
    70  
    7168/* Skins settings File 2.6 */ 
    7269$directory = SMOOTH_SLIDER_CSS_DIR; 
     
    8380if (isset ($_POST['smooth_reset_settings_submit'])) { 
    8481    if ( $_POST['smooth_reset_settings']!='n' ) { 
    85         $smooth_reset_settings=$_POST['smooth_reset_settings']; 
     82        $smooth_reset_settings=sanitize_text_field($_POST['smooth_reset_settings']); 
    8683        $options='smooth_slider_options'; 
    8784        $optionsvalue=get_option($options); 
     
    319316    &nbsp; <span class="trigger"> ? </span> 
    320317    <div class="tooltip"> 
    321     <?php _e('Put the tags like &lt;br&gt;&lt;a&gt;&ltp&gt; to retain them.Do not separate them using commas, neither use anywhere.','smooth-slider'); ?> 
     318    <?php _e('Put the tags like &lt;br&gt;&lt;a&gt;&ltp&gt; to retain them.Do not separate them using commas, neither use \' anywhere.','smooth-slider'); ?> 
    322319    </div> 
    323320</span> 
  • smooth-slider/trunk/settings/sliders.php

    r1293997 r1696512  
    5858} 
    5959if (isset($_POST['create_new_slider'])) { 
    60     $slider_name = $_POST['new_slider_name']; 
     60    $slider_name = sanitize_text_field( $_POST['new_slider_name'] ); 
    6161    global $wpdb,$table_prefix; 
    6262    $slider_meta = $table_prefix.SLIDER_META; 
     
    9292/*Added for rename slider-2.6-start*/ 
    9393if ((isset ($_POST['rename_slider'])) and ($_POST['rename_slider'] == __('Rename','smooth-slider'))) { 
    94     $slider_name = $_POST['rename_slider_to']; 
     94    $slider_name = sanitize_text_field( $_POST['rename_slider_to'] ); 
    9595    $slider_id = isset($_POST['current_slider_id'])?$_POST['current_slider_id']:''; 
    9696    $slider_id = intval($slider_id); 
     
    121121    global $wpdb,$table_prefix; 
    122122    foreach($ids as $id){ 
    123         $title=(isset($_POST['title'][$id]))?$_POST['title'][$id]:''; 
    124         $desc=(isset($_POST['desc'][$id]))?$_POST['desc'][$id]:''; 
    125         $link=(isset($_POST['link'][$id]))?$_POST['link'][$id]:''; 
    126         $nolink=(isset($_POST['nolink'][$id]))?$_POST['nolink'][$id]:''; 
     123        $title=(isset($_POST['title'][$id]))?esc_html($_POST['title'][$id]):''; 
     124        $desc=(isset($_POST['desc'][$id]))?esc_html($_POST['desc'][$id]):''; 
     125        $link=(isset($_POST['link'][$id]))?sanitize_text_field($_POST['link'][$id]):''; 
     126        $nolink=(isset($_POST['nolink'][$id]))?sanitize_text_field($_POST['nolink'][$id]):''; 
    127127        $attachment = array( 
    128128            'ID'           => $id, 
  • smooth-slider/trunk/slider_versions/smooth_1.php

    r1293997 r1696512  
    101101            $table_name a LEFT OUTER JOIN $post_table b  
    102102        ON a.post_id = b.ID  
    103         WHERE (b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')) AND a.slider_id = '$slider_id' AND (a.expiry IS NULL OR a.expiry='0000-00-00' OR DATE(a.expiry) >= DATE(NOW()) ) ORDER BY ".$orderby." LIMIT $offset, $max_posts", OBJECT); 
     103        WHERE (b.post_status = 'publish' OR (b.post_type='attachment' AND b.post_status = 'inherit')) AND a.slider_id = '$slider_id' AND (a.expiry IS NULL OR a.expiry='0000-00-00' OR DATE(a.expiry) >= CURDATE() ) ORDER BY ".$orderby." LIMIT $offset, $max_posts", OBJECT); 
    104104    } 
    105105    $r_array=smooth_global_posts_processor( $posts, $smooth_slider, $out_echo, $set, $data ); 
  • smooth-slider/trunk/smooth-slider.php

    r1531414 r1696512  
    44Plugin URI: http://slidervilla.com/smooth-slider/ 
    55Description: Smooth slider adds a responsive featured content on image slider using shortcode, widget and template tags. Create and embed featured content slider, recent post slider, category slider in less than 60 seconds. 
    6 Version: 2.8.6 
     6Version: 2.8.7 
    77Author: SliderVilla 
    88Text Domain: smooth-slider 
     
    1111*/ 
    1212 
    13 /*  Copyright 2009-2016  SliderVilla  (email : support@slidervilla.com) 
     13/*  Copyright 2009-2017  SliderVilla  (email : support@slidervilla.com) 
    1414 
    1515    This program is free software; you can redistribute it and/or modify 
     
    3232global $smooth_slider,$default_slider,$smooth_db_version,$default_smooth_slider_settings; 
    3333$smooth_slider = get_option('smooth_slider_options'); 
    34 $smooth_db_version='2.8.6'; //current version of smooth slider database  
     34$smooth_db_version='2.8.7'; //current version of smooth slider database  
    3535define('SLIDER_TABLE','smooth_slider'); //Slider TABLE NAME 
    3636define('PREV_SLIDER_TABLE','slider'); //Slider TABLE NAME 
    3737define('SLIDER_META','smooth_slider_meta'); //Meta TABLE NAME 
    3838define('SLIDER_POST_META','smooth_slider_postmeta'); //Meta TABLE NAME 
    39 define("SMOOTH_SLIDER_VER","2.8.6",false);//Current Version of Smooth Slider 
     39define("SMOOTH_SLIDER_VER","2.8.7",false);//Current Version of Smooth Slider 
    4040if ( ! defined( 'SMOOTH_SLIDER_PLUGIN_BASENAME' ) ) 
    4141    define( 'SMOOTH_SLIDER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 
     
    291291          } 
    292292        } 
    293         if(isset($_POST['sslider_expiry']) ) { 
    294             $expiry=$_POST['sslider_expiry']; 
     293        if(isset($_POST['sslider_expiry_actual']) ) { 
     294            $expiry=sanitize_text_field($_POST['sslider_expiry_actual']); 
    295295            if(!empty($expiry)){ 
    296296                $date=$expiry; 
     
    327327        } 
    328328        if(isset($_POST['display_slider']) and isset($_POST['display_slider_name'])){ 
    329           $slider_id = $_POST['display_slider_name']; 
     329          $slider_id = (int) $_POST['display_slider_name']; 
    330330        } 
    331331        if(isset($_POST['display_slider'])){     
     
    338338        $thumbnail_key = $smooth_slider['img_pick'][1]; 
    339339        $sslider_thumbnail = get_post_meta($post_id,$thumbnail_key,true); 
    340         $post_slider_thumbnail=isset($_POST['sslider_thumbnail'])?$_POST['sslider_thumbnail']:''; 
     340        $post_slider_thumbnail=isset($_POST['sslider_thumbnail'])?sanitize_text_field($_POST['sslider_thumbnail']):''; 
    341341        if($sslider_thumbnail != $post_slider_thumbnail) { 
    342342          update_post_meta($post_id, $thumbnail_key, $post_slider_thumbnail);    
     
    344344     
    345345        $sslider_link = get_post_meta($post_id,'slide_redirect_url',true); 
    346         $link=isset($_POST['sslider_link'])?$_POST['sslider_link']:''; 
     346        $link=isset($_POST['sslider_link'])?sanitize_text_field($_POST['sslider_link']):''; 
    347347        //$sldr_post=get_post($post_id); 
    348348        //if((!isset($link) or empty($link)) and $sldr_post->post_status == 'publish'  ){$link=get_permalink($post_id);}//from 2.3.3 
     
    351351        } 
    352352     
    353         $sslider_expiry = get_post_meta($post_id,'sslider_expiry',true); 
    354         $post_sslider_expiry = isset($_POST['sslider_expiry'])?$_POST['sslider_expiry']:''; 
     353        $sslider_expiry = get_post_meta($post_id,'_sslider_expiry',true); 
     354        $post_sslider_expiry = isset($_POST['sslider_expiry_actual'])?sanitize_text_field($_POST['sslider_expiry_actual']):''; 
    355355        if($sslider_expiry != $post_sslider_expiry) { 
    356356          update_post_meta($post_id, '_sslider_expiry', $post_sslider_expiry);   
     
    358358 
    359359        $sslider_nolink = get_post_meta($post_id,'sslider_nolink',true); 
    360         $post_sslider_nolink = isset($_POST['sslider_nolink'])?$_POST['sslider_nolink']:''; 
     360        $post_sslider_nolink = isset($_POST['sslider_nolink'])?sanitize_text_field($_POST['sslider_nolink'] ):''; 
    361361        if($sslider_nolink != $post_sslider_nolink) { 
    362362          update_post_meta($post_id, 'sslider_nolink', $post_sslider_nolink);    
     
    364364        /* Added for embed shortcode - start */ 
    365365        $disable_image = get_post_meta($post_id,'_disable_image',true); 
    366         $post_disable_image = isset($_POST['disable_image'])?$_POST['disable_image']:''; 
     366        $post_disable_image = isset($_POST['disable_image'])?sanitize_text_field($_POST['disable_image'] ):''; 
    367367        if($disable_image != $post_disable_image ) { 
    368368          update_post_meta($post_id, '_disable_image', $post_disable_image );    
    369369        } 
    370370        $smooth_sslider_eshortcode = get_post_meta($post_id,'_smooth_embed_shortcode',true); 
    371         $post_smooth_sslider_eshortcode = isset($_POST['smooth_sslider_eshortcode'])?$_POST['smooth_sslider_eshortcode']:''; 
     371        $post_smooth_sslider_eshortcode = isset($_POST['smooth_sslider_eshortcode'])?htmlentities( $_POST['smooth_sslider_eshortcode'], ENT_QUOTES):''; 
    372372        if($smooth_sslider_eshortcode != $post_smooth_sslider_eshortcode) { 
    373373          update_post_meta($post_id, '_smooth_embed_shortcode', $post_smooth_sslider_eshortcode);    
    374374        } 
    375375        $slider_style = get_post_meta($post_id,'_smooth_slider_style',true); 
    376         $post_slider_style=isset($_POST['_smooth_slider_style'])?$_POST['_smooth_slider_style']:''; 
     376        $post_slider_style=isset($_POST['_smooth_slider_style'])?sanitize_text_field($_POST['_smooth_slider_style']):''; 
    377377        if($slider_style != $post_slider_style) { 
    378378          update_post_meta($post_id, '_smooth_slider_style', $post_slider_style);    
     
    400400        } 
    401401     
    402         $display_slider = isset($_POST['display_slider'])?$_POST['display_slider']:''; 
     402        $display_slider = isset($_POST['display_slider'])?sanitize_text_field( $_POST['display_slider'] ):''; 
    403403        $table_name = $table_prefix.SLIDER_POST_META; 
    404404        if(empty($display_slider) and ss_slider_on_this_post($post_id)){ 
     
    468468        if( isset($_GET['source_lang']) && isset($_GET['trid']) ) { 
    469469            global $wpdb, $table_prefix; 
    470             $id = $wpdb->get_var( "SELECT element_id FROM {$wpdb->prefix}icl_translations WHERE trid=".$_GET['trid']." AND language_code='".$_GET['source_lang']."'" );          
     470            $id = $wpdb->get_var( "SELECT element_id FROM {$wpdb->prefix}icl_translations WHERE trid=".(int) $_GET['trid']." AND language_code='".sanitize_text_field($_GET['source_lang'])."'" );           
    471471            $table_name = $table_prefix.SLIDER_TABLE; 
    472472            $q = "select * from $table_name where post_id=".$id; 
     
    533533            jQuery('#smooth_ExpiryDate').datepicker({ 
    534534                dateFormat : "<?php echo $dtpicker ?>" 
     535            }); 
     536            jQuery("#smooth_ExpiryDate").on("change", function(e){ 
     537                var expDt=jQuery(this).val(); 
     538                jQuery("#sslider_expiry_actual").val(expDt); 
     539                if(expDt.length>0){ 
     540                    jQuery("#sslider_none").show(); 
     541                } 
     542                else{ 
     543                    jQuery("#sslider_none").hide(); 
     544                } 
     545            }); 
     546            jQuery("#sslider_none").on("click", function(e){ 
     547                jQuery("#smooth_ExpiryDate").val(""); 
     548                jQuery("#smooth_ExpiryDate").triggerHandler("change"); 
     549                e.preventDefault(); 
     550                return false; 
    535551            }); 
    536552            jQuery("#smooth_basic").css({"background":"#222222","color":"#ffffff"}); 
     
    647663        <tr valign="top"> 
    648664         <th scope="row"><label for="sslider_expiry"><?php _e('Expiry Date','smooth-slider'); ?></label></th> 
    649                     <td><input type="text" name="sslider_expiry" id="smooth_ExpiryDate" class="sslider_expiry" value="<?php echo $sslider_expiry;?>" size="20" /> 
     665                    <td><input type="text" name="sslider_expiry" id="smooth_ExpiryDate" class="sslider_expiry" readonly="true" value="<?php echo ((!empty($sslider_expiry))?date_i18n($wpDateFormat, strtotime($sslider_expiry)):'');?>" size="20" /> <input type="hidden" name="sslider_expiry_actual" id="sslider_expiry_actual" value="<?php echo $sslider_expiry;?>" /><button name="sslider_none" id="sslider_none"><?php esc_html_e( 'None','smooth-slider' );?> 
    650666                </td></tr> 
    651667 
     
    654670        <td><input type="checkbox" name="disable_image" value="1" <?php if($sslider_disable_image=='1'){echo "checked";}?>  /> </td> 
    655671        </tr> 
    656                
    657672                 
    658673        <!-- Added for video - Start --> 
    659674        <tr valign="top"> 
    660675        <th scope="row"><label for="embed_shortcode"><?php _e('Embed Shortcode','smooth-slider'); ?> </label><br><br><div style="font-weight:normal;border:1px dashed #ccc;padding:5px;color:#666;line-height:20px;font-size:13px;">You can embed any type of shortcode e.g video shortcode or button shortcode which you want to be overlaid on the slide.</div></th> 
    661         <td><textarea rows="4" cols="50" name="smooth_sslider_eshortcode"><?php echo htmlentities( $smooth_embed_shortcode, ENT_QUOTES);?></textarea></td> 
     676        <td><textarea rows="4" cols="50" name="smooth_sslider_eshortcode"><?php echo html_entity_decode( $smooth_embed_shortcode, ENT_QUOTES );?></textarea></td> 
    662677        </tr> 
    663678        </table> 
Note: See TracChangeset for help on using the changeset viewer.