Changeset 1316529
- Timestamp:
- 12/26/2015 02:44:05 PM (10 years ago)
- Location:
- advanced-post-slider/trunk
- Files:
-
- 7 edited
-
advanced-post-slider.php (modified) (7 diffs)
-
advps-admin.php (modified) (16 diffs)
-
js/advps.script.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
templates/template-one.php (modified) (32 diffs)
-
templates/template-three.php (modified) (34 diffs)
-
templates/template-two.php (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-post-slider/trunk/advanced-post-slider.php
r1305899 r1316529 4 4 Plugin URI: www.wpcue.com 5 5 Description: A multipurpose responsive slideshow plugin powered with three built-in design template, lots of easy customizable options and many more to explore. 6 Version: 2. 4.06 Version: 2.5.0 7 7 Author: digontoahsan 8 8 Author URI: www.wpcue.com … … 76 76 update_option('advps-update-notification','show'); 77 77 } 78 update_option('advps-curr-version','2. 4.0');78 update_option('advps-curr-version','2.5.0'); 79 79 } 80 80 add_action( 'plugins_loaded', 'advps_update_db' ); … … 108 108 109 109 function advpsUpdateLabel(){ 110 $nonce = $_POST['checkReq'];111 $fname = $_POST['f_name'];112 $fvalue = trim( $_POST['f_value']);110 $nonce = sanitize_text_field( $_POST['checkReq'] ); 111 $fname = sanitize_text_field( $_POST['f_name'] ); 112 $fvalue = trim( sanitize_text_field( $_POST['f_value']) ); 113 113 if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){ 114 114 echo "Unauthorized request."; … … 124 124 125 125 function chkCaetegory(){ 126 $nonce = $_POST['checkReq'];127 $posttype = $_POST['post_type'];126 $nonce = sanitize_text_field( $_POST['checkReq'] ); 127 $posttype = sanitize_text_field( $_POST['post_type'] ); 128 128 if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){ 129 129 echo "Unauthorized request."; … … 155 155 } 156 156 function advpsUpdateOpt(){ 157 $nonce = $_POST['checkReq'];157 $nonce = sanitize_text_field( $_POST['checkReq'] ); 158 158 $optdata = $_POST['optdata']; 159 159 … … 200 200 } 201 201 function advpsListPost(){ 202 $nonce = $_POST['checkReq'];203 $ptype = $_POST['ptype'];204 $pmax = $_POST['pmax'];205 $porderBy = $_POST['porderBy'];206 $porder = $_POST['porder'];207 $plist = explode(',', $_POST['plist']);202 $nonce = sanitize_text_field( $_POST['checkReq'] ); 203 $ptype = sanitize_text_field( $_POST['ptype'] ); 204 $pmax = sanitize_text_field( $_POST['pmax'] ); 205 $porderBy = sanitize_text_field( $_POST['porderBy'] ); 206 $porder = sanitize_text_field( $_POST['porder'] ); 207 $plist = explode(',', sanitize_text_field( $_POST['plist'] ) ) ; 208 208 209 209 if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){ … … 230 230 } 231 231 function advpsUpdateSmethod(){ 232 $nonce = $_POST['checkReq'];233 $selnam = $_POST['selnam'];234 $selval = $_POST['selval'];232 $nonce = sanitize_text_field( $_POST['checkReq'] ); 233 $selnam = sanitize_text_field( $_POST['selnam'] ); 234 $selval = sanitize_text_field( $_POST['selval'] ); 235 235 236 236 if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){ -
advanced-post-slider/trunk/advps-admin.php
r1305899 r1316529 8 8 9 9 if(isset($_GET['tab'])){ 10 $currTab = $_GET['tab'];10 $currTab = sanitize_text_field( $_GET['tab'] ); 11 11 } 12 12 else … … 18 18 } 19 19 if(isset($_POST['optset-id'])){ 20 $optset_id = intval( $_POST['optset-id'] ); 21 20 22 if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') ) 21 23 { … … 25 27 26 28 if(isset($_POST['del-optset'])){ 27 $q_del = $wpdb->prepare("delete from ".$wpdb->prefix."advps_optionset where id = %d",$_POST['optset-id']); 28 29 $q_del = $wpdb->prepare("delete from ".$wpdb->prefix."advps_optionset where id = %d",$optset_id); 29 30 if($wpdb->query($q_del)){ 30 delete_option('optset'.$ _POST['optset-id']);31 delete_option('optset'.$optset_id); 31 32 $stsMgs = "Deleted successfully."; 32 33 } 33 34 } 34 35 elseif(isset($_POST['dup-optset'])){ 35 36 $q_sel = $wpdb->prepare( "select * from ".$wpdb->prefix."advps_optionset where id = %d",$_POST['optset-id'] ); 36 $nextopt_id = intval( $_POST['nextoptid'] ); 37 38 $q_sel = $wpdb->prepare( "select * from ".$wpdb->prefix."advps_optionset where id = %d",$optset_id ); 37 39 $res = $wpdb->get_results($q_sel); 38 40 … … 40 42 41 43 if($wpdb->query($q_add)){ 42 update_option('advpssmethod'.$ _POST['nextoptid'],get_option('advpssmethod'.$_POST['optset-id']));44 update_option('advpssmethod'.$nextopt_id,get_option('advpssmethod'.$optset_id )); 43 45 $stsMgs = "Duplicated successfully."; 44 46 } … … 55 57 } 56 58 57 $all_field = $_POST; 59 //$all_field = $_POST; 60 $nextopt_id = intval( $_POST['nextoptid'] ); 58 61 $tem_list = array('one','two','three'); 59 62 $template = sanitize_text_field($_POST['template']); … … 83 86 } 84 87 if($wpdb->query($q_add)){ 85 update_option('advpssmethod'.$ _POST['nextoptid'],'plist');88 update_option('advpssmethod'.$nextopt_id,'plist'); 86 89 $stsMgs = "Added successfully."; 87 90 } … … 100 103 101 104 $thumb_name = sanitize_text_field($_POST['advps_thumb_name']); 102 $width = sanitize_text_field($_POST['advps_thumb_width']);103 $height = sanitize_text_field($_POST['advps_thumb_height']);105 $width = intval($_POST['advps_thumb_width']); 106 $height = intval($_POST['advps_thumb_height']); 104 107 $crop = sanitize_text_field($_POST['advps_crop']); 105 108 … … 118 121 } 119 122 120 $thumb_id = sanitize_text_field($_POST['thumb_id']);123 $thumb_id = intval($_POST['thumb_id']); 121 124 $thumb_name = sanitize_text_field($_POST['advps_thumb_name']); 122 $width = sanitize_text_field($_POST['advps_thumb_width']);123 $height = sanitize_text_field($_POST['advps_thumb_height']);125 $width = intval($_POST['advps_thumb_width']); 126 $height = intval($_POST['advps_thumb_height']); 124 127 $crop = sanitize_text_field($_POST['advps_crop']); 125 128 … … 152 155 } 153 156 if($(this).hasClass('closed')){ 154 $(this).css('background-image','url(<?php echo advps_url?>images/up.png)');157 $(this).css('background-image','url(<?php echo esc_url( advps_url );?>images/up.png)'); 155 158 $(this).removeClass('closed'); 156 159 } 157 160 else 158 161 { 159 $(this).css('background-image','url(<?php echo advps_url?>images/down.png)');162 $(this).css('background-image','url(<?php echo esc_url( advps_url );?>images/down.png)'); 160 163 $(this).addClass('closed'); 161 164 } … … 190 193 .advps-legend { 191 194 background-color:#6E6E6E; 192 background-image:url(<?php echo advps_url?>images/up.png);195 background-image:url(<?php echo esc_url( advps_url );?>images/up.png); 193 196 background-repeat:no-repeat; 194 197 background-position: 96px 6px; … … 225 228 } 226 229 .postbox .down { 227 background-image:url(<?php echo advps_url?>images/downb.png);230 background-image:url(<?php echo esc_url( advps_url );?>images/downb.png); 228 231 background-repeat:no-repeat; 229 232 background-position: 4px 10px; 230 233 } 231 234 .postbox .up { 232 background-image:url(<?php echo advps_url?>images/upb.png);235 background-image:url(<?php echo esc_url( advps_url );?>images/upb.png); 233 236 background-repeat:no-repeat; 234 237 background-position: 4px 10px; … … 254 257 <?php if($stsMgs != ''){?> 255 258 <div id="message" class="updated below-h2"> 256 <p><?php echo $stsMgs;?></p>259 <p><?php echo esc_html( $stsMgs );?></p> 257 260 </div> 258 261 <?php }?> … … 266 269 }elseif($currTab == 'thumb'){?> 267 270 <div class="advps-col-right"> 268 <h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>271 <h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2> 269 272 <ul> 270 273 <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li> … … 291 294 <form method="post"> 292 295 <th scope="row">Name 293 <input type="text" name="advps_thumb_name" value="<?php echo $thmb->thumb_name;?>" style="width:140px" /></th>296 <input type="text" name="advps_thumb_name" value="<?php echo esc_attr( $thmb->thumb_name );?>" style="width:140px" /></th> 294 297 <td>Width 295 <input type="text" name="advps_thumb_width" value="<?php echo $thmb->width;?>" style="width:80px;" onkeypress="return onlyNum(event);" />298 <input type="text" name="advps_thumb_width" value="<?php echo esc_attr( $thmb->width );?>" style="width:80px;" onkeypress="return onlyNum(event);" /> 296 299 px Height 297 <input type="text" name="advps_thumb_height" value="<?php echo $thmb->height;?>" style="width:80px;" onkeypress="return onlyNum(event);" />300 <input type="text" name="advps_thumb_height" value="<?php echo esc_attr( $thmb->height );?>" style="width:80px;" onkeypress="return onlyNum(event);" /> 298 301 px <span style="margin-left:20px;">Crop 299 302 <select name="advps_crop"> … … 304 307 <input type="submit" value="Save" class="button-secondary" name="update_thumb" /> 305 308 </span></td> 306 <input type="hidden" value="<?php echo $thmb->id;?>" name="thumb_id" />309 <input type="hidden" value="<?php echo esc_attr( $thmb->id );?>" name="thumb_id" /> 307 310 <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?> 308 311 </form> … … 348 351 <?php }?> 349 352 </div> 350 <meta name="wpversion" content="<?php echo $wp_version;?>" />353 <meta name="wpversion" content="<?php echo esc_attr( $wp_version );?>" /> -
advanced-post-slider/trunk/js/advps.script.js
r938708 r1316529 198 198 } 199 199 } 200 function duplicateOptSet(id){ 201 jQuery("#frmOptDel"+id).removeAttr("onsubmit"); 202 jQuery("#frmOptDel"+id).submit(); 203 } 200 204 function pagerAttr(v){ 201 205 alert(v); -
advanced-post-slider/trunk/readme.txt
r1305899 r1316529 2 2 Contributors: digontoahsan 3 3 Donate link: 4 Tags: post slider, content slider, slider, slideshow, wordpress content slider, content, wordpress slideshow, images, logo scroller, testimonial scroller, banner rotator, recent post slider, bxslider, image slider, sidebar slideshow, posts, post, image, image slideshow, responsive slideshow, responsive slider, carousel slider, ticker, responsive carousel slider, responsive carousel, showcase, news slider, thumbnail, thumbnail slider, featured thumbnail4 Tags: post slider, wordpress content slider, wordpress slideshow, logo scroller, testimonial scroller, banner rotator, recent post slider, image slider, image slideshow, responsive slider, responsive carousel slider, news slider 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.4 7 Stable tag: 2. 4.07 Stable tag: 2.5.0 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 149 149 * Security fix. 150 150 151 = 2.5.0 = 152 * Important security fix and data cleaning. Upgrade is highly recommended. 153 * Duplicating option set not working issue resolved. 154 151 155 == Upgrade Notice == -
advanced-post-slider/trunk/templates/template-one.php
r1115402 r1316529 4 4 5 5 <div class="advps-col-right"> 6 <h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>6 <h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2> 7 7 <ul> 8 8 <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li> … … 38 38 <div class="handlediv down" title="Click to toggle"> <br> 39 39 </div> 40 <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">41 <?php if(get_option('optset'. $dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>40 <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == intval( $dset->id )){echo 'advps-highlight';}?>" id="lbltxt<?php echo intval(intval( $dset->id ));?>"> 41 <?php if(get_option('optset'.intval(intval( $dset->id )))){echo esc_html( get_option('optset'.intval(intval( $dset->id ))) );}else{echo 'Slider '.intval(intval( $dset->id ));}?> 42 42 </h3> 43 43 <div class="inside"> … … 47 47 <tr> 48 48 <th scope="row">Label</th> 49 <td><input type="text" style="width:px;" value="<?php if(get_option('optset'. $dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />50 <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>49 <td><input type="text" style="width:px;" value="<?php if(get_option('optset'.intval ( $dset->id ))){echo esc_attr( get_option('optset'.intval ( $dset->id )) );}else{echo 'Slider '.intval ( $dset->id );}?>" name="optset<?php echo intval ( $dset->id );?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo intval ( $dset->id );?>)" /> 50 <span id="lbludtSts<?php echo intval ( $dset->id );?>" style="padding-left:10px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 51 51 </tr> 52 52 <tr> 53 53 <th scope="row">Usage</th> 54 <td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo $dset->id;?>"]' readonly="readonly" /></td>54 <td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo intval ( $dset->id );?>"]' readonly="readonly" /></td> 55 55 </tr> 56 56 </table> … … 58 58 <fieldset> 59 59 <legend class="advps-legend advpssm" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend> 60 <div id="advps-sel<?php echo $dset->id;?>">60 <div id="advps-sel<?php echo intval ( $dset->id );?>"> 61 61 <table class="form-table"> 62 62 <tr> 63 63 <th scope="row">Select post using</th> 64 <td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">65 <option value="plist" <?php if(get_option('advpssmethod'. $dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>66 <option value="query" <?php if(get_option('advpssmethod'. $dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>64 <td><select name="advpssmethod<?php echo intval ( $dset->id )?>" onchange="updateSm(this,<?php echo intval ( $dset->id );?>);"> 65 <option value="plist" <?php if(get_option('advpssmethod'.intval ( $dset->id )) == 'plist'){echo 'selected="selected"';}?>>Post list</option> 66 <option value="query" <?php if(get_option('advpssmethod'.intval ( $dset->id )) == 'query'){echo 'selected="selected"';}?>>Query</option> 67 67 </select> 68 <span id="smudtsts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>68 <span id="smudtsts<?php echo intval ( $dset->id );?>" style="padding-left:10px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 69 69 </tr> 70 70 </table> 71 <form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">72 <table class="form-table <?php if(get_option('advpssmethod'. $dset->id) == 'query'){echo 'advps-hide';}?>">71 <form method="post" onsubmit="return false" id="plist<?php echo intval ( $dset->id );?>"> 72 <table class="form-table <?php if(get_option('advpssmethod'.intval ( $dset->id )) == 'query'){echo 'advps-hide';}?>"> 73 73 <tr> 74 74 <th scope="row">Listing option</th> … … 79 79 foreach ($customPostTypes as $post_type ) { 80 80 ?> 81 <option value="<?php echo $post_type;?>" <?php if($plist['advps_post_stypes'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>81 <option value="<?php echo esc_attr( $post_type );?>" <?php if($plist['advps_post_stypes'] == $post_type){echo 'selected="selected"';}?>><?php echo esc_html( $post_type );?></option> 82 82 <?php 83 83 } … … 85 85 </select> 86 86 <span style="padding-left:10px;"> 87 <input type="text" name="advps_plistmax" value="<?php echo $plist['advps_plistmax'];?>" style="width:40px;" onkeypress="return onlyNum(event);" title="Max number of post to list" />87 <input type="text" name="advps_plistmax" value="<?php echo esc_attr( $plist['advps_plistmax'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" title="Max number of post to list" /> 88 88 </span> <span style="padding-left:10px;"> 89 89 <select name="advps_plistorder_by" title="Order by"> … … 103 103 </select> 104 104 </span> <span style="padding-left:10px;"> 105 <button class="button-secondary" value="" onclick="listPost(<?php echo $dset->id;?>)">List</button>106 </span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>105 <button class="button-secondary" value="" onclick="listPost(<?php echo intval ( $dset->id );?>)">List</button> 106 </span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 107 107 </tr> 108 108 <tr> 109 109 <th scope="row">Select post from list</th> 110 <td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo $dset->id;?>">110 <td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo intval( $dset->id );?>"> 111 111 <?php 112 112 $lpargs = array( 113 'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes']: 'post',114 'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax']: 99,115 'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by']: 'date',116 'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder']: 'DESC'113 'post_type' => ($plist['advps_post_stypes']) ? esc_html( $plist['advps_post_stypes'] ) : 'post', 114 'posts_per_page' => ($plist['advps_plistmax']) ? esc_html( $plist['advps_plistmax'] ) : 99, 115 'orderby' => ($plist['advps_plistorder_by']) ? esc_html( $plist['advps_plistorder_by'] ) : 'date', 116 'order' => ($plist['advps_plistorder']) ? esc_html( $plist['advps_plistorder'] ) : 'DESC' 117 117 ); 118 118 $pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?> … … 126 126 <tr> 127 127 <th scope="row"> </th> 128 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo $dset->id;?>')" />129 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>128 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo intval( $dset->id );?>')" /> 129 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 130 130 </tr> 131 131 </table> 132 132 <input type="hidden" name="opt_field" value="plist" /> 133 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />133 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 134 134 </form> 135 <form method="post" onsubmit="return false" id="query<?php echo $dset->id;?>">136 <table class="form-table <?php if(!get_option('advpssmethod'. $dset->id) || get_option('advpssmethod'.$dset->id) == 'plist'){echo 'advps-hide';}?>">135 <form method="post" onsubmit="return false" id="query<?php echo intval( $dset->id );?>"> 136 <table class="form-table <?php if(!get_option('advpssmethod'.intval( $dset->id )) || get_option('advpssmethod'.intval( $dset->id )) == 'plist'){echo 'advps-hide';}?>"> 137 137 <tr> 138 138 <th scope="row">Post Type</th> 139 <td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">139 <td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo intval( $dset->id );?>)"> 140 140 <option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option> 141 141 <option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option> … … 143 143 foreach ($customPostTypes as $post_type ) { 144 144 ?> 145 <option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>145 <option value="<?php echo esc_attr( $post_type );?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option> 146 146 <?php 147 147 } … … 149 149 </select></td> 150 150 </tr> 151 <tr id="advps-cat-field<?php echo $dset->id;?>">151 <tr id="advps-cat-field<?php echo intval( $dset->id );?>"> 152 152 <?php 153 $posttypeobj = get_post_type_object( $query['advps_post_types']);153 $posttypeobj = get_post_type_object( esc_html( $query['advps_post_types']) ); 154 154 if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){ 155 155 ?> … … 160 160 foreach($catList as $scat){ 161 161 ?> 162 <option value="<?php echo $scat->term_id;?>" <?php if(isset($query['advps_category']) && in_array($scat->term_id,$query['advps_category'])){echo 'selected="selected"';}?>><?php echo $scat->name;?></option>162 <option value="<?php echo esc_attr( $scat->term_id );?>" <?php if(isset($query['advps_category']) && in_array($scat->term_id,$query['advps_category'])){echo 'selected="selected"';}?>><?php echo esc_html( $scat->name );?></option> 163 163 <?php }?> 164 164 </select> … … 168 168 <tr> 169 169 <th scope="row">Max. Number of post</th> 170 <td><input type="text" name="advps_maxpost" value="<?php echo $query['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>170 <td><input type="text" name="advps_maxpost" value="<?php echo esc_attr( $query['advps_maxpost'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 171 171 </tr> 172 172 <tr> 173 173 <th scope="row">Offset (optional)</th> 174 <td><input type="text" name="advps_offset" value="<?php echo $query['advps_offset'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>174 <td><input type="text" name="advps_offset" value="<?php echo esc_attr( $query['advps_offset'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 175 175 </tr> 176 176 <tr> 177 177 <th scope="row">Exclude (optional)</th> 178 <td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />178 <td><input type="text" name="advps_exclude" value="<?php echo esc_attr( $query['advps_exclude'] );?>" style="width:100px;" /> 179 179 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ Ex. 1,5,10 Comma separated post IDs that need to exclude from slideshow ]</span></td> 180 180 </tr> … … 201 201 <tr> 202 202 <th scope="row"> </th> 203 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo $dset->id;?>')" />204 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>203 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo intval( $dset->id );?>')" /> 204 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 205 205 </tr> 206 206 </table> 207 207 <input type="hidden" name="opt_field" value="query" /> 208 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />208 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 209 209 </form> 210 210 </div> … … 212 212 <fieldset> 213 213 <legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend> 214 <form method="post" id="slider<?php echo $dset->id;?>" onsubmit="return false">214 <form method="post" id="slider<?php echo intval( $dset->id );?>" onsubmit="return false"> 215 215 <table class="form-table"> 216 216 <tr> 217 217 <th scope="row">Slider Type</th> 218 <td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">218 <td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo intval( $dset->id );?>);"> 219 219 <option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option> 220 220 <option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option> … … 240 240 <tr> 241 241 <th scope="row">Speed</th> 242 <td><input type="text" name="advps_speed" value="<?php echo $slider['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>242 <td><input type="text" name="advps_speed" value="<?php echo esc_attr( $slider['advps_speed'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 243 243 </tr> 244 244 <tr> … … 251 251 <tr> 252 252 <th scope="row">Pause</th> 253 <td><input type="text" name="advps_timeout" value="<?php echo $slider['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>253 <td><input type="text" name="advps_timeout" value="<?php echo esc_attr( $slider['advps_timeout'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 254 254 </tr> 255 255 <tr> 256 256 <th scope="row">Slide margin</th> 257 <td><input type="text" name="advps_sldmargin" value="<?php echo $slider['advps_sldmargin'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>257 <td><input type="text" name="advps_sldmargin" value="<?php echo esc_attr( $slider['advps_sldmargin'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 258 258 </tr> 259 259 <tr> … … 266 266 <tr> 267 267 <th scope="row"> </th> 268 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo $dset->id;?>')" />269 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>268 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo intval( $dset->id );?>')" /> 269 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 270 270 </tr> 271 271 </table> 272 272 <input type="hidden" name="opt_field" value="slider" /> 273 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />273 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 274 274 </form> 275 275 </fieldset> 276 276 <fieldset> 277 277 <legend class="advps-legend" style="width:121px; background-position:120px 6px;"><strong>Carousel & Ticker</strong></legend> 278 <form method="post" onsubmit="return false" id="caro_ticker<?php echo $dset->id;?>">278 <form method="post" onsubmit="return false" id="caro_ticker<?php echo intval( $dset->id );?>"> 279 279 <table class="form-table"> 280 280 <tr> 281 281 <th scope="row">Number of slide</th> 282 <td><input type="text" name="advps_caro_slds" value="<?php if(isset($caro_ticker['advps_caro_slds'])){echo $caro_ticker['advps_caro_slds'];}?>" style="width:60px;" onkeypress="return onlyNum(event);" />282 <td><input type="text" name="advps_caro_slds" value="<?php if(isset($caro_ticker['advps_caro_slds'])){echo esc_attr( $caro_ticker['advps_caro_slds'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 283 283 <span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td> 284 284 </tr> 285 285 <tr> 286 286 <th scope="row">Slide width</th> 287 <td><input type="text" name="advps_caro_sldwidth" value="<?php if(isset($caro_ticker['advps_caro_sldwidth'])){echo $caro_ticker['advps_caro_sldwidth'];}?>" style="width:60px;" onkeypress="return onlyNum(event);" />287 <td><input type="text" name="advps_caro_sldwidth" value="<?php if(isset($caro_ticker['advps_caro_sldwidth'])){echo esc_attr( $caro_ticker['advps_caro_sldwidth'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 288 288 <span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td> 289 289 </tr> 290 290 <tr> 291 291 <th scope="row"> </th> 292 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo $dset->id;?>')" />293 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>292 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo intval( $dset->id );?>')" /> 293 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 294 294 </tr> 295 295 </table> 296 296 <input type="hidden" name="opt_field" value="caro_ticker" /> 297 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />297 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 298 298 </form> 299 299 </fieldset> 300 300 <fieldset> 301 301 <legend class="advps-legend" style="width:155px; background-position:154px 6px;"><strong>Container & Thumbnail</strong></legend> 302 <form method="post" onsubmit="return false" id="container<?php echo $dset->id;?>">302 <form method="post" onsubmit="return false" id="container<?php echo intval( $dset->id );?>"> 303 303 <table class="form-table"> 304 304 <tr> … … 314 314 foreach($_wp_additional_image_sizes as $tkey => $tval){ 315 315 ?> 316 <option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>316 <option value="<?php echo esc_attr( $tkey );?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo esc_html( $tkey );?></option> 317 317 <?php 318 318 } … … 322 322 <tr> 323 323 <th scope="row">Default image url</th> 324 <td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo $container['advps_default_image'];}?>" style="width:250px;" />324 <td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo esc_url( $container['advps_default_image'] );}?>" style="width:250px;" /> 325 325 <span style="padding-left:10px; font-size:10px; font-style:italic;"> [ N.B. If any post doesn't have featured image then default image will be shown.]</span></td> 326 326 </tr> 327 327 <tr> 328 328 <th scope="row">Slide Container Width</th> 329 <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />329 <td><input type="text" name="advps_sld_width" value="<?php echo esc_attr( $container['advps_sld_width'] );?>" style="width:45px;" onkeypress="return onlyNum(event);" /> 330 330 px</td> 331 331 </tr> … … 339 339 <tr> 340 340 <th scope="row">Background Color</th> 341 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $container['advps_bgcolor'];?>" style="width:100px;" />341 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo esc_attr( $container['advps_bgcolor'] );?>" style="width:100px;" /> 342 342 <div class="advpsfarb" style="padding-left:22%"></div></td> 343 343 </tr> … … 345 345 <th scope="row">Border</th> 346 346 <td><span style="vertical-align:top"> 347 <input type="text" name="advps_border_size" value="<?php echo $container['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />347 <input type="text" name="advps_border_size" value="<?php echo esc_attr( $container['advps_border_size'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 348 348 px 349 349 <select name="advps_border_type"> … … 356 356 </select> 357 357 </span> 358 <input class="advps-color-picker" type="text" name="advps_border_color" id="advpscolor<?php echo ++$flg?>" value="<?php echo $container['advps_border_color'];?>" style="width:100px;" />358 <input class="advps-color-picker" type="text" name="advps_border_color" id="advpscolor<?php echo ++$flg?>" value="<?php echo esc_attr( $container['advps_border_color'] );?>" style="width:100px;" /> 359 359 <div class="advpsfarb" style="padding-left:22%"></div></td> 360 360 </tr> … … 369 369 <th scope="row">Box Shadow</th> 370 370 <td><span style="vertical-align:top"> 371 <input type="text" name="advps_bxshad1" value="<?php echo $container['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />371 <input type="text" name="advps_bxshad1" value="<?php echo esc_attr( $container['advps_bxshad1'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 372 372 px 373 <input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />373 <input type="text" name="advps_bxshad2" value="<?php echo esc_attr( $container['advps_bxshad2'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 374 374 px 375 <input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />375 <input type="text" name="advps_bxshad3" value="<?php echo esc_attr( $container['advps_bxshad3'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 376 376 px </span> 377 <input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $container['advps_bxshadcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />377 <input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo esc_attr( $container['advps_bxshadcolor'] );?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" /> 378 378 <div class="advpsfarb" style="padding-left:22%"></div></td> 379 379 </tr> … … 387 387 <tr> 388 388 <th scope="row"> </th> 389 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo $dset->id;?>')" />390 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>389 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo intval( $dset->id );?>')" /> 390 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 391 391 </tr> 392 392 </table> 393 393 <input type="hidden" name="opt_field" value="container" /> 394 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />394 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 395 395 </form> 396 396 </fieldset> 397 397 <fieldset> 398 398 <legend class="advps-legend" style="width:102px; background-position:101px 6px;"><strong>Title & Excerpt</strong></legend> 399 <form method="post" onsubmit="return false" id="content<?php echo $dset->id;?>">399 <form method="post" onsubmit="return false" id="content<?php echo intval( $dset->id );?>"> 400 400 <table class="form-table"> 401 401 <tr> 402 402 <th scope="row">Overlay size</th> 403 403 <td>Width 404 <input type="text" name="advps_overlay_width" value="<?php echo $content['advps_overlay_width'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />404 <input type="text" name="advps_overlay_width" value="<?php echo esc_attr( $content['advps_overlay_width'] );?>" style="width:80px;" onkeypress="return onlyNum(event);" /> 405 405 % Height 406 <input type="text" name="advps_overlay_height" value="<?php echo $content['advps_overlay_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />406 <input type="text" name="advps_overlay_height" value="<?php echo esc_attr( $content['advps_overlay_height'] );?>" style="width:80px;" onkeypress="return onlyNum(event);" /> 407 407 %</td> 408 408 </tr> 409 409 <tr> 410 410 <th scope="row">Overlay color</th> 411 <td><input type="text" name="advps_overlay_color" value="<?php echo $content['advps_overlay_color'];?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" />411 <td><input type="text" name="advps_overlay_color" value="<?php echo esc_attr( $content['advps_overlay_color'] );?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" /> 412 412 <div class="advpsfarb" style="padding-left:22%"></div></td> 413 413 </tr> 414 414 <tr> 415 415 <th scope="row">Overlay opacity</th> 416 <td><input type="text" name="advps_overlay_opacity" value="<?php echo $content['advps_overlay_opacity'];?>" style="width:50px;" />416 <td><input type="text" name="advps_overlay_opacity" value="<?php echo esc_attr( $content['advps_overlay_opacity'] );?>" style="width:50px;" /> 417 417 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td> 418 418 </tr> … … 435 435 <tr> 436 436 <th scope="row">Text opacity</th> 437 <td><input type="text" name="advps_text_opacity" value="<?php echo $content['advps_text_opacity'];?>" style="width:50px;" />437 <td><input type="text" name="advps_text_opacity" value="<?php echo esc_attr( $content['advps_text_opacity'] );?>" style="width:50px;" /> 438 438 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td> 439 439 </tr> … … 457 457 <tr> 458 458 <th scope="row">Title font Color</th> 459 <td><input type="text" name="advps_titleFcolor" value="<?php echo $content['advps_titleFcolor'];?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" />459 <td><input type="text" name="advps_titleFcolor" value="<?php echo esc_attr( $content['advps_titleFcolor'] );?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" /> 460 460 <div class="advpsfarb" style="padding-left:22%"></div></td> 461 461 </tr> 462 462 <tr> 463 463 <th scope="row">Title hover Color</th> 464 <td><input type="text" name="advps_titleHcolor" value="<?php echo $content['advps_titleHcolor'];?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" />464 <td><input type="text" name="advps_titleHcolor" value="<?php echo esc_attr( $content['advps_titleHcolor'] );?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" /> 465 465 <div class="advpsfarb" style="padding-left:22%"></div></td> 466 466 </tr> 467 467 <tr> 468 468 <th scope="row">Title font size</th> 469 <td><input type="text" name="advps_titleFsizeL" value="<?php if(isset($content['advps_titleFsizeL'])){ echo $content['advps_titleFsizeL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />470 px 471 <input type="text" name="advps_titleFsize1" value="<?php if(isset($content['advps_titleFsize1'])){ echo $content['advps_titleFsize1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />472 px 473 <input type="text" name="advps_titleFsize2" value="<?php if(isset($content['advps_titleFsize2'])){echo $content['advps_titleFsize2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />474 px 475 <input type="text" name="advps_titleFsize3" value="<?php if(isset($content['advps_titleFsize3'])){echo $content['advps_titleFsize3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />476 px 477 <input type="text" name="advps_titleFsize4" value="<?php if(isset($content['advps_titleFsize4'])){echo $content['advps_titleFsize4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />478 px 479 <input type="text" name="advps_titleFsize5" value="<?php if(isset($content['advps_titleFsize5'])){echo $content['advps_titleFsize5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />469 <td><input type="text" name="advps_titleFsizeL" value="<?php if(isset($content['advps_titleFsizeL'])){ echo esc_attr( $content['advps_titleFsizeL'] );}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 470 px 471 <input type="text" name="advps_titleFsize1" value="<?php if(isset($content['advps_titleFsize1'])){ echo esc_attr( $content['advps_titleFsize1'] );}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 472 px 473 <input type="text" name="advps_titleFsize2" value="<?php if(isset($content['advps_titleFsize2'])){echo esc_attr( $content['advps_titleFsize2'] );}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 474 px 475 <input type="text" name="advps_titleFsize3" value="<?php if(isset($content['advps_titleFsize3'])){echo esc_attr( $content['advps_titleFsize3'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 476 px 477 <input type="text" name="advps_titleFsize4" value="<?php if(isset($content['advps_titleFsize4'])){echo esc_attr( $content['advps_titleFsize4'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 478 px 479 <input type="text" name="advps_titleFsize5" value="<?php if(isset($content['advps_titleFsize5'])){echo esc_attr( $content['advps_titleFsize5'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 480 480 px <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Different sizes for different media screen width. Hover the field to know which field is for which width. ]</span></td> 481 481 </tr> 482 482 <tr> 483 483 <th scope="row">Title line height</th> 484 <td><input type="text" name="advps_titleLheightL" value="<?php if(isset($content['advps_titleLheightL'])){ echo $content['advps_titleLheightL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />485 px 486 <input type="text" name="advps_titleLheight1" value="<?php if(isset($content['advps_titleLheight1'])){ echo $content['advps_titleLheight1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />487 px 488 <input type="text" name="advps_titleLheight2" value="<?php if(isset($content['advps_titleLheight2'])){echo $content['advps_titleLheight2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />489 px 490 <input type="text" name="advps_titleLheight3" value="<?php if(isset($content['advps_titleLheight3'])){echo $content['advps_titleLheight3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />491 px 492 <input type="text" name="advps_titleLheight4" value="<?php if(isset($content['advps_titleLheight4'])){echo $content['advps_titleLheight4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />493 px 494 <input type="text" name="advps_titleLheight5" value="<?php if(isset($content['advps_titleLheight5'])){echo $content['advps_titleLheight5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />484 <td><input type="text" name="advps_titleLheightL" value="<?php if(isset($content['advps_titleLheightL'])){ echo esc_attr( $content['advps_titleLheightL'] );}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 485 px 486 <input type="text" name="advps_titleLheight1" value="<?php if(isset($content['advps_titleLheight1'])){ echo esc_attr( $content['advps_titleLheight1'] );}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 487 px 488 <input type="text" name="advps_titleLheight2" value="<?php if(isset($content['advps_titleLheight2'])){echo esc_attr( $content['advps_titleLheight2'] );}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 489 px 490 <input type="text" name="advps_titleLheight3" value="<?php if(isset($content['advps_titleLheight3'])){echo esc_attr( $content['advps_titleLheight3'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 491 px 492 <input type="text" name="advps_titleLheight4" value="<?php if(isset($content['advps_titleLheight4'])){echo esc_attr( $content['advps_titleLheight4'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 493 px 494 <input type="text" name="advps_titleLheight5" value="<?php if(isset($content['advps_titleLheight5'])){echo esc_attr( $content['advps_titleLheight5'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 495 495 px <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Each for different media screen width. Hover the field to know which field is for which width. ]</span></td> 496 496 </tr> 497 497 <tr> 498 498 <th scope="row">Excerpt font color</th> 499 <td><input class="advps-color-picker" type="text" name="advps_excptFcolor" value="<?php echo $content['advps_excptFcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />499 <td><input class="advps-color-picker" type="text" name="advps_excptFcolor" value="<?php echo esc_attr( $content['advps_excptFcolor'] );?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" /> 500 500 <div class="advpsfarb" style="padding-left:22%"></div></td> 501 501 </tr> 502 502 <tr> 503 503 <th scope="row">Excerpt font size</th> 504 <td><input type="text" name="advps_excptFsizeL" value="<?php if(isset($content['advps_excptFsizeL'])){ echo $content['advps_excptFsizeL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />505 px 506 <input type="text" name="advps_excptFsize1" value="<?php if(isset($content['advps_excptFsize1'])){ echo $content['advps_excptFsize1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />507 px 508 <input type="text" name="advps_excptFsize2" value="<?php if(isset($content['advps_excptFsize2'])){echo $content['advps_excptFsize2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />509 px 510 <input type="text" name="advps_excptFsize3" value="<?php if(isset($content['advps_excptFsize3'])){echo $content['advps_excptFsize3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />511 px 512 <input type="text" name="advps_excptFsize4" value="<?php if(isset($content['advps_excptFsize4'])){echo $content['advps_excptFsize4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />513 px 514 <input type="text" name="advps_excptFsize5" value="<?php if(isset($content['advps_excptFsize5'])){echo $content['advps_excptFsize5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />504 <td><input type="text" name="advps_excptFsizeL" value="<?php if(isset($content['advps_excptFsizeL'])){ echo esc_attr( $content['advps_excptFsizeL'] );}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 505 px 506 <input type="text" name="advps_excptFsize1" value="<?php if(isset($content['advps_excptFsize1'])){ echo esc_attr( $content['advps_excptFsize1'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 507 px 508 <input type="text" name="advps_excptFsize2" value="<?php if(isset($content['advps_excptFsize2'])){echo esc_attr( $content['advps_excptFsize2'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 509 px 510 <input type="text" name="advps_excptFsize3" value="<?php if(isset($content['advps_excptFsize3'])){echo esc_attr( $content['advps_excptFsize3'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 511 px 512 <input type="text" name="advps_excptFsize4" value="<?php if(isset($content['advps_excptFsize4'])){echo esc_attr( $content['advps_excptFsize4'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 513 px 514 <input type="text" name="advps_excptFsize5" value="<?php if(isset($content['advps_excptFsize5'])){echo esc_attr( $content['advps_excptFsize5'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 515 515 px </td> 516 516 </tr> 517 517 <tr> 518 518 <th scope="row">Excerpt line height</th> 519 <td><input type="text" name="advps_excptLheightL" value="<?php if(isset($content['advps_excptLheightL'])){ echo $content['advps_excptLheightL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />520 px 521 <input type="text" name="advps_excptLheight1" value="<?php if(isset($content['advps_excptLheight1'])){ echo $content['advps_excptLheight1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />522 px 523 <input type="text" name="advps_excptLheight2" value="<?php if(isset($content['advps_excptLheight2'])){echo $content['advps_excptLheight2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />524 px 525 <input type="text" name="advps_excptLheight3" value="<?php if(isset($content['advps_excptLheight3'])){echo $content['advps_excptLheight3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />526 px 527 <input type="text" name="advps_excptLheight4" value="<?php if(isset($content['advps_excptLheight4'])){echo $content['advps_excptLheight4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />528 px 529 <input type="text" name="advps_excptLheight5" value="<?php if(isset($content['advps_excptLheight5'])){echo $content['advps_excptLheight5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />519 <td><input type="text" name="advps_excptLheightL" value="<?php if(isset($content['advps_excptLheightL'])){ echo esc_attr( $content['advps_excptLheightL'] );}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 520 px 521 <input type="text" name="advps_excptLheight1" value="<?php if(isset($content['advps_excptLheight1'])){ echo esc_attr( $content['advps_excptLheight1'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 522 px 523 <input type="text" name="advps_excptLheight2" value="<?php if(isset($content['advps_excptLheight2'])){echo esc_attr( $content['advps_excptLheight2'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 524 px 525 <input type="text" name="advps_excptLheight3" value="<?php if(isset($content['advps_excptLheight3'])){echo esc_attr( $content['advps_excptLheight3'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 526 px 527 <input type="text" name="advps_excptLheight4" value="<?php if(isset($content['advps_excptLheight4'])){echo esc_attr( $content['advps_excptLheight4'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 528 px 529 <input type="text" name="advps_excptLheight5" value="<?php if(isset($content['advps_excptLheight5'])){echo esc_attr( $content['advps_excptLheight5'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 530 530 px </td> 531 531 </tr> 532 532 <tr> 533 533 <th scope="row">Excerpt length</th> 534 <td><input type="text" name="advps_excerptlen" value="<?php echo $content['advps_excerptlen'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />534 <td><input type="text" name="advps_excerptlen" value="<?php echo esc_attr( $content['advps_excerptlen'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 535 535 words</td> 536 536 </tr> … … 592 592 <tr> 593 593 <th scope="row"> </th> 594 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('content<?php echo $dset->id;?>')" />595 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>594 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('content<?php echo intval( $dset->id );?>')" /> 595 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 596 596 </tr> 597 597 </table> 598 598 <input type="hidden" name="opt_field" value="content" /> 599 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />599 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 600 600 </form> 601 601 </fieldset> 602 602 <fieldset> 603 603 <legend class="advps-legend" style="width:79px; background-position:78px 6px;"><strong>Navigation</strong></legend> 604 <form method="post" onsubmit="return false" id="navigation<?php echo $dset->id;?>">604 <form method="post" onsubmit="return false" id="navigation<?php echo intval( $dset->id );?>"> 605 605 <table class="form-table"> 606 606 <tr> … … 617 617 <span style="padding:0px 5px 0px 10px;">Bullet</span> 618 618 <input type="radio" name="advps_pager_type" value="bullet" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>> 619 <span id="advps-pthumb-lvl<?php echo $dset->id;?>" style="padding:0px 5px 0px 10px;" class="<?php if($slider['advps_slider_type'] != 'standard'){echo 'advps-fade';}?>">Thumbnail</span>620 <input id="advps-pthumb<?php echo $dset->id;?>" <?php if($slider['advps_slider_type'] != 'standard'){echo 'disabled="disabled"';}?> type="radio" name="advps_pager_type" value="thumb" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td>619 <span id="advps-pthumb-lvl<?php echo intval( $dset->id );?>" style="padding:0px 5px 0px 10px;" class="<?php if($slider['advps_slider_type'] != 'standard'){echo 'advps-fade';}?>">Thumbnail</span> 620 <input id="advps-pthumb<?php echo intval( $dset->id );?>" <?php if($slider['advps_slider_type'] != 'standard'){echo 'disabled="disabled"';}?> type="radio" name="advps_pager_type" value="thumb" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td> 621 621 </tr> 622 622 <tr> 623 623 <th scope="row">Thumbnail Width</th> 624 <td><input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />624 <td><input type="text" name="advps_pthumb_width" value="<?php echo esc_attr( $navigation['advps_pthumb_width'] );?>" style="width:50px;" onkeypress="return onlyNum(event);" /> 625 625 % <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td> 626 626 </tr> … … 635 635 <tr> 636 636 <th scope="row">Pager position from bottom</th> 637 <td><input type="text" name="advps_pager_bottom" value="<?php echo $navigation['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />637 <td><input type="text" name="advps_pager_bottom" value="<?php echo esc_attr( $navigation['advps_pager_bottom'] );?>" style="width:50px;" onkeypress="return NumNdNeg(event);" /> 638 638 px</td> 639 639 </tr> … … 656 656 <tr> 657 657 <th scope="row">Play/Pause position from bottom</th> 658 <td><input type="text" name="advps_ppause_bottom" value="<?php echo $navigation['advps_ppause_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />658 <td><input type="text" name="advps_ppause_bottom" value="<?php echo esc_attr( $navigation['advps_ppause_bottom'] );?>" style="width:50px;" onkeypress="return NumNdNeg(event);" /> 659 659 px</td> 660 660 </tr> … … 668 668 <tr> 669 669 <th scope="row"> </th> 670 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo $dset->id;?>')" />671 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>670 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo intval( $dset->id );?>')" /> 671 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 672 672 </tr> 673 673 </table> 674 674 <input type="hidden" name="opt_field" value="navigation" /> 675 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />675 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 676 676 </form> 677 677 </fieldset> 678 678 <!-- </form>--> 679 <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">680 <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />681 <input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />679 <form method="post" id="frmOptDel<?php echo intval( $dset->id );?>" onsubmit="return false"> 680 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="optset-id" /> 681 <input type="hidden" value="<?php echo intval( $tcount[0]->Auto_increment );?>" name="nextoptid" /> 682 682 <p> 683 <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />683 <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" /> 684 684 <span style="margin-left:5px;"> 685 <input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo $dset->id;?>)" style="width:12%;" />685 <input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" /> 686 686 </span> </p> 687 687 <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?> … … 697 697 <form method="post"> 698 698 <input type="hidden" name="template" value="one" /> 699 <input type="hidden" name="nextoptid" id="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />699 <input type="hidden" name="nextoptid" id="nextoptid" value="<?php echo intval( $tcount[0]->Auto_increment );?>" /> 700 700 <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?> 701 701 <input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" /> -
advanced-post-slider/trunk/templates/template-three.php
r1115402 r1316529 4 4 5 5 <div class="advps-col-right"> 6 <h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>6 <h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2> 7 7 <ul> 8 8 <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li> … … 42 42 <div class="handlediv down" title="Click to toggle"> <br> 43 43 </div> 44 <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">45 <?php if(get_option('optset'. $dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>44 <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == intval( $dset->id )){echo 'advps-highlight';}?>" id="lbltxt<?php echo intval( $dset->id );?>"> 45 <?php if(get_option('optset'.intval( $dset->id ))){echo esc_html( get_option('optset'.intval( $dset->id )) );}else{echo 'Slider '.intval( $dset->id );}?> 46 46 </h3> 47 47 <div class="inside"> … … 51 51 <tr> 52 52 <th scope="row">Label</th> 53 <td><input type="text" style="width:px;" value="<?php if(get_option('optset'. $dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />54 <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>53 <td><input type="text" style="width:px;" value="<?php if(get_option('optset'.intval( $dset->id ))){echo esc_attr( get_option('optset'.intval( $dset->id )) );}else{echo 'Slider '.intval( $dset->id );}?>" name="optset<?php echo intval( $dset->id );?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo intval( $dset->id );?>)" /> 54 <span id="lbludtSts<?php echo intval( $dset->id );?>" style="padding-left:10px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 55 55 </tr> 56 56 <tr> 57 57 <th scope="row">Usage</th> 58 <td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo $dset->id;?>"]' readonly="readonly" /></td>58 <td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo intval( $dset->id );?>"]' readonly="readonly" /></td> 59 59 </tr> 60 60 </table> … … 62 62 <fieldset> 63 63 <legend class="advps-legend" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend> 64 <div id="advps-sel<?php echo $dset->id;?>">64 <div id="advps-sel<?php echo intval( $dset->id );?>"> 65 65 <table class="form-table"> 66 66 <tr> 67 67 <th scope="row">Select post using</th> 68 <td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">69 <option value="plist" <?php if(get_option('advpssmethod'. $dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>70 <option value="query" <?php if(get_option('advpssmethod'. $dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>71 </select> 72 <span id="smudtsts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>68 <td><select name="advpssmethod<?php echo intval( $dset->id )?>" onchange="updateSm(this,<?php echo intval( $dset->id );?>);"> 69 <option value="plist" <?php if(get_option('advpssmethod'.intval( $dset->id )) == 'plist'){echo 'selected="selected"';}?>>Post list</option> 70 <option value="query" <?php if(get_option('advpssmethod'.intval( $dset->id )) == 'query'){echo 'selected="selected"';}?>>Query</option> 71 </select> 72 <span id="smudtsts<?php echo intval( $dset->id );?>" style="padding-left:10px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 73 73 </tr> 74 74 </table> 75 <form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">76 <table class="form-table <?php if(get_option('advpssmethod'. $dset->id) == 'query'){echo 'advps-hide';}?>">75 <form method="post" onsubmit="return false" id="plist<?php echo intval( $dset->id );?>"> 76 <table class="form-table <?php if(get_option('advpssmethod'.intval( $dset->id )) == 'query'){echo 'advps-hide';}?>"> 77 77 <tr> 78 78 <th scope="row">Listing option</th> … … 89 89 </select> 90 90 <span style="padding-left:10px;"> 91 <input type="text" name="advps_plistmax" value="<?php echo $plist['advps_plistmax'];?>" style="width:40px;" onkeypress="return onlyNum(event);" title="Max number of post to list" />91 <input type="text" name="advps_plistmax" value="<?php echo esc_attr( $plist['advps_plistmax'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" title="Max number of post to list" /> 92 92 </span> <span style="padding-left:10px;"> 93 93 <select name="advps_plistorder_by" title="Order by"> … … 107 107 </select> 108 108 </span> <span style="padding-left:10px;"> 109 <button class="button-secondary" value="" onclick="listPost(<?php echo $dset->id;?>)">List</button>110 </span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>109 <button class="button-secondary" value="" onclick="listPost(<?php echo intval( $dset->id );?>)">List</button> 110 </span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 111 111 </tr> 112 112 <tr> 113 113 <th scope="row">Select post from list</th> 114 <td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo $dset->id;?>">114 <td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo intval( $dset->id );?>"> 115 115 <?php 116 116 $lpargs = array( 117 'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes']: 'post',118 'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax']: 99,119 'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by']: 'date',120 'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder']: 'DESC'117 'post_type' => ($plist['advps_post_stypes']) ? esc_html( $plist['advps_post_stypes'] ) : 'post', 118 'posts_per_page' => ($plist['advps_plistmax']) ? esc_html( $plist['advps_plistmax'] ) : 99, 119 'orderby' => ($plist['advps_plistorder_by']) ? esc_html( $plist['advps_plistorder_by'] ) : 'date', 120 'order' => ($plist['advps_plistorder']) ? esc_html( $plist['advps_plistorder'] ) : 'DESC' 121 121 ); 122 122 $pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?> … … 130 130 <tr> 131 131 <th scope="row"> </th> 132 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo $dset->id;?>')" />133 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>132 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo intval( $dset->id );?>')" /> 133 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 134 134 </tr> 135 135 </table> 136 136 <input type="hidden" name="opt_field" value="plist" /> 137 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />137 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 138 138 </form> 139 <form method="post" onsubmit="return false" id="query<?php echo $dset->id;?>">140 <table class="form-table <?php if(!get_option('advpssmethod'. $dset->id) || get_option('advpssmethod'.$dset->id) == 'plist'){echo 'advps-hide';}?>">139 <form method="post" onsubmit="return false" id="query<?php echo intval( $dset->id );?>"> 140 <table class="form-table <?php if(!get_option('advpssmethod'.intval( $dset->id )) || get_option('advpssmethod'.intval( $dset->id )) == 'plist'){echo 'advps-hide';}?>"> 141 141 <tr> 142 142 <th scope="row">Post Type</th> 143 <td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">143 <td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo intval( $dset->id );?>)"> 144 144 <option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option> 145 145 <option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option> … … 147 147 foreach ($customPostTypes as $post_type ) { 148 148 ?> 149 <option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>149 <option value="<?php echo esc_attr( $post_type );?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option> 150 150 <?php 151 151 } … … 153 153 </select></td> 154 154 </tr> 155 <tr id="advps-cat-field<?php echo $dset->id;?>">155 <tr id="advps-cat-field<?php echo intval( $dset->id );?>"> 156 156 <?php 157 $posttypeobj = get_post_type_object( $query['advps_post_types']);157 $posttypeobj = get_post_type_object( esc_html( $query['advps_post_types']) ); 158 158 if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){ 159 159 ?> … … 164 164 foreach($catList as $scat){ 165 165 ?> 166 <option value="<?php echo $scat->term_id;?>" <?php if(isset($query['advps_category']) && in_array($scat->term_id,$query['advps_category'])){echo 'selected="selected"';}?>><?php echo $scat->name;?></option>166 <option value="<?php echo $scat->term_id;?>" <?php if(isset($query['advps_category']) && in_array($scat->term_id,$query['advps_category'])){echo 'selected="selected"';}?>><?php echo esc_html( $scat->name );?></option> 167 167 <?php }?> 168 168 </select> … … 172 172 <tr> 173 173 <th scope="row">Max. Number of post</th> 174 <td><input type="text" name="advps_maxpost" value="<?php echo $query['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>174 <td><input type="text" name="advps_maxpost" value="<?php echo esc_attr( $query['advps_maxpost'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 175 175 </tr> 176 176 <tr> 177 177 <th scope="row">Offset (optional)</th> 178 <td><input type="text" name="advps_offset" value="<?php echo $query['advps_offset'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>178 <td><input type="text" name="advps_offset" value="<?php echo esc_attr( $query['advps_offset'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 179 179 </tr> 180 180 <tr> 181 181 <th scope="row">Exclude (optional)</th> 182 <td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />182 <td><input type="text" name="advps_exclude" value="<?php echo esc_attr( $query['advps_exclude'] );?>" style="width:100px;" /> 183 183 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ Ex. 1,5,10 Comma separated post IDs that need to exclude from slideshow ]</span></td> 184 184 </tr> … … 205 205 <tr> 206 206 <th scope="row"> </th> 207 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo $dset->id;?>')" />208 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>207 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo intval( $dset->id );?>')" /> 208 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 209 209 </tr> 210 210 </table> 211 211 <input type="hidden" name="opt_field" value="query" /> 212 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />212 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 213 213 </form> 214 214 </div> … … 216 216 <fieldset> 217 217 <legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend> 218 <form method="post" id="slider<?php echo $dset->id;?>" onsubmit="return false">218 <form method="post" id="slider<?php echo intval( $dset->id );?>" onsubmit="return false"> 219 219 <table class="form-table"> 220 220 <tr> 221 221 <th scope="row">Slider Type</th> 222 <td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">222 <td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo intval( $dset->id );?>);"> 223 223 <option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option> 224 224 <option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option> … … 244 244 <tr> 245 245 <th scope="row">Speed</th> 246 <td><input type="text" name="advps_speed" value="<?php echo $slider['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>246 <td><input type="text" name="advps_speed" value="<?php echo esc_attr( $slider['advps_speed'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 247 247 </tr> 248 248 <tr> … … 255 255 <tr> 256 256 <th scope="row">Pause</th> 257 <td><input type="text" name="advps_timeout" value="<?php echo $slider['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>257 <td><input type="text" name="advps_timeout" value="<?php echo esc_attr( $slider['advps_timeout'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 258 258 </tr> 259 259 <tr> 260 260 <th scope="row">Slide margin</th> 261 <td><input type="text" name="advps_sldmargin" value="<?php echo $slider['advps_sldmargin'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>261 <td><input type="text" name="advps_sldmargin" value="<?php echo esc_attr( $slider['advps_sldmargin'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 262 262 </tr> 263 263 <tr> … … 270 270 <tr> 271 271 <th scope="row"> </th> 272 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo $dset->id;?>')" />273 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>272 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo intval( $dset->id );?>')" /> 273 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 274 274 </tr> 275 275 </table> 276 276 <input type="hidden" name="opt_field" value="slider" /> 277 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />277 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 278 278 </form> 279 279 </fieldset> 280 280 <fieldset> 281 281 <legend class="advps-legend" style="width:121px; background-position:120px 6px;"><strong>Carousel & Ticker</strong></legend> 282 <form method="post" onsubmit="return false" id="caro_ticker<?php echo $dset->id;?>">282 <form method="post" onsubmit="return false" id="caro_ticker<?php echo intval( $dset->id );?>"> 283 283 <table class="form-table"> 284 284 <tr> 285 285 <th scope="row">Number of slide</th> 286 <td><input type="text" name="advps_caro_slds" value="<?php if(isset($caro_ticker['advps_caro_slds'])){echo $caro_ticker['advps_caro_slds'];}?>" style="width:60px;" onkeypress="return onlyNum(event);" />286 <td><input type="text" name="advps_caro_slds" value="<?php if(isset($caro_ticker['advps_caro_slds'])){echo esc_attr( $caro_ticker['advps_caro_slds'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 287 287 <span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td> 288 288 </tr> 289 289 <tr> 290 290 <th scope="row">Slide width</th> 291 <td><input type="text" name="advps_caro_sldwidth" value="<?php if(isset($caro_ticker['advps_caro_sldwidth'])){echo $caro_ticker['advps_caro_sldwidth'];}?>" style="width:60px;" onkeypress="return onlyNum(event);" />291 <td><input type="text" name="advps_caro_sldwidth" value="<?php if(isset($caro_ticker['advps_caro_sldwidth'])){echo esc_attr( $caro_ticker['advps_caro_sldwidth'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 292 292 <span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td> 293 293 </tr> 294 294 <tr> 295 295 <th scope="row"> </th> 296 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo $dset->id;?>')" />297 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>296 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo intval( $dset->id );?>')" /> 297 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 298 298 </tr> 299 299 </table> 300 300 <input type="hidden" name="opt_field" value="caro_ticker" /> 301 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />301 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 302 302 </form> 303 303 </fieldset> 304 304 <fieldset> 305 305 <legend class="advps-legend" style="width:155px; background-position:154px 6px;"><strong>Container & Thumbnail</strong></legend> 306 <form method="post" onsubmit="return false" id="container<?php echo $dset->id;?>">306 <form method="post" onsubmit="return false" id="container<?php echo intval( $dset->id );?>"> 307 307 <table class="form-table"> 308 308 <tr> … … 318 318 foreach($_wp_additional_image_sizes as $tkey => $tval){ 319 319 ?> 320 <option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>320 <option value="<?php echo esc_attr( $tkey );?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo esc_html( $tkey );?></option> 321 321 <?php 322 322 } … … 331 331 <tr> 332 332 <th scope="row">Slide Container Width</th> 333 <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />333 <td><input type="text" name="advps_sld_width" value="<?php echo esc_attr( $container['advps_sld_width'] );?>" style="width:45px;" onkeypress="return onlyNum(event);" /> 334 334 px </td> 335 335 </tr> … … 343 343 <tr> 344 344 <th scope="row">Padding</th> 345 <td><input type="text" name="advps_contpad1" value="<?php echo $container['advps_contpad1'];?>" style="width:40px; height:25px;" />345 <td><input type="text" name="advps_contpad1" value="<?php echo esc_attr( $container['advps_contpad1'] );?>" style="width:40px; height:25px;" /> 346 346 <select name="advps_padu1" style="vertical-align:top; width:46px; height:25px;"> 347 347 <option value="vw" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'vw'){echo 'selected="selected"';}?>>vw</option> … … 352 352 <option value="pt" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'pt'){echo 'selected="selected"';}?>>pt</option> 353 353 </select> 354 <input type="text" name="advps_contpad2" value="<?php echo $container['advps_contpad2'];?>" style="width:40px; height:25px;" />354 <input type="text" name="advps_contpad2" value="<?php echo esc_attr( $container['advps_contpad2'] );?>" style="width:40px; height:25px;" /> 355 355 <select name="advps_padu2" style="vertical-align:top;width:46px; height:25px;"> 356 356 <option value="vw" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'vw'){echo 'selected="selected"';}?>>vw</option> … … 361 361 <option value="pt" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'pt'){echo 'selected="selected"';}?>>pt</option> 362 362 </select> 363 <input type="text" name="advps_contpad3" value="<?php echo $container['advps_contpad3'];?>" style="width:40px; height:25px;" />363 <input type="text" name="advps_contpad3" value="<?php echo esc_attr( $container['advps_contpad3'] );?>" style="width:40px; height:25px;" /> 364 364 <select name="advps_padu3" style="vertical-align:top;width:46px; height:25px;"> 365 365 <option value="vw" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'vw'){echo 'selected="selected"';}?>>vw</option> … … 370 370 <option value="pt" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'pt'){echo 'selected="selected"';}?>>pt</option> 371 371 </select> 372 <input type="text" name="advps_contpad4" value="<?php echo $container['advps_contpad4'];?>" style="width:40px; height:25px;" />372 <input type="text" name="advps_contpad4" value="<?php echo esc_attr( $container['advps_contpad4'] );?>" style="width:40px; height:25px;" /> 373 373 <select name="advps_padu4" style="vertical-align:top;width:46px; height:25px;"> 374 374 <option value="vw" <?php if(isset($container['advps_padu4']) && $container['advps_padu4'] == 'vw'){echo 'selected="selected"';}?>>vw</option> … … 382 382 <tr> 383 383 <th scope="row">Background Color</th> 384 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $container['advps_bgcolor'];?>" style="width:100px;" />384 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo esc_attr( $container['advps_bgcolor'] );?>" style="width:100px;" /> 385 385 <div class="advpsfarb" style="padding-left:22%"></div></td> 386 386 </tr> … … 388 388 <th scope="row">Border</th> 389 389 <td><span style="vertical-align:top"> 390 <input type="text" name="advps_border_size" value="<?php echo $container['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />390 <input type="text" name="advps_border_size" value="<?php echo esc_attr( $container['advps_border_size'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 391 391 px 392 392 <select name="advps_border_type"> … … 399 399 </select> 400 400 </span> 401 <input class="advps-color-picker" type="text" name="advps_border_color" id="advpscolor<?php echo ++$flg?>" value="<?php echo $container['advps_border_color'];?>" style="width:100px;" />401 <input class="advps-color-picker" type="text" name="advps_border_color" id="advpscolor<?php echo ++$flg?>" value="<?php echo esc_attr( $container['advps_border_color'] );?>" style="width:100px;" /> 402 402 <div class="advpsfarb" style="padding-left:22%"></div></td> 403 403 </tr> … … 412 412 <th scope="row">Box Shadow</th> 413 413 <td><span style="vertical-align:top"> 414 <input type="text" name="advps_bxshad1" value="<?php echo $container['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />414 <input type="text" name="advps_bxshad1" value="<?php echo esc_attr( $container['advps_bxshad1'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 415 415 px 416 <input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />416 <input type="text" name="advps_bxshad2" value="<?php echo esc_attr( $container['advps_bxshad2'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 417 417 px 418 <input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />418 <input type="text" name="advps_bxshad3" value="<?php echo esc_attr( $container['advps_bxshad3'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 419 419 px </span> 420 <input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $container['advps_bxshadcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />420 <input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo esc_attr( $container['advps_bxshadcolor'] );?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" /> 421 421 <div class="advpsfarb" style="padding-left:22%"></div></td> 422 422 </tr> … … 430 430 <tr> 431 431 <th scope="row"> </th> 432 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo $dset->id;?>')" />433 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>432 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo intval( $dset->id );?>')" /> 433 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 434 434 </tr> 435 435 </table> 436 436 <input type="hidden" name="opt_field" value="container" /> 437 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />437 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 438 438 </form> 439 439 </fieldset> 440 440 <fieldset> 441 441 <legend class="advps-legend" style="width:66px; background-position:65px 6px;"><strong>Content</strong></legend> 442 <form method="post" onsubmit="return false" id="content<?php echo $dset->id;?>">442 <form method="post" onsubmit="return false" id="content<?php echo intval( $dset->id );?>"> 443 443 <table class="form-table"> 444 444 <tr> … … 454 454 <tr> 455 455 <th scope="row">Content width</th> 456 <td><input type="text" name="advps_cont_width" value="<?php echo $content['advps_cont_width'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />456 <td><input type="text" name="advps_cont_width" value="<?php echo esc_attr( $content['advps_cont_width'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 457 457 px</td> 458 458 </tr> … … 468 468 <tr> 469 469 <th scope="row">Title font Color</th> 470 <td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleFcolor" value="<?php echo $content['advps_titleFcolor'];?>" style="width:100px;" class="advps-color-picker" />470 <td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleFcolor" value="<?php echo esc_attr( $content['advps_titleFcolor'] );?>" style="width:100px;" class="advps-color-picker" /> 471 471 <div class="advpsfarb" style="padding-left:22%"></div></td> 472 472 </tr> 473 473 <tr> 474 474 <th scope="row">Title hover Color</th> 475 <td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleHcolor" value="<?php echo $content['advps_titleHcolor'];?>" style="width:100px;" class="advps-color-picker" />475 <td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleHcolor" value="<?php echo esc_attr( $content['advps_titleHcolor'] );?>" style="width:100px;" class="advps-color-picker" /> 476 476 <div class="advpsfarb" style="padding-left:22%"></div></td> 477 477 </tr> 478 478 <tr> 479 479 <th scope="row">Title font size</th> 480 <td><input type="text" name="advps_titleFsizeL" value="<?php if(isset($content['advps_titleFsizeL'])){ echo $content['advps_titleFsizeL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />481 px 482 <input type="text" name="advps_titleFsize1" value="<?php if(isset($content['advps_titleFsize1'])){ echo $content['advps_titleFsize1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />483 px 484 <input type="text" name="advps_titleFsize2" value="<?php if(isset($content['advps_titleFsize2'])){echo $content['advps_titleFsize2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />485 px 486 <input type="text" name="advps_titleFsize3" value="<?php if(isset($content['advps_titleFsize3'])){echo $content['advps_titleFsize3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />487 px 488 <input type="text" name="advps_titleFsize4" value="<?php if(isset($content['advps_titleFsize4'])){echo $content['advps_titleFsize4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />489 px 490 <input type="text" name="advps_titleFsize5" value="<?php if(isset($content['advps_titleFsize5'])){echo $content['advps_titleFsize5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />480 <td><input type="text" name="advps_titleFsizeL" value="<?php if(isset($content['advps_titleFsizeL'])){ echo esc_attr( $content['advps_titleFsizeL'] );}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 481 px 482 <input type="text" name="advps_titleFsize1" value="<?php if(isset($content['advps_titleFsize1'])){ echo esc_attr( $content['advps_titleFsize1'] );}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 483 px 484 <input type="text" name="advps_titleFsize2" value="<?php if(isset($content['advps_titleFsize2'])){echo esc_attr( $content['advps_titleFsize2'] );}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 485 px 486 <input type="text" name="advps_titleFsize3" value="<?php if(isset($content['advps_titleFsize3'])){echo esc_attr( $content['advps_titleFsize3'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 487 px 488 <input type="text" name="advps_titleFsize4" value="<?php if(isset($content['advps_titleFsize4'])){echo esc_attr( $content['advps_titleFsize4'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 489 px 490 <input type="text" name="advps_titleFsize5" value="<?php if(isset($content['advps_titleFsize5'])){echo esc_attr( $content['advps_titleFsize5'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 491 491 px <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Different sizes for different media screen width. Hover the field to know which field is for which width. ]</span></td> 492 492 </tr> 493 493 <tr> 494 494 <th scope="row">Title line height</th> 495 <td><input type="text" name="advps_titleLheightL" value="<?php if(isset($content['advps_titleLheightL'])){ echo $content['advps_titleLheightL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />496 px 497 <input type="text" name="advps_titleLheight1" value="<?php if(isset($content['advps_titleLheight1'])){ echo $content['advps_titleLheight1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />498 px 499 <input type="text" name="advps_titleLheight2" value="<?php if(isset($content['advps_titleLheight2'])){echo $content['advps_titleLheight2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />500 px 501 <input type="text" name="advps_titleLheight3" value="<?php if(isset($content['advps_titleLheight3'])){echo $content['advps_titleLheight3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />502 px 503 <input type="text" name="advps_titleLheight4" value="<?php if(isset($content['advps_titleLheight4'])){echo $content['advps_titleLheight4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />504 px 505 <input type="text" name="advps_titleLheight5" value="<?php if(isset($content['advps_titleLheight5'])){echo $content['advps_titleLheight5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />495 <td><input type="text" name="advps_titleLheightL" value="<?php if(isset($content['advps_titleLheightL'])){ echo esc_attr( $content['advps_titleLheightL'] );}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 496 px 497 <input type="text" name="advps_titleLheight1" value="<?php if(isset($content['advps_titleLheight1'])){ echo esc_attr( $content['advps_titleLheight1'] );}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 498 px 499 <input type="text" name="advps_titleLheight2" value="<?php if(isset($content['advps_titleLheight2'])){echo esc_attr( $content['advps_titleLheight2'] );}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 500 px 501 <input type="text" name="advps_titleLheight3" value="<?php if(isset($content['advps_titleLheight3'])){echo esc_attr( $content['advps_titleLheight3'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 502 px 503 <input type="text" name="advps_titleLheight4" value="<?php if(isset($content['advps_titleLheight4'])){echo esc_attr( $content['advps_titleLheight4'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 504 px 505 <input type="text" name="advps_titleLheight5" value="<?php if(isset($content['advps_titleLheight5'])){echo esc_attr( $content['advps_titleLheight5'] );}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 506 506 px <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Each for different media screen width. Hover the field to know which field is for which width. ]</span></td> 507 507 </tr> 508 508 <tr> 509 509 <th scope="row">Excerpt/Content font color</th> 510 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_excptFcolor" value="<?php echo $content['advps_excptFcolor'];?>" style="width:100px;" />510 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_excptFcolor" value="<?php echo esc_attr( $content['advps_excptFcolor'] );?>" style="width:100px;" /> 511 511 <div class="advpsfarb" style="padding-left:22%"></div></td> 512 512 </tr> 513 513 <tr> 514 514 <th scope="row">Excerpt/Content font size</th> 515 <td><input type="text" name="advps_excptFsizeL" value="<?php if(isset($content['advps_excptFsizeL'])){ echo $content['advps_excptFsizeL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />516 px 517 <input type="text" name="advps_excptFsize1" value="<?php if(isset($content['advps_excptFsize1'])){ echo $content['advps_excptFsize1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />518 px 519 <input type="text" name="advps_excptFsize2" value="<?php if(isset($content['advps_excptFsize2'])){echo $content['advps_excptFsize2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />520 px 521 <input type="text" name="advps_excptFsize3" value="<?php if(isset($content['advps_excptFsize3'])){echo $content['advps_excptFsize3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />522 px 523 <input type="text" name="advps_excptFsize4" value="<?php if(isset($content['advps_excptFsize4'])){echo $content['advps_excptFsize4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />524 px 525 <input type="text" name="advps_excptFsize5" value="<?php if(isset($content['advps_excptFsize5'])){echo $content['advps_excptFsize5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />515 <td><input type="text" name="advps_excptFsizeL" value="<?php if(isset($content['advps_excptFsizeL'])){ echo esc_attr( $content['advps_excptFsizeL'] );}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 516 px 517 <input type="text" name="advps_excptFsize1" value="<?php if(isset($content['advps_excptFsize1'])){ echo esc_attr( $content['advps_excptFsize1'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 518 px 519 <input type="text" name="advps_excptFsize2" value="<?php if(isset($content['advps_excptFsize2'])){echo esc_attr( $content['advps_excptFsize2'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 520 px 521 <input type="text" name="advps_excptFsize3" value="<?php if(isset($content['advps_excptFsize3'])){echo esc_attr( $content['advps_excptFsize3'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 522 px 523 <input type="text" name="advps_excptFsize4" value="<?php if(isset($content['advps_excptFsize4'])){echo esc_attr( $content['advps_excptFsize4'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 524 px 525 <input type="text" name="advps_excptFsize5" value="<?php if(isset($content['advps_excptFsize5'])){echo esc_attr( $content['advps_excptFsize5'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 526 526 px </td> 527 527 </tr> 528 528 <tr> 529 529 <th scope="row">Excerpt line height</th> 530 <td><input type="text" name="advps_excptLheightL" value="<?php if(isset($content['advps_excptLheightL'])){ echo $content['advps_excptLheightL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />531 px 532 <input type="text" name="advps_excptLheight1" value="<?php if(isset($content['advps_excptLheight1'])){ echo $content['advps_excptLheight1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />533 px 534 <input type="text" name="advps_excptLheight2" value="<?php if(isset($content['advps_excptLheight2'])){echo $content['advps_excptLheight2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />535 px 536 <input type="text" name="advps_excptLheight3" value="<?php if(isset($content['advps_excptLheight3'])){echo $content['advps_excptLheight3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />537 px 538 <input type="text" name="advps_excptLheight4" value="<?php if(isset($content['advps_excptLheight4'])){echo $content['advps_excptLheight4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />539 px 540 <input type="text" name="advps_excptLheight5" value="<?php if(isset($content['advps_excptLheight5'])){echo $content['advps_excptLheight5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />530 <td><input type="text" name="advps_excptLheightL" value="<?php if(isset($content['advps_excptLheightL'])){ echo esc_attr( $content['advps_excptLheightL'] );}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." /> 531 px 532 <input type="text" name="advps_excptLheight1" value="<?php if(isset($content['advps_excptLheight1'])){ echo esc_attr( $content['advps_excptLheight1'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" /> 533 px 534 <input type="text" name="advps_excptLheight2" value="<?php if(isset($content['advps_excptLheight2'])){echo esc_attr( $content['advps_excptLheight2'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" /> 535 px 536 <input type="text" name="advps_excptLheight3" value="<?php if(isset($content['advps_excptLheight3'])){echo esc_attr( $content['advps_excptLheight3'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" /> 537 px 538 <input type="text" name="advps_excptLheight4" value="<?php if(isset($content['advps_excptLheight4'])){echo esc_attr( $content['advps_excptLheight4'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" /> 539 px 540 <input type="text" name="advps_excptLheight5" value="<?php if(isset($content['advps_excptLheight5'])){echo esc_attr( $content['advps_excptLheight5'] );}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" /> 541 541 px </td> 542 542 </tr> 543 543 <tr> 544 544 <th scope="row">Excerpt length</th> 545 <td><input type="text" name="advps_excerptlen" value="<?php echo $content['advps_excerptlen'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />545 <td><input type="text" name="advps_excerptlen" value="<?php echo esc_attr( $content['advps_excerptlen'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 546 546 words</td> 547 547 </tr> … … 596 596 <tr> 597 597 <th scope="row"> </th> 598 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('content<?php echo $dset->id;?>')" />599 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>598 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('content<?php echo intval( $dset->id );?>')" /> 599 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 600 600 </tr> 601 601 </table> 602 602 <input type="hidden" name="opt_field" value="content" /> 603 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />603 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 604 604 </form> 605 605 </fieldset> 606 606 <fieldset> 607 607 <legend class="advps-legend" style="width:79px; background-position:78px 6px;"><strong>Navigation</strong></legend> 608 <form method="post" onsubmit="return false" id="navigation<?php echo $dset->id;?>">608 <form method="post" onsubmit="return false" id="navigation<?php echo intval( $dset->id );?>"> 609 609 <table class="form-table"> 610 610 <tr> … … 621 621 <span style="padding:0px 5px 0px 10px;">Bullet</span> 622 622 <input type="radio" name="advps_pager_type" value="bullet" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>> 623 <span id="advps-pthumb-lvl<?php echo $dset->id;?>" style="padding:0px 5px 0px 10px;" class="<?php if($slider['advps_slider_type'] != 'standard'){echo 'advps-fade';}?>">Thumbnail</span>624 <input id="advps-pthumb<?php echo $dset->id;?>" <?php if($slider['advps_slider_type'] != 'standard'){echo 'disabled="disabled"';}?> type="radio" name="advps_pager_type" value="thumb" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td>623 <span id="advps-pthumb-lvl<?php echo intval( $dset->id );?>" style="padding:0px 5px 0px 10px;" class="<?php if($slider['advps_slider_type'] != 'standard'){echo 'advps-fade';}?>">Thumbnail</span> 624 <input id="advps-pthumb<?php echo intval( $dset->id );?>" <?php if($slider['advps_slider_type'] != 'standard'){echo 'disabled="disabled"';}?> type="radio" name="advps_pager_type" value="thumb" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td> 625 625 </tr> 626 626 <tr> 627 627 <th scope="row">Thumbnail Width</th> 628 <td><input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />628 <td><input type="text" name="advps_pthumb_width" value="<?php echo esc_attr( $navigation['advps_pthumb_width'] );?>" style="width:50px;" onkeypress="return onlyNum(event);" /> 629 629 % <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td> 630 630 </tr> … … 639 639 <tr> 640 640 <th scope="row">Pager position from bottom</th> 641 <td><input type="text" name="advps_pager_bottom" value="<?php echo $navigation['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />641 <td><input type="text" name="advps_pager_bottom" value="<?php echo esc_attr( $navigation['advps_pager_bottom'] );?>" style="width:50px;" onkeypress="return NumNdNeg(event);" /> 642 642 px</td> 643 643 </tr> … … 672 672 <tr> 673 673 <th scope="row"> </th> 674 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo $dset->id;?>')" />675 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>674 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo intval( $dset->id );?>')" /> 675 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 676 676 </tr> 677 677 </table> 678 678 <input type="hidden" name="opt_field" value="navigation" /> 679 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />679 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 680 680 </form> 681 681 </fieldset> 682 <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">683 <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />684 <input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />682 <form method="post" id="frmOptDel<?php echo intval( $dset->id );?>" onsubmit="return false"> 683 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="optset-id" /> 684 <input type="hidden" value="<?php echo intval( $tcount[0]->Auto_increment );?>" name="nextoptid" /> 685 685 <p> 686 <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />686 <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" /> 687 687 <span style="margin-left:5px;"> 688 <input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo $dset->id;?>)" style="width:12%;" />688 <input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" /> 689 689 </span> </p> 690 690 <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?> … … 700 700 <div style="position:relative; float:left; width:72%"> 701 701 <form method="post"> 702 <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />702 <input type="hidden" name="nextoptid" value="<?php echo intval( $tcount[0]->Auto_increment );?>" /> 703 703 <input type="hidden" name="template" value="three" /> 704 704 <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?> -
advanced-post-slider/trunk/templates/template-two.php
r1115402 r1316529 3 3 ?> 4 4 <div class="advps-col-right"> 5 <h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>5 <h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2> 6 6 <ul> 7 7 <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li> … … 37 37 <div class="handlediv down" title="Click to toggle"> <br> 38 38 </div> 39 <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">40 <?php if(get_option('optset'. $dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>39 <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == intval( $dset->id )){echo 'advps-highlight';}?>" id="lbltxt<?php echo intval( $dset->id );?>"> 40 <?php if(get_option('optset'.intval( $dset->id ))){echo esc_html( get_option('optset'.intval( $dset->id )) );}else{echo 'Slider '.intval( $dset->id );}?> 41 41 </h3> 42 42 <div class="inside"> … … 46 46 <tr> 47 47 <th scope="row">Label</th> 48 <td><input type="text" style="" value="<?php if(get_option('optset'. $dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />49 <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>48 <td><input type="text" style="" value="<?php if(get_option('optset'.intval( $dset->id ))){echo esc_attr( get_option('optset'.intval( $dset->id )) );}else{echo 'Slider '.intval( $dset->id );}?>" name="optset<?php echo intval( $dset->id );?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo intval( $dset->id );?>)" /> 49 <span id="lbludtSts<?php echo intval( $dset->id );?>" style="padding-left:10px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 50 50 </tr> 51 51 <tr> 52 52 <th scope="row">Usage</th> 53 <td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo $dset->id;?>"]' readonly="readonly" /></td>53 <td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo intval( $dset->id );?>"]' readonly="readonly" /></td> 54 54 </tr> 55 55 </table> … … 57 57 <fieldset> 58 58 <legend class="advps-legend advpssm" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend> 59 <div id="advps-sel<?php echo $dset->id;?>">59 <div id="advps-sel<?php echo intval( $dset->id );?>"> 60 60 <table class="form-table"> 61 61 <tr> 62 62 <th scope="row">Select post using</th> 63 <td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">64 <option value="plist" <?php if(get_option('advpssmethod'. $dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>65 <option value="query" <?php if(get_option('advpssmethod'. $dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>66 </select><span id="smudtsts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>63 <td><select name="advpssmethod<?php echo intval( $dset->id )?>" onchange="updateSm(this,<?php echo intval( $dset->id );?>);"> 64 <option value="plist" <?php if(get_option('advpssmethod'.intval( $dset->id )) == 'plist'){echo 'selected="selected"';}?>>Post list</option> 65 <option value="query" <?php if(get_option('advpssmethod'.intval( $dset->id )) == 'query'){echo 'selected="selected"';}?>>Query</option> 66 </select><span id="smudtsts<?php echo intval( $dset->id );?>" style="padding-left:10px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 67 67 </tr> 68 68 </table> 69 <form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">70 <table class="form-table <?php if(get_option('advpssmethod'. $dset->id) == 'query'){echo 'advps-hide';}?>">69 <form method="post" onsubmit="return false" id="plist<?php echo intval( $dset->id );?>"> 70 <table class="form-table <?php if(get_option('advpssmethod'.intval( $dset->id )) == 'query'){echo 'advps-hide';}?>"> 71 71 <tr> 72 72 <th scope="row">Listing option</th> … … 83 83 </select> 84 84 <span style="padding-left:10px;"> 85 <input type="text" name="advps_plistmax" value="<?php echo $plist['advps_plistmax'];?>" style="width:40px;" onkeypress="return onlyNum(event);" title="Max number of post to list" />85 <input type="text" name="advps_plistmax" value="<?php echo esc_attr( $plist['advps_plistmax'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" title="Max number of post to list" /> 86 86 </span> <span style="padding-left:10px;"> 87 87 <select name="advps_plistorder_by" title="Order by"> … … 101 101 </select> 102 102 </span> <span style="padding-left:10px;"> 103 <button class="button-secondary" value="" onclick="listPost(<?php echo $dset->id;?>)">List</button>104 </span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>103 <button class="button-secondary" value="" onclick="listPost(<?php echo intval( $dset->id );?>)">List</button> 104 </span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span></td> 105 105 </tr> 106 106 <tr> 107 107 <th scope="row">Select post from list</th> 108 <td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo $dset->id;?>">108 <td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo intval( $dset->id );?>"> 109 109 <?php 110 110 $lpargs = array( 111 'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes']: 'post',112 'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax']: 99,113 'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by']: 'date',114 'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder']: 'DESC'111 'post_type' => ($plist['advps_post_stypes']) ? esc_html( $plist['advps_post_stypes'] ) : 'post', 112 'posts_per_page' => ($plist['advps_plistmax']) ? esc_html( $plist['advps_plistmax'] ) : 99, 113 'orderby' => ($plist['advps_plistorder_by']) ? esc_html( $plist['advps_plistorder_by'] ) : 'date', 114 'order' => ($plist['advps_plistorder']) ? esc_html( $plist['advps_plistorder'] ) : 'DESC' 115 115 ); 116 116 $pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?> … … 124 124 <tr> 125 125 <th scope="row"> </th> 126 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo $dset->id;?>')" />127 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>126 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo intval( $dset->id );?>')" /> 127 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 128 128 </tr> 129 129 </table> 130 130 <input type="hidden" name="opt_field" value="plist" /> 131 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />131 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 132 132 </form> 133 <form method="post" onsubmit="return false" id="query<?php echo $dset->id;?>">134 <table class="form-table <?php if(!get_option('advpssmethod'. $dset->id) || get_option('advpssmethod'.$dset->id) == 'plist'){echo 'advps-hide';}?>">133 <form method="post" onsubmit="return false" id="query<?php echo intval( $dset->id );?>"> 134 <table class="form-table <?php if(!get_option('advpssmethod'.intval( $dset->id )) || get_option('advpssmethod'.intval( $dset->id )) == 'plist'){echo 'advps-hide';}?>"> 135 135 <tr> 136 136 <th scope="row">Post Type</th> 137 <td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">137 <td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo intval( $dset->id );?>)"> 138 138 <option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option> 139 139 <option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option> … … 141 141 foreach ($customPostTypes as $post_type ) { 142 142 ?> 143 <option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>143 <option value="<?php echo esc_attr( $post_type );?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option> 144 144 <?php 145 145 } … … 147 147 </select></td> 148 148 </tr> 149 <tr id="advps-cat-field<?php echo $dset->id;?>">149 <tr id="advps-cat-field<?php echo intval( $dset->id );?>"> 150 150 <?php 151 $posttypeobj = get_post_type_object( $query['advps_post_types']);151 $posttypeobj = get_post_type_object( esc_html( $query['advps_post_types']) ); 152 152 if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){ 153 153 ?> … … 158 158 foreach($catList as $scat){ 159 159 ?> 160 <option value="<?php echo $scat->term_id;?>" <?php if(isset($query['advps_category']) && in_array($scat->term_id,$query['advps_category'])){echo 'selected="selected"';}?>><?php echo $scat->name;?></option>160 <option value="<?php echo esc_attr( $scat->term_id );?>" <?php if(isset($query['advps_category']) && in_array($scat->term_id,$query['advps_category'])){echo 'selected="selected"';}?>><?php echo esc_html( $scat->name );?></option> 161 161 <?php }?> 162 162 </select> … … 166 166 <tr> 167 167 <th scope="row">Max. Number of post</th> 168 <td><input type="text" name="advps_maxpost" value="<?php echo $query['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />168 <td><input type="text" name="advps_maxpost" value="<?php echo esc_attr( $query['advps_maxpost'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 169 169 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Maximum Slides]</span></td> 170 170 </tr> 171 171 <tr> 172 172 <th scope="row">Offset (optional)</th> 173 <td><input type="text" name="advps_offset" value="<?php echo $query['advps_offset'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>173 <td><input type="text" name="advps_offset" value="<?php echo esc_attr( $query['advps_offset'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 174 174 </tr> 175 175 <tr> 176 176 <th scope="row">Exclude (optional)</th> 177 <td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />177 <td><input type="text" name="advps_exclude" value="<?php echo esc_attr( $query['advps_exclude'] );?>" style="width:100px;" /> 178 178 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ Ex. 1,5,10 Comma separated post IDs that need to exclude from slideshow ]</span></td> 179 179 </tr> … … 200 200 <tr> 201 201 <th scope="row"> </th> 202 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo $dset->id;?>')" />203 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>202 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo intval( $dset->id );?>')" /> 203 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 204 204 </tr> 205 205 </table> 206 206 <input type="hidden" name="opt_field" value="query" /> 207 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />207 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 208 208 </form> 209 209 </div> … … 211 211 <fieldset> 212 212 <legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend> 213 <form method="post" id="slider<?php echo $dset->id;?>" onsubmit="return false">213 <form method="post" id="slider<?php echo intval( $dset->id );?>" onsubmit="return false"> 214 214 <table class="form-table"> 215 215 <tr> 216 216 <th scope="row">Slider Type</th> 217 <td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">217 <td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo intval( $dset->id );?>);"> 218 218 <option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option> 219 219 <option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option> … … 239 239 <tr> 240 240 <th scope="row">Speed</th> 241 <td><input type="text" name="advps_speed" value="<?php echo $slider['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>241 <td><input type="text" name="advps_speed" value="<?php echo esc_attr( $slider['advps_speed'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 242 242 </tr> 243 243 <tr> … … 250 250 <tr> 251 251 <th scope="row">Pause</th> 252 <td><input type="text" name="advps_timeout" value="<?php echo $slider['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>252 <td><input type="text" name="advps_timeout" value="<?php echo esc_attr( $slider['advps_timeout'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 253 253 </tr> 254 254 <tr> 255 255 <th scope="row">Slide margin</th> 256 <td><input type="text" name="advps_sldmargin" value="<?php echo $slider['advps_sldmargin'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>256 <td><input type="text" name="advps_sldmargin" value="<?php echo esc_attr( $slider['advps_sldmargin'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td> 257 257 </tr> 258 258 <tr> … … 266 266 <tr> 267 267 <th scope="row"> </th> 268 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo $dset->id;?>')" />269 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>268 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo intval( $dset->id );?>')" /> 269 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 270 270 </tr> 271 271 </table> 272 272 <input type="hidden" name="opt_field" value="slider" /> 273 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />273 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 274 274 </form> 275 275 </fieldset> 276 276 <fieldset> 277 277 <legend class="advps-legend" style="width:121px; background-position:120px 6px;"><strong>Carousel & Ticker</strong></legend> 278 <form method="post" onsubmit="return false" id="caro_ticker<?php echo $dset->id;?>">278 <form method="post" onsubmit="return false" id="caro_ticker<?php echo intval( $dset->id );?>"> 279 279 <table class="form-table"> 280 280 <tr> 281 281 <th scope="row">Number of slide</th> 282 <td><input type="text" name="advps_caro_slds" value="<?php if(isset($caro_ticker['advps_caro_slds'])){echo $caro_ticker['advps_caro_slds'];}?>" style="width:60px;" onkeypress="return onlyNum(event);" />282 <td><input type="text" name="advps_caro_slds" value="<?php if(isset($caro_ticker['advps_caro_slds'])){echo esc_attr( $caro_ticker['advps_caro_slds'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 283 283 <span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td> 284 284 </tr> 285 285 <tr> 286 286 <th scope="row">Slide width</th> 287 <td><input type="text" name="advps_caro_sldwidth" value="<?php if(isset($caro_ticker['advps_caro_sldwidth'])){echo $caro_ticker['advps_caro_sldwidth'];}?>" style="width:60px;" onkeypress="return onlyNum(event);" />287 <td><input type="text" name="advps_caro_sldwidth" value="<?php if(isset($caro_ticker['advps_caro_sldwidth'])){echo esc_attr( $caro_ticker['advps_caro_sldwidth'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" /> 288 288 <span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td> 289 289 </tr> 290 290 <tr> 291 291 <th scope="row"> </th> 292 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo $dset->id;?>')" />293 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>292 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo intval( $dset->id );?>')" /> 293 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 294 294 </tr> 295 295 </table> 296 296 <input type="hidden" name="opt_field" value="caro_ticker" /> 297 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />297 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 298 298 </form> 299 299 </fieldset> 300 300 <fieldset> 301 301 <legend class="advps-legend" style="width:158px; background-position:157px 6px;"><strong>Container & Thumbnail</strong></legend> 302 <form method="post" onsubmit="return false" id="container<?php echo $dset->id;?>">302 <form method="post" onsubmit="return false" id="container<?php echo intval( $dset->id );?>"> 303 303 <table class="form-table"> 304 304 <tr> … … 314 314 foreach($_wp_additional_image_sizes as $tkey => $tval){ 315 315 ?> 316 <option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>316 <option value="<?php echo esc_attr( $tkey );?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo esc_html( $tkey );?></option> 317 317 <?php 318 318 } … … 322 322 <tr> 323 323 <th scope="row">Default image url</th> 324 <td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo $container['advps_default_image'];}?>" style="width:250px;" />324 <td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo esc_url( $container['advps_default_image'] );}?>" style="width:250px;" /> 325 325 <span style="padding-left:10px; font-size:10px; font-style:italic;"> [ N.B. If any post doesn't have featured image then default image will be shown.]</span></td> 326 326 </tr> 327 327 <tr> 328 328 <th scope="row">Slide Container Width</th> 329 <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />329 <td><input type="text" name="advps_sld_width" value="<?php echo esc_attr( $container['advps_sld_width'] );?>" style="width:45px;" onkeypress="return onlyNum(event);" /> 330 330 px</td> 331 331 </tr> … … 339 339 <tr> 340 340 <th scope="row">Background Color</th> 341 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $container['advps_bgcolor'];?>" style="width:100px;" />341 <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo esc_attr( $container['advps_bgcolor'] );?>" style="width:100px;" /> 342 342 <div class="advpsfarb" style="padding-left:22%"></div></td> 343 343 </tr> … … 345 345 <th scope="row">Border</th> 346 346 <td><span style="vertical-align:top"> 347 <input type="text" name="advps_border_size" value="<?php echo $container['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />347 <input type="text" name="advps_border_size" value="<?php echo esc_attr( $container['advps_border_size'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 348 348 px 349 349 <select name="advps_border_type"> … … 356 356 </select> 357 357 </span> 358 <input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="<?php echo $container['advps_border_color'];?>" style="width:100px;" />358 <input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="<?php echo esc_attr( $container['advps_border_color'] );?>" style="width:100px;" /> 359 359 <div class="advpsfarb" style="padding-left:22%"></div></td> 360 360 </tr> … … 369 369 <th scope="row">Box Shadow</th> 370 370 <td><span style="vertical-align:top"> 371 <input type="text" name="advps_bxshad1" value="<?php echo $container['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />371 <input type="text" name="advps_bxshad1" value="<?php echo esc_attr( $container['advps_bxshad1'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 372 372 px 373 <input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />373 <input type="text" name="advps_bxshad2" value="<?php echo esc_attr( $container['advps_bxshad2'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 374 374 px 375 <input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />375 <input type="text" name="advps_bxshad3" value="<?php echo esc_attr( $container['advps_bxshad3'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" /> 376 376 px </span> 377 <input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $container['advps_bxshadcolor'];?>" style="width:100px;" />377 <input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo esc_attr( $container['advps_bxshadcolor'] );?>" style="width:100px;" /> 378 378 <div class="advpsfarb" style="padding-left:22%"></div></td> 379 379 </tr> … … 435 435 <tr> 436 436 <th scope="row"> </th> 437 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo $dset->id;?>')" />438 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>437 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo intval( $dset->id );?>')" /> 438 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 439 439 </tr> 440 440 </table> 441 441 <input type="hidden" name="opt_field" value="container" /> 442 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />442 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 443 443 </form> 444 444 </fieldset> 445 445 <fieldset> 446 446 <legend class="advps-legend" style="width:79px; background-position:78px 6px;"><strong>Navigation</strong></legend> 447 <form method="post" onsubmit="return false" id="navigation<?php echo $dset->id;?>">447 <form method="post" onsubmit="return false" id="navigation<?php echo intval( $dset->id );?>"> 448 448 <table class="form-table"> 449 449 <tr> … … 460 460 <span style="padding:0px 5px 0px 10px;">Bullet</span> 461 461 <input type="radio" name="advps_pager_type" value="bullet" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>> 462 <span id="advps-pthumb-lvl<?php echo $dset->id;?>" style="padding:0px 5px 0px 10px;" class="<?php if($slider['advps_slider_type'] != 'standard'){echo 'advps-fade';}?>">Thumbnail</span>463 <input id="advps-pthumb<?php echo $dset->id;?>" <?php if($slider['advps_slider_type'] != 'standard'){echo 'disabled="disabled"';}?> type="radio" name="advps_pager_type" value="thumb" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td>462 <span id="advps-pthumb-lvl<?php echo intval( $dset->id );?>" style="padding:0px 5px 0px 10px;" class="<?php if($slider['advps_slider_type'] != 'standard'){echo 'advps-fade';}?>">Thumbnail</span> 463 <input id="advps-pthumb<?php echo intval( $dset->id );?>" <?php if($slider['advps_slider_type'] != 'standard'){echo 'disabled="disabled"';}?> type="radio" name="advps_pager_type" value="thumb" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td> 464 464 </tr> 465 465 <tr> 466 466 <th scope="row">Thumbnail Width</th> 467 467 <td> 468 <input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" /> %468 <input type="text" name="advps_pthumb_width" value="<?php echo esc_attr( $navigation['advps_pthumb_width'] );?>" style="width:50px;" onkeypress="return onlyNum(event);" /> % 469 469 <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td> 470 470 </tr> … … 479 479 <tr> 480 480 <th scope="row">Pager position from bottom</th> 481 <td><input type="text" name="advps_pager_bottom" value="<?php echo $navigation['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />481 <td><input type="text" name="advps_pager_bottom" value="<?php echo esc_attr( $navigation['advps_pager_bottom'] );?>" style="width:50px;" onkeypress="return NumNdNeg(event);" /> 482 482 px</td> 483 483 </tr> … … 500 500 <tr> 501 501 <th scope="row">Play/Pause position from bottom</th> 502 <td><input type="text" name="advps_ppause_bottom" value="<?php echo $navigation['advps_ppause_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />502 <td><input type="text" name="advps_ppause_bottom" value="<?php echo esc_attr( $navigation['advps_ppause_bottom'] );?>" style="width:50px;" onkeypress="return NumNdNeg(event);" /> 503 503 px</td> 504 504 </tr> … … 512 512 <tr> 513 513 <th scope="row"> </th> 514 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo $dset->id;?>')" />515 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td>514 <td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo intval( $dset->id );?>')" /> 515 <span class="ajx-loader" style="padding-left:15px; display:none;"><img src="<?php echo esc_url( advps_url );?>/images/ajax-loader.gif" /></span><span class="ajx-sts"></span></td> 516 516 </tr> 517 517 </table> 518 518 <input type="hidden" name="opt_field" value="navigation" /> 519 <input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />519 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" /> 520 520 </form> 521 521 </fieldset> 522 <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">523 <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />522 <form method="post" id="frmOptDel<?php echo intval( $dset->id );?>" onsubmit="return false"> 523 <input type="hidden" value="<?php echo intval( $dset->id );?>" name="optset-id" /> 524 524 <input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" /> 525 525 <p> 526 <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />527 <span style="margin-left:5px;"><input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo $dset->id;?>)" style="width:12%;" /></span>526 <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" /> 527 <span style="margin-left:5px;"><input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" /></span> 528 528 </p> 529 529 <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
Note: See TracChangeset
for help on using the changeset viewer.