Version Description
- Important security fix and data cleaning. Upgrade is highly recommended.
- Duplicating option set not working issue resolved.
=
Download this release
Release Info
Developer | digontoahsan |
Plugin | Advanced post slider |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.5.0
- advanced-post-slider.php +17 -17
- advps-admin.php +28 -25
- js/advps.script.js +4 -0
- readme.txt +6 -2
- templates/template-one.php +118 -118
- templates/template-three.php +115 -115
- templates/template-two.php +78 -78
advanced-post-slider.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced post slider
|
4 |
Plugin URI: www.wpcue.com
|
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.
|
7 |
Author: digontoahsan
|
8 |
Author URI: www.wpcue.com
|
9 |
License: GPL2
|
@@ -75,7 +75,7 @@
|
|
75 |
if(get_option('advps-db-version') && !get_option('advps-update-notification')){
|
76 |
update_option('advps-update-notification','show');
|
77 |
}
|
78 |
-
update_option('advps-curr-version','2.
|
79 |
}
|
80 |
add_action( 'plugins_loaded', 'advps_update_db' );
|
81 |
/* ---------------------------------------------------------------------------------------*/
|
@@ -107,9 +107,9 @@
|
|
107 |
add_action( "wp_ajax_advpsUpdateSmethod", "advpsUpdateSmethod" );
|
108 |
|
109 |
function advpsUpdateLabel(){
|
110 |
-
$nonce = $_POST['checkReq'];
|
111 |
-
$fname = $_POST['f_name'];
|
112 |
-
$fvalue = trim($_POST['f_value']);
|
113 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
114 |
echo "Unauthorized request.";
|
115 |
exit;
|
@@ -123,8 +123,8 @@
|
|
123 |
}
|
124 |
|
125 |
function chkCaetegory(){
|
126 |
-
$nonce = $_POST['checkReq'];
|
127 |
-
$posttype = $_POST['post_type'];
|
128 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
129 |
echo "Unauthorized request.";
|
130 |
exit;
|
@@ -154,7 +154,7 @@
|
|
154 |
exit;
|
155 |
}
|
156 |
function advpsUpdateOpt(){
|
157 |
-
$nonce = $_POST['checkReq'];
|
158 |
$optdata = $_POST['optdata'];
|
159 |
|
160 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
@@ -199,12 +199,12 @@
|
|
199 |
exit;
|
200 |
}
|
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(','
|
208 |
|
209 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
210 |
echo "Unauthorized request.";
|
@@ -229,9 +229,9 @@
|
|
229 |
exit;
|
230 |
}
|
231 |
function advpsUpdateSmethod(){
|
232 |
-
$nonce = $_POST['checkReq'];
|
233 |
-
$selnam = $_POST['selnam'];
|
234 |
-
$selval = $_POST['selval'];
|
235 |
|
236 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
237 |
echo "Unauthorized request.";
|
3 |
Plugin Name: Advanced post slider
|
4 |
Plugin URI: www.wpcue.com
|
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.5.0
|
7 |
Author: digontoahsan
|
8 |
Author URI: www.wpcue.com
|
9 |
License: GPL2
|
75 |
if(get_option('advps-db-version') && !get_option('advps-update-notification')){
|
76 |
update_option('advps-update-notification','show');
|
77 |
}
|
78 |
+
update_option('advps-curr-version','2.5.0');
|
79 |
}
|
80 |
add_action( 'plugins_loaded', 'advps_update_db' );
|
81 |
/* ---------------------------------------------------------------------------------------*/
|
107 |
add_action( "wp_ajax_advpsUpdateSmethod", "advpsUpdateSmethod" );
|
108 |
|
109 |
function advpsUpdateLabel(){
|
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 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
114 |
echo "Unauthorized request.";
|
115 |
exit;
|
123 |
}
|
124 |
|
125 |
function chkCaetegory(){
|
126 |
+
$nonce = sanitize_text_field( $_POST['checkReq'] );
|
127 |
+
$posttype = sanitize_text_field( $_POST['post_type'] );
|
128 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
129 |
echo "Unauthorized request.";
|
130 |
exit;
|
154 |
exit;
|
155 |
}
|
156 |
function advpsUpdateOpt(){
|
157 |
+
$nonce = sanitize_text_field( $_POST['checkReq'] );
|
158 |
$optdata = $_POST['optdata'];
|
159 |
|
160 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
199 |
exit;
|
200 |
}
|
201 |
function advpsListPost(){
|
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 |
|
209 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
210 |
echo "Unauthorized request.";
|
229 |
exit;
|
230 |
}
|
231 |
function advpsUpdateSmethod(){
|
232 |
+
$nonce = sanitize_text_field( $_POST['checkReq'] );
|
233 |
+
$selnam = sanitize_text_field( $_POST['selnam'] );
|
234 |
+
$selval = sanitize_text_field( $_POST['selval'] );
|
235 |
|
236 |
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
237 |
echo "Unauthorized request.";
|
advps-admin.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
$flg = 0;
|
8 |
|
9 |
if(isset($_GET['tab'])){
|
10 |
-
$currTab = $_GET['tab'];
|
11 |
}
|
12 |
else
|
13 |
{
|
@@ -17,6 +17,8 @@
|
|
17 |
update_option('advps-update-notification','hide');
|
18 |
}
|
19 |
if(isset($_POST['optset-id'])){
|
|
|
|
|
20 |
if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
|
21 |
{
|
22 |
print 'Sorry, your nonce did not verify.';
|
@@ -24,22 +26,22 @@
|
|
24 |
}
|
25 |
|
26 |
if(isset($_POST['del-optset'])){
|
27 |
-
|
28 |
-
|
29 |
if($wpdb->query($q_del)){
|
30 |
-
delete_option('optset'.$
|
31 |
$stsMgs = "Deleted successfully.";
|
32 |
}
|
33 |
}
|
34 |
elseif(isset($_POST['dup-optset'])){
|
|
|
35 |
|
36 |
-
$q_sel = $wpdb->prepare( "select * from ".$wpdb->prefix."advps_optionset where id = %d",$
|
37 |
$res = $wpdb->get_results($q_sel);
|
38 |
|
39 |
$q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,plist,query,slider,caro_ticker,container,content,navigation) values(%s,%s,%s,%s,%s,%s,%s,%s)",$res[0]->template,$res[0]->plist,$res[0]->query,$res[0]->slider,$res[0]->caro_ticker,$res[0]->container,$res[0]->content,$res[0]->navigation);
|
40 |
|
41 |
if($wpdb->query($q_add)){
|
42 |
-
update_option('advpssmethod'.$
|
43 |
$stsMgs = "Duplicated successfully.";
|
44 |
}
|
45 |
}
|
@@ -54,7 +56,8 @@
|
|
54 |
exit;
|
55 |
}
|
56 |
|
57 |
-
|
|
|
58 |
$tem_list = array('one','two','three');
|
59 |
$template = sanitize_text_field($_POST['template']);
|
60 |
if( ! in_array( $template, $tem_list )){
|
@@ -82,7 +85,7 @@
|
|
82 |
$q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,plist,query,slider,caro_ticker,container,content,navigation) values(%s,%s,%s,%s,%s,%s,%s,%s)",$template,serialize($advpsPlist),serialize($advpsQuery),serialize($advpsSlide),serialize($advpsCaroTicker),serialize($advpsContainer3),serialize($advpsContent2),serialize($advpsNavigation));
|
83 |
}
|
84 |
if($wpdb->query($q_add)){
|
85 |
-
update_option('advpssmethod'.$
|
86 |
$stsMgs = "Added successfully.";
|
87 |
}
|
88 |
}
|
@@ -99,8 +102,8 @@
|
|
99 |
}
|
100 |
|
101 |
$thumb_name = sanitize_text_field($_POST['advps_thumb_name']);
|
102 |
-
$width =
|
103 |
-
$height =
|
104 |
$crop = sanitize_text_field($_POST['advps_crop']);
|
105 |
|
106 |
$q = $wpdb->prepare("insert into ".$wpdb->prefix."advps_thumbnail (thumb_name,width,height,crop) values(%s,%d,%d,%s)",$thumb_name,$width,$height,$crop);
|
@@ -117,10 +120,10 @@
|
|
117 |
exit;
|
118 |
}
|
119 |
|
120 |
-
$thumb_id =
|
121 |
$thumb_name = sanitize_text_field($_POST['advps_thumb_name']);
|
122 |
-
$width =
|
123 |
-
$height =
|
124 |
$crop = sanitize_text_field($_POST['advps_crop']);
|
125 |
|
126 |
$q = $wpdb->prepare("update ".$wpdb->prefix."advps_thumbnail set thumb_name = '%s',width = %d, height = %d, crop = '%s' where id = %d",$thumb_name,$width,$height,$crop,$thumb_id);
|
@@ -151,12 +154,12 @@
|
|
151 |
$(this).parent().find("table").slideToggle(100,'linear',function(){});
|
152 |
}
|
153 |
if($(this).hasClass('closed')){
|
154 |
-
$(this).css('background-image','url(<?php echo advps_url
|
155 |
$(this).removeClass('closed');
|
156 |
}
|
157 |
else
|
158 |
{
|
159 |
-
$(this).css('background-image','url(<?php echo advps_url
|
160 |
$(this).addClass('closed');
|
161 |
}
|
162 |
})
|
@@ -189,7 +192,7 @@ fieldset {
|
|
189 |
}
|
190 |
.advps-legend {
|
191 |
background-color:#6E6E6E;
|
192 |
-
background-image:url(<?php echo advps_url
|
193 |
background-repeat:no-repeat;
|
194 |
background-position: 96px 6px;
|
195 |
color:#FFF;
|
@@ -224,12 +227,12 @@ fieldset {
|
|
224 |
padding-left: 20px;
|
225 |
}
|
226 |
.postbox .down {
|
227 |
-
background-image:url(<?php echo advps_url
|
228 |
background-repeat:no-repeat;
|
229 |
background-position: 4px 10px;
|
230 |
}
|
231 |
.postbox .up {
|
232 |
-
background-image:url(<?php echo advps_url
|
233 |
background-repeat:no-repeat;
|
234 |
background-position: 4px 10px;
|
235 |
}
|
@@ -253,7 +256,7 @@ fieldset {
|
|
253 |
<?php }?>
|
254 |
<?php if($stsMgs != ''){?>
|
255 |
<div id="message" class="updated below-h2">
|
256 |
-
<p><?php echo $stsMgs;?></p>
|
257 |
</div>
|
258 |
<?php }?>
|
259 |
<h2 class="nav-tab-wrapper"> <a href="?page=advps-slideshow&tab=one" class="nav-tab <?php if($currTab == 'one'){echo 'nav-tab-active';}?>" title="Thumbnail and overlaid title excerpt">Template One</a> <a href="?page=advps-slideshow&tab=two" class="nav-tab <?php if($currTab == 'two'){echo 'nav-tab-active';}?>" title="Thumbnail only">Template Two</a> <a href="?page=advps-slideshow&tab=three" class="nav-tab <?php if($currTab == 'three'){echo 'nav-tab-active';}?>" title="Thumbnail, title, excerpt or simply full content">Template Three</a><a href="?page=advps-slideshow&tab=thumb" class="nav-tab <?php if($currTab == 'thumb'){echo 'nav-tab-active';}?>" title="Create or manage thumbnail size">Thumbnails</a> </h2>
|
@@ -265,7 +268,7 @@ fieldset {
|
|
265 |
require 'templates/template-three.php';
|
266 |
}elseif($currTab == 'thumb'){?>
|
267 |
<div class="advps-col-right">
|
268 |
-
<h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>
|
269 |
<ul>
|
270 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
271 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
@@ -290,11 +293,11 @@ fieldset {
|
|
290 |
<tr>
|
291 |
<form method="post">
|
292 |
<th scope="row">Name
|
293 |
-
<input type="text" name="advps_thumb_name" value="<?php echo $thmb->thumb_name;?>" style="width:140px" /></th>
|
294 |
<td>Width
|
295 |
-
<input type="text" name="advps_thumb_width" value="<?php echo $thmb->width;?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
296 |
px Height
|
297 |
-
<input type="text" name="advps_thumb_height" value="<?php echo $thmb->height;?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
298 |
px <span style="margin-left:20px;">Crop
|
299 |
<select name="advps_crop">
|
300 |
<option value="yes" <?php if($thmb->crop == 'yes'){echo 'selected="selected"';}?>>true</option>
|
@@ -303,7 +306,7 @@ fieldset {
|
|
303 |
</span> <span style="margin-left:20px;">
|
304 |
<input type="submit" value="Save" class="button-secondary" name="update_thumb" />
|
305 |
</span></td>
|
306 |
-
<input type="hidden" value="<?php echo $thmb->id;?>" name="thumb_id" />
|
307 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
308 |
</form>
|
309 |
</tr>
|
@@ -347,4 +350,4 @@ fieldset {
|
|
347 |
</div>
|
348 |
<?php }?>
|
349 |
</div>
|
350 |
-
<meta name="wpversion" content="<?php echo $wp_version;?>" />
|
7 |
$flg = 0;
|
8 |
|
9 |
if(isset($_GET['tab'])){
|
10 |
+
$currTab = sanitize_text_field( $_GET['tab'] );
|
11 |
}
|
12 |
else
|
13 |
{
|
17 |
update_option('advps-update-notification','hide');
|
18 |
}
|
19 |
if(isset($_POST['optset-id'])){
|
20 |
+
$optset_id = intval( $_POST['optset-id'] );
|
21 |
+
|
22 |
if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
|
23 |
{
|
24 |
print 'Sorry, your nonce did not verify.';
|
26 |
}
|
27 |
|
28 |
if(isset($_POST['del-optset'])){
|
29 |
+
$q_del = $wpdb->prepare("delete from ".$wpdb->prefix."advps_optionset where id = %d",$optset_id);
|
|
|
30 |
if($wpdb->query($q_del)){
|
31 |
+
delete_option('optset'.$optset_id);
|
32 |
$stsMgs = "Deleted successfully.";
|
33 |
}
|
34 |
}
|
35 |
elseif(isset($_POST['dup-optset'])){
|
36 |
+
$nextopt_id = intval( $_POST['nextoptid'] );
|
37 |
|
38 |
+
$q_sel = $wpdb->prepare( "select * from ".$wpdb->prefix."advps_optionset where id = %d",$optset_id );
|
39 |
$res = $wpdb->get_results($q_sel);
|
40 |
|
41 |
$q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,plist,query,slider,caro_ticker,container,content,navigation) values(%s,%s,%s,%s,%s,%s,%s,%s)",$res[0]->template,$res[0]->plist,$res[0]->query,$res[0]->slider,$res[0]->caro_ticker,$res[0]->container,$res[0]->content,$res[0]->navigation);
|
42 |
|
43 |
if($wpdb->query($q_add)){
|
44 |
+
update_option('advpssmethod'.$nextopt_id,get_option('advpssmethod'.$optset_id ));
|
45 |
$stsMgs = "Duplicated successfully.";
|
46 |
}
|
47 |
}
|
56 |
exit;
|
57 |
}
|
58 |
|
59 |
+
//$all_field = $_POST;
|
60 |
+
$nextopt_id = intval( $_POST['nextoptid'] );
|
61 |
$tem_list = array('one','two','three');
|
62 |
$template = sanitize_text_field($_POST['template']);
|
63 |
if( ! in_array( $template, $tem_list )){
|
85 |
$q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,plist,query,slider,caro_ticker,container,content,navigation) values(%s,%s,%s,%s,%s,%s,%s,%s)",$template,serialize($advpsPlist),serialize($advpsQuery),serialize($advpsSlide),serialize($advpsCaroTicker),serialize($advpsContainer3),serialize($advpsContent2),serialize($advpsNavigation));
|
86 |
}
|
87 |
if($wpdb->query($q_add)){
|
88 |
+
update_option('advpssmethod'.$nextopt_id,'plist');
|
89 |
$stsMgs = "Added successfully.";
|
90 |
}
|
91 |
}
|
102 |
}
|
103 |
|
104 |
$thumb_name = sanitize_text_field($_POST['advps_thumb_name']);
|
105 |
+
$width = intval($_POST['advps_thumb_width']);
|
106 |
+
$height = intval($_POST['advps_thumb_height']);
|
107 |
$crop = sanitize_text_field($_POST['advps_crop']);
|
108 |
|
109 |
$q = $wpdb->prepare("insert into ".$wpdb->prefix."advps_thumbnail (thumb_name,width,height,crop) values(%s,%d,%d,%s)",$thumb_name,$width,$height,$crop);
|
120 |
exit;
|
121 |
}
|
122 |
|
123 |
+
$thumb_id = intval($_POST['thumb_id']);
|
124 |
$thumb_name = sanitize_text_field($_POST['advps_thumb_name']);
|
125 |
+
$width = intval($_POST['advps_thumb_width']);
|
126 |
+
$height = intval($_POST['advps_thumb_height']);
|
127 |
$crop = sanitize_text_field($_POST['advps_crop']);
|
128 |
|
129 |
$q = $wpdb->prepare("update ".$wpdb->prefix."advps_thumbnail set thumb_name = '%s',width = %d, height = %d, crop = '%s' where id = %d",$thumb_name,$width,$height,$crop,$thumb_id);
|
154 |
$(this).parent().find("table").slideToggle(100,'linear',function(){});
|
155 |
}
|
156 |
if($(this).hasClass('closed')){
|
157 |
+
$(this).css('background-image','url(<?php echo esc_url( advps_url );?>images/up.png)');
|
158 |
$(this).removeClass('closed');
|
159 |
}
|
160 |
else
|
161 |
{
|
162 |
+
$(this).css('background-image','url(<?php echo esc_url( advps_url );?>images/down.png)');
|
163 |
$(this).addClass('closed');
|
164 |
}
|
165 |
})
|
192 |
}
|
193 |
.advps-legend {
|
194 |
background-color:#6E6E6E;
|
195 |
+
background-image:url(<?php echo esc_url( advps_url );?>images/up.png);
|
196 |
background-repeat:no-repeat;
|
197 |
background-position: 96px 6px;
|
198 |
color:#FFF;
|
227 |
padding-left: 20px;
|
228 |
}
|
229 |
.postbox .down {
|
230 |
+
background-image:url(<?php echo esc_url( advps_url );?>images/downb.png);
|
231 |
background-repeat:no-repeat;
|
232 |
background-position: 4px 10px;
|
233 |
}
|
234 |
.postbox .up {
|
235 |
+
background-image:url(<?php echo esc_url( advps_url );?>images/upb.png);
|
236 |
background-repeat:no-repeat;
|
237 |
background-position: 4px 10px;
|
238 |
}
|
256 |
<?php }?>
|
257 |
<?php if($stsMgs != ''){?>
|
258 |
<div id="message" class="updated below-h2">
|
259 |
+
<p><?php echo esc_html( $stsMgs );?></p>
|
260 |
</div>
|
261 |
<?php }?>
|
262 |
<h2 class="nav-tab-wrapper"> <a href="?page=advps-slideshow&tab=one" class="nav-tab <?php if($currTab == 'one'){echo 'nav-tab-active';}?>" title="Thumbnail and overlaid title excerpt">Template One</a> <a href="?page=advps-slideshow&tab=two" class="nav-tab <?php if($currTab == 'two'){echo 'nav-tab-active';}?>" title="Thumbnail only">Template Two</a> <a href="?page=advps-slideshow&tab=three" class="nav-tab <?php if($currTab == 'three'){echo 'nav-tab-active';}?>" title="Thumbnail, title, excerpt or simply full content">Template Three</a><a href="?page=advps-slideshow&tab=thumb" class="nav-tab <?php if($currTab == 'thumb'){echo 'nav-tab-active';}?>" title="Create or manage thumbnail size">Thumbnails</a> </h2>
|
268 |
require 'templates/template-three.php';
|
269 |
}elseif($currTab == 'thumb'){?>
|
270 |
<div class="advps-col-right">
|
271 |
+
<h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2>
|
272 |
<ul>
|
273 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
274 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
293 |
<tr>
|
294 |
<form method="post">
|
295 |
<th scope="row">Name
|
296 |
+
<input type="text" name="advps_thumb_name" value="<?php echo esc_attr( $thmb->thumb_name );?>" style="width:140px" /></th>
|
297 |
<td>Width
|
298 |
+
<input type="text" name="advps_thumb_width" value="<?php echo esc_attr( $thmb->width );?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
299 |
px Height
|
300 |
+
<input type="text" name="advps_thumb_height" value="<?php echo esc_attr( $thmb->height );?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
301 |
px <span style="margin-left:20px;">Crop
|
302 |
<select name="advps_crop">
|
303 |
<option value="yes" <?php if($thmb->crop == 'yes'){echo 'selected="selected"';}?>>true</option>
|
306 |
</span> <span style="margin-left:20px;">
|
307 |
<input type="submit" value="Save" class="button-secondary" name="update_thumb" />
|
308 |
</span></td>
|
309 |
+
<input type="hidden" value="<?php echo esc_attr( $thmb->id );?>" name="thumb_id" />
|
310 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
311 |
</form>
|
312 |
</tr>
|
350 |
</div>
|
351 |
<?php }?>
|
352 |
</div>
|
353 |
+
<meta name="wpversion" content="<?php echo esc_attr( $wp_version );?>" />
|
js/advps.script.js
CHANGED
@@ -197,6 +197,10 @@ function deleteOptSet(id){
|
|
197 |
jQuery("#frmOptDel"+id).submit();
|
198 |
}
|
199 |
}
|
|
|
|
|
|
|
|
|
200 |
function pagerAttr(v){
|
201 |
alert(v);
|
202 |
}
|
197 |
jQuery("#frmOptDel"+id).submit();
|
198 |
}
|
199 |
}
|
200 |
+
function duplicateOptSet(id){
|
201 |
+
jQuery("#frmOptDel"+id).removeAttr("onsubmit");
|
202 |
+
jQuery("#frmOptDel"+id).submit();
|
203 |
+
}
|
204 |
function pagerAttr(v){
|
205 |
alert(v);
|
206 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Advanced post slider ===
|
2 |
Contributors: digontoahsan
|
3 |
Donate link:
|
4 |
-
Tags: post slider,
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -148,4 +148,8 @@ Check details here [Advanced post slider 2.3.0](http://www.wpcue.com/advanced-po
|
|
148 |
= 2.4.0 =
|
149 |
* Security fix.
|
150 |
|
|
|
|
|
|
|
|
|
151 |
== Upgrade Notice ==
|
1 |
=== Advanced post slider ===
|
2 |
Contributors: digontoahsan
|
3 |
Donate link:
|
4 |
+
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 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 2.5.0
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
148 |
= 2.4.0 =
|
149 |
* Security fix.
|
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 |
+
|
155 |
== Upgrade Notice ==
|
templates/template-one.php
CHANGED
@@ -3,7 +3,7 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
-
<h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>
|
7 |
<ul>
|
8 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
9 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
@@ -37,8 +37,8 @@ foreach( $res1 as $dset){
|
|
37 |
<div class="postbox closed">
|
38 |
<div class="handlediv down" title="Click to toggle"> <br>
|
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'
|
42 |
</h3>
|
43 |
<div class="inside">
|
44 |
<fieldset>
|
@@ -46,30 +46,30 @@ foreach( $res1 as $dset){
|
|
46 |
<table class="form-table">
|
47 |
<tr>
|
48 |
<th scope="row">Label</th>
|
49 |
-
<td><input type="text" style="width:px;" value="<?php if(get_option('optset'
|
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>
|
51 |
</tr>
|
52 |
<tr>
|
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>
|
55 |
</tr>
|
56 |
</table>
|
57 |
</fieldset>
|
58 |
<fieldset>
|
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;?>">
|
61 |
<table class="form-table">
|
62 |
<tr>
|
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'
|
66 |
-
<option value="query" <?php if(get_option('advpssmethod'
|
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>
|
69 |
</tr>
|
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'
|
73 |
<tr>
|
74 |
<th scope="row">Listing option</th>
|
75 |
<td><select title="Post type" name="advps_post_stypes">
|
@@ -78,13 +78,13 @@ foreach( $res1 as $dset){
|
|
78 |
<?php
|
79 |
foreach ($customPostTypes as $post_type ) {
|
80 |
?>
|
81 |
-
<option value="<?php echo $post_type;?>" <?php if($plist['advps_post_stypes'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
82 |
<?php
|
83 |
}
|
84 |
?>
|
85 |
</select>
|
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" />
|
88 |
</span> <span style="padding-left:10px;">
|
89 |
<select name="advps_plistorder_by" title="Order by">
|
90 |
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
@@ -102,18 +102,18 @@ foreach( $res1 as $dset){
|
|
102 |
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
103 |
</select>
|
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>
|
107 |
</tr>
|
108 |
<tr>
|
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;?>">
|
111 |
<?php
|
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'
|
117 |
);
|
118 |
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
119 |
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
@@ -125,32 +125,32 @@ foreach( $res1 as $dset){
|
|
125 |
</tr>
|
126 |
<tr>
|
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>
|
130 |
</tr>
|
131 |
</table>
|
132 |
<input type="hidden" name="opt_field" value="plist" />
|
133 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
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'
|
137 |
<tr>
|
138 |
<th scope="row">Post Type</th>
|
139 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
140 |
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
141 |
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
142 |
<?php
|
143 |
foreach ($customPostTypes as $post_type ) {
|
144 |
?>
|
145 |
-
<option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
146 |
<?php
|
147 |
}
|
148 |
?>
|
149 |
</select></td>
|
150 |
</tr>
|
151 |
-
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
152 |
<?php
|
153 |
-
$posttypeobj = get_post_type_object($query['advps_post_types']);
|
154 |
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
155 |
?>
|
156 |
<th scope="row">Category</th>
|
@@ -159,7 +159,7 @@ foreach( $res1 as $dset){
|
|
159 |
$catList = get_categories();
|
160 |
foreach($catList as $scat){
|
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>
|
163 |
<?php }?>
|
164 |
</select>
|
165 |
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
@@ -167,15 +167,15 @@ foreach( $res1 as $dset){
|
|
167 |
</tr>
|
168 |
<tr>
|
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>
|
171 |
</tr>
|
172 |
<tr>
|
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>
|
175 |
</tr>
|
176 |
<tr>
|
177 |
<th scope="row">Exclude (optional)</th>
|
178 |
-
<td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />
|
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 |
</tr>
|
181 |
<tr>
|
@@ -200,22 +200,22 @@ foreach( $res1 as $dset){
|
|
200 |
</tr>
|
201 |
<tr>
|
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>
|
205 |
</tr>
|
206 |
</table>
|
207 |
<input type="hidden" name="opt_field" value="query" />
|
208 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
209 |
</form>
|
210 |
</div>
|
211 |
</fieldset>
|
212 |
<fieldset>
|
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">
|
215 |
<table class="form-table">
|
216 |
<tr>
|
217 |
<th scope="row">Slider Type</th>
|
218 |
-
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">
|
219 |
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
220 |
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
221 |
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
@@ -239,7 +239,7 @@ foreach( $res1 as $dset){
|
|
239 |
</tr>
|
240 |
<tr>
|
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>
|
243 |
</tr>
|
244 |
<tr>
|
245 |
<th scope="row">Auto play</th>
|
@@ -250,11 +250,11 @@ foreach( $res1 as $dset){
|
|
250 |
</tr>
|
251 |
<tr>
|
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>
|
254 |
</tr>
|
255 |
<tr>
|
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>
|
258 |
</tr>
|
259 |
<tr>
|
260 |
<th scope="row">Enable pause on hover</th>
|
@@ -265,41 +265,41 @@ foreach( $res1 as $dset){
|
|
265 |
</tr>
|
266 |
<tr>
|
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>
|
270 |
</tr>
|
271 |
</table>
|
272 |
<input type="hidden" name="opt_field" value="slider" />
|
273 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
274 |
</form>
|
275 |
</fieldset>
|
276 |
<fieldset>
|
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;?>">
|
279 |
<table class="form-table">
|
280 |
<tr>
|
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);" />
|
283 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
284 |
</tr>
|
285 |
<tr>
|
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);" />
|
288 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
289 |
</tr>
|
290 |
<tr>
|
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>
|
294 |
</tr>
|
295 |
</table>
|
296 |
<input type="hidden" name="opt_field" value="caro_ticker" />
|
297 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
298 |
</form>
|
299 |
</fieldset>
|
300 |
<fieldset>
|
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;?>">
|
303 |
<table class="form-table">
|
304 |
<tr>
|
305 |
<th scope="row">Select Thumbnail</th>
|
@@ -313,7 +313,7 @@ foreach( $res1 as $dset){
|
|
313 |
unset($_wp_additional_image_sizes['post-thumbnail']);
|
314 |
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
315 |
?>
|
316 |
-
<option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
317 |
<?php
|
318 |
}
|
319 |
?>
|
@@ -321,12 +321,12 @@ foreach( $res1 as $dset){
|
|
321 |
</tr>
|
322 |
<tr>
|
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;" />
|
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 |
</tr>
|
327 |
<tr>
|
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);" />
|
330 |
px</td>
|
331 |
</tr>
|
332 |
<tr>
|
@@ -338,13 +338,13 @@ foreach( $res1 as $dset){
|
|
338 |
</tr>
|
339 |
<tr>
|
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;" />
|
342 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
343 |
</tr>
|
344 |
<tr>
|
345 |
<th scope="row">Border</th>
|
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);" />
|
348 |
px
|
349 |
<select name="advps_border_type">
|
350 |
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
@@ -355,7 +355,7 @@ foreach( $res1 as $dset){
|
|
355 |
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
356 |
</select>
|
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;" />
|
359 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
360 |
</tr>
|
361 |
<tr>
|
@@ -368,13 +368,13 @@ foreach( $res1 as $dset){
|
|
368 |
<tr>
|
369 |
<th scope="row">Box Shadow</th>
|
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);" />
|
372 |
px
|
373 |
-
<input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
374 |
px
|
375 |
-
<input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
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?>" />
|
378 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
379 |
</tr>
|
380 |
<tr>
|
@@ -386,34 +386,34 @@ foreach( $res1 as $dset){
|
|
386 |
</tr>
|
387 |
<tr>
|
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>
|
391 |
</tr>
|
392 |
</table>
|
393 |
<input type="hidden" name="opt_field" value="container" />
|
394 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
395 |
</form>
|
396 |
</fieldset>
|
397 |
<fieldset>
|
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;?>">
|
400 |
<table class="form-table">
|
401 |
<tr>
|
402 |
<th scope="row">Overlay size</th>
|
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);" />
|
405 |
% Height
|
406 |
-
<input type="text" name="advps_overlay_height" value="<?php echo $content['advps_overlay_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
407 |
%</td>
|
408 |
</tr>
|
409 |
<tr>
|
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?>" />
|
412 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
413 |
</tr>
|
414 |
<tr>
|
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;" />
|
417 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
418 |
</tr>
|
419 |
<tr>
|
@@ -434,7 +434,7 @@ foreach( $res1 as $dset){
|
|
434 |
</tr>
|
435 |
<tr>
|
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;" />
|
438 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
439 |
</tr>
|
440 |
<tr>
|
@@ -456,82 +456,82 @@ foreach( $res1 as $dset){
|
|
456 |
</tr>
|
457 |
<tr>
|
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?>" />
|
460 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
461 |
</tr>
|
462 |
<tr>
|
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?>" />
|
465 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
466 |
</tr>
|
467 |
<tr>
|
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" />
|
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 |
</tr>
|
482 |
<tr>
|
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" />
|
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 |
</tr>
|
497 |
<tr>
|
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?>" />
|
500 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
501 |
</tr>
|
502 |
<tr>
|
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" />
|
515 |
px </td>
|
516 |
</tr>
|
517 |
<tr>
|
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" />
|
530 |
px </td>
|
531 |
</tr>
|
532 |
<tr>
|
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);" />
|
535 |
words</td>
|
536 |
</tr>
|
537 |
<tr>
|
@@ -591,17 +591,17 @@ foreach( $res1 as $dset){
|
|
591 |
</tr>
|
592 |
<tr>
|
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>
|
596 |
</tr>
|
597 |
</table>
|
598 |
<input type="hidden" name="opt_field" value="content" />
|
599 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
600 |
</form>
|
601 |
</fieldset>
|
602 |
<fieldset>
|
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;?>">
|
605 |
<table class="form-table">
|
606 |
<tr>
|
607 |
<th scope="row">Exclude pager</th>
|
@@ -616,12 +616,12 @@ foreach( $res1 as $dset){
|
|
616 |
<input type="radio" name="advps_pager_type" value="number" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
617 |
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
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>
|
621 |
</tr>
|
622 |
<tr>
|
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);" />
|
625 |
% <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
626 |
</tr>
|
627 |
<tr>
|
@@ -634,7 +634,7 @@ foreach( $res1 as $dset){
|
|
634 |
</tr>
|
635 |
<tr>
|
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);" />
|
638 |
px</td>
|
639 |
</tr>
|
640 |
<tr>
|
@@ -655,7 +655,7 @@ foreach( $res1 as $dset){
|
|
655 |
</tr>
|
656 |
<tr>
|
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);" />
|
659 |
px</td>
|
660 |
</tr>
|
661 |
<tr>
|
@@ -667,22 +667,22 @@ foreach( $res1 as $dset){
|
|
667 |
</tr>
|
668 |
<tr>
|
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>
|
672 |
</tr>
|
673 |
</table>
|
674 |
<input type="hidden" name="opt_field" value="navigation" />
|
675 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
676 |
</form>
|
677 |
</fieldset>
|
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" />
|
682 |
<p>
|
683 |
-
<input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
|
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%;" />
|
686 |
</span> </p>
|
687 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
688 |
</form>
|
@@ -696,7 +696,7 @@ foreach( $res1 as $dset){
|
|
696 |
<div style="position:relative; float:left; width:72%">
|
697 |
<form method="post">
|
698 |
<input type="hidden" name="template" value="one" />
|
699 |
-
<input type="hidden" name="nextoptid" id="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
|
700 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
701 |
<input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
|
702 |
</form>
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
+
<h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2>
|
7 |
<ul>
|
8 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
9 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
37 |
<div class="postbox closed">
|
38 |
<div class="handlediv down" title="Click to toggle"> <br>
|
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'] == 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 |
</h3>
|
43 |
<div class="inside">
|
44 |
<fieldset>
|
46 |
<table class="form-table">
|
47 |
<tr>
|
48 |
<th scope="row">Label</th>
|
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 |
</tr>
|
52 |
<tr>
|
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 intval ( $dset->id );?>"]' readonly="readonly" /></td>
|
55 |
</tr>
|
56 |
</table>
|
57 |
</fieldset>
|
58 |
<fieldset>
|
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 intval ( $dset->id );?>">
|
61 |
<table class="form-table">
|
62 |
<tr>
|
63 |
<th scope="row">Select post using</th>
|
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 |
</select>
|
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 |
</tr>
|
70 |
</table>
|
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 |
<tr>
|
74 |
<th scope="row">Listing option</th>
|
75 |
<td><select title="Post type" name="advps_post_stypes">
|
78 |
<?php
|
79 |
foreach ($customPostTypes as $post_type ) {
|
80 |
?>
|
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 |
<?php
|
83 |
}
|
84 |
?>
|
85 |
</select>
|
86 |
<span style="padding-left:10px;">
|
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 |
</span> <span style="padding-left:10px;">
|
89 |
<select name="advps_plistorder_by" title="Order by">
|
90 |
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
102 |
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
103 |
</select>
|
104 |
</span> <span style="padding-left:10px;">
|
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 |
</tr>
|
108 |
<tr>
|
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 intval( $dset->id );?>">
|
111 |
<?php
|
112 |
$lpargs = array(
|
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 |
);
|
118 |
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
119 |
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
125 |
</tr>
|
126 |
<tr>
|
127 |
<th scope="row"> </th>
|
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 |
</tr>
|
131 |
</table>
|
132 |
<input type="hidden" name="opt_field" value="plist" />
|
133 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
134 |
</form>
|
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 |
<tr>
|
138 |
<th scope="row">Post Type</th>
|
139 |
+
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo intval( $dset->id );?>)">
|
140 |
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
141 |
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
142 |
<?php
|
143 |
foreach ($customPostTypes as $post_type ) {
|
144 |
?>
|
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 |
<?php
|
147 |
}
|
148 |
?>
|
149 |
</select></td>
|
150 |
</tr>
|
151 |
+
<tr id="advps-cat-field<?php echo intval( $dset->id );?>">
|
152 |
<?php
|
153 |
+
$posttypeobj = get_post_type_object( esc_html( $query['advps_post_types']) );
|
154 |
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
155 |
?>
|
156 |
<th scope="row">Category</th>
|
159 |
$catList = get_categories();
|
160 |
foreach($catList as $scat){
|
161 |
?>
|
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 |
<?php }?>
|
164 |
</select>
|
165 |
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
167 |
</tr>
|
168 |
<tr>
|
169 |
<th scope="row">Max. Number of post</th>
|
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 |
</tr>
|
172 |
<tr>
|
173 |
<th scope="row">Offset (optional)</th>
|
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 |
</tr>
|
176 |
<tr>
|
177 |
<th scope="row">Exclude (optional)</th>
|
178 |
+
<td><input type="text" name="advps_exclude" value="<?php echo esc_attr( $query['advps_exclude'] );?>" style="width:100px;" />
|
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 |
</tr>
|
181 |
<tr>
|
200 |
</tr>
|
201 |
<tr>
|
202 |
<th scope="row"> </th>
|
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 |
</tr>
|
206 |
</table>
|
207 |
<input type="hidden" name="opt_field" value="query" />
|
208 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
209 |
</form>
|
210 |
</div>
|
211 |
</fieldset>
|
212 |
<fieldset>
|
213 |
<legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend>
|
214 |
+
<form method="post" id="slider<?php echo intval( $dset->id );?>" onsubmit="return false">
|
215 |
<table class="form-table">
|
216 |
<tr>
|
217 |
<th scope="row">Slider Type</th>
|
218 |
+
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo intval( $dset->id );?>);">
|
219 |
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
220 |
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
221 |
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
239 |
</tr>
|
240 |
<tr>
|
241 |
<th scope="row">Speed</th>
|
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 |
</tr>
|
244 |
<tr>
|
245 |
<th scope="row">Auto play</th>
|
250 |
</tr>
|
251 |
<tr>
|
252 |
<th scope="row">Pause</th>
|
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 |
</tr>
|
255 |
<tr>
|
256 |
<th scope="row">Slide margin</th>
|
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 |
</tr>
|
259 |
<tr>
|
260 |
<th scope="row">Enable pause on hover</th>
|
265 |
</tr>
|
266 |
<tr>
|
267 |
<th scope="row"> </th>
|
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 |
</tr>
|
271 |
</table>
|
272 |
<input type="hidden" name="opt_field" value="slider" />
|
273 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
274 |
</form>
|
275 |
</fieldset>
|
276 |
<fieldset>
|
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 intval( $dset->id );?>">
|
279 |
<table class="form-table">
|
280 |
<tr>
|
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 esc_attr( $caro_ticker['advps_caro_slds'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
283 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
284 |
</tr>
|
285 |
<tr>
|
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 esc_attr( $caro_ticker['advps_caro_sldwidth'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
288 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
289 |
</tr>
|
290 |
<tr>
|
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 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 |
</tr>
|
295 |
</table>
|
296 |
<input type="hidden" name="opt_field" value="caro_ticker" />
|
297 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
298 |
</form>
|
299 |
</fieldset>
|
300 |
<fieldset>
|
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 intval( $dset->id );?>">
|
303 |
<table class="form-table">
|
304 |
<tr>
|
305 |
<th scope="row">Select Thumbnail</th>
|
313 |
unset($_wp_additional_image_sizes['post-thumbnail']);
|
314 |
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
315 |
?>
|
316 |
+
<option value="<?php echo esc_attr( $tkey );?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo esc_html( $tkey );?></option>
|
317 |
<?php
|
318 |
}
|
319 |
?>
|
321 |
</tr>
|
322 |
<tr>
|
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 esc_url( $container['advps_default_image'] );}?>" style="width:250px;" />
|
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 |
</tr>
|
327 |
<tr>
|
328 |
<th scope="row">Slide Container Width</th>
|
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 |
px</td>
|
331 |
</tr>
|
332 |
<tr>
|
338 |
</tr>
|
339 |
<tr>
|
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 esc_attr( $container['advps_bgcolor'] );?>" style="width:100px;" />
|
342 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
343 |
</tr>
|
344 |
<tr>
|
345 |
<th scope="row">Border</th>
|
346 |
<td><span style="vertical-align:top">
|
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 |
px
|
349 |
<select name="advps_border_type">
|
350 |
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
355 |
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
356 |
</select>
|
357 |
</span>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
360 |
</tr>
|
361 |
<tr>
|
368 |
<tr>
|
369 |
<th scope="row">Box Shadow</th>
|
370 |
<td><span style="vertical-align:top">
|
371 |
+
<input type="text" name="advps_bxshad1" value="<?php echo esc_attr( $container['advps_bxshad1'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
372 |
px
|
373 |
+
<input type="text" name="advps_bxshad2" value="<?php echo esc_attr( $container['advps_bxshad2'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
374 |
px
|
375 |
+
<input type="text" name="advps_bxshad3" value="<?php echo esc_attr( $container['advps_bxshad3'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
376 |
px </span>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
379 |
</tr>
|
380 |
<tr>
|
386 |
</tr>
|
387 |
<tr>
|
388 |
<th scope="row"> </th>
|
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 |
</tr>
|
392 |
</table>
|
393 |
<input type="hidden" name="opt_field" value="container" />
|
394 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
395 |
</form>
|
396 |
</fieldset>
|
397 |
<fieldset>
|
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 intval( $dset->id );?>">
|
400 |
<table class="form-table">
|
401 |
<tr>
|
402 |
<th scope="row">Overlay size</th>
|
403 |
<td>Width
|
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 |
% Height
|
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 |
%</td>
|
408 |
</tr>
|
409 |
<tr>
|
410 |
<th scope="row">Overlay color</th>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
413 |
</tr>
|
414 |
<tr>
|
415 |
<th scope="row">Overlay opacity</th>
|
416 |
+
<td><input type="text" name="advps_overlay_opacity" value="<?php echo esc_attr( $content['advps_overlay_opacity'] );?>" style="width:50px;" />
|
417 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
418 |
</tr>
|
419 |
<tr>
|
434 |
</tr>
|
435 |
<tr>
|
436 |
<th scope="row">Text opacity</th>
|
437 |
+
<td><input type="text" name="advps_text_opacity" value="<?php echo esc_attr( $content['advps_text_opacity'] );?>" style="width:50px;" />
|
438 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
439 |
</tr>
|
440 |
<tr>
|
456 |
</tr>
|
457 |
<tr>
|
458 |
<th scope="row">Title font Color</th>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
461 |
</tr>
|
462 |
<tr>
|
463 |
<th scope="row">Title hover Color</th>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
466 |
</tr>
|
467 |
<tr>
|
468 |
<th scope="row">Title font size</th>
|
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 |
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 |
</tr>
|
482 |
<tr>
|
483 |
<th scope="row">Title line height</th>
|
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 |
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 |
</tr>
|
497 |
<tr>
|
498 |
<th scope="row">Excerpt font color</th>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
501 |
</tr>
|
502 |
<tr>
|
503 |
<th scope="row">Excerpt font size</th>
|
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 |
px </td>
|
516 |
</tr>
|
517 |
<tr>
|
518 |
<th scope="row">Excerpt line height</th>
|
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 |
px </td>
|
531 |
</tr>
|
532 |
<tr>
|
533 |
<th scope="row">Excerpt length</th>
|
534 |
+
<td><input type="text" name="advps_excerptlen" value="<?php echo esc_attr( $content['advps_excerptlen'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
535 |
words</td>
|
536 |
</tr>
|
537 |
<tr>
|
591 |
</tr>
|
592 |
<tr>
|
593 |
<th scope="row"> </th>
|
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 |
</tr>
|
597 |
</table>
|
598 |
<input type="hidden" name="opt_field" value="content" />
|
599 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
600 |
</form>
|
601 |
</fieldset>
|
602 |
<fieldset>
|
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 intval( $dset->id );?>">
|
605 |
<table class="form-table">
|
606 |
<tr>
|
607 |
<th scope="row">Exclude pager</th>
|
616 |
<input type="radio" name="advps_pager_type" value="number" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
617 |
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
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 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 |
</tr>
|
622 |
<tr>
|
623 |
<th scope="row">Thumbnail Width</th>
|
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 |
% <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
626 |
</tr>
|
627 |
<tr>
|
634 |
</tr>
|
635 |
<tr>
|
636 |
<th scope="row">Pager position from bottom</th>
|
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 |
px</td>
|
639 |
</tr>
|
640 |
<tr>
|
655 |
</tr>
|
656 |
<tr>
|
657 |
<th scope="row">Play/Pause position from bottom</th>
|
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 |
px</td>
|
660 |
</tr>
|
661 |
<tr>
|
667 |
</tr>
|
668 |
<tr>
|
669 |
<th scope="row"> </th>
|
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 |
</tr>
|
673 |
</table>
|
674 |
<input type="hidden" name="opt_field" value="navigation" />
|
675 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
676 |
</form>
|
677 |
</fieldset>
|
678 |
<!-- </form>-->
|
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 |
<p>
|
683 |
+
<input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" />
|
684 |
<span style="margin-left:5px;">
|
685 |
+
<input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" />
|
686 |
</span> </p>
|
687 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
688 |
</form>
|
696 |
<div style="position:relative; float:left; width:72%">
|
697 |
<form method="post">
|
698 |
<input type="hidden" name="template" value="one" />
|
699 |
+
<input type="hidden" name="nextoptid" id="nextoptid" value="<?php echo intval( $tcount[0]->Auto_increment );?>" />
|
700 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
701 |
<input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
|
702 |
</form>
|
templates/template-three.php
CHANGED
@@ -3,7 +3,7 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
-
<h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>
|
7 |
<ul>
|
8 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
9 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
@@ -41,8 +41,8 @@ foreach( $res3 as $dset){
|
|
41 |
<div class="postbox closed">
|
42 |
<div class="handlediv down" title="Click to toggle"> <br>
|
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'
|
46 |
</h3>
|
47 |
<div class="inside">
|
48 |
<fieldset>
|
@@ -50,30 +50,30 @@ foreach( $res3 as $dset){
|
|
50 |
<table class="form-table">
|
51 |
<tr>
|
52 |
<th scope="row">Label</th>
|
53 |
-
<td><input type="text" style="width:px;" value="<?php if(get_option('optset'
|
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>
|
55 |
</tr>
|
56 |
<tr>
|
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>
|
59 |
</tr>
|
60 |
</table>
|
61 |
</fieldset>
|
62 |
<fieldset>
|
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;?>">
|
65 |
<table class="form-table">
|
66 |
<tr>
|
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'
|
70 |
-
<option value="query" <?php if(get_option('advpssmethod'
|
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>
|
73 |
</tr>
|
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'
|
77 |
<tr>
|
78 |
<th scope="row">Listing option</th>
|
79 |
<td><select title="Post type" name="advps_post_stypes">
|
@@ -88,7 +88,7 @@ foreach( $res3 as $dset){
|
|
88 |
?>
|
89 |
</select>
|
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" />
|
92 |
</span> <span style="padding-left:10px;">
|
93 |
<select name="advps_plistorder_by" title="Order by">
|
94 |
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
@@ -106,18 +106,18 @@ foreach( $res3 as $dset){
|
|
106 |
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
107 |
</select>
|
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>
|
111 |
</tr>
|
112 |
<tr>
|
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;?>">
|
115 |
<?php
|
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'
|
121 |
);
|
122 |
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
123 |
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
@@ -129,32 +129,32 @@ foreach( $res3 as $dset){
|
|
129 |
</tr>
|
130 |
<tr>
|
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>
|
134 |
</tr>
|
135 |
</table>
|
136 |
<input type="hidden" name="opt_field" value="plist" />
|
137 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
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'
|
141 |
<tr>
|
142 |
<th scope="row">Post Type</th>
|
143 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
144 |
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
145 |
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
146 |
<?php
|
147 |
foreach ($customPostTypes as $post_type ) {
|
148 |
?>
|
149 |
-
<option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
150 |
<?php
|
151 |
}
|
152 |
?>
|
153 |
</select></td>
|
154 |
</tr>
|
155 |
-
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
156 |
<?php
|
157 |
-
$posttypeobj = get_post_type_object($query['advps_post_types']);
|
158 |
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
159 |
?>
|
160 |
<th scope="row">Category</th>
|
@@ -163,7 +163,7 @@ foreach( $res3 as $dset){
|
|
163 |
$catList = get_categories();
|
164 |
foreach($catList as $scat){
|
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>
|
167 |
<?php }?>
|
168 |
</select>
|
169 |
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple category ]</span></td>
|
@@ -171,15 +171,15 @@ foreach( $res3 as $dset){
|
|
171 |
</tr>
|
172 |
<tr>
|
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>
|
175 |
</tr>
|
176 |
<tr>
|
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>
|
179 |
</tr>
|
180 |
<tr>
|
181 |
<th scope="row">Exclude (optional)</th>
|
182 |
-
<td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />
|
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 |
</tr>
|
185 |
<tr>
|
@@ -204,22 +204,22 @@ foreach( $res3 as $dset){
|
|
204 |
</tr>
|
205 |
<tr>
|
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>
|
209 |
</tr>
|
210 |
</table>
|
211 |
<input type="hidden" name="opt_field" value="query" />
|
212 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
213 |
</form>
|
214 |
</div>
|
215 |
</fieldset>
|
216 |
<fieldset>
|
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">
|
219 |
<table class="form-table">
|
220 |
<tr>
|
221 |
<th scope="row">Slider Type</th>
|
222 |
-
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">
|
223 |
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
224 |
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
225 |
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
@@ -243,7 +243,7 @@ foreach( $res3 as $dset){
|
|
243 |
</tr>
|
244 |
<tr>
|
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>
|
247 |
</tr>
|
248 |
<tr>
|
249 |
<th scope="row">Auto play</th>
|
@@ -254,11 +254,11 @@ foreach( $res3 as $dset){
|
|
254 |
</tr>
|
255 |
<tr>
|
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>
|
258 |
</tr>
|
259 |
<tr>
|
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>
|
262 |
</tr>
|
263 |
<tr>
|
264 |
<th scope="row">Enable pause on hover</th>
|
@@ -269,41 +269,41 @@ foreach( $res3 as $dset){
|
|
269 |
</tr>
|
270 |
<tr>
|
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>
|
274 |
</tr>
|
275 |
</table>
|
276 |
<input type="hidden" name="opt_field" value="slider" />
|
277 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
278 |
</form>
|
279 |
</fieldset>
|
280 |
<fieldset>
|
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;?>">
|
283 |
<table class="form-table">
|
284 |
<tr>
|
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);" />
|
287 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
288 |
</tr>
|
289 |
<tr>
|
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);" />
|
292 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
293 |
</tr>
|
294 |
<tr>
|
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>
|
298 |
</tr>
|
299 |
</table>
|
300 |
<input type="hidden" name="opt_field" value="caro_ticker" />
|
301 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
302 |
</form>
|
303 |
</fieldset>
|
304 |
<fieldset>
|
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;?>">
|
307 |
<table class="form-table">
|
308 |
<tr>
|
309 |
<th scope="row">Select Thumbnail</th>
|
@@ -317,7 +317,7 @@ foreach( $res3 as $dset){
|
|
317 |
unset($_wp_additional_image_sizes['post-thumbnail']);
|
318 |
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
319 |
?>
|
320 |
-
<option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
321 |
<?php
|
322 |
}
|
323 |
?>
|
@@ -330,7 +330,7 @@ foreach( $res3 as $dset){
|
|
330 |
</tr>
|
331 |
<tr>
|
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);" />
|
334 |
px </td>
|
335 |
</tr>
|
336 |
<tr>
|
@@ -342,7 +342,7 @@ foreach( $res3 as $dset){
|
|
342 |
</tr>
|
343 |
<tr>
|
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;" />
|
346 |
<select name="advps_padu1" style="vertical-align:top; width:46px; height:25px;">
|
347 |
<option value="vw" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
348 |
<option value="vh" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
@@ -351,7 +351,7 @@ foreach( $res3 as $dset){
|
|
351 |
<option value="px" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
352 |
<option value="pt" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
353 |
</select>
|
354 |
-
<input type="text" name="advps_contpad2" value="<?php echo $container['advps_contpad2'];?>" style="width:40px; height:25px;" />
|
355 |
<select name="advps_padu2" style="vertical-align:top;width:46px; height:25px;">
|
356 |
<option value="vw" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
357 |
<option value="vh" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
@@ -360,7 +360,7 @@ foreach( $res3 as $dset){
|
|
360 |
<option value="px" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
361 |
<option value="pt" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
362 |
</select>
|
363 |
-
<input type="text" name="advps_contpad3" value="<?php echo $container['advps_contpad3'];?>" style="width:40px; height:25px;" />
|
364 |
<select name="advps_padu3" style="vertical-align:top;width:46px; height:25px;">
|
365 |
<option value="vw" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
366 |
<option value="vh" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
@@ -369,7 +369,7 @@ foreach( $res3 as $dset){
|
|
369 |
<option value="px" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
370 |
<option value="pt" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
371 |
</select>
|
372 |
-
<input type="text" name="advps_contpad4" value="<?php echo $container['advps_contpad4'];?>" style="width:40px; height:25px;" />
|
373 |
<select name="advps_padu4" style="vertical-align:top;width:46px; height:25px;">
|
374 |
<option value="vw" <?php if(isset($container['advps_padu4']) && $container['advps_padu4'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
375 |
<option value="vh" <?php if(isset($container['advps_padu4']) && $container['advps_padu4'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
@@ -381,13 +381,13 @@ foreach( $res3 as $dset){
|
|
381 |
</tr>
|
382 |
<tr>
|
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;" />
|
385 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
386 |
</tr>
|
387 |
<tr>
|
388 |
<th scope="row">Border</th>
|
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);" />
|
391 |
px
|
392 |
<select name="advps_border_type">
|
393 |
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
@@ -398,7 +398,7 @@ foreach( $res3 as $dset){
|
|
398 |
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
399 |
</select>
|
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;" />
|
402 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
403 |
</tr>
|
404 |
<tr>
|
@@ -411,13 +411,13 @@ foreach( $res3 as $dset){
|
|
411 |
<tr>
|
412 |
<th scope="row">Box Shadow</th>
|
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);" />
|
415 |
px
|
416 |
-
<input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
417 |
px
|
418 |
-
<input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
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?>" />
|
421 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
422 |
</tr>
|
423 |
<tr>
|
@@ -429,17 +429,17 @@ foreach( $res3 as $dset){
|
|
429 |
</tr>
|
430 |
<tr>
|
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>
|
434 |
</tr>
|
435 |
</table>
|
436 |
<input type="hidden" name="opt_field" value="container" />
|
437 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
438 |
</form>
|
439 |
</fieldset>
|
440 |
<fieldset>
|
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;?>">
|
443 |
<table class="form-table">
|
444 |
<tr>
|
445 |
<th scope="row">Show on slide</th>
|
@@ -453,7 +453,7 @@ foreach( $res3 as $dset){
|
|
453 |
</tr>
|
454 |
<tr>
|
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);" />
|
457 |
px</td>
|
458 |
</tr>
|
459 |
<tr>
|
@@ -467,82 +467,82 @@ foreach( $res3 as $dset){
|
|
467 |
</tr>
|
468 |
<tr>
|
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" />
|
471 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
472 |
</tr>
|
473 |
<tr>
|
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" />
|
476 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
477 |
</tr>
|
478 |
<tr>
|
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" />
|
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 |
</tr>
|
493 |
<tr>
|
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" />
|
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 |
</tr>
|
508 |
<tr>
|
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;" />
|
511 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
512 |
</tr>
|
513 |
<tr>
|
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" />
|
526 |
px </td>
|
527 |
</tr>
|
528 |
<tr>
|
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" />
|
541 |
px </td>
|
542 |
</tr>
|
543 |
<tr>
|
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);" />
|
546 |
words</td>
|
547 |
</tr>
|
548 |
<tr>
|
@@ -595,17 +595,17 @@ foreach( $res3 as $dset){
|
|
595 |
</tr>
|
596 |
<tr>
|
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>
|
600 |
</tr>
|
601 |
</table>
|
602 |
<input type="hidden" name="opt_field" value="content" />
|
603 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
604 |
</form>
|
605 |
</fieldset>
|
606 |
<fieldset>
|
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;?>">
|
609 |
<table class="form-table">
|
610 |
<tr>
|
611 |
<th scope="row">Exclude pager</th>
|
@@ -620,12 +620,12 @@ foreach( $res3 as $dset){
|
|
620 |
<input type="radio" name="advps_pager_type" value="number" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
621 |
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
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>
|
625 |
</tr>
|
626 |
<tr>
|
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);" />
|
629 |
% <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
630 |
</tr>
|
631 |
<tr>
|
@@ -638,7 +638,7 @@ foreach( $res3 as $dset){
|
|
638 |
</tr>
|
639 |
<tr>
|
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);" />
|
642 |
px</td>
|
643 |
</tr>
|
644 |
<tr>
|
@@ -671,21 +671,21 @@ foreach( $res3 as $dset){
|
|
671 |
</tr>
|
672 |
<tr>
|
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>
|
676 |
</tr>
|
677 |
</table>
|
678 |
<input type="hidden" name="opt_field" value="navigation" />
|
679 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
680 |
</form>
|
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" />
|
685 |
<p>
|
686 |
-
<input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
|
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%;" />
|
689 |
</span> </p>
|
690 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
691 |
</form>
|
@@ -699,7 +699,7 @@ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."a
|
|
699 |
?>
|
700 |
<div style="position:relative; float:left; width:72%">
|
701 |
<form method="post">
|
702 |
-
<input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
|
703 |
<input type="hidden" name="template" value="three" />
|
704 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
705 |
<input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
+
<h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2>
|
7 |
<ul>
|
8 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
9 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
41 |
<div class="postbox closed">
|
42 |
<div class="handlediv down" title="Click to toggle"> <br>
|
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'] == 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 |
</h3>
|
47 |
<div class="inside">
|
48 |
<fieldset>
|
50 |
<table class="form-table">
|
51 |
<tr>
|
52 |
<th scope="row">Label</th>
|
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 |
</tr>
|
56 |
<tr>
|
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 intval( $dset->id );?>"]' readonly="readonly" /></td>
|
59 |
</tr>
|
60 |
</table>
|
61 |
</fieldset>
|
62 |
<fieldset>
|
63 |
<legend class="advps-legend" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend>
|
64 |
+
<div id="advps-sel<?php echo intval( $dset->id );?>">
|
65 |
<table class="form-table">
|
66 |
<tr>
|
67 |
<th scope="row">Select post using</th>
|
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 |
</tr>
|
74 |
</table>
|
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 |
<tr>
|
78 |
<th scope="row">Listing option</th>
|
79 |
<td><select title="Post type" name="advps_post_stypes">
|
88 |
?>
|
89 |
</select>
|
90 |
<span style="padding-left:10px;">
|
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 |
</span> <span style="padding-left:10px;">
|
93 |
<select name="advps_plistorder_by" title="Order by">
|
94 |
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
106 |
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
107 |
</select>
|
108 |
</span> <span style="padding-left:10px;">
|
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 |
</tr>
|
112 |
<tr>
|
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 intval( $dset->id );?>">
|
115 |
<?php
|
116 |
$lpargs = array(
|
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 |
);
|
122 |
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
123 |
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
129 |
</tr>
|
130 |
<tr>
|
131 |
<th scope="row"> </th>
|
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 |
</tr>
|
135 |
</table>
|
136 |
<input type="hidden" name="opt_field" value="plist" />
|
137 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
138 |
</form>
|
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 |
<tr>
|
142 |
<th scope="row">Post Type</th>
|
143 |
+
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo intval( $dset->id );?>)">
|
144 |
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
145 |
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
146 |
<?php
|
147 |
foreach ($customPostTypes as $post_type ) {
|
148 |
?>
|
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 |
<?php
|
151 |
}
|
152 |
?>
|
153 |
</select></td>
|
154 |
</tr>
|
155 |
+
<tr id="advps-cat-field<?php echo intval( $dset->id );?>">
|
156 |
<?php
|
157 |
+
$posttypeobj = get_post_type_object( esc_html( $query['advps_post_types']) );
|
158 |
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
159 |
?>
|
160 |
<th scope="row">Category</th>
|
163 |
$catList = get_categories();
|
164 |
foreach($catList as $scat){
|
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 esc_html( $scat->name );?></option>
|
167 |
<?php }?>
|
168 |
</select>
|
169 |
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple category ]</span></td>
|
171 |
</tr>
|
172 |
<tr>
|
173 |
<th scope="row">Max. Number of post</th>
|
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 |
</tr>
|
176 |
<tr>
|
177 |
<th scope="row">Offset (optional)</th>
|
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 |
</tr>
|
180 |
<tr>
|
181 |
<th scope="row">Exclude (optional)</th>
|
182 |
+
<td><input type="text" name="advps_exclude" value="<?php echo esc_attr( $query['advps_exclude'] );?>" style="width:100px;" />
|
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 |
</tr>
|
185 |
<tr>
|
204 |
</tr>
|
205 |
<tr>
|
206 |
<th scope="row"> </th>
|
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 |
</tr>
|
210 |
</table>
|
211 |
<input type="hidden" name="opt_field" value="query" />
|
212 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
213 |
</form>
|
214 |
</div>
|
215 |
</fieldset>
|
216 |
<fieldset>
|
217 |
<legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend>
|
218 |
+
<form method="post" id="slider<?php echo intval( $dset->id );?>" onsubmit="return false">
|
219 |
<table class="form-table">
|
220 |
<tr>
|
221 |
<th scope="row">Slider Type</th>
|
222 |
+
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo intval( $dset->id );?>);">
|
223 |
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
224 |
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
225 |
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
243 |
</tr>
|
244 |
<tr>
|
245 |
<th scope="row">Speed</th>
|
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 |
</tr>
|
248 |
<tr>
|
249 |
<th scope="row">Auto play</th>
|
254 |
</tr>
|
255 |
<tr>
|
256 |
<th scope="row">Pause</th>
|
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 |
</tr>
|
259 |
<tr>
|
260 |
<th scope="row">Slide margin</th>
|
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 |
</tr>
|
263 |
<tr>
|
264 |
<th scope="row">Enable pause on hover</th>
|
269 |
</tr>
|
270 |
<tr>
|
271 |
<th scope="row"> </th>
|
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 |
</tr>
|
275 |
</table>
|
276 |
<input type="hidden" name="opt_field" value="slider" />
|
277 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
278 |
</form>
|
279 |
</fieldset>
|
280 |
<fieldset>
|
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 intval( $dset->id );?>">
|
283 |
<table class="form-table">
|
284 |
<tr>
|
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 esc_attr( $caro_ticker['advps_caro_slds'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
287 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
288 |
</tr>
|
289 |
<tr>
|
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 esc_attr( $caro_ticker['advps_caro_sldwidth'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
292 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
293 |
</tr>
|
294 |
<tr>
|
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 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 |
</tr>
|
299 |
</table>
|
300 |
<input type="hidden" name="opt_field" value="caro_ticker" />
|
301 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
302 |
</form>
|
303 |
</fieldset>
|
304 |
<fieldset>
|
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 intval( $dset->id );?>">
|
307 |
<table class="form-table">
|
308 |
<tr>
|
309 |
<th scope="row">Select Thumbnail</th>
|
317 |
unset($_wp_additional_image_sizes['post-thumbnail']);
|
318 |
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
319 |
?>
|
320 |
+
<option value="<?php echo esc_attr( $tkey );?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo esc_html( $tkey );?></option>
|
321 |
<?php
|
322 |
}
|
323 |
?>
|
330 |
</tr>
|
331 |
<tr>
|
332 |
<th scope="row">Slide Container Width</th>
|
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 |
px </td>
|
335 |
</tr>
|
336 |
<tr>
|
342 |
</tr>
|
343 |
<tr>
|
344 |
<th scope="row">Padding</th>
|
345 |
+
<td><input type="text" name="advps_contpad1" value="<?php echo esc_attr( $container['advps_contpad1'] );?>" style="width:40px; height:25px;" />
|
346 |
<select name="advps_padu1" style="vertical-align:top; width:46px; height:25px;">
|
347 |
<option value="vw" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
348 |
<option value="vh" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
351 |
<option value="px" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
352 |
<option value="pt" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
353 |
</select>
|
354 |
+
<input type="text" name="advps_contpad2" value="<?php echo esc_attr( $container['advps_contpad2'] );?>" style="width:40px; height:25px;" />
|
355 |
<select name="advps_padu2" style="vertical-align:top;width:46px; height:25px;">
|
356 |
<option value="vw" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
357 |
<option value="vh" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
360 |
<option value="px" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
361 |
<option value="pt" <?php if(isset($container['advps_padu2']) && $container['advps_padu2'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
362 |
</select>
|
363 |
+
<input type="text" name="advps_contpad3" value="<?php echo esc_attr( $container['advps_contpad3'] );?>" style="width:40px; height:25px;" />
|
364 |
<select name="advps_padu3" style="vertical-align:top;width:46px; height:25px;">
|
365 |
<option value="vw" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
366 |
<option value="vh" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
369 |
<option value="px" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
370 |
<option value="pt" <?php if(isset($container['advps_padu3']) && $container['advps_padu3'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
371 |
</select>
|
372 |
+
<input type="text" name="advps_contpad4" value="<?php echo esc_attr( $container['advps_contpad4'] );?>" style="width:40px; height:25px;" />
|
373 |
<select name="advps_padu4" style="vertical-align:top;width:46px; height:25px;">
|
374 |
<option value="vw" <?php if(isset($container['advps_padu4']) && $container['advps_padu4'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
375 |
<option value="vh" <?php if(isset($container['advps_padu4']) && $container['advps_padu4'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
381 |
</tr>
|
382 |
<tr>
|
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 esc_attr( $container['advps_bgcolor'] );?>" style="width:100px;" />
|
385 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
386 |
</tr>
|
387 |
<tr>
|
388 |
<th scope="row">Border</th>
|
389 |
<td><span style="vertical-align:top">
|
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 |
px
|
392 |
<select name="advps_border_type">
|
393 |
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
398 |
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
399 |
</select>
|
400 |
</span>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
403 |
</tr>
|
404 |
<tr>
|
411 |
<tr>
|
412 |
<th scope="row">Box Shadow</th>
|
413 |
<td><span style="vertical-align:top">
|
414 |
+
<input type="text" name="advps_bxshad1" value="<?php echo esc_attr( $container['advps_bxshad1'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
415 |
px
|
416 |
+
<input type="text" name="advps_bxshad2" value="<?php echo esc_attr( $container['advps_bxshad2'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
417 |
px
|
418 |
+
<input type="text" name="advps_bxshad3" value="<?php echo esc_attr( $container['advps_bxshad3'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
419 |
px </span>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
422 |
</tr>
|
423 |
<tr>
|
429 |
</tr>
|
430 |
<tr>
|
431 |
<th scope="row"> </th>
|
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 |
</tr>
|
435 |
</table>
|
436 |
<input type="hidden" name="opt_field" value="container" />
|
437 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
438 |
</form>
|
439 |
</fieldset>
|
440 |
<fieldset>
|
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 intval( $dset->id );?>">
|
443 |
<table class="form-table">
|
444 |
<tr>
|
445 |
<th scope="row">Show on slide</th>
|
453 |
</tr>
|
454 |
<tr>
|
455 |
<th scope="row">Content width</th>
|
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 |
px</td>
|
458 |
</tr>
|
459 |
<tr>
|
467 |
</tr>
|
468 |
<tr>
|
469 |
<th scope="row">Title font Color</th>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
472 |
</tr>
|
473 |
<tr>
|
474 |
<th scope="row">Title hover Color</th>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
477 |
</tr>
|
478 |
<tr>
|
479 |
<th scope="row">Title font size</th>
|
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 |
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 |
</tr>
|
493 |
<tr>
|
494 |
<th scope="row">Title line height</th>
|
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 |
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 |
</tr>
|
508 |
<tr>
|
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 esc_attr( $content['advps_excptFcolor'] );?>" style="width:100px;" />
|
511 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
512 |
</tr>
|
513 |
<tr>
|
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 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 |
px </td>
|
527 |
</tr>
|
528 |
<tr>
|
529 |
<th scope="row">Excerpt line height</th>
|
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 |
px </td>
|
542 |
</tr>
|
543 |
<tr>
|
544 |
<th scope="row">Excerpt length</th>
|
545 |
+
<td><input type="text" name="advps_excerptlen" value="<?php echo esc_attr( $content['advps_excerptlen'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
546 |
words</td>
|
547 |
</tr>
|
548 |
<tr>
|
595 |
</tr>
|
596 |
<tr>
|
597 |
<th scope="row"> </th>
|
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 |
</tr>
|
601 |
</table>
|
602 |
<input type="hidden" name="opt_field" value="content" />
|
603 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
604 |
</form>
|
605 |
</fieldset>
|
606 |
<fieldset>
|
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 intval( $dset->id );?>">
|
609 |
<table class="form-table">
|
610 |
<tr>
|
611 |
<th scope="row">Exclude pager</th>
|
620 |
<input type="radio" name="advps_pager_type" value="number" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
621 |
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
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 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 |
</tr>
|
626 |
<tr>
|
627 |
<th scope="row">Thumbnail Width</th>
|
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 |
% <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
630 |
</tr>
|
631 |
<tr>
|
638 |
</tr>
|
639 |
<tr>
|
640 |
<th scope="row">Pager position from bottom</th>
|
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 |
px</td>
|
643 |
</tr>
|
644 |
<tr>
|
671 |
</tr>
|
672 |
<tr>
|
673 |
<th scope="row"> </th>
|
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 |
</tr>
|
677 |
</table>
|
678 |
<input type="hidden" name="opt_field" value="navigation" />
|
679 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
680 |
</form>
|
681 |
</fieldset>
|
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 |
<p>
|
686 |
+
<input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" />
|
687 |
<span style="margin-left:5px;">
|
688 |
+
<input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo intval( $dset->id );?>)" style="width:12%;" />
|
689 |
</span> </p>
|
690 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
691 |
</form>
|
699 |
?>
|
700 |
<div style="position:relative; float:left; width:72%">
|
701 |
<form method="post">
|
702 |
+
<input type="hidden" name="nextoptid" value="<?php echo intval( $tcount[0]->Auto_increment );?>" />
|
703 |
<input type="hidden" name="template" value="three" />
|
704 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
705 |
<input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
|
templates/template-two.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
?>
|
4 |
<div class="advps-col-right">
|
5 |
-
<h2>Advanced post slider <?php echo get_option('advps-curr-version');?></h2>
|
6 |
<ul>
|
7 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
8 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
@@ -36,8 +36,8 @@ foreach( $res2 as $dset){
|
|
36 |
<div class="postbox closed">
|
37 |
<div class="handlediv down" title="Click to toggle"> <br>
|
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'
|
41 |
</h3>
|
42 |
<div class="inside">
|
43 |
<fieldset>
|
@@ -45,29 +45,29 @@ foreach( $res2 as $dset){
|
|
45 |
<table class="form-table">
|
46 |
<tr>
|
47 |
<th scope="row">Label</th>
|
48 |
-
<td><input type="text" style="" value="<?php if(get_option('optset'
|
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>
|
50 |
</tr>
|
51 |
<tr>
|
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>
|
54 |
</tr>
|
55 |
</table>
|
56 |
</fieldset>
|
57 |
<fieldset>
|
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;?>">
|
60 |
<table class="form-table">
|
61 |
<tr>
|
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'
|
65 |
-
<option value="query" <?php if(get_option('advpssmethod'
|
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>
|
67 |
</tr>
|
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'
|
71 |
<tr>
|
72 |
<th scope="row">Listing option</th>
|
73 |
<td><select title="Post type" name="advps_post_stypes">
|
@@ -82,7 +82,7 @@ foreach( $res2 as $dset){
|
|
82 |
?>
|
83 |
</select>
|
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" />
|
86 |
</span> <span style="padding-left:10px;">
|
87 |
<select name="advps_plistorder_by" title="Order by">
|
88 |
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
@@ -100,18 +100,18 @@ foreach( $res2 as $dset){
|
|
100 |
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
101 |
</select>
|
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>
|
105 |
</tr>
|
106 |
<tr>
|
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;?>">
|
109 |
<?php
|
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'
|
115 |
);
|
116 |
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
117 |
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
@@ -123,32 +123,32 @@ foreach( $res2 as $dset){
|
|
123 |
</tr>
|
124 |
<tr>
|
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>
|
128 |
</tr>
|
129 |
</table>
|
130 |
<input type="hidden" name="opt_field" value="plist" />
|
131 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
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'
|
135 |
<tr>
|
136 |
<th scope="row">Post Type</th>
|
137 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
138 |
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
139 |
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
140 |
<?php
|
141 |
foreach ($customPostTypes as $post_type ) {
|
142 |
?>
|
143 |
-
<option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
144 |
<?php
|
145 |
}
|
146 |
?>
|
147 |
</select></td>
|
148 |
</tr>
|
149 |
-
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
150 |
<?php
|
151 |
-
$posttypeobj = get_post_type_object($query['advps_post_types']);
|
152 |
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
153 |
?>
|
154 |
<th scope="row">Category</th>
|
@@ -157,7 +157,7 @@ foreach( $res2 as $dset){
|
|
157 |
$catList = get_categories();
|
158 |
foreach($catList as $scat){
|
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>
|
161 |
<?php }?>
|
162 |
</select>
|
163 |
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
@@ -165,16 +165,16 @@ foreach( $res2 as $dset){
|
|
165 |
</tr>
|
166 |
<tr>
|
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);" />
|
169 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Maximum Slides]</span></td>
|
170 |
</tr>
|
171 |
<tr>
|
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>
|
174 |
</tr>
|
175 |
<tr>
|
176 |
<th scope="row">Exclude (optional)</th>
|
177 |
-
<td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />
|
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 |
</tr>
|
180 |
<tr>
|
@@ -199,22 +199,22 @@ foreach( $res2 as $dset){
|
|
199 |
</tr>
|
200 |
<tr>
|
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>
|
204 |
</tr>
|
205 |
</table>
|
206 |
<input type="hidden" name="opt_field" value="query" />
|
207 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
208 |
</form>
|
209 |
</div>
|
210 |
</fieldset>
|
211 |
<fieldset>
|
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">
|
214 |
<table class="form-table">
|
215 |
<tr>
|
216 |
<th scope="row">Slider Type</th>
|
217 |
-
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">
|
218 |
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
219 |
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
220 |
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
@@ -238,7 +238,7 @@ foreach( $res2 as $dset){
|
|
238 |
</tr>
|
239 |
<tr>
|
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>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
<th scope="row">Auto play</th>
|
@@ -249,11 +249,11 @@ foreach( $res2 as $dset){
|
|
249 |
</tr>
|
250 |
<tr>
|
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>
|
253 |
</tr>
|
254 |
<tr>
|
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>
|
257 |
</tr>
|
258 |
<tr>
|
259 |
<th scope="row">Enable pause on hover</th>
|
@@ -265,41 +265,41 @@ foreach( $res2 as $dset){
|
|
265 |
</tr>
|
266 |
<tr>
|
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>
|
270 |
</tr>
|
271 |
</table>
|
272 |
<input type="hidden" name="opt_field" value="slider" />
|
273 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
274 |
</form>
|
275 |
</fieldset>
|
276 |
<fieldset>
|
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;?>">
|
279 |
<table class="form-table">
|
280 |
<tr>
|
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);" />
|
283 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
284 |
</tr>
|
285 |
<tr>
|
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);" />
|
288 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
289 |
</tr>
|
290 |
<tr>
|
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>
|
294 |
</tr>
|
295 |
</table>
|
296 |
<input type="hidden" name="opt_field" value="caro_ticker" />
|
297 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
298 |
</form>
|
299 |
</fieldset>
|
300 |
<fieldset>
|
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;?>">
|
303 |
<table class="form-table">
|
304 |
<tr>
|
305 |
<th scope="row">Select Thumbnail</th>
|
@@ -313,7 +313,7 @@ foreach( $res2 as $dset){
|
|
313 |
unset($_wp_additional_image_sizes['post-thumbnail']);
|
314 |
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
315 |
?>
|
316 |
-
<option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
317 |
<?php
|
318 |
}
|
319 |
?>
|
@@ -321,12 +321,12 @@ foreach( $res2 as $dset){
|
|
321 |
</tr>
|
322 |
<tr>
|
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;" />
|
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 |
</tr>
|
327 |
<tr>
|
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);" />
|
330 |
px</td>
|
331 |
</tr>
|
332 |
<tr>
|
@@ -338,13 +338,13 @@ foreach( $res2 as $dset){
|
|
338 |
</tr>
|
339 |
<tr>
|
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;" />
|
342 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
343 |
</tr>
|
344 |
<tr>
|
345 |
<th scope="row">Border</th>
|
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);" />
|
348 |
px
|
349 |
<select name="advps_border_type">
|
350 |
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
@@ -355,7 +355,7 @@ foreach( $res2 as $dset){
|
|
355 |
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
356 |
</select>
|
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;" />
|
359 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
360 |
</tr>
|
361 |
<tr>
|
@@ -368,13 +368,13 @@ foreach( $res2 as $dset){
|
|
368 |
<tr>
|
369 |
<th scope="row">Box Shadow</th>
|
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);" />
|
372 |
px
|
373 |
-
<input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
374 |
px
|
375 |
-
<input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
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;" />
|
378 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
379 |
</tr>
|
380 |
<tr>
|
@@ -434,17 +434,17 @@ foreach( $res2 as $dset){
|
|
434 |
</tr>
|
435 |
<tr>
|
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>
|
439 |
</tr>
|
440 |
</table>
|
441 |
<input type="hidden" name="opt_field" value="container" />
|
442 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
443 |
</form>
|
444 |
</fieldset>
|
445 |
<fieldset>
|
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;?>">
|
448 |
<table class="form-table">
|
449 |
<tr>
|
450 |
<th scope="row">Exclude pager</th>
|
@@ -459,13 +459,13 @@ foreach( $res2 as $dset){
|
|
459 |
<input type="radio" name="advps_pager_type" value="number" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
460 |
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
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>
|
464 |
</tr>
|
465 |
<tr>
|
466 |
<th scope="row">Thumbnail Width</th>
|
467 |
<td>
|
468 |
-
<input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" /> %
|
469 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
470 |
</tr>
|
471 |
<tr>
|
@@ -478,7 +478,7 @@ foreach( $res2 as $dset){
|
|
478 |
</tr>
|
479 |
<tr>
|
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);" />
|
482 |
px</td>
|
483 |
</tr>
|
484 |
<tr>
|
@@ -499,7 +499,7 @@ foreach( $res2 as $dset){
|
|
499 |
</tr>
|
500 |
<tr>
|
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);" />
|
503 |
px</td>
|
504 |
</tr>
|
505 |
<tr>
|
@@ -511,20 +511,20 @@ foreach( $res2 as $dset){
|
|
511 |
</tr>
|
512 |
<tr>
|
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>
|
516 |
</tr>
|
517 |
</table>
|
518 |
<input type="hidden" name="opt_field" value="navigation" />
|
519 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
520 |
</form>
|
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" />
|
524 |
<input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />
|
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>
|
528 |
</p>
|
529 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
530 |
</form>
|
2 |
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
?>
|
4 |
<div class="advps-col-right">
|
5 |
+
<h2>Advanced post slider <?php echo esc_html( get_option('advps-curr-version') );?></h2>
|
6 |
<ul>
|
7 |
<li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
|
8 |
<li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
|
36 |
<div class="postbox closed">
|
37 |
<div class="handlediv down" title="Click to toggle"> <br>
|
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'] == 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 |
</h3>
|
42 |
<div class="inside">
|
43 |
<fieldset>
|
45 |
<table class="form-table">
|
46 |
<tr>
|
47 |
<th scope="row">Label</th>
|
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 |
</tr>
|
51 |
<tr>
|
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 intval( $dset->id );?>"]' readonly="readonly" /></td>
|
54 |
</tr>
|
55 |
</table>
|
56 |
</fieldset>
|
57 |
<fieldset>
|
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 intval( $dset->id );?>">
|
60 |
<table class="form-table">
|
61 |
<tr>
|
62 |
<th scope="row">Select post using</th>
|
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 |
</tr>
|
68 |
</table>
|
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 |
<tr>
|
72 |
<th scope="row">Listing option</th>
|
73 |
<td><select title="Post type" name="advps_post_stypes">
|
82 |
?>
|
83 |
</select>
|
84 |
<span style="padding-left:10px;">
|
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 |
</span> <span style="padding-left:10px;">
|
87 |
<select name="advps_plistorder_by" title="Order by">
|
88 |
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
100 |
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
101 |
</select>
|
102 |
</span> <span style="padding-left:10px;">
|
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 |
</tr>
|
106 |
<tr>
|
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 intval( $dset->id );?>">
|
109 |
<?php
|
110 |
$lpargs = array(
|
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 |
);
|
116 |
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
117 |
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
123 |
</tr>
|
124 |
<tr>
|
125 |
<th scope="row"> </th>
|
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 |
</tr>
|
129 |
</table>
|
130 |
<input type="hidden" name="opt_field" value="plist" />
|
131 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
132 |
</form>
|
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 |
<tr>
|
136 |
<th scope="row">Post Type</th>
|
137 |
+
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo intval( $dset->id );?>)">
|
138 |
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
139 |
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
140 |
<?php
|
141 |
foreach ($customPostTypes as $post_type ) {
|
142 |
?>
|
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 |
<?php
|
145 |
}
|
146 |
?>
|
147 |
</select></td>
|
148 |
</tr>
|
149 |
+
<tr id="advps-cat-field<?php echo intval( $dset->id );?>">
|
150 |
<?php
|
151 |
+
$posttypeobj = get_post_type_object( esc_html( $query['advps_post_types']) );
|
152 |
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
153 |
?>
|
154 |
<th scope="row">Category</th>
|
157 |
$catList = get_categories();
|
158 |
foreach($catList as $scat){
|
159 |
?>
|
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 |
<?php }?>
|
162 |
</select>
|
163 |
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
165 |
</tr>
|
166 |
<tr>
|
167 |
<th scope="row">Max. Number of post</th>
|
168 |
+
<td><input type="text" name="advps_maxpost" value="<?php echo esc_attr( $query['advps_maxpost'] );?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
169 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Maximum Slides]</span></td>
|
170 |
</tr>
|
171 |
<tr>
|
172 |
<th scope="row">Offset (optional)</th>
|
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 |
</tr>
|
175 |
<tr>
|
176 |
<th scope="row">Exclude (optional)</th>
|
177 |
+
<td><input type="text" name="advps_exclude" value="<?php echo esc_attr( $query['advps_exclude'] );?>" style="width:100px;" />
|
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 |
</tr>
|
180 |
<tr>
|
199 |
</tr>
|
200 |
<tr>
|
201 |
<th scope="row"> </th>
|
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 |
</tr>
|
205 |
</table>
|
206 |
<input type="hidden" name="opt_field" value="query" />
|
207 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
208 |
</form>
|
209 |
</div>
|
210 |
</fieldset>
|
211 |
<fieldset>
|
212 |
<legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend>
|
213 |
+
<form method="post" id="slider<?php echo intval( $dset->id );?>" onsubmit="return false">
|
214 |
<table class="form-table">
|
215 |
<tr>
|
216 |
<th scope="row">Slider Type</th>
|
217 |
+
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo intval( $dset->id );?>);">
|
218 |
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
219 |
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
220 |
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
238 |
</tr>
|
239 |
<tr>
|
240 |
<th scope="row">Speed</th>
|
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 |
</tr>
|
243 |
<tr>
|
244 |
<th scope="row">Auto play</th>
|
249 |
</tr>
|
250 |
<tr>
|
251 |
<th scope="row">Pause</th>
|
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 |
</tr>
|
254 |
<tr>
|
255 |
<th scope="row">Slide margin</th>
|
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 |
</tr>
|
258 |
<tr>
|
259 |
<th scope="row">Enable pause on hover</th>
|
265 |
</tr>
|
266 |
<tr>
|
267 |
<th scope="row"> </th>
|
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 |
</tr>
|
271 |
</table>
|
272 |
<input type="hidden" name="opt_field" value="slider" />
|
273 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
274 |
</form>
|
275 |
</fieldset>
|
276 |
<fieldset>
|
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 intval( $dset->id );?>">
|
279 |
<table class="form-table">
|
280 |
<tr>
|
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 esc_attr( $caro_ticker['advps_caro_slds'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
283 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
284 |
</tr>
|
285 |
<tr>
|
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 esc_attr( $caro_ticker['advps_caro_sldwidth'] );}?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
288 |
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
289 |
</tr>
|
290 |
<tr>
|
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 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 |
</tr>
|
295 |
</table>
|
296 |
<input type="hidden" name="opt_field" value="caro_ticker" />
|
297 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
298 |
</form>
|
299 |
</fieldset>
|
300 |
<fieldset>
|
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 intval( $dset->id );?>">
|
303 |
<table class="form-table">
|
304 |
<tr>
|
305 |
<th scope="row">Select Thumbnail</th>
|
313 |
unset($_wp_additional_image_sizes['post-thumbnail']);
|
314 |
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
315 |
?>
|
316 |
+
<option value="<?php echo esc_attr( $tkey );?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo esc_html( $tkey );?></option>
|
317 |
<?php
|
318 |
}
|
319 |
?>
|
321 |
</tr>
|
322 |
<tr>
|
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 esc_url( $container['advps_default_image'] );}?>" style="width:250px;" />
|
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 |
</tr>
|
327 |
<tr>
|
328 |
<th scope="row">Slide Container Width</th>
|
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 |
px</td>
|
331 |
</tr>
|
332 |
<tr>
|
338 |
</tr>
|
339 |
<tr>
|
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 esc_attr( $container['advps_bgcolor'] );?>" style="width:100px;" />
|
342 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
343 |
</tr>
|
344 |
<tr>
|
345 |
<th scope="row">Border</th>
|
346 |
<td><span style="vertical-align:top">
|
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 |
px
|
349 |
<select name="advps_border_type">
|
350 |
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
355 |
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
356 |
</select>
|
357 |
</span>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
360 |
</tr>
|
361 |
<tr>
|
368 |
<tr>
|
369 |
<th scope="row">Box Shadow</th>
|
370 |
<td><span style="vertical-align:top">
|
371 |
+
<input type="text" name="advps_bxshad1" value="<?php echo esc_attr( $container['advps_bxshad1'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
372 |
px
|
373 |
+
<input type="text" name="advps_bxshad2" value="<?php echo esc_attr( $container['advps_bxshad2'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
374 |
px
|
375 |
+
<input type="text" name="advps_bxshad3" value="<?php echo esc_attr( $container['advps_bxshad3'] );?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
376 |
px </span>
|
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 |
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
379 |
</tr>
|
380 |
<tr>
|
434 |
</tr>
|
435 |
<tr>
|
436 |
<th scope="row"> </th>
|
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 |
</tr>
|
440 |
</table>
|
441 |
<input type="hidden" name="opt_field" value="container" />
|
442 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
443 |
</form>
|
444 |
</fieldset>
|
445 |
<fieldset>
|
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 intval( $dset->id );?>">
|
448 |
<table class="form-table">
|
449 |
<tr>
|
450 |
<th scope="row">Exclude pager</th>
|
459 |
<input type="radio" name="advps_pager_type" value="number" <?php if(isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
460 |
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
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 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 |
</tr>
|
465 |
<tr>
|
466 |
<th scope="row">Thumbnail Width</th>
|
467 |
<td>
|
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 |
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
470 |
</tr>
|
471 |
<tr>
|
478 |
</tr>
|
479 |
<tr>
|
480 |
<th scope="row">Pager position from bottom</th>
|
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 |
px</td>
|
483 |
</tr>
|
484 |
<tr>
|
499 |
</tr>
|
500 |
<tr>
|
501 |
<th scope="row">Play/Pause position from bottom</th>
|
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 |
px</td>
|
504 |
</tr>
|
505 |
<tr>
|
511 |
</tr>
|
512 |
<tr>
|
513 |
<th scope="row"> </th>
|
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 |
</tr>
|
517 |
</table>
|
518 |
<input type="hidden" name="opt_field" value="navigation" />
|
519 |
+
<input type="hidden" value="<?php echo intval( $dset->id );?>" name="opt_id" />
|
520 |
</form>
|
521 |
</fieldset>
|
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 |
<input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />
|
525 |
<p>
|
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 |
</p>
|
529 |
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
530 |
</form>
|