Version Description
-
Important Upgrade notice
- Dont perform automatic upgrade now. There is a bug and I will fix it ASAP. Rather than upgrading automatically by clicking update now just deactivate the plugin then delete it from admin panel then re-install version 2 again.
-
Before upgrade
- Database structure of Advanced post slider is changed. Your previous option set and settings will be lost.
- jQuery plugin is changed to bxSlider. jQuery Cycle plugin lover may consider not to update.
-
Enhancements & New feature
- Responsive
- Thumbnail pagination
- Carousel & Ticker mode for all templates
- Multiple slide for all template
- Improved design for template one
- Improved admin UI
=
Download this release
Release Info
Developer | digontoahsan |
Plugin | Advanced post slider |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 2.0
- advanced-post-slider.php +412 -360
- advps-admin.php +134 -2384
- advps-db.php +201 -0
- advps-style.css +161 -87
- aq_resizer.php +207 -0
- bxslider/jquery.bxslider.css +197 -0
- bxslider/jquery.bxslider.min.js +10 -0
- bxslider/plugins/jquery.easing.1.3.js +205 -0
- bxslider/plugins/jquery.fitvids.js +80 -0
- images/ajax-loader.gif +0 -0
- images/bx_loader.gif +0 -0
- images/controls.png +0 -0
- images/down.png +0 -0
- images/downb.png +0 -0
- images/up.png +0 -0
- images/upb.png +0 -0
- js/advps.script.js +142 -43
- readme.txt +32 -18
- templates/template-one.php +636 -0
- templates/template-three.php +608 -0
- templates/template-two.php +493 -0
advanced-post-slider.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Advanced post slider
|
4 |
Plugin URI: www.wpcue.com
|
5 |
-
Description:
|
6 |
-
Version:
|
7 |
Author: digontoahsan
|
8 |
Author URI: www.wpcue.com
|
9 |
License: GPL2
|
@@ -16,163 +16,22 @@
|
|
16 |
add_action('admin_menu','advps_modify_menu');
|
17 |
|
18 |
function advps_options(){
|
19 |
-
|
20 |
}
|
21 |
|
22 |
define('advps_url',WP_PLUGIN_URL."/advanced-post-slider/");
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
global $templateOneDefaultOptions;
|
28 |
-
global $templatetwoDefaultOptions;
|
29 |
-
global $templatethreeDefaultOptions;
|
30 |
|
31 |
-
$advpsQuery = array(
|
32 |
-
"advps_post_types" => "post",
|
33 |
-
"advps_maxpost" => "10",
|
34 |
-
"advps_exclude" => "",
|
35 |
-
"advps_order_by" => "date",
|
36 |
-
"advps_order" => "DESC"
|
37 |
-
);
|
38 |
-
$advpsQuery2 = array(
|
39 |
-
"advps_post_types" => "post",
|
40 |
-
"advps_maxpost" => "10",
|
41 |
-
"advps_postperslide" => "1",
|
42 |
-
"advps_exclude" => "",
|
43 |
-
"advps_order_by" => "date",
|
44 |
-
"advps_order" => "DESC"
|
45 |
-
);
|
46 |
-
$advpsEffects = array(
|
47 |
-
"advps_effects" => "uncover",
|
48 |
-
"advps_timeout" => "1500",
|
49 |
-
"advps_easing" => "linear",
|
50 |
-
"advps_speed" => "2000",
|
51 |
-
"advps_ps_hover" => "yes"
|
52 |
-
);
|
53 |
-
|
54 |
-
$templateOneDefaultOptions = array(
|
55 |
-
"advps_thumbnail" => "advps_thumbnail_one",
|
56 |
-
"advps_default_image" => "",
|
57 |
-
"advps_sld_width" => "820",
|
58 |
-
"advps_sld_height" => "270",
|
59 |
-
"advps_contpad1" => "10",
|
60 |
-
"advps_contpad2" => "10",
|
61 |
-
"advps_contpad3" => "10",
|
62 |
-
"advps_contpad4" => "10",
|
63 |
-
"advps_bgcolor" => "#FFFFFF",
|
64 |
-
"advps_border_size" => "1",
|
65 |
-
"advps_border_type" => "solid",
|
66 |
-
"advps_border_color" => "#444444",
|
67 |
-
"advps_remove_border" => "yes",
|
68 |
-
"advps_bxshad1" => "0",
|
69 |
-
"advps_bxshad2" => "1",
|
70 |
-
"advps_bxshad3" => "4",
|
71 |
-
"advps_bxshadcolor" => "#000000",
|
72 |
-
"advps_remove_shd" => "no",
|
73 |
-
"advps_overlay_width" => "30",
|
74 |
-
"advps_overlay_height" => "100",
|
75 |
-
"advps_overlay_color" => "#000000",
|
76 |
-
"advps_overlay_opacity" => "0.6",
|
77 |
-
"advps_text_opacity" => "1",
|
78 |
-
"advps_ttitle_tag" => "h2",
|
79 |
-
"advps_titleFcolor" => "#FFFFFF",
|
80 |
-
"advps_titleHcolor" => "#E6E6E6",
|
81 |
-
"advps_titleFsize" => "22",
|
82 |
-
"advps_excptFcolor" => "#FFFFFF",
|
83 |
-
"advps_excptFsize" => "12",
|
84 |
-
"advps_excerptlen" => "30",
|
85 |
-
"advps_excpt_visibility" => "always show",
|
86 |
-
"advps_excpt_position" => "left",
|
87 |
-
"advps_ed_link" => "enable",
|
88 |
-
"advps_link_type" => "permalink",
|
89 |
-
"advps_link_target" => "_self",
|
90 |
-
"advps_exclude_pager" => "no",
|
91 |
-
"advps_pager_type" => "bullet",
|
92 |
-
"advps_pager_right" => "8",
|
93 |
-
"advps_pager_bottom" => "6",
|
94 |
-
"advps_exclude_nxtprev" => "no",
|
95 |
-
"advps_exclude_playpause" => "no"
|
96 |
-
);
|
97 |
-
$templatetwoDefaultOptions = array(
|
98 |
-
"advps_thumbnail" => "advps_thumbnail_two",
|
99 |
-
"advps_sld_width" => "644",
|
100 |
-
"advps_sld_height" => "270",
|
101 |
-
"advps_contpad1" => "10",
|
102 |
-
"advps_contpad2" => "10",
|
103 |
-
"advps_contpad3" => "10",
|
104 |
-
"advps_contpad4" => "10",
|
105 |
-
"advps_bgcolor" => "#FFFFFF",
|
106 |
-
"advps_border_size" => "1",
|
107 |
-
"advps_border_type" => "solid",
|
108 |
-
"advps_border_color" => "#444444",
|
109 |
-
"advps_remove_border" => "yes",
|
110 |
-
"advps_bxshad1" => "0",
|
111 |
-
"advps_bxshad2" => "1",
|
112 |
-
"advps_bxshad3" => "4",
|
113 |
-
"advps_bxshadcolor" => "#000000",
|
114 |
-
"advps_remove_shd" => "no",
|
115 |
-
"advps_img_Orientation" => "horizontal",
|
116 |
-
"advps_imagemar" => "10",
|
117 |
-
"advps_ed_link" => "enable",
|
118 |
-
"advps_link_type" => "permalink",
|
119 |
-
"advps_link_target" => "_self",
|
120 |
-
"advps_exclude_pager" => "no",
|
121 |
-
"advps_pager_type" => "bullet",
|
122 |
-
"advps_pager_right" => "8",
|
123 |
-
"advps_pager_bottom" => "6",
|
124 |
-
"advps_exclude_nxtprev" => "no",
|
125 |
-
"advps_exclude_playpause" => "no"
|
126 |
-
);
|
127 |
-
$templatethreeDefaultOptions = array(
|
128 |
-
"advps_content_set" => array(0=>"thumb",1=>"title",2=>"excerpt"),
|
129 |
-
"advps_thumbnail" => "medium",
|
130 |
-
"advps_sld_width" => "624",
|
131 |
-
"advps_sld_height" => "225",
|
132 |
-
"advps_contpad1" => "10",
|
133 |
-
"advps_contpad2" => "10",
|
134 |
-
"advps_contpad3" => "10",
|
135 |
-
"advps_contpad4" => "10",
|
136 |
-
"advps_bgcolor" => "#FFFFFF",
|
137 |
-
"advps_border_size" => "1",
|
138 |
-
"advps_border_type" => "solid",
|
139 |
-
"advps_border_color" => "#444444",
|
140 |
-
"advps_remove_border" => "yes",
|
141 |
-
"advps_bxshad1" => "0",
|
142 |
-
"advps_bxshad2" => "1",
|
143 |
-
"advps_bxshad3" => "4",
|
144 |
-
"advps_bxshadcolor" => "#000000",
|
145 |
-
"advps_remove_shd" => "no",
|
146 |
-
"advps_cont_width" => "280",
|
147 |
-
"advps_ttitle_tag" => "h2",
|
148 |
-
"advps_titleFcolor" => "#000000",
|
149 |
-
"advps_titleHcolor" => "#E6E6E6",
|
150 |
-
"advps_titleFsize" => "22",
|
151 |
-
"advps_excptFcolor" => "#333333",
|
152 |
-
"advps_excptFsize" => "12",
|
153 |
-
"advps_excerptlen" => "30",
|
154 |
-
"advps_ed_link" => "enable",
|
155 |
-
"advps_link_type" => "permalink",
|
156 |
-
"advps_link_target" => "_self",
|
157 |
-
"advps_exclude_pager" => "no",
|
158 |
-
"advps_pager_type" => "bullet",
|
159 |
-
"advps_pager_right" => "8",
|
160 |
-
"advps_pager_bottom" => "6",
|
161 |
-
"advps_exclude_nxtprev" => "no",
|
162 |
-
"advps_exclude_playpause" => "no"
|
163 |
-
);
|
164 |
/* ---------------------------------------------------------------------------------*/
|
165 |
-
function advps_enqueue() {
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
wp_enqueue_script('jquery');
|
172 |
-
wp_enqueue_script( 'advps_jcycle',advps_url.'js/jquery.cycle.all.js',array( 'jquery' ) );
|
173 |
-
wp_enqueue_script( 'advps_easing',advps_url.'js/jquery.easing.1.3.js',array( 'jquery' ) );
|
174 |
-
wp_enqueue_script( 'advps_front_script',advps_url.'js/advps.frnt.script.js' );
|
175 |
-
|
176 |
}
|
177 |
add_action( 'wp_enqueue_scripts', 'advps_enqueue' );
|
178 |
|
@@ -207,63 +66,6 @@
|
|
207 |
register_activation_hook(WP_PLUGIN_DIR.'/advanced-post-slider/advanced-post-slider.php','set_advps_options');
|
208 |
register_deactivation_hook(WP_PLUGIN_DIR.'/advanced-post-slider/advanced-post-slider.php','unset_advps_options');
|
209 |
|
210 |
-
function set_advps_options(){
|
211 |
-
global $wpdb;
|
212 |
-
global $advpsQuery;
|
213 |
-
global $advpsQuery2;
|
214 |
-
global $advpsEffects;
|
215 |
-
global $templateOneDefaultOptions;
|
216 |
-
global $templatetwoDefaultOptions;
|
217 |
-
global $templatethreeDefaultOptions;
|
218 |
-
|
219 |
-
$ins_q = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."advps_optionset (
|
220 |
-
`id` int(5) NOT NULL AUTO_INCREMENT,
|
221 |
-
`template` varchar(10) CHARACTER SET utf8 NOT NULL,
|
222 |
-
`opt_data` text CHARACTER SET utf8 NOT NULL,
|
223 |
-
PRIMARY KEY (`id`)
|
224 |
-
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1";
|
225 |
-
$wpdb->query($ins_q);
|
226 |
-
|
227 |
-
$ins_q2 = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."advps_thumbnail (
|
228 |
-
`id` int(2) NOT NULL AUTO_INCREMENT,
|
229 |
-
`thumb_name` varchar(500) NOT NULL,
|
230 |
-
`width` int(4) NOT NULL,
|
231 |
-
`height` int(4) NOT NULL,
|
232 |
-
`crop` varchar(5) NOT NULL,
|
233 |
-
PRIMARY KEY (`id`)
|
234 |
-
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1";
|
235 |
-
$wpdb->query($ins_q2);
|
236 |
-
|
237 |
-
$arrmrg1 = array_merge($advpsQuery,$advpsEffects,$templateOneDefaultOptions);
|
238 |
-
$arrmrg2 = array_merge($advpsQuery2,$advpsEffects,$templatetwoDefaultOptions);
|
239 |
-
$arrmrg3 = array_merge($advpsQuery,$advpsEffects,$templatethreeDefaultOptions);
|
240 |
-
|
241 |
-
$optdt1 = serialize($arrmrg1);
|
242 |
-
$optdt2 = serialize($arrmrg2);
|
243 |
-
$optdt3 = serialize($arrmrg3);
|
244 |
-
|
245 |
-
$q1 = "insert into ".$wpdb->prefix."advps_optionset (template,opt_data) values('one','".$optdt1."')";
|
246 |
-
$q2 = "insert into ".$wpdb->prefix."advps_optionset (template,opt_data) values('two','".$optdt2."')";
|
247 |
-
$q3 = "insert into ".$wpdb->prefix."advps_optionset (template,opt_data) values('three','".$optdt3."')";
|
248 |
-
|
249 |
-
if(!$wpdb->get_results("select id from ".$wpdb->prefix."advps_optionset where template = 'one'")){
|
250 |
-
$wpdb->query($q1);
|
251 |
-
}
|
252 |
-
if(!$wpdb->get_results("select id from ".$wpdb->prefix."advps_optionset where template = 'two'")){
|
253 |
-
$wpdb->query($q2);
|
254 |
-
}
|
255 |
-
if(!$wpdb->get_results("select id from ".$wpdb->prefix."advps_optionset where template = 'three'")){
|
256 |
-
$wpdb->query($q3);
|
257 |
-
}
|
258 |
-
|
259 |
-
if(!$wpdb->get_results("select id from ".$wpdb->prefix."advps_thumbnail where thumb_name = 'advps_thumbnail_one'")){
|
260 |
-
$wpdb->query( "insert into ".$wpdb->prefix."advps_thumbnail (thumb_name,width,height,crop) values('advps_thumbnail_one',800,250,'yes')");
|
261 |
-
}
|
262 |
-
if(!$wpdb->get_results("select id from ".$wpdb->prefix."advps_thumbnail where thumb_name = 'advps_thumbnail_two'")){
|
263 |
-
$wpdb->query( "insert into ".$wpdb->prefix."advps_thumbnail (thumb_name,width,height,crop) values('advps_thumbnail_two',624,250,'no')");
|
264 |
-
}
|
265 |
-
}
|
266 |
-
|
267 |
function unset_advps_options(){
|
268 |
}
|
269 |
/* ---------------------------------------------------------------------------------------*/
|
@@ -282,17 +84,36 @@
|
|
282 |
|
283 |
return get_option('advps_excerptlen_one');
|
284 |
}
|
285 |
-
//add_filter( 'excerpt_length', 'advps_excerpt_length_one', 999 );
|
286 |
|
287 |
function advps_excerpt_length( $length ) {
|
288 |
return get_option('advps_excerptlen');
|
289 |
}
|
290 |
add_action( "wp_ajax_chkCaetegory", "chkCaetegory" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
292 |
function chkCaetegory(){
|
293 |
$nonce = $_POST['checkReq'];
|
294 |
$posttype = $_POST['post_type'];
|
295 |
-
if(!wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
296 |
echo "Unauthorized request.";
|
297 |
exit;
|
298 |
}
|
@@ -320,78 +141,172 @@
|
|
320 |
echo $catHtml;
|
321 |
exit;
|
322 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
/* ---------------------------------------------------------------------------------------*/
|
324 |
|
325 |
function advps_slideshow($atts) {
|
326 |
global $post;
|
327 |
global $wpdb;
|
328 |
-
global $_wp_additional_image_sizes;
|
329 |
$current = $post->ID;
|
330 |
|
331 |
if(is_array($atts) && array_key_exists('optset',$atts)){
|
332 |
-
$q1 = "select
|
333 |
$res1 = $wpdb->get_results($q1);
|
334 |
if($res1){
|
335 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
}
|
337 |
-
else return;
|
|
|
338 |
}
|
339 |
else return;
|
340 |
|
341 |
-
if($
|
342 |
-
$exclude = explode(',',$
|
343 |
}
|
344 |
else
|
345 |
{
|
346 |
$exclude = '';
|
347 |
}
|
348 |
|
349 |
-
$
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
|
|
|
|
|
|
362 |
}
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
}
|
371 |
}
|
372 |
}
|
373 |
}
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
|
|
|
|
|
|
|
|
378 |
}
|
379 |
|
380 |
-
|
381 |
-
return;
|
382 |
-
}
|
383 |
|
384 |
-
if(
|
385 |
-
|
386 |
-
}
|
387 |
-
else
|
388 |
-
{
|
389 |
-
$sldshowID = substr(time(),8,2).rand(100,9999);
|
390 |
}
|
391 |
|
392 |
if($template != 'two'){
|
393 |
-
if($
|
394 |
-
update_option('advps_excerptlen',$
|
395 |
}
|
396 |
else
|
397 |
{
|
@@ -402,125 +317,252 @@
|
|
402 |
|
403 |
ob_start();
|
404 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
<script type="text/javascript">
|
406 |
jQuery(document).ready(function($){
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
});
|
420 |
-
function pagerFactory(idx, slide) {
|
421 |
-
<?php if($optset['advps_pager_type'] == 'number'): ?>
|
422 |
-
return '<li><a href="#">'+(idx+1)+'</a></li>';
|
423 |
-
<?php elseif($optset['advps_pager_type'] == 'bullet'): ?>
|
424 |
-
return '<li><a href="#"></a></li>';
|
425 |
-
<?php endif;?>
|
426 |
-
}
|
427 |
<?php if($template == "one" || $template == "three"):?>
|
428 |
-
|
429 |
-
|
430 |
-
$(this).css('color','<?php echo $optset['advps_titleHcolor']?>');
|
431 |
-
},function(){
|
432 |
-
$(this).css('color','<?php echo $optset['advps_titleFcolor']?>');
|
433 |
-
});
|
434 |
-
<?php endif;?>
|
435 |
-
$(".advps-slide-container").hover(function(){
|
436 |
-
if(!$(this).find(".advps-left-arrow, .advps-right-arrow, .advps-play-pause, .advps-left-arrow-two, .advps-right-arrow-two, .advps-play-pause-two").is(":animated")){
|
437 |
-
<?php if($optset['advps_exclude_nxtprev']=='no'):?>
|
438 |
-
$(this).find(".advps-left-arrow, .advps-right-arrow, .advps-left-arrow-two, .advps-right-arrow-two").fadeIn(200,'linear',function(){});<?php endif;?>
|
439 |
-
<?php if($optset['advps_exclude_playpause']=='no'):?>
|
440 |
-
if(!$(this).find(".advps-play-pause,.advps-play-pause-two").is(":animated")){
|
441 |
-
$(this).find(".advps-play-pause,.advps-play-pause-two").fadeIn(200,'linear',function(){});
|
442 |
-
}
|
443 |
-
<?php endif;if($template == 'one' && $optset['advps_excpt_visibility']=='show on hover'):?>
|
444 |
-
if(!$(this).find(".advps-excerpt-one, .advps-excerpt-two").is(":animated")){
|
445 |
-
|
446 |
-
$(this).find(".advps-excerpt-one, .advps-excerpt-two").fadeIn(200,'linear',function(){});
|
447 |
-
}
|
448 |
-
<?php endif;?>
|
449 |
-
}
|
450 |
},function(){
|
451 |
-
<?php
|
452 |
-
$(".advps-left-arrow, .advps-right-arrow,.advps-left-arrow-two, .advps-right-arrow-two").fadeOut(200,'linear',function(){});<?php endif;?>
|
453 |
-
<?php if($optset['advps_exclude_playpause']=='no'):?>
|
454 |
-
$(this).find(".advps-play-pause,.advps-play-pause-two").fadeOut(200,'linear',function(){});
|
455 |
-
<?php endif;if($template == 'one' && $optset['advps_excpt_visibility']=='show on hover'):?>
|
456 |
-
$(this).find(".advps-excerpt-one, .advps-excerpt-two").fadeOut(200,'linear',function(){});
|
457 |
-
<?php endif;?>
|
458 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
});
|
460 |
</script>
|
461 |
-
<div class="advps-slide-container" style="width:<?php echo $
|
462 |
|
463 |
-
<div id="<?php echo "advpsslideshow_".$sldshowID;?>"
|
464 |
<?php $count = 1;$the_query = new WP_Query($query_arg); while ($the_query->have_posts()) : $the_query->the_post();if($template == 'one'):
|
465 |
-
|
466 |
-
if(has_post_thumbnail()){
|
467 |
-
$thumbID = get_post_meta($post->ID,'_thumbnail_id',true);
|
468 |
-
$th_metadata = get_post_meta($thumbID,'_wp_attachment_metadata',true);
|
469 |
-
|
470 |
-
if($optset['advps_thumbnail'] == 'full' || !array_key_exists($optset['advps_thumbnail'],$th_metadata['sizes']) ){
|
471 |
-
$th_width = $th_metadata['width'];
|
472 |
-
$th_height = $th_metadata['height'];
|
473 |
-
}
|
474 |
-
else
|
475 |
-
{
|
476 |
-
$th_width = $th_metadata['sizes'][$optset['advps_thumbnail']]['width'];
|
477 |
-
$th_height = $th_metadata['sizes'][$optset['advps_thumbnail']]['height'];
|
478 |
-
}
|
479 |
-
}
|
480 |
-
else
|
481 |
-
{
|
482 |
-
$th_width = $optset['advps_sld_width'] - ($optset['advps_contpad2']+$optset['advps_contpad4']);
|
483 |
-
$th_height = $optset['advps_sld_height'] - ($optset['advps_contpad1']+$optset['advps_contpad3']);
|
484 |
-
}
|
485 |
?>
|
486 |
-
<div class="advps-slide"
|
487 |
-
<?php if( $
|
488 |
<?php
|
489 |
-
if(has_post_thumbnail()){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
?>
|
491 |
-
|
492 |
-
<?php }if( $optset['advps_ed_link']=='enable'){?></a><?php }?>
|
493 |
|
494 |
-
<div class="advps-excerpt-<?php echo $template?>" style="width:<?php echo $
|
495 |
-
<div class="advps-overlay-<?php echo $template?>" style="background-color:<?php echo $
|
496 |
-
<div class="advps-excerpt-block-<?php echo $template?>" style="color:<?php echo $
|
497 |
-
<<?php echo $
|
498 |
|
499 |
-
<?php the_excerpt()
|
500 |
</div>
|
501 |
</div>
|
502 |
</div>
|
503 |
<?php elseif($template == 'two'):?>
|
504 |
-
|
505 |
-
|
506 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
?>
|
508 |
-
|
509 |
-
|
510 |
<?php elseif($template == 'three'):?>
|
511 |
<div class="advps-slide">
|
512 |
-
<div class="advps-slide-field-three" style="position:relative;
|
513 |
-
<?php if(in_array('thumb',$
|
514 |
-
<?php
|
515 |
-
|
516 |
-
|
517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
<?php the_title();?>
|
519 |
-
<?php if( $
|
520 |
-
<?php if(in_array('content',$
|
521 |
the_content();
|
522 |
}
|
523 |
-
elseif(in_array('excerpt',$
|
524 |
the_excerpt();
|
525 |
}
|
526 |
?>
|
@@ -530,20 +572,30 @@
|
|
530 |
|
531 |
<?php endif;$count++;endwhile; wp_reset_query(); ?>
|
532 |
</div>
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
539 |
<?php }?>
|
540 |
-
|
541 |
-
<div class="<?php if($template == 'two'){echo 'advps-play-pause-two';}else{echo 'advps-play-pause';}?> advps-flip" temp="<?php echo $template;?>" sts="played" sel="advpsslideshow_<?php echo $sldshowID;?>" iuri="<?php echo advps_url;?>"><a href="javascript:void(0)"><img src="<?php echo advps_url;?>images/<?php if($template == 'two'){echo 'pause-two';}else{echo 'pause';}?>.png" alt="pause" /></a></div>
|
542 |
-
<?php endif;?>
|
543 |
-
<?php if($optset['advps_exclude_nxtprev']=='no'){?>
|
544 |
-
<div id="next_<?php echo $sldshowID;?>" class="<?php if($template == 'two'){if($optset['advps_img_Orientation'] == 'vertical'){echo "advps-up-arrow";}else{echo 'advps-right-arrow-two';}}else{echo 'advps-right-arrow';}?>">Up<?php /*?><img src="<?php echo advps_url;?>images/<?php if($template == 'two'){echo 'r1';}else{echo 'advps-right-arrow';}?>.png" alt="Right Arrow" /><?php */?></div>
|
545 |
-
<?php }?>
|
546 |
-
</div>
|
547 |
<?php
|
548 |
$advps_res = ob_get_contents();
|
549 |
ob_end_clean();
|
2 |
/*
|
3 |
Plugin Name: Advanced post slider
|
4 |
Plugin URI: www.wpcue.com
|
5 |
+
Description: Responsive slideshow plugin powered with three built-in templates, lots of easy customizable options and many more to explore.
|
6 |
+
Version: 2.0
|
7 |
Author: digontoahsan
|
8 |
Author URI: www.wpcue.com
|
9 |
License: GPL2
|
16 |
add_action('admin_menu','advps_modify_menu');
|
17 |
|
18 |
function advps_options(){
|
19 |
+
require 'advps-admin.php';
|
20 |
}
|
21 |
|
22 |
define('advps_url',WP_PLUGIN_URL."/advanced-post-slider/");
|
23 |
|
24 |
+
require 'advps-db.php';
|
25 |
+
if(!function_exists('aq_resize') && !class_exists('Aq_Resize'))
|
26 |
+
require 'aq_resizer.php';
|
|
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
/* ---------------------------------------------------------------------------------*/
|
29 |
+
function advps_enqueue() {
|
30 |
+
wp_register_style('advpsStyleSheet', advps_url.'advps-style.css');
|
31 |
+
wp_enqueue_style( 'advpsStyleSheet');
|
32 |
+
wp_enqueue_script('jquery');
|
33 |
+
wp_enqueue_script( 'advps_front_script',advps_url.'js/advps.frnt.script.js' );
|
34 |
+
wp_enqueue_script( 'advps_jbx',advps_url.'bxslider/jquery.bxslider.min.js',array( 'jquery' ) );
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
add_action( 'wp_enqueue_scripts', 'advps_enqueue' );
|
37 |
|
66 |
register_activation_hook(WP_PLUGIN_DIR.'/advanced-post-slider/advanced-post-slider.php','set_advps_options');
|
67 |
register_deactivation_hook(WP_PLUGIN_DIR.'/advanced-post-slider/advanced-post-slider.php','unset_advps_options');
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
function unset_advps_options(){
|
70 |
}
|
71 |
/* ---------------------------------------------------------------------------------------*/
|
84 |
|
85 |
return get_option('advps_excerptlen_one');
|
86 |
}
|
|
|
87 |
|
88 |
function advps_excerpt_length( $length ) {
|
89 |
return get_option('advps_excerptlen');
|
90 |
}
|
91 |
add_action( "wp_ajax_chkCaetegory", "chkCaetegory" );
|
92 |
+
add_action( "wp_ajax_advpsUpdateLabel", "advpsUpdateLabel" );
|
93 |
+
add_action( "wp_ajax_advpsUpdateOpt", "advpsUpdateOpt" );
|
94 |
+
add_action( "wp_ajax_advpsListPost", "advpsListPost" );
|
95 |
+
add_action( "wp_ajax_advpsUpdateSmethod", "advpsUpdateSmethod" );
|
96 |
+
|
97 |
+
function advpsUpdateLabel(){
|
98 |
+
$nonce = $_POST['checkReq'];
|
99 |
+
$fname = $_POST['f_name'];
|
100 |
+
$fvalue = trim($_POST['f_value']);
|
101 |
+
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
102 |
+
echo "Unauthorized request.";
|
103 |
+
exit;
|
104 |
+
}
|
105 |
+
update_option($fname,$fvalue);
|
106 |
+
exit;
|
107 |
+
}
|
108 |
+
|
109 |
+
function advpsSanit($str){
|
110 |
+
return sanitize_text_field($str);
|
111 |
+
}
|
112 |
|
113 |
function chkCaetegory(){
|
114 |
$nonce = $_POST['checkReq'];
|
115 |
$posttype = $_POST['post_type'];
|
116 |
+
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
117 |
echo "Unauthorized request.";
|
118 |
exit;
|
119 |
}
|
141 |
echo $catHtml;
|
142 |
exit;
|
143 |
}
|
144 |
+
function advpsUpdateOpt(){
|
145 |
+
$nonce = $_POST['checkReq'];
|
146 |
+
$optdata = $_POST['optdata'];
|
147 |
+
|
148 |
+
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
149 |
+
echo "Unauthorized request.";
|
150 |
+
exit;
|
151 |
+
}
|
152 |
+
|
153 |
+
global $wpdb;
|
154 |
+
$all_field = array();
|
155 |
+
parse_str($optdata,$all_field);
|
156 |
+
|
157 |
+
$optID = sanitize_text_field($all_field['opt_id']);
|
158 |
+
$optfield = sanitize_text_field($all_field['opt_field']);
|
159 |
+
|
160 |
+
unset($all_field['opt_id']);
|
161 |
+
unset($all_field['opt_field']);
|
162 |
+
|
163 |
+
$update_data = array();
|
164 |
+
foreach($all_field as $fkey => $fval){
|
165 |
+
if(is_array($fval)){
|
166 |
+
$update_data[$fkey] = array_map('advpsSanit',$fval);
|
167 |
+
}
|
168 |
+
else
|
169 |
+
{
|
170 |
+
$update_data[$fkey] = sanitize_text_field($fval);
|
171 |
+
}
|
172 |
+
}
|
173 |
+
|
174 |
+
$update_data = serialize($update_data);
|
175 |
+
|
176 |
+
$q_chk = $wpdb->prepare("select template from ".$wpdb->prefix."advps_optionset where ".$optfield." = '%s' and id = %d",$update_data,$optID);
|
177 |
+
if(!$wpdb->get_results($q_chk)){
|
178 |
+
$q_upd = $wpdb->prepare("update ".$wpdb->prefix."advps_optionset set ".$optfield." = '%s' where id = %d",$update_data,$optID);
|
179 |
+
if($wpdb->query($q_upd)){
|
180 |
+
echo "Updated successfully.";
|
181 |
+
}
|
182 |
+
}
|
183 |
+
else
|
184 |
+
{
|
185 |
+
echo 'Nothing to change.';
|
186 |
+
}
|
187 |
+
exit;
|
188 |
+
}
|
189 |
+
function advpsListPost(){
|
190 |
+
$nonce = $_POST['checkReq'];
|
191 |
+
$ptype = $_POST['ptype'];
|
192 |
+
$pmax = $_POST['pmax'];
|
193 |
+
$porderBy = $_POST['porderBy'];
|
194 |
+
$porder = $_POST['porder'];
|
195 |
+
$plist = explode(',',$_POST['plist']);
|
196 |
+
|
197 |
+
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
198 |
+
echo "Unauthorized request.";
|
199 |
+
exit;
|
200 |
+
}
|
201 |
+
$plistHtml = '';
|
202 |
+
$lpargs = array(
|
203 |
+
'post_type' => $ptype,
|
204 |
+
'posts_per_page' => $pmax,
|
205 |
+
'orderby' => $porderBy,
|
206 |
+
'order' => $porder
|
207 |
+
);
|
208 |
+
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();
|
209 |
+
if($plist && in_array(get_the_id(),$plist)){
|
210 |
+
$plistHtml .= '<option value="'.get_the_id().'" selected="selected">'.get_the_title().'</option>';
|
211 |
+
}
|
212 |
+
else{
|
213 |
+
$plistHtml .= '<option value="'.get_the_id().'">'.get_the_title().'</option>';
|
214 |
+
}
|
215 |
+
endwhile;wp_reset_query();
|
216 |
+
echo $plistHtml;
|
217 |
+
exit;
|
218 |
+
}
|
219 |
+
function advpsUpdateSmethod(){
|
220 |
+
$nonce = $_POST['checkReq'];
|
221 |
+
$selnam = $_POST['selnam'];
|
222 |
+
$selval = $_POST['selval'];
|
223 |
+
|
224 |
+
if(! defined( 'ABSPATH' ) || !wp_verify_nonce( $nonce, 'advpsauthrequst' )){
|
225 |
+
echo "Unauthorized request.";
|
226 |
+
exit;
|
227 |
+
}
|
228 |
+
update_option($selnam,$selval);
|
229 |
+
exit;
|
230 |
+
}
|
231 |
/* ---------------------------------------------------------------------------------------*/
|
232 |
|
233 |
function advps_slideshow($atts) {
|
234 |
global $post;
|
235 |
global $wpdb;
|
|
|
236 |
$current = $post->ID;
|
237 |
|
238 |
if(is_array($atts) && array_key_exists('optset',$atts)){
|
239 |
+
$q1 = "select * from ".$wpdb->prefix."advps_optionset where id = ".$atts['optset'];
|
240 |
$res1 = $wpdb->get_results($q1);
|
241 |
if($res1){
|
242 |
+
$plist = unserialize($res1[0]->plist);
|
243 |
+
$query = unserialize($res1[0]->query);
|
244 |
+
$slider = unserialize($res1[0]->slider);
|
245 |
+
$caro_ticker = unserialize($res1[0]->caro_ticker);
|
246 |
+
$container = unserialize($res1[0]->container);
|
247 |
+
$content = unserialize($res1[0]->content);
|
248 |
+
$navigation = unserialize($res1[0]->navigation);
|
249 |
}
|
250 |
+
else return;
|
251 |
+
$sldshowID = $atts['optset'];
|
252 |
}
|
253 |
else return;
|
254 |
|
255 |
+
if($query['advps_exclude']){
|
256 |
+
$exclude = explode(',',$query['advps_exclude']);
|
257 |
}
|
258 |
else
|
259 |
{
|
260 |
$exclude = '';
|
261 |
}
|
262 |
|
263 |
+
$qtype = get_option('advpssmethod'.$sldshowID);
|
264 |
+
if($qtype == 'query'){
|
265 |
+
$query_arg = array(
|
266 |
+
'post_type' => ($query['advps_post_types']) ? $query['advps_post_types'] : 'post',
|
267 |
+
'post__not_in' => $exclude,
|
268 |
+
'offset' => ($query['advps_offset']) ? $query['advps_offset'] : 0,
|
269 |
+
'posts_per_page' => ($query['advps_maxpost']) ? $query['advps_maxpost'] : 10,
|
270 |
+
'orderby' => ($query['advps_order_by']) ? $query['advps_order_by'] : 'date',
|
271 |
+
'order' => ($query['advps_order']) ? $query['advps_order'] : 'DESC'
|
272 |
+
);
|
273 |
+
|
274 |
+
if($query['advps_post_types'] && $query['advps_post_types'] != "page"){
|
275 |
+
if($query['advps_post_types'] == "post"){
|
276 |
+
if(isset($query['advps_category'])){
|
277 |
+
$query_arg['cat'] = implode(',',$query['advps_category']);
|
278 |
+
}
|
279 |
}
|
280 |
+
else
|
281 |
+
{
|
282 |
+
$post_type_obj = get_post_type_object( $query['advps_post_types'] );
|
283 |
+
if(in_array('category',$post_type_obj->taxonomies)){
|
284 |
+
if(isset($query['advps_category'])){
|
285 |
+
$query_arg['cat'] = implode(',',$query['advps_category']);
|
286 |
+
}
|
287 |
}
|
288 |
}
|
289 |
}
|
290 |
}
|
291 |
+
elseif($qtype == 'plist'){
|
292 |
+
$query_arg = array(
|
293 |
+
'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes'] : 'post',
|
294 |
+
'post__in' => $plist['advps_plist'],
|
295 |
+
'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax'] : 10,
|
296 |
+
'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by'] : 'date',
|
297 |
+
'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder'] : 'DESC'
|
298 |
+
);
|
299 |
}
|
300 |
|
301 |
+
$template = $res1[0]->template;
|
|
|
|
|
302 |
|
303 |
+
if(($template == "one" || $template == "two") && !post_type_supports( $query['advps_post_types'], 'thumbnail' )){
|
304 |
+
return;
|
|
|
|
|
|
|
|
|
305 |
}
|
306 |
|
307 |
if($template != 'two'){
|
308 |
+
if($content['advps_excerptlen']){
|
309 |
+
update_option('advps_excerptlen',$content['advps_excerptlen']);
|
310 |
}
|
311 |
else
|
312 |
{
|
317 |
|
318 |
ob_start();
|
319 |
?>
|
320 |
+
<style>
|
321 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-viewport {
|
322 |
+
<?php if($container['advps_remove_shd'] == 'no'):?>
|
323 |
+
-moz-box-shadow: <?php echo $container['advps_bxshad1'].'px '.$container['advps_bxshad2'].'px '.$container['advps_bxshad3'].'px '.$container['advps_bxshadcolor'];?>;
|
324 |
+
-webkit-box-shadow: <?php echo $container['advps_bxshad1'].'px '.$container['advps_bxshad2'].'px '.$container['advps_bxshad3'].'px '.$container['advps_bxshadcolor'];?>;
|
325 |
+
box-shadow: <?php echo $container['advps_bxshad1'].'px '.$container['advps_bxshad2'].'px '.$container['advps_bxshad3'].'px '.$container['advps_bxshadcolor'];?>;
|
326 |
+
<?php endif;if($container['advps_remove_border'] == 'no'):?>
|
327 |
+
border: <?php echo $container['advps_border_size'].'px '.$container['advps_border_type'].' '.$container['advps_border_color'];?>;
|
328 |
+
<?php endif;?>
|
329 |
+
background:<?php echo $container['advps_bgcolor'];?>;
|
330 |
+
}
|
331 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager{
|
332 |
+
text-align: <?php echo $navigation['advps_pager_align'];?>;
|
333 |
+
<?php if($navigation['advps_pager_align'] == 'right'){echo 'padding-right:5px';}elseif($navigation['advps_pager_align'] == 'left'){echo 'padding-left:5px';}?>;
|
334 |
+
}
|
335 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager
|
336 |
+
{
|
337 |
+
bottom:<?php echo $navigation['advps_pager_bottom'];?>px;
|
338 |
+
}
|
339 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-controls-auto
|
340 |
+
{
|
341 |
+
bottom:<?php echo $navigation['advps_ppause_bottom'];?>px;
|
342 |
+
}
|
343 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
344 |
+
text-align: <?php echo $navigation['advps_pager_align'];?>;
|
345 |
+
}
|
346 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-controls-auto {
|
347 |
+
z-index:99999;
|
348 |
+
<?php if($navigation['advps_ppause_align'] == 'left'){echo 'left:5px;width:35px;';}elseif($navigation['advps_ppause_align'] == 'right'){echo 'right:0px;width:35px;';}else{echo 'text-align:center;width:100%;';}?>
|
349 |
+
}
|
350 |
+
|
351 |
+
<?php if($navigation['advps_exclude_pager'] == 'no' && (isset($navigation['advps_pager_type']) && $navigation['advps_pager_type'] == 'number')):?>
|
352 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager.bx-default-pager a {
|
353 |
+
margin: 2px 2px 2px 0;
|
354 |
+
padding:3px 8px 3px 8px !important;
|
355 |
+
text-decoration:none;
|
356 |
+
width:auto;
|
357 |
+
display:block;
|
358 |
+
color:#FFFFFF;
|
359 |
+
font-size:11px;
|
360 |
+
font-weight:bold;
|
361 |
+
text-shadow: 0px 1px 1px #666666;
|
362 |
+
background-color:#333333;
|
363 |
+
background: -webkit-gradient(linear, 0 top, 0 bottom, from(#666666), to(#000000));
|
364 |
+
background: -moz-linear-gradient(#555555, #000000);
|
365 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#000000',GradientType=0 );
|
366 |
+
background-image: -ms-linear-gradient(top, #666666 0%, #000000 100%);
|
367 |
+
background-image: -o-linear-gradient(top, #666666 0%, #000000 100%);
|
368 |
+
background-repeat:no-repeat !important;
|
369 |
+
background-position:center !important;
|
370 |
+
-moz-border-radius:2px;
|
371 |
+
-webkit-border-radius:2px;
|
372 |
+
border-radius:2px;
|
373 |
+
}
|
374 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager.bx-default-pager a:hover, #container<?php echo $sldshowID;?> .bx-wrapper .bx-pager.bx-default-pager a.active{
|
375 |
+
color:#000000;
|
376 |
+
text-shadow: 0 1px 0 #FFFFFF;
|
377 |
+
background-color:#FFFFFF;
|
378 |
+
background:-moz-linear-gradient(#FFFFFF, #E0E0E0);
|
379 |
+
background:-webkit-gradient(linear, 0 top, 0 bottom, from(#FFFFFF), to(#E0E0E0));
|
380 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#E0E0E0',GradientType=0 );
|
381 |
+
background-image: -ms-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);
|
382 |
+
background-image: -o-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);
|
383 |
+
}
|
384 |
+
<?php elseif($navigation['advps_exclude_pager'] == 'no' && (!isset($navigation['advps_pager_type']) || ($navigation['advps_pager_type'] == 'bullet' || ($slider['advps_slider_type'] != 'standard' && $navigation['advps_pager_type']=='thumb')))):?>
|
385 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager.bx-default-pager a {
|
386 |
+
background: #666;
|
387 |
+
text-indent: -9999px;
|
388 |
+
display: block;
|
389 |
+
width: 10px;
|
390 |
+
height: 10px;
|
391 |
+
margin: 0 5px;
|
392 |
+
outline: 0;
|
393 |
+
-moz-border-radius: 5px;
|
394 |
+
-webkit-border-radius: 5px;
|
395 |
+
border-radius: 5px;
|
396 |
+
text-align:left;
|
397 |
+
}
|
398 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager.bx-default-pager a:hover,
|
399 |
+
#container<?php echo $sldshowID;?> .bx-wrapper .bx-pager.bx-default-pager a.active {
|
400 |
+
background: #000;
|
401 |
+
}
|
402 |
+
<?php endif;?>
|
403 |
+
|
404 |
+
/* thumbnail pager*/
|
405 |
+
#container<?php echo $sldshowID;?> #bx-pager
|
406 |
+
{
|
407 |
+
width:100%;
|
408 |
+
position:absolute;
|
409 |
+
bottom:<?php echo $navigation['advps_pager_bottom'];?>px;
|
410 |
+
text-align: <?php echo $navigation['advps_pager_align'];?>;
|
411 |
+
z-index: 9999;
|
412 |
+
}
|
413 |
+
#container<?php echo $sldshowID;?> #bx-pager a img
|
414 |
+
{
|
415 |
+
border: 1px solid #CCCCCC;
|
416 |
+
padding: 3px;
|
417 |
+
}
|
418 |
+
#container<?php echo $sldshowID;?> #bx-pager a:hover img, #container<?php echo $sldshowID;?> #bx-pager a.active img
|
419 |
+
{
|
420 |
+
border: 1px solid #666666;
|
421 |
+
}
|
422 |
+
</style>
|
423 |
<script type="text/javascript">
|
424 |
jQuery(document).ready(function($){
|
425 |
+
$('#advpsslideshow_<?php echo $sldshowID;?>').bxSlider({
|
426 |
+
useCSS:<?php if($slider['advps_transition']=='css3'){echo 1;}else{echo 0;}?>,
|
427 |
+
slideMargin: <?php echo $slider['advps_sldmargin'];?>,
|
428 |
+
speed: <?php echo $slider['advps_speed'];?>,
|
429 |
+
auto: <?php if($slider['advps_slider_type'] == 'standard' && $slider['advps_autoplay']=='yes'){echo 1;}else{echo 0;}?>,
|
430 |
+
autoHover: <?php if($slider['advps_slider_type'] != 'ticker' && $slider['advps_ps_hover']=='yes'){echo 1;}else{echo 0;}?>,
|
431 |
+
<?php if(isset($slider['advps_slider_type']) && ($slider['advps_slider_type'] == 'carousel' || $slider['advps_slider_type'] == 'ticker')){?>
|
432 |
+
minSlides: <?php echo $caro_ticker['advps_caro_slds']?>,
|
433 |
+
maxSlides: <?php echo $caro_ticker['advps_caro_slds']?>,
|
434 |
+
slideWidth: <?php echo $caro_ticker['advps_caro_sldwidth']?>
|
435 |
+
<?php if($slider['advps_slider_type'] == 'ticker'){?>
|
436 |
+
,ticker: true,
|
437 |
+
tickerHover:<?php if($slider['advps_ps_hover']=='yes'){echo 1;}else{echo 0;}?>
|
438 |
+
<?php }}else{?>
|
439 |
+
mode: '<?php echo $slider['advps_effects'];?>',
|
440 |
+
pause: <?php echo $slider['advps_timeout'];?>,
|
441 |
+
easing: 'linear',
|
442 |
+
controls: <?php if($navigation['advps_exclude_nxtprev']=='no'){echo 1;}else{echo 0;}?>,
|
443 |
+
<?php if($navigation['advps_pager_type']=='thumb'):?>
|
444 |
+
pagerCustom: '#bx-pager',
|
445 |
+
<?php endif;?>
|
446 |
+
pager: <?php if($navigation['advps_exclude_pager']=='no'){echo 1;}else{echo 0;}?>,
|
447 |
+
autoControls: <?php if($navigation['advps_exclude_playpause']=='no'){echo 1;}else{echo 0;}?>
|
448 |
+
<?php }?>
|
449 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
<?php if($template == "one" || $template == "three"):?>
|
451 |
+
$("#advpsslideshow_<?php echo $sldshowID;?> .advs-title a").hover(function(){
|
452 |
+
$(this).css('color','<?php echo $content['advps_titleHcolor']?>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
},function(){
|
454 |
+
$(this).css('color','<?php echo $content['advps_titleFcolor']?>');
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
});
|
456 |
+
<?php endif;?>
|
457 |
+
$("#advpsslideshow_<?php echo $sldshowID;?> .advps-slide").hover(function(){
|
458 |
+
<?php if($template == 'one' && $content['advps_excpt_visibility']=='show on hover'):?>
|
459 |
+
if(!$(this).find(".advps-excerpt-one").is(":animated")){
|
460 |
+
$(this).find(".advps-excerpt-one").fadeIn(200,'linear',function(){});
|
461 |
+
}
|
462 |
+
<?php endif;?>
|
463 |
+
},function(){
|
464 |
+
<?php if($template == 'one' && $content['advps_excpt_visibility']=='show on hover'):?>
|
465 |
+
$(this).find(".advps-excerpt-one").fadeOut(200,'linear',function(){});
|
466 |
+
<?php endif;?>
|
467 |
+
});
|
468 |
});
|
469 |
</script>
|
470 |
+
<div id="container<?php echo $sldshowID;?>" class="advps-slide-container" style="max-width:<?php echo $container['advps_sld_width'];?>px;">
|
471 |
|
472 |
+
<div id="<?php echo "advpsslideshow_".$sldshowID;?>">
|
473 |
<?php $count = 1;$the_query = new WP_Query($query_arg); while ($the_query->have_posts()) : $the_query->the_post();if($template == 'one'):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
?>
|
475 |
+
<div class="advps-slide">
|
476 |
+
<?php if( $content['advps_ed_link']=='enable'){?><a target="<?php echo $content['advps_link_target'];?>" href="<?php if($content['advps_link_type'] == 'permalink'){the_permalink();}else{echo get_post_meta($post->ID,'advps_custom_link',true);}?>"><?php }?>
|
477 |
<?php
|
478 |
+
if(has_post_thumbnail()){
|
479 |
+
$advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
|
480 |
+
if($advps_custom_thumb){
|
481 |
+
$thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
|
482 |
+
$advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop);
|
483 |
+
echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="dff"/>';
|
484 |
+
}
|
485 |
+
else
|
486 |
+
{
|
487 |
+
the_post_thumbnail($container['advps_thumbnail']);
|
488 |
+
}
|
489 |
+
}
|
490 |
+
elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
|
491 |
+
{
|
492 |
+
?>
|
493 |
+
<img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" />
|
494 |
+
<?php
|
495 |
+
}
|
496 |
?>
|
497 |
+
<?php if( $content['advps_ed_link']=='enable'){?></a><?php }?>
|
|
|
498 |
|
499 |
+
<div class="advps-excerpt-<?php echo $template?>" style="width:<?php echo $content['advps_overlay_width'];?>%;height:<?php echo $content['advps_overlay_height'];?>%;<?php if($content['advps_excpt_visibility'] == 'show on hover'){?>display:none;<?php }if($content['advps_excpt_position'] == 'left'){?>top:0; left:0;<?php }elseif($content['advps_excpt_position'] == 'right'){?>top:0; right:0;<?php }elseif($content['advps_excpt_position'] == 'bottom'){?>bottom:0; left:0;<?php }?>">
|
500 |
+
<div class="advps-overlay-<?php echo $template?>" style="background-color:<?php echo $content['advps_overlay_color'];?>; -moz-opacity:<?php echo $content['advps_overlay_opacity'];?>;filter:alpha(opacity=<?php echo $content['advps_overlay_opacity']*100;?>);opacity:<?php echo $content['advps_overlay_opacity'];?>;"></div>
|
501 |
+
<div class="advps-excerpt-block-<?php echo $template?>" style="text-align:<?php echo $content['advps_text_align'];?>;color:<?php echo $content['advps_excptFcolor'];?>;line-height:<?php echo $content['advps_excptLheight'].$content['advps_excptLHunit'];?>;font-size:<?php echo $content['advps_excptFsize'].$content['advps_excptFSunit'];?>;-moz-opacity:<?php echo $content['advps_text_opacity'];?>;filter:alpha(opacity=<?php echo $content['advps_text_opacity']*100;?>);opacity:<?php echo $content['advps_text_opacity'];?>;">
|
502 |
+
<<?php echo $content['advps_ttitle_tag'];?> class="advs-title" style="font-size:<?php echo $content['advps_titleFsize'].$content['advps_ttitleFSunit'];?>;line-height:<?php echo $content['advps_titleLheight'].$content['advps_ttitleLHunit'];?>;margin:5px 0px 10px 0px;color:<?php echo $content['advps_titleFcolor'];?>"><?php if( $content['advps_ed_link']=='enable'){?><a target="<?php echo $content['advps_link_target'];?>" href="<?php if($content['advps_link_type'] == 'permalink'){the_permalink();}else{echo get_post_meta($post->ID,'advps_custom_link',true);}?>" style="font-size:<?php echo $content['advps_titleFsize'].$content['advps_ttitleFSunit'];?>;line-height:<?php echo $content['advps_titleLheight'].$content['advps_ttitleLHunit'];?>;margin:5px 0px 10px 0px;color:<?php echo $content['advps_titleFcolor'];?>"><?php }?><?php the_title();?><?php if( $content['advps_ed_link']=='enable'){?></a><?php }?></<?php echo $content['advps_ttitle_tag'];?>>
|
503 |
|
504 |
+
<?php if($content['advps_exclude_excpt'] == 'no'){the_excerpt();}?>
|
505 |
</div>
|
506 |
</div>
|
507 |
</div>
|
508 |
<?php elseif($template == 'two'):?>
|
509 |
+
<div class="advps-slide">
|
510 |
+
<?php if( $container['advps_ed_link']=='enable'){?><a target="<?php echo $container['advps_link_target'];?>" href="<?php if($container['advps_link_type'] == 'permalink'){the_permalink();}else{echo get_post_meta($post->ID,'advps_custom_link',true);}?>"><?php }?>
|
511 |
+
<?php
|
512 |
+
if(has_post_thumbnail()){
|
513 |
+
$advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
|
514 |
+
if($advps_custom_thumb){
|
515 |
+
$thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
|
516 |
+
$advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop);
|
517 |
+
echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="dff"/>';
|
518 |
+
}
|
519 |
+
else
|
520 |
+
{
|
521 |
+
the_post_thumbnail($container['advps_thumbnail']);
|
522 |
+
}
|
523 |
+
}
|
524 |
+
elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
|
525 |
+
{
|
526 |
+
?>
|
527 |
+
<img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" />
|
528 |
+
<?php
|
529 |
+
}
|
530 |
?>
|
531 |
+
<?php if( $container['advps_ed_link']=='enable'){?></a><?php }?>
|
532 |
+
</div>
|
533 |
<?php elseif($template == 'three'):?>
|
534 |
<div class="advps-slide">
|
535 |
+
<div class="advps-slide-field-three" style="position:relative;float:left;padding:<?php echo $container['advps_contpad1'].'px '.$container['advps_contpad2'].'px '.$container['advps_contpad3'].'px '.$container['advps_contpad4'].'px';?>;">
|
536 |
+
<?php if(in_array('thumb',$content['advps_content_set'])):if( $content['advps_ed_link']=='enable'){?><a target="<?php echo $content['advps_link_target'];?>" href="<?php if($content['advps_link_type'] == 'permalink'){the_permalink();}else{echo get_post_meta($post->ID,'advps_custom_link',true);};?>"><?php }?>
|
537 |
+
<?php
|
538 |
+
if(has_post_thumbnail()){
|
539 |
+
$advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
|
540 |
+
if($advps_custom_thumb){
|
541 |
+
$thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
|
542 |
+
$advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop);
|
543 |
+
echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="dff"/>';
|
544 |
+
}
|
545 |
+
else
|
546 |
+
{
|
547 |
+
the_post_thumbnail($container['advps_thumbnail']);
|
548 |
+
}
|
549 |
+
}
|
550 |
+
elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
|
551 |
+
{
|
552 |
+
?>
|
553 |
+
<img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" />
|
554 |
+
<?php
|
555 |
+
}
|
556 |
+
?>
|
557 |
+
<?php if( $content['advps_ed_link']=='enable'){?></a><?php }endif;?>
|
558 |
+
<div class="advps-excerpt-<?php echo $template?>" style="position:relative;float:left;max-width:<?php echo $content['advps_cont_width'] - ($container['advps_contpad2']+$container['advps_contpad4']);?>px;z-index:0; color:<?php echo $content['advps_excptFcolor'];?>; font-size:<?php echo $content['advps_excptFsize'].$content['advps_excptFSunit'];?>;line-height:<?php echo $content['advps_excptLheight'].$content['advps_excptLHunit'];?>;">
|
559 |
+
<?php if(in_array('title',$content['advps_content_set'])){?><<?php echo $content['advps_ttitle_tag'];?> class="advs-title" style="color:<?php echo $content['advps_titleFcolor'];?>;font-size:<?php echo $content['advps_titleFsize'].$content['advps_ttitleFSunit'];?>;line-height:<?php echo $content['advps_titleLheight'].$content['advps_ttitleLHunit'];?>;margin:5px 0px 10px 0px;"> <?php if( $content['advps_ed_link']=='enable'){?><a target="<?php echo $content['advps_link_target'];?>" href="<?php if($content['advps_link_type'] == 'permalink'){the_permalink();}else{echo get_post_meta($post->ID,'advps_custom_link',true);}?>" style="color:<?php echo $content['advps_titleFcolor'];?>;font-size:<?php echo $content['advps_titleFsize'].$content['advps_ttitleFSunit'];?>;line-height:<?php echo $content['advps_titleLheight'].$content['advps_ttitleLHunit'];?>;margin:5px 0px 10px 0px;"><?php }?>
|
560 |
<?php the_title();?>
|
561 |
+
<?php if( $content['advps_ed_link']=='enable'){?></a><?php }?></<?php echo $content['advps_ttitle_tag'];?>><?php }?>
|
562 |
+
<?php if(in_array('content',$content['advps_content_set'])){
|
563 |
the_content();
|
564 |
}
|
565 |
+
elseif(in_array('excerpt',$content['advps_content_set'])){
|
566 |
the_excerpt();
|
567 |
}
|
568 |
?>
|
572 |
|
573 |
<?php endif;$count++;endwhile; wp_reset_query(); ?>
|
574 |
</div>
|
575 |
+
<?php if($slider['advps_slider_type'] == 'standard' && $navigation['advps_pager_type']=='thumb' && $navigation['advps_exclude_pager']=='no'){?>
|
576 |
+
<div id="bx-pager">
|
577 |
+
<?php
|
578 |
+
$count = 0;
|
579 |
+
$the_query = new WP_Query($query_arg); while ($the_query->have_posts()) : $the_query->the_post();
|
580 |
+
|
581 |
+
if (has_post_thumbnail()){
|
582 |
+
$thmb_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail' );
|
583 |
+
?>
|
584 |
+
<a data-slide-index="<?php echo $count;?>" href=""><img src="<?php echo $thmb_image[0];?>" style="width:<?php echo $navigation['advps_pthumb_width'];?>%; height:auto;<?php if($count+1 < $the_query->post_count){echo 'margin-right:5px;';}?>" /></a>
|
585 |
+
<?php
|
586 |
+
}
|
587 |
+
elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
|
588 |
+
{
|
589 |
+
$thmb_image = $container['advps_default_image'];
|
590 |
+
?>
|
591 |
+
<a data-slide-index="<?php echo $count;?>" href=""><img src="<?php echo $thmb_image;?>" style="width:<?php echo $navigation['advps_pthumb_width'];?>%; height:auto;<?php if($count+1 < $the_query->post_count){echo "margin-right:5px;";}?>" /></a>
|
592 |
+
<?php
|
593 |
+
}
|
594 |
+
?>
|
595 |
+
<?php $count++;endwhile; wp_reset_query(); ?>
|
596 |
+
</div>
|
597 |
<?php }?>
|
598 |
+
</div><!-- end advps-slide-container -->
|
|
|
|
|
|
|
|
|
|
|
|
|
599 |
<?php
|
600 |
$advps_res = ob_get_contents();
|
601 |
ob_end_clean();
|
advps-admin.php
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
|
4 |
-
function advpsSanit($str){
|
5 |
-
return sanitize_text_field($str);
|
6 |
-
}
|
7 |
-
|
8 |
global $wpdb;
|
9 |
global $wp_version;
|
10 |
$stsMgs = '';
|
@@ -17,43 +13,22 @@
|
|
17 |
{
|
18 |
$currTab = 'one';
|
19 |
}
|
20 |
-
if(isset($_POST['
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
print 'Sorry, your nonce did not verify.';
|
27 |
-
exit;
|
28 |
-
}
|
29 |
-
|
30 |
-
$all_field = $_POST;
|
31 |
-
$optID = sanitize_text_field($_POST['opt_id']);
|
32 |
-
unset($all_field['opt_id']);
|
33 |
-
unset($all_field['advps_submit']);
|
34 |
-
unset($all_field['advps_wpnonce']);
|
35 |
-
unset($all_field['_wp_http_referer']);
|
36 |
-
|
37 |
-
$update_data = array();
|
38 |
-
foreach($all_field as $fkey => $fval){
|
39 |
-
if(is_array($fval)){
|
40 |
-
$update_data[$fkey] = array_map('advpsSanit',$fval);
|
41 |
-
}
|
42 |
-
else
|
43 |
-
{
|
44 |
-
$update_data[$fkey] = sanitize_text_field($fval);
|
45 |
-
}
|
46 |
-
}
|
47 |
|
48 |
-
|
49 |
-
//$q_upd = "update ".$wpdb->prefix."advps_optionset set opt_data = '".$update_data ."' where id =".$optID;
|
50 |
-
$q_upd = $wpdb->prepare("update ".$wpdb->prefix."advps_optionset set opt_data = '%s' where id = %d",$update_data,$optID);
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
}
|
55 |
}
|
56 |
-
|
|
|
|
|
|
|
57 |
|
58 |
if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
|
59 |
{
|
@@ -67,25 +42,29 @@
|
|
67 |
if( ! in_array( $template, $tem_list )){
|
68 |
exit;
|
69 |
}
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
-
$
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
}
|
84 |
}
|
85 |
-
$postdata = serialize($postdata);
|
86 |
-
|
87 |
-
$q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,opt_data) values(%s,%s)",$template,$postdata);
|
88 |
if($wpdb->query($q_add)){
|
|
|
89 |
$stsMgs = "Added successfully.";
|
90 |
}
|
91 |
}
|
@@ -132,9 +111,9 @@
|
|
132 |
}
|
133 |
}
|
134 |
|
135 |
-
$q1 = "select
|
136 |
-
$q2 = "select
|
137 |
-
$q3 = "select
|
138 |
$res1 = $wpdb->get_results($q1);
|
139 |
$res2 = $wpdb->get_results($q2);
|
140 |
$res3 = $wpdb->get_results($q3);
|
@@ -144,19 +123,101 @@
|
|
144 |
$catList = get_categories();
|
145 |
$customPostTypes = get_post_types(array('public' => true, '_builtin' => false));
|
146 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
<style>
|
|
|
|
|
|
|
|
|
148 |
fieldset {
|
149 |
-
border:1px solid #
|
150 |
-
|
151 |
-
|
152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
-
.inside
|
155 |
position:relative;
|
|
|
|
|
|
|
|
|
|
|
156 |
}
|
157 |
.wp-admin select[multiple], #wpcontent select[multiple] {
|
158 |
height: auto;
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
</style>
|
161 |
<div class="wrap">
|
162 |
<?php if($stsMgs != ''){?>
|
@@ -164,2332 +225,20 @@ fieldset {
|
|
164 |
<p><?php echo $stsMgs;?></p>
|
165 |
</div>
|
166 |
<?php }?>
|
167 |
-
<h2 class="nav-tab-wrapper"> <a href="?page=advps-slideshow&tab=one" class="nav-tab <?php if($currTab == 'one'){echo 'nav-tab-active';}?>">Template One</a> <a href="?page=advps-slideshow&tab=two" class="nav-tab <?php if($currTab == 'two'){echo 'nav-tab-active';}?>">Template Two</a> <a href="?page=advps-slideshow&tab=three" class="nav-tab <?php if($currTab == 'three'){echo 'nav-tab-active';}?>">Template Three</a><a href="?page=advps-slideshow&tab=thumb" class="nav-tab <?php if($currTab == 'thumb'){echo 'nav-tab-active';}?>">Thumbnails</a>
|
168 |
-
<?php /*?><a href="?page=advps-slideshow&tab=styling" class="nav-tab <?php if($currTab == 'styling'){echo 'nav-tab-active';}?>">Styling</a> <?php */?>
|
169 |
</h2>
|
170 |
-
<?php if($currTab == 'one'){
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
<div class="inside">
|
178 |
-
<div style="position:absolute; top:1.2%; right:4%; font-weight:bold; border:1px solid #393;padding:2px 15px;">ID = <?php echo $dset->id;?></div>
|
179 |
-
<form method="post">
|
180 |
-
<fieldset>
|
181 |
-
<legend style="margin-left:10px;"><strong>Query</strong></legend>
|
182 |
-
<table class="form-table">
|
183 |
-
<tr>
|
184 |
-
<th scope="row">Post Type</th>
|
185 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
186 |
-
<option value="post" <?php if($dataSet['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
187 |
-
<option value="page" <?php if($dataSet['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
188 |
-
<?php
|
189 |
-
foreach ($customPostTypes as $post_type ) {
|
190 |
-
?>
|
191 |
-
<option value="<?php echo $post_type;?>" <?php if($dataSet['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
192 |
-
<?php
|
193 |
-
}
|
194 |
-
?>
|
195 |
-
</select></td>
|
196 |
-
</tr>
|
197 |
-
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
198 |
-
<?php if($dataSet['advps_post_types'] != "page"){?>
|
199 |
-
<th scope="row">Category</th>
|
200 |
-
<td><!--<input type="text" name="advps_category" value="<?php //echo get_option('advps_category');?>" style="width:100px;" />-->
|
201 |
-
|
202 |
-
<select name="advps_category[]" multiple="multiple">
|
203 |
-
<?php
|
204 |
-
$catList = get_categories();
|
205 |
-
foreach($catList as $scat){
|
206 |
-
?>
|
207 |
-
<option value="<?php echo $scat->term_id;?>" <?php if(isset($dataSet['advps_category']) && in_array($scat->term_id,$dataSet['advps_category'])){echo 'selected="selected"';}?>><?php echo $scat->name;?></option>
|
208 |
-
<?php }?>
|
209 |
-
</select>
|
210 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
211 |
-
<?php }?>
|
212 |
-
</tr>
|
213 |
-
<tr>
|
214 |
-
<th scope="row">Max. Number of post</th>
|
215 |
-
<td><input type="text" name="advps_maxpost" value="<?php echo $dataSet['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
216 |
-
</tr>
|
217 |
-
<tr>
|
218 |
-
<th scope="row">Exclude</th>
|
219 |
-
<td><input type="text" name="advps_exclude" value="<?php echo $dataSet['advps_exclude'];?>" style="width:100px;" />
|
220 |
-
<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>
|
221 |
-
</tr>
|
222 |
-
<tr>
|
223 |
-
<th scope="row">Order by</th>
|
224 |
-
<td><select name="advps_order_by">
|
225 |
-
<option value="date" <?php if($dataSet['advps_order_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
226 |
-
<option value="ID" <?php if($dataSet['advps_order_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
227 |
-
<option value="author" <?php if($dataSet['advps_order_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
228 |
-
<option value="title" <?php if($dataSet['advps_order_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
229 |
-
<option value="name" <?php if($dataSet['advps_order_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
230 |
-
<option value="rand" <?php if($dataSet['advps_order_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
231 |
-
<option value="menu_order" <?php if($dataSet['advps_order_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
232 |
-
<option value="comment_count" <?php if($dataSet['advps_order_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
233 |
-
</select></td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<th scope="row">Order</th>
|
237 |
-
<td><select name="advps_order">
|
238 |
-
<option value="ASC" <?php if($dataSet['advps_order'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
239 |
-
<option value="DESC" <?php if($dataSet['advps_order'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
240 |
-
</select></td>
|
241 |
-
</tr>
|
242 |
-
</table>
|
243 |
-
</fieldset>
|
244 |
-
<fieldset>
|
245 |
-
<legend style="margin-left:10px;"><strong>Effects</strong></legend>
|
246 |
-
<table class="form-table">
|
247 |
-
<tr>
|
248 |
-
<th scope="row">Effect</th>
|
249 |
-
<td><select name="advps_effects">
|
250 |
-
<option value="blindX" <?php if($dataSet['advps_effects'] == 'blindX'){echo 'selected="selected"';}?>>blindX</option>
|
251 |
-
<option value="blindY" <?php if($dataSet['advps_effects'] == 'blindY'){echo 'selected="selected"';}?>>blindY</option>
|
252 |
-
<option value="blindZ" <?php if($dataSet['advps_effects'] == 'blindZ'){echo 'selected="selected"';}?>>blindZ</option>
|
253 |
-
<option value="cover" <?php if($dataSet['advps_effects'] == 'cover'){echo 'selected="selected"';}?>>cover</option>
|
254 |
-
<option value="curtainX" <?php if($dataSet['advps_effects'] == 'curtainX'){echo 'selected="selected"';}?>>curtainX</option>
|
255 |
-
<option value="curtainY" <?php if($dataSet['advps_effects'] == 'curtainY'){echo 'selected="selected"';}?>>curtainY</option>
|
256 |
-
<option value="fade" <?php if($dataSet['advps_effects'] == 'fade'){echo 'selected="selected"';}?>>fade</option>
|
257 |
-
<option value="fadeZoom" <?php if($dataSet['advps_effects'] == 'fadeZoom'){echo 'selected="selected"';}?>>fadeZoom</option>
|
258 |
-
<option value="growX" <?php if($dataSet['advps_effects'] == 'growX'){echo 'selected="selected"';}?>>growX</option>
|
259 |
-
<option value="growY" <?php if($dataSet['advps_effects'] == 'growY'){echo 'selected="selected"';}?>>growY</option>
|
260 |
-
<option value="none" <?php if($dataSet['advps_effects'] == 'none'){echo 'selected="selected"';}?>>none</option>
|
261 |
-
<option value="scrollUp" <?php if($dataSet['advps_effects'] == 'scrollUp'){echo 'selected="selected"';}?>>scrollUp</option>
|
262 |
-
<option value="scrollDown" <?php if($dataSet['advps_effects'] == 'scrollDown'){echo 'selected="selected"';}?>>scrollDown</option>
|
263 |
-
<option value="scrollLeft" <?php if($dataSet['advps_effects'] == 'scrollLeft'){echo 'selected="selected"';}?>>scrollLeft</option>
|
264 |
-
<option value="scrollRight" <?php if($dataSet['advps_effects'] == 'scrollRight'){echo 'selected="selected"';}?>>scrollRight</option>
|
265 |
-
<option value="scrollHorz" <?php if($dataSet['advps_effects'] == 'scrollHorz'){echo 'selected="selected"';}?>>scrollHorz</option>
|
266 |
-
<option value="scrollVert" <?php if($dataSet['advps_effects'] == 'scrollVert'){echo 'selected="selected"';}?>>scrollVert</option>
|
267 |
-
<option value="shuffle" <?php if($dataSet['advps_effects'] == 'shuffle'){echo 'selected="selected"';}?>>shuffle</option>
|
268 |
-
<option value="slideX" <?php if($dataSet['advps_effects'] == 'slideX'){echo 'selected="selected"';}?>>slideX</option>
|
269 |
-
<option value="slideY" <?php if($dataSet['advps_effects'] == 'slideY'){echo 'selected="selected"';}?>>slideY</option>
|
270 |
-
<option value="toss" <?php if($dataSet['advps_effects'] == 'toss'){echo 'selected="selected"';}?>>toss</option>
|
271 |
-
<option value="turnUp" <?php if($dataSet['advps_effects'] == 'turnUp'){echo 'selected="selected"';}?>>turnUp</option>
|
272 |
-
<option value="turnDown" <?php if($dataSet['advps_effects'] == 'turnDown'){echo 'selected="selected"';}?>>turnDown</option>
|
273 |
-
<option value="turnLeft" <?php if($dataSet['advps_effects'] == 'turnLeft'){echo 'selected="selected"';}?>>turnLeft</option>
|
274 |
-
<option value="turnRight" <?php if($dataSet['advps_effects'] == 'turnRight'){echo 'selected="selected"';}?>>turnRight</option>
|
275 |
-
<option value="uncover" <?php if($dataSet['advps_effects'] == 'uncover'){echo 'selected="selected"';}?>>uncover</option>
|
276 |
-
<option value="wipe" <?php if($dataSet['advps_effects'] == 'wipe'){echo 'selected="selected"';}?>>wipe</option>
|
277 |
-
<option value="zoom" <?php if($dataSet['advps_effects'] == 'zoom'){echo 'selected="selected"';}?>>zoom</option>
|
278 |
-
</select></td>
|
279 |
-
</tr>
|
280 |
-
<tr>
|
281 |
-
<th scope="row">Timeout</th>
|
282 |
-
<td><input type="text" name="advps_timeout" value="<?php echo $dataSet['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
283 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ 0 to disable auto advance.]</span></td>
|
284 |
-
</tr>
|
285 |
-
<tr>
|
286 |
-
<th scope="row">Easing</th>
|
287 |
-
<td><select name="advps_easing">
|
288 |
-
<option value="linear" <?php if($dataSet['advps_easing'] == 'linear'){echo 'selected="selected"';}?>>linear</option>
|
289 |
-
<option value="swing" <?php if($dataSet['advps_easing'] == 'swing'){echo 'selected="selected"';}?>>swing</option>
|
290 |
-
<option value="jswing" <?php if($dataSet['advps_easing'] == 'jswing'){echo 'selected="selected"';}?>>jswing</option>
|
291 |
-
<option value="easeInQuad" <?php if($dataSet['advps_easing'] == 'easeInQuad'){echo 'selected="selected"';}?>>easeInQuad</option>
|
292 |
-
<option value="easeOutQuad" <?php if($dataSet['advps_easing'] == 'easeOutQuad'){echo 'selected="selected"';}?>>easeOutQuad</option>
|
293 |
-
<option value="easeInOutQuad" <?php if($dataSet['advps_easing'] == 'easeInOutQuad'){echo 'selected="selected"';}?>>easeInOutQuad</option>
|
294 |
-
<option value="easeInCubic" <?php if($dataSet['advps_easing'] == 'easeInCubic'){echo 'selected="selected"';}?>>easeInCubic</option>
|
295 |
-
<option value="easeOutCubic" <?php if($dataSet['advps_easing'] == 'easeOutCubic'){echo 'selected="selected"';}?>>easeOutCubic</option>
|
296 |
-
<option value="easeInOutCubic" <?php if($dataSet['advps_easing'] == 'easeInOutCubic'){echo 'selected="selected"';}?>>easeInOutCubic</option>
|
297 |
-
<option value="easeInQuart" <?php if($dataSet['advps_easing'] == 'easeInQuart'){echo 'selected="selected"';}?>>easeInQuart</option>
|
298 |
-
<option value="easeOutQuart" <?php if($dataSet['advps_easing'] == 'easeOutQuart'){echo 'selected="selected"';}?>>easeOutQuart</option>
|
299 |
-
<option value="easeInOutQuart" <?php if($dataSet['advps_easing'] == 'easeInOutQuart'){echo 'selected="selected"';}?>>easeInOutQuart</option>
|
300 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeInQuint'){echo 'selected="selected"';}?>>easeInQuint</option>
|
301 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeOutQuint'){echo 'selected="selected"';}?>>easeOutQuint</option>
|
302 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeInOutQuint'){echo 'selected="selected"';}?>>easeInOutQuint</option>
|
303 |
-
<option value="easeInSine" <?php if($dataSet['advps_easing'] == 'easeInSine'){echo 'selected="selected"';}?>>easeInSine</option>
|
304 |
-
<option value="easeOutSine" <?php if($dataSet['advps_easing'] == 'easeOutSine'){echo 'selected="selected"';}?>>easeOutSine</option>
|
305 |
-
<option value="easeInOutSine" <?php if($dataSet['advps_easing'] == 'easeInOutSine'){echo 'selected="selected"';}?>>easeInOutSine</option>
|
306 |
-
<option value="easeInExpo" <?php if($dataSet['advps_easing'] == 'easeInExpo'){echo 'selected="selected"';}?>>easeInExpo</option>
|
307 |
-
<option value="easeOutExpo" <?php if($dataSet['advps_easing'] == 'easeOutExpo'){echo 'selected="selected"';}?>>easeOutExpo</option>
|
308 |
-
<option value="easeInOutExpo" <?php if($dataSet['advps_easing'] == 'easeInOutExpo'){echo 'selected="selected"';}?>>easeInOutExpo</option>
|
309 |
-
<option value="easeInCirc" <?php if($dataSet['advps_easing'] == 'easeInCirc'){echo 'selected="selected"';}?>>easeInCirc</option>
|
310 |
-
<option value="easeOutCirc" <?php if($dataSet['advps_easing'] == 'easeOutCirc'){echo 'selected="selected"';}?>>easeOutCirc</option>
|
311 |
-
<option value="easeInOutCirc" <?php if($dataSet['advps_easing'] == 'easeInOutCirc'){echo 'selected="selected"';}?>>easeInOutCirc</option>
|
312 |
-
<option value="easeInBounce" <?php if($dataSet['advps_easing'] == 'easeInBounce'){echo 'selected="selected"';}?>>easeInBounce</option>
|
313 |
-
<option value="easeOutBounce" <?php if($dataSet['advps_easing'] == 'easeOutBounce'){echo 'selected="selected"';}?>>easeOutBounce</option>
|
314 |
-
<option value="easeInOutBounce" <?php if($dataSet['advps_easing'] == 'easeInOutBounce'){echo 'selected="selected"';}?>>easeInOutBounce</option>
|
315 |
-
<option value="easeInElastic" <?php if($dataSet['advps_easing'] == 'easeInElastic'){echo 'selected="selected"';}?>>easeInElastic</option>
|
316 |
-
<option value="easeOutElastic" <?php if($dataSet['advps_easing'] == 'easeOutElastic'){echo 'selected="selected"';}?>>easeOutElastic</option>
|
317 |
-
<option value="easeInOutElastic" <?php if($dataSet['advps_easing'] == 'easeInOutElastic'){echo 'selected="selected"';}?>>easeInOutElastic</option>
|
318 |
-
<option value="easeInBack" <?php if($dataSet['advps_easing'] == 'easeInBack'){echo 'selected="selected"';}?>>easeInBack</option>
|
319 |
-
<option value="easeOutBack" <?php if($dataSet['advps_easing'] == 'easeOutBack'){echo 'selected="selected"';}?>>easeOutBack</option>
|
320 |
-
<option value="easeInOutBack" <?php if($dataSet['advps_easing'] == 'easeInOutBack'){echo 'selected="selected"';}?>>easeInOutBack</option>
|
321 |
-
</select></td>
|
322 |
-
</tr>
|
323 |
-
<tr>
|
324 |
-
<th scope="row">Speed</th>
|
325 |
-
<td><input type="text" name="advps_speed" value="<?php echo $dataSet['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
326 |
-
</tr>
|
327 |
-
<tr>
|
328 |
-
<th scope="row">Enable pause on hover</th>
|
329 |
-
<td><select name="advps_ps_hover">
|
330 |
-
<option value="yes" <?php if($dataSet['advps_ps_hover'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
331 |
-
<option value="no" <?php if($dataSet['advps_ps_hover'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
332 |
-
</select></td>
|
333 |
-
</tr>
|
334 |
-
</table>
|
335 |
-
</fieldset>
|
336 |
-
<fieldset>
|
337 |
-
<legend style="margin-left:10px;"><strong>Container & Thumbnail</strong></legend>
|
338 |
-
<table class="form-table">
|
339 |
-
<tr>
|
340 |
-
<th scope="row">Select Thumbnail</th>
|
341 |
-
<td><select name="advps_thumbnail">
|
342 |
-
<option value="thumbnail" <?php if($dataSet['advps_thumbnail'] == 'thumbnail'){echo 'selected="selected"';}?>>thumbnail</option>
|
343 |
-
<option value="medium" <?php if($dataSet['advps_thumbnail'] == 'medium'){echo 'selected="selected"';}?>>medium</option>
|
344 |
-
<option value="large" <?php if($dataSet['advps_thumbnail'] == 'large'){echo 'selected="selected"';}?>>large</option>
|
345 |
-
<option value="full" <?php if($dataSet['advps_thumbnail'] == 'full'){echo 'selected="selected"';}?>>full</option>
|
346 |
-
<?php
|
347 |
-
global $_wp_additional_image_sizes;
|
348 |
-
unset($_wp_additional_image_sizes['post-thumbnail']);
|
349 |
-
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
350 |
-
?>
|
351 |
-
<option value="<?php echo $tkey;?>" <?php if($dataSet['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
352 |
-
<?php
|
353 |
-
}
|
354 |
-
?>
|
355 |
-
</select></td>
|
356 |
-
</tr>
|
357 |
-
<tr>
|
358 |
-
<th scope="row">Default image url</th>
|
359 |
-
<td><input type="text" name="advps_default_image" value="<?php echo $dataSet['advps_default_image'];?>" style="width:250px;" />
|
360 |
-
<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>
|
361 |
-
</tr>
|
362 |
-
<tr>
|
363 |
-
<th scope="row">Slide Container</th>
|
364 |
-
<td>Width
|
365 |
-
<input type="text" name="advps_sld_width" value="<?php echo $dataSet['advps_sld_width'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
366 |
-
px Height
|
367 |
-
<input type="text" name="advps_sld_height" value="<?php echo $dataSet['advps_sld_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
368 |
-
px</td>
|
369 |
-
</tr>
|
370 |
-
<tr>
|
371 |
-
<th scope="row">Padding</th>
|
372 |
-
<td><input type="text" name="advps_contpad1" value="<?php echo $dataSet['advps_contpad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
373 |
-
px
|
374 |
-
<input type="text" name="advps_contpad2" value="<?php echo $dataSet['advps_contpad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
375 |
-
px
|
376 |
-
<input type="text" name="advps_contpad3" value="<?php echo $dataSet['advps_contpad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
377 |
-
px
|
378 |
-
<input type="text" name="advps_contpad4" value="<?php echo $dataSet['advps_contpad4'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
379 |
-
px </td>
|
380 |
-
</tr>
|
381 |
-
<tr>
|
382 |
-
<th scope="row">Background Color</th>
|
383 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $dataSet['advps_bgcolor'];?>" style="width:100px;" />
|
384 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
385 |
-
</tr>
|
386 |
-
<tr>
|
387 |
-
<th scope="row">Border</th>
|
388 |
-
<td><span style="vertical-align:top">
|
389 |
-
<input type="text" name="advps_border_size" value="<?php echo $dataSet['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
390 |
-
px
|
391 |
-
<select name="advps_border_type">
|
392 |
-
<option value="dashed" <?php if($dataSet['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
393 |
-
<option value="dotted" <?php if($dataSet['advps_border_type'] == 'dotted'){echo 'selected="selected"';}?>>dotted</option>
|
394 |
-
<option value="double" <?php if($dataSet['advps_border_type'] == 'double'){echo 'selected="selected"';}?>>double</option>
|
395 |
-
<option value="solid" <?php if($dataSet['advps_border_type'] == 'solid'){echo 'selected="selected"';}?>>solid</option>
|
396 |
-
<option value="inset" <?php if($dataSet['advps_border_type'] == 'inset'){echo 'selected="selected"';}?>>inset</option>
|
397 |
-
<option value="outset" <?php if($dataSet['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
398 |
-
</select>
|
399 |
-
</span>
|
400 |
-
<input class="advps-color-picker" type="text" name="advps_border_color" id="advpscolor<?php echo ++$flg?>" value="<?php echo $dataSet['advps_border_color'];?>" style="width:100px;" />
|
401 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
402 |
-
</tr>
|
403 |
-
<tr>
|
404 |
-
<th scope="row">Remove Border</th>
|
405 |
-
<td><select name="advps_remove_border">
|
406 |
-
<option value="yes" <?php if($dataSet['advps_remove_border'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
407 |
-
<option value="no" <?php if($dataSet['advps_remove_border'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
408 |
-
</select></td>
|
409 |
-
</tr>
|
410 |
-
<tr>
|
411 |
-
<th scope="row">Box Shadow</th>
|
412 |
-
<td><span style="vertical-align:top">
|
413 |
-
<input type="text" name="advps_bxshad1" value="<?php echo $dataSet['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
414 |
-
px
|
415 |
-
<input type="text" name="advps_bxshad2" value="<?php echo $dataSet['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
416 |
-
px
|
417 |
-
<input type="text" name="advps_bxshad3" value="<?php echo $dataSet['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
418 |
-
px </span>
|
419 |
-
<input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $dataSet['advps_bxshadcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />
|
420 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
421 |
-
</tr>
|
422 |
-
<tr>
|
423 |
-
<th scope="row">Remove Shadow</th>
|
424 |
-
<td><select name="advps_remove_shd">
|
425 |
-
<option value="yes" <?php if($dataSet['advps_remove_shd'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
426 |
-
<option value="no" <?php if($dataSet['advps_remove_shd'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
427 |
-
</select></td>
|
428 |
-
</tr>
|
429 |
-
</table>
|
430 |
-
</fieldset>
|
431 |
-
<fieldset>
|
432 |
-
<legend style="margin-left:10px;"><strong>Title & Excerpt</strong></legend>
|
433 |
-
<table class="form-table">
|
434 |
-
<tr>
|
435 |
-
<th scope="row">Overlay size</th>
|
436 |
-
<td>Width
|
437 |
-
<input type="text" name="advps_overlay_width" value="<?php echo $dataSet['advps_overlay_width'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
438 |
-
% Height
|
439 |
-
<input type="text" name="advps_overlay_height" value="<?php echo $dataSet['advps_overlay_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
440 |
-
%</td>
|
441 |
-
</tr>
|
442 |
-
<tr>
|
443 |
-
<th scope="row">Overlay color</th>
|
444 |
-
<td><input type="text" name="advps_overlay_color" value="<?php echo $dataSet['advps_overlay_color'];?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" />
|
445 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
446 |
-
</tr>
|
447 |
-
<tr>
|
448 |
-
<th scope="row">Overlay opacity</th>
|
449 |
-
<td><input type="text" name="advps_overlay_opacity" value="<?php echo $dataSet['advps_overlay_opacity'];?>" style="width:50px;" />
|
450 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
451 |
-
</tr>
|
452 |
-
<tr>
|
453 |
-
<th scope="row">Text opacity</th>
|
454 |
-
<td><input type="text" name="advps_text_opacity" value="<?php echo $dataSet['advps_text_opacity'];?>" style="width:50px;" />
|
455 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
456 |
-
</tr>
|
457 |
-
<tr>
|
458 |
-
<th scope="row">Title tag</th>
|
459 |
-
<td><select name="advps_ttitle_tag">
|
460 |
-
<option value="h1" <?php if($dataSet['advps_ttitle_tag'] == 'h1'){echo 'selected="selected"';}?>>h1</option>
|
461 |
-
<option value="h2" <?php if($dataSet['advps_ttitle_tag'] == 'h2'){echo 'selected="selected"';}?>>h2</option>
|
462 |
-
<option value="h3" <?php if($dataSet['advps_ttitle_tag'] == 'h3'){echo 'selected="selected"';}?>>h3</option>
|
463 |
-
<option value="div" <?php if($dataSet['advps_ttitle_tag'] == 'div'){echo 'selected="selected"';}?>>div</option>
|
464 |
-
</select></td>
|
465 |
-
</tr>
|
466 |
-
<tr>
|
467 |
-
<th scope="row">Title font Color</th>
|
468 |
-
<td><input type="text" name="advps_titleFcolor" value="<?php echo $dataSet['advps_titleFcolor'];?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" />
|
469 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
470 |
-
</tr>
|
471 |
-
<tr>
|
472 |
-
<th scope="row">Title hover Color</th>
|
473 |
-
<td><input type="text" name="advps_titleHcolor" value="<?php echo $dataSet['advps_titleHcolor'];?>" style="width:100px;" class="advps-color-picker" id="advpscolor<?php echo ++$flg?>" />
|
474 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
475 |
-
</tr>
|
476 |
-
<tr>
|
477 |
-
<th scope="row">Title font size</th>
|
478 |
-
<td><input type="text" name="advps_titleFsize" value="<?php echo $dataSet['advps_titleFsize'];?>" style="width:60px;" />
|
479 |
-
px</td>
|
480 |
-
</tr>
|
481 |
-
<tr>
|
482 |
-
<th scope="row">Excerpt font color</th>
|
483 |
-
<td><input class="advps-color-picker" type="text" name="advps_excptFcolor" value="<?php echo $dataSet['advps_excptFcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />
|
484 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
485 |
-
</tr>
|
486 |
-
<tr>
|
487 |
-
<th scope="row">Excerpt font size</th>
|
488 |
-
<td><input type="text" name="advps_excptFsize" value="<?php echo $dataSet['advps_excptFsize'];?>" style="width:60px;" />
|
489 |
-
px</td>
|
490 |
-
</tr>
|
491 |
-
<tr>
|
492 |
-
<th scope="row">Excerpt length</th>
|
493 |
-
<td><input type="text" name="advps_excerptlen" value="<?php echo $dataSet['advps_excerptlen'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
494 |
-
words</td>
|
495 |
-
</tr>
|
496 |
-
<tr>
|
497 |
-
<th scope="row">Excerpt visibility</th>
|
498 |
-
<td><select name="advps_excpt_visibility">
|
499 |
-
<option value="show on hover" <?php if($dataSet['advps_excpt_visibility'] == 'show on hover'){echo 'selected="selected"';}?>>Show on hover</option>
|
500 |
-
<option value="always show" <?php if($dataSet['advps_excpt_visibility'] == 'always show'){echo 'selected="selected"';}?>>Always show</option>
|
501 |
-
</select></td>
|
502 |
-
</tr>
|
503 |
-
<tr>
|
504 |
-
<th scope="row">Excerpt Position</th>
|
505 |
-
<td><select name="advps_excpt_position">
|
506 |
-
<option value="left" <?php if($dataSet['advps_excpt_position'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
507 |
-
<option value="right" <?php if($dataSet['advps_excpt_position'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
508 |
-
<option value="bottom" <?php if($dataSet['advps_excpt_position'] == 'bottom'){echo 'selected="selected"';}?>>Bottom</option>
|
509 |
-
</select></td>
|
510 |
-
</tr>
|
511 |
-
<tr>
|
512 |
-
<th scope="row">Enable/Disable link</th>
|
513 |
-
<td><select name="advps_ed_link">
|
514 |
-
<option value="enable" <?php if($dataSet['advps_ed_link'] == 'enable'){echo 'selected="selected"';}?>>Enable</option>
|
515 |
-
<option value="disable" <?php if($dataSet['advps_ed_link'] == 'disable'){echo 'selected="selected"';}?>>Disable</option>
|
516 |
-
</select></td>
|
517 |
-
</tr>
|
518 |
-
<tr>
|
519 |
-
<th scope="row">link type</th>
|
520 |
-
<td><select name="advps_link_type">
|
521 |
-
<option value="permalink" <?php if($dataSet['advps_link_type'] == 'permalink'){echo 'selected="selected"';}?>>Permalink</option>
|
522 |
-
<option value="custom" <?php if($dataSet['advps_link_type'] == 'custom'){echo 'selected="selected"';}?>>Custom</option>
|
523 |
-
</select>
|
524 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
525 |
-
</tr>
|
526 |
-
<tr>
|
527 |
-
<th scope="row">link target</th>
|
528 |
-
<td><select name="advps_link_target">
|
529 |
-
<option value="_self" <?php if($dataSet['advps_link_target'] == '_self'){echo 'selected="selected"';}?>>_self</option>
|
530 |
-
<option value="_blank" <?php if($dataSet['advps_link_target'] == '_blank'){echo 'selected="selected"';}?>>_blank</option>
|
531 |
-
<option value="_new" <?php if($dataSet['advps_link_target'] == '_new'){echo 'selected="selected"';}?>>_new</option>
|
532 |
-
<option value="_top" <?php if($dataSet['advps_link_target'] == '_top'){echo 'selected="selected"';}?>>_top</option>
|
533 |
-
<option value="_parent" <?php if($dataSet['advps_link_target'] == '_parent'){echo 'selected="selected"';}?>>_parent</option>
|
534 |
-
</select></td>
|
535 |
-
</tr>
|
536 |
-
</table>
|
537 |
-
</fieldset>
|
538 |
-
<fieldset>
|
539 |
-
<legend style="margin-left:10px;"><strong>Navigation</strong></legend>
|
540 |
-
<table class="form-table">
|
541 |
-
<tr>
|
542 |
-
<th scope="row">Exclude pager</th>
|
543 |
-
<td><select name="advps_exclude_pager">
|
544 |
-
<option value="yes" <?php if($dataSet['advps_exclude_pager'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
545 |
-
<option value="no" <?php if($dataSet['advps_exclude_pager'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
546 |
-
</select></td>
|
547 |
-
</tr>
|
548 |
-
<tr>
|
549 |
-
<th scope="row">Pager type</th>
|
550 |
-
<td><span style="padding-right:5px;">Number</span>
|
551 |
-
<input type="radio" name="advps_pager_type" value="number" <?php if($dataSet['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
552 |
-
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
553 |
-
<input type="radio" name="advps_pager_type" value="bullet" <?php if($dataSet['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>></td>
|
554 |
-
</tr>
|
555 |
-
<tr>
|
556 |
-
<th scope="row">Pager position</th>
|
557 |
-
<td>Right
|
558 |
-
<input type="text" name="advps_pager_right" value="<?php echo $dataSet['advps_pager_right'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
|
559 |
-
px Bottom
|
560 |
-
<input type="text" name="advps_pager_bottom" value="<?php echo $dataSet['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
|
561 |
-
px</td>
|
562 |
-
</tr>
|
563 |
-
<tr>
|
564 |
-
<th scope="row">Exclude Next/Previous</th>
|
565 |
-
<td><select name="advps_exclude_nxtprev">
|
566 |
-
<option value="yes" <?php if($dataSet['advps_exclude_nxtprev'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
567 |
-
<option value="no" <?php if($dataSet['advps_exclude_nxtprev'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
568 |
-
</select></td>
|
569 |
-
</tr>
|
570 |
-
<tr>
|
571 |
-
<th scope="row">Exclude Play/Pause</th>
|
572 |
-
<td><select name="advps_exclude_playpause">
|
573 |
-
<option value="yes" <?php if($dataSet['advps_exclude_playpause'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
574 |
-
<option value="no" <?php if($dataSet['advps_exclude_playpause'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
575 |
-
</select></td>
|
576 |
-
</tr>
|
577 |
-
</table>
|
578 |
-
</fieldset>
|
579 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
580 |
-
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
581 |
-
<p>
|
582 |
-
<input type="submit" name="advps_submit" value="Save changes" class="button-primary" />
|
583 |
-
</p>
|
584 |
-
</form>
|
585 |
-
</div>
|
586 |
-
</div>
|
587 |
-
</div>
|
588 |
-
</div>
|
589 |
-
<?php }?>
|
590 |
-
<?php if(isset($_POST['advps_add'])){?>
|
591 |
-
<div class="metabox-holder" style="margin-top:20px;">
|
592 |
-
<div class="postbox-container" style="width:65%">
|
593 |
-
<div class="postbox">
|
594 |
-
<div class="handlediv" title=""> <br>
|
595 |
-
</div>
|
596 |
-
<h3 style="cursor:pointer; text-align:center" class="advps-expand"> <span>Add new option set</span> </h3>
|
597 |
-
<div class="inside">
|
598 |
-
<form method="post">
|
599 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px; margin-bottom:10px;">
|
600 |
-
<legend style="margin-left:10px;"><strong>Query</strong></legend>
|
601 |
-
<table class="form-table">
|
602 |
-
<tr>
|
603 |
-
<th scope="row">Post Type</th>
|
604 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,'add')">
|
605 |
-
<option value="post" selected="selected">post</option>
|
606 |
-
<option value="page">page</option>
|
607 |
-
<?php
|
608 |
-
foreach ($customPostTypes as $post_type ) {
|
609 |
-
?>
|
610 |
-
<option value="<?php echo $post_type;?>"><?php echo $post_type;?></option>
|
611 |
-
<?php
|
612 |
-
}
|
613 |
-
?>
|
614 |
-
</select></td>
|
615 |
-
</tr>
|
616 |
-
<tr id="advps-cat-fieldadd">
|
617 |
-
<th scope="row">Category</th>
|
618 |
-
<td><select name="advps_category[]" multiple="multiple">
|
619 |
-
<?php
|
620 |
-
$catList = get_categories();
|
621 |
-
foreach($catList as $scat){
|
622 |
-
?>
|
623 |
-
<option value="<?php echo $scat->term_id;?>"><?php echo $scat->name;?></option>
|
624 |
-
<?php }?>
|
625 |
-
</select>
|
626 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
627 |
-
</tr>
|
628 |
-
<tr>
|
629 |
-
<th scope="row">Max. Number of post</th>
|
630 |
-
<td><input type="text" name="advps_maxpost" value="10" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
631 |
-
</tr>
|
632 |
-
<tr>
|
633 |
-
<th scope="row">Exclude</th>
|
634 |
-
<td><input type="text" name="advps_exclude" value="" style="width:100px;" />
|
635 |
-
<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>
|
636 |
-
</tr>
|
637 |
-
<tr>
|
638 |
-
<th scope="row">Order by</th>
|
639 |
-
<td><select name="advps_order_by">
|
640 |
-
<option value="date" selected="selected">Date</option>
|
641 |
-
<option value="ID">ID</option>
|
642 |
-
<option value="author">Author</option>
|
643 |
-
<option value="title">Title</option>
|
644 |
-
<option value="name">Name</option>
|
645 |
-
<option value="rand">Random</option>
|
646 |
-
<option value="menu_order">Menu order</option>
|
647 |
-
<option value="comment_count">Comment count</option>
|
648 |
-
</select></td>
|
649 |
-
</tr>
|
650 |
-
<tr>
|
651 |
-
<th scope="row">Order</th>
|
652 |
-
<td><select name="advps_order">
|
653 |
-
<option value="ASC">Ascending</option>
|
654 |
-
<option value="DESC" selected="selected">Descending</option>
|
655 |
-
</select></td>
|
656 |
-
</tr>
|
657 |
-
</table>
|
658 |
-
</fieldset>
|
659 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
660 |
-
<legend style="margin-left:10px;"><strong>Effects</strong></legend>
|
661 |
-
<table class="form-table">
|
662 |
-
<tr>
|
663 |
-
<th scope="row">Effect</th>
|
664 |
-
<td><select name="advps_effects">
|
665 |
-
<option value="blindX">blindX</option>
|
666 |
-
<option value="blindY">blindY</option>
|
667 |
-
<option value="blindZ">blindZ</option>
|
668 |
-
<option value="cover">cover</option>
|
669 |
-
<option value="curtainX">curtainX</option>
|
670 |
-
<option value="curtainY">curtainY</option>
|
671 |
-
<option value="fade">fade</option>
|
672 |
-
<option value="fadeZoom">fadeZoom</option>
|
673 |
-
<option value="growX">growX</option>
|
674 |
-
<option value="growY">growY</option>
|
675 |
-
<option value="none">none</option>
|
676 |
-
<option value="scrollUp">scrollUp</option>
|
677 |
-
<option value="scrollDown">scrollDown</option>
|
678 |
-
<option value="scrollLeft">scrollLeft</option>
|
679 |
-
<option value="scrollRight">scrollRight</option>
|
680 |
-
<option value="scrollHorz">scrollHorz</option>
|
681 |
-
<option value="scrollVert">scrollVert</option>
|
682 |
-
<option value="shuffle">shuffle</option>
|
683 |
-
<option value="slideX">slideX</option>
|
684 |
-
<option value="slideY">slideY</option>
|
685 |
-
<option value="toss">toss</option>
|
686 |
-
<option value="turnUp">turnUp</option>
|
687 |
-
<option value="turnDown">turnDown</option>
|
688 |
-
<option value="turnLeft">turnLeft</option>
|
689 |
-
<option value="turnRight">turnRight</option>
|
690 |
-
<option value="uncover" selected="selected">uncover</option>
|
691 |
-
<option value="wipe">wipe</option>
|
692 |
-
<option value="zoom">zoom</option>
|
693 |
-
</select></td>
|
694 |
-
</tr>
|
695 |
-
<tr>
|
696 |
-
<th scope="row">Timeout</th>
|
697 |
-
<td><input type="text" name="advps_timeout" value="2000" style="width:60px;" onkeypress="return onlyNum(event);" />
|
698 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ 0 to disable auto advance.]</span></td>
|
699 |
-
</tr>
|
700 |
-
<tr>
|
701 |
-
<th scope="row">Easing</th>
|
702 |
-
<td><select name="advps_easing">
|
703 |
-
<option value="linear" selected="selected">linear</option>
|
704 |
-
<option value="swing">swing</option>
|
705 |
-
<option value="jswing">jswing</option>
|
706 |
-
<option value="easeInQuad">easeInQuad</option>
|
707 |
-
<option value="easeOutQuad">easeOutQuad</option>
|
708 |
-
<option value="easeInOutQuad">easeInOutQuad</option>
|
709 |
-
<option value="easeInCubic">easeInCubic</option>
|
710 |
-
<option value="easeOutCubic">easeOutCubic</option>
|
711 |
-
<option value="easeInOutCubic">easeInOutCubic</option>
|
712 |
-
<option value="easeInQuart">easeInQuart</option>
|
713 |
-
<option value="easeOutQuart">easeOutQuart</option>
|
714 |
-
<option value="easeInOutQuart">easeInOutQuart</option>
|
715 |
-
<option value="easeInQuint">easeInQuint</option>
|
716 |
-
<option value="easeInQuint">easeOutQuint</option>
|
717 |
-
<option value="easeInQuint">easeInOutQuint</option>
|
718 |
-
<option value="easeInSine">easeInSine</option>
|
719 |
-
<option value="easeOutSine">easeOutSine</option>
|
720 |
-
<option value="easeInOutSine">easeInOutSine</option>
|
721 |
-
<option value="easeInExpo">easeInExpo</option>
|
722 |
-
<option value="easeOutExpo">easeOutExpo</option>
|
723 |
-
<option value="easeInOutExpo">easeInOutExpo</option>
|
724 |
-
<option value="easeInCirc">easeInCirc</option>
|
725 |
-
<option value="easeOutCirc">easeOutCirc</option>
|
726 |
-
<option value="easeInOutCirc">easeInOutCirc</option>
|
727 |
-
<option value="easeInBounce">easeInBounce</option>
|
728 |
-
<option value="easeOutBounce">easeOutBounce</option>
|
729 |
-
<option value="easeInOutBounce">easeInOutBounce</option>
|
730 |
-
<option value="easeInElastic">easeInElastic</option>
|
731 |
-
<option value="easeOutElastic">easeOutElastic</option>
|
732 |
-
<option value="easeInOutElastic">easeInOutElastic</option>
|
733 |
-
<option value="easeInBack">easeInBack</option>
|
734 |
-
<option value="easeOutBack">easeOutBack</option>
|
735 |
-
<option value="easeInOutBack">easeInOutBack</option>
|
736 |
-
</select></td>
|
737 |
-
</tr>
|
738 |
-
<tr>
|
739 |
-
<th scope="row">Speed</th>
|
740 |
-
<td><input type="text" name="advps_speed" value="1500" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
741 |
-
</tr>
|
742 |
-
<tr>
|
743 |
-
<th scope="row">Enable pause on hover</th>
|
744 |
-
<td><select name="advps_ps_hover">
|
745 |
-
<option value="yes" selected="selected">Yes</option>
|
746 |
-
<option value="no">No</option>
|
747 |
-
</select></td>
|
748 |
-
</tr>
|
749 |
-
</table>
|
750 |
-
</fieldset>
|
751 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
752 |
-
<legend style="margin-left:10px;"><strong>Container & Thumbnail</strong></legend>
|
753 |
-
<table class="form-table">
|
754 |
-
<tr>
|
755 |
-
<th scope="row">Select Thumbnail</th>
|
756 |
-
<td><select name="advps_thumbnail">
|
757 |
-
<option value="thumbnail">thumbnail</option>
|
758 |
-
<option value="medium">medium</option>
|
759 |
-
<option value="large">large</option>
|
760 |
-
<option value="full">full</option>
|
761 |
-
<?php
|
762 |
-
global $_wp_additional_image_sizes;
|
763 |
-
unset($_wp_additional_image_sizes['post-thumbnail']);
|
764 |
-
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
765 |
-
?>
|
766 |
-
<option value="<?php echo $tkey;?>"><?php echo $tkey;?></option>
|
767 |
-
<?php
|
768 |
-
}
|
769 |
-
?>
|
770 |
-
</select></td>
|
771 |
-
</tr>
|
772 |
-
<tr>
|
773 |
-
<th scope="row">Default image url</th>
|
774 |
-
<td><input type="text" name="advps_default_image" value="" style="width:250px;" />
|
775 |
-
<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>
|
776 |
-
</tr>
|
777 |
-
<tr>
|
778 |
-
<th scope="row">Slide Container</th>
|
779 |
-
<td>Width
|
780 |
-
<input type="text" name="advps_sld_width" value="820" style="width:80px;" onkeypress="return onlyNum(event);" />
|
781 |
-
px Height
|
782 |
-
<input type="text" name="advps_sld_height" value="270" style="width:80px;" onkeypress="return onlyNum(event);" />
|
783 |
-
px</td>
|
784 |
-
</tr>
|
785 |
-
<tr>
|
786 |
-
<th scope="row">Padding</th>
|
787 |
-
<td><input type="text" name="advps_contpad1" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
788 |
-
px
|
789 |
-
<input type="text" name="advps_contpad2" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
790 |
-
px
|
791 |
-
<input type="text" name="advps_contpad3" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
792 |
-
px
|
793 |
-
<input type="text" name="advps_contpad4" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
794 |
-
px </td>
|
795 |
-
</tr>
|
796 |
-
<tr>
|
797 |
-
<th scope="row">Background Color</th>
|
798 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="#FFFFFF" style="width:100px;" />
|
799 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
800 |
-
</tr>
|
801 |
-
<tr>
|
802 |
-
<th scope="row">Border</th>
|
803 |
-
<td><span style="vertical-align:top">
|
804 |
-
<input type="text" name="advps_border_size" value="<?php echo $dataSet['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
805 |
-
px
|
806 |
-
<select name="advps_border_type">
|
807 |
-
<option value="dashed">dashed</option>
|
808 |
-
<option value="dotted">dotted</option>
|
809 |
-
<option value="double">double</option>
|
810 |
-
<option value="solid">solid</option>
|
811 |
-
<option value="inset">inset</option>
|
812 |
-
<option value="outset">outset</option>
|
813 |
-
</select>
|
814 |
-
</span>
|
815 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="#444444" style="width:100px;" />
|
816 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
817 |
-
</tr>
|
818 |
-
<tr>
|
819 |
-
<th scope="row">Remove Border</th>
|
820 |
-
<td><select name="advps_remove_border">
|
821 |
-
<option value="yes" selected="selected">Yes</option>
|
822 |
-
<option value="no">No</option>
|
823 |
-
</select></td>
|
824 |
-
</tr>
|
825 |
-
<tr>
|
826 |
-
<th scope="row">Box Shadow</th>
|
827 |
-
<td><span style="vertical-align:top">
|
828 |
-
<input type="text" name="advps_bxshad1" value="0" style="width:40px;" onkeypress="return onlyNum(event);" />
|
829 |
-
px
|
830 |
-
<input type="text" name="advps_bxshad2" value="1" style="width:40px;" onkeypress="return onlyNum(event);" />
|
831 |
-
px
|
832 |
-
<input type="text" name="advps_bxshad3" value="4" style="width:40px;" onkeypress="return onlyNum(event);" />
|
833 |
-
px </span>
|
834 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="#000000" style="width:100px;" />
|
835 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
836 |
-
</tr>
|
837 |
-
<tr>
|
838 |
-
<th scope="row">Remove Shadow</th>
|
839 |
-
<td><select name="advps_remove_shd">
|
840 |
-
<option value="yes">Yes</option>
|
841 |
-
<option value="no" selected="selected">No</option>
|
842 |
-
</select></td>
|
843 |
-
</tr>
|
844 |
-
</table>
|
845 |
-
</fieldset>
|
846 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
847 |
-
<legend style="margin-left:10px;"><strong>Title & Excerpt</strong></legend>
|
848 |
-
<table class="form-table">
|
849 |
-
<tr>
|
850 |
-
<th scope="row">Overlay size</th>
|
851 |
-
<td>Width
|
852 |
-
<input type="text" name="advps_overlay_width" value="30" style="width:80px;" onkeypress="return onlyNum(event);" />
|
853 |
-
% Height
|
854 |
-
<input type="text" name="advps_overlay_height" value="100" style="width:80px;" onkeypress="return onlyNum(event);" />
|
855 |
-
%</td>
|
856 |
-
</tr>
|
857 |
-
<tr>
|
858 |
-
<th scope="row">Overlay color</th>
|
859 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_overlay_color" value="#000000" style="width:100px;" class="advps-color-picker" />
|
860 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
861 |
-
</tr>
|
862 |
-
<tr>
|
863 |
-
<th scope="row">Overlay opacity</th>
|
864 |
-
<td><input type="text" name="advps_overlay_opacity" value="0.6" style="width:50px;" />
|
865 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
866 |
-
</tr>
|
867 |
-
<tr>
|
868 |
-
<th scope="row">Text opacity</th>
|
869 |
-
<td><input type="text" name="advps_text_opacity" value="1" style="width:50px;" />
|
870 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
871 |
-
</tr>
|
872 |
-
<tr>
|
873 |
-
<th scope="row">Title tag</th>
|
874 |
-
<td><select name="advps_ttitle_tag">
|
875 |
-
<option value="h1">h1</option>
|
876 |
-
<option value="h2" selected="selected">h2</option>
|
877 |
-
<option value="h3">h3</option>
|
878 |
-
<option value="div">div</option>
|
879 |
-
</select></td>
|
880 |
-
</tr>
|
881 |
-
<tr>
|
882 |
-
<th scope="row">Title font Color</th>
|
883 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleFcolor" value="#FFFFFF" style="width:100px;" class="advps-color-picker" />
|
884 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
885 |
-
</tr>
|
886 |
-
<tr>
|
887 |
-
<th scope="row">Title hover Color</th>
|
888 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleHcolor" value="#E6E6E6" style="width:100px;" class="advps-color-picker" />
|
889 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
890 |
-
</tr>
|
891 |
-
<tr>
|
892 |
-
<th scope="row">Title font size</th>
|
893 |
-
<td><input type="text" name="advps_titleFsize" value="22" style="width:60px;" />
|
894 |
-
px</td>
|
895 |
-
</tr>
|
896 |
-
<tr>
|
897 |
-
<th scope="row">Excerpt font color</th>
|
898 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_excptFcolor" value="#FFFFFF" style="width:100px;" />
|
899 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
900 |
-
</tr>
|
901 |
-
<tr>
|
902 |
-
<th scope="row">Excerpt font size</th>
|
903 |
-
<td><input type="text" name="advps_excptFsize" value="12" style="width:60px;" />
|
904 |
-
px</td>
|
905 |
-
</tr>
|
906 |
-
<tr>
|
907 |
-
<th scope="row">Excerpt length</th>
|
908 |
-
<td><input type="text" name="advps_excerptlen" value="30" style="width:60px;" onkeypress="return onlyNum(event);" />
|
909 |
-
words</td>
|
910 |
-
</tr>
|
911 |
-
<tr>
|
912 |
-
<th scope="row">Excerpt visibility</th>
|
913 |
-
<td><select name="advps_excpt_visibility">
|
914 |
-
<option value="show on hover">Show on hover</option>
|
915 |
-
<option value="always show" selected="selected">Always show</option>
|
916 |
-
</select></td>
|
917 |
-
</tr>
|
918 |
-
<tr>
|
919 |
-
<th scope="row">Excerpt Position</th>
|
920 |
-
<td><select name="advps_excpt_position">
|
921 |
-
<option value="left" selected="selected">Left</option>
|
922 |
-
<option value="right">Right</option>
|
923 |
-
<option value="bottom">Bottom</option>
|
924 |
-
</select></td>
|
925 |
-
</tr>
|
926 |
-
<tr>
|
927 |
-
<th scope="row">Enable/Disable link</th>
|
928 |
-
<td><select name="advps_ed_link">
|
929 |
-
<option value="enable">Enable</option>
|
930 |
-
<option value="disable" selected="selected">Disable</option>
|
931 |
-
</select></td>
|
932 |
-
</tr>
|
933 |
-
<tr>
|
934 |
-
<th scope="row">link type</th>
|
935 |
-
<td><select name="advps_link_type">
|
936 |
-
<option value="permalink" selected="selected">Permalink</option>
|
937 |
-
<option value="custom">Custom</option>
|
938 |
-
</select>
|
939 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
940 |
-
</tr>
|
941 |
-
<tr>
|
942 |
-
<th scope="row">link target</th>
|
943 |
-
<td><select name="advps_link_target">
|
944 |
-
<option value="_self" selected="selected">_self</option>
|
945 |
-
<option value="_blank">_blank</option>
|
946 |
-
<option value="_new">_new</option>
|
947 |
-
<option value="_top">_top</option>
|
948 |
-
<option value="_parent">_parent</option>
|
949 |
-
</select></td>
|
950 |
-
</tr>
|
951 |
-
</table>
|
952 |
-
</fieldset>
|
953 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
954 |
-
<legend style="margin-left:10px;"><strong>Navigation</strong></legend>
|
955 |
-
<table class="form-table">
|
956 |
-
<tr>
|
957 |
-
<th scope="row">Exclude pager</th>
|
958 |
-
<td><select name="advps_exclude_pager">
|
959 |
-
<option value="yes">Yes</option>
|
960 |
-
<option value="no" selected="selected">No</option>
|
961 |
-
</select></td>
|
962 |
-
</tr>
|
963 |
-
<tr>
|
964 |
-
<th scope="row">Pager type</th>
|
965 |
-
<td><span style="padding-right:5px;">Number</span>
|
966 |
-
<input type="radio" name="advps_pager_type" value="number">
|
967 |
-
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
968 |
-
<input type="radio" name="advps_pager_type" value="bullet" checked="checked"></td>
|
969 |
-
</tr>
|
970 |
-
<tr>
|
971 |
-
<th scope="row">Pager position</th>
|
972 |
-
<td>Right
|
973 |
-
<input type="text" name="advps_pager_right" value="8" style="width:50px;" onkeypress="return onlyNum(event);" />
|
974 |
-
px Bottom
|
975 |
-
<input type="text" name="advps_pager_bottom" value="6" style="width:50px;" onkeypress="return onlyNum(event);" />
|
976 |
-
px</td>
|
977 |
-
</tr>
|
978 |
-
<tr>
|
979 |
-
<th scope="row">Exclude Next/Previous</th>
|
980 |
-
<td><select name="advps_exclude_nxtprev">
|
981 |
-
<option value="yes">Yes</option>
|
982 |
-
<option value="no" selected="selected">No</option>
|
983 |
-
</select></td>
|
984 |
-
</tr>
|
985 |
-
<tr>
|
986 |
-
<th scope="row">Exclude Play/Pause</th>
|
987 |
-
<td><select name="advps_exclude_playpause">
|
988 |
-
<option value="yes">Yes</option>
|
989 |
-
<option value="no" selected="selected">No</option>
|
990 |
-
</select></td>
|
991 |
-
</tr>
|
992 |
-
</table>
|
993 |
-
</fieldset>
|
994 |
-
<input type="hidden" name="template" value="one" />
|
995 |
-
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
996 |
-
<p>
|
997 |
-
<input type="submit" name="advps_submit" value="Add" class="button-primary" style="width:90px; font-weight:bold" />
|
998 |
-
<span style="margin-left:10px;">
|
999 |
-
<button class="button-secondary" style="width:90px; height:25px;">Cancel</button>
|
1000 |
-
</span></p>
|
1001 |
-
</form>
|
1002 |
-
</div>
|
1003 |
-
</div>
|
1004 |
-
</div>
|
1005 |
-
</div>
|
1006 |
-
<?php }else{?>
|
1007 |
-
<div style="position:relative; float:left; width:100%">
|
1008 |
-
<form method="post">
|
1009 |
-
<input type="submit" class="button-secondary" value="Add New" name="advps_add" />
|
1010 |
-
</form>
|
1011 |
-
</div>
|
1012 |
-
<?php }}elseif($currTab == 'two'){foreach( $res2 as $dset){ $dataSet = unserialize($dset->opt_data);?>
|
1013 |
-
<div class="metabox-holder" style="margin-top:20px;">
|
1014 |
-
<div class="postbox-container" style="width:65%">
|
1015 |
-
<div class="postbox <?php if(!isset($_POST['opt_id']) || $_POST['opt_id'] != $dset->id){echo 'closed';}?>">
|
1016 |
-
<div class="handlediv" title=""> <br>
|
1017 |
-
</div>
|
1018 |
-
<h3 style="cursor:pointer; text-align:center" class="advps-expand"> <span>Option Set</span> </h3>
|
1019 |
-
<div class="inside">
|
1020 |
-
<div style="position:absolute; top:1.2%; right:4%; font-weight:bold; border:1px solid #393;padding:2px 15px;">ID = <?php echo $dset->id;?></div>
|
1021 |
-
<form method="post">
|
1022 |
-
<fieldset>
|
1023 |
-
<legend style="margin-left:10px;"><strong>Query</strong></legend>
|
1024 |
-
<table class="form-table">
|
1025 |
-
<tr>
|
1026 |
-
<th scope="row">Post Type</th>
|
1027 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
1028 |
-
<option value="post" <?php if($dataSet['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
1029 |
-
<option value="page" <?php if($dataSet['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
1030 |
-
<?php
|
1031 |
-
foreach ($customPostTypes as $post_type ) {
|
1032 |
-
?>
|
1033 |
-
<option value="<?php echo $post_type;?>" <?php if($dataSet['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
1034 |
-
<?php
|
1035 |
-
}
|
1036 |
-
?>
|
1037 |
-
</select></td>
|
1038 |
-
</tr>
|
1039 |
-
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
1040 |
-
<?php if($dataSet['advps_post_types'] != "page"){?>
|
1041 |
-
<th scope="row">Category</th>
|
1042 |
-
<td><select name="advps_category[]" multiple="multiple">
|
1043 |
-
<?php
|
1044 |
-
$catList = get_categories();
|
1045 |
-
foreach($catList as $scat){
|
1046 |
-
?>
|
1047 |
-
<option value="<?php echo $scat->term_id;?>" <?php if(isset($dataSet['advps_category']) && in_array($scat->term_id,$dataSet['advps_category'])){echo 'selected="selected"';}?>><?php echo $scat->name;?></option>
|
1048 |
-
<?php }?>
|
1049 |
-
</select>
|
1050 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
1051 |
-
<?php }?>
|
1052 |
-
</tr>
|
1053 |
-
<tr>
|
1054 |
-
<th scope="row">Max. Number of post</th>
|
1055 |
-
<td><input type="text" name="advps_maxpost" value="<?php echo $dataSet['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
1056 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Maximum Slides]</span></td>
|
1057 |
-
</tr>
|
1058 |
-
<tr>
|
1059 |
-
<th scope="row">Post per Slide</th>
|
1060 |
-
<td><input type="text" name="advps_postperslide" value="<?php echo $dataSet['advps_postperslide'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1061 |
-
</tr>
|
1062 |
-
<tr>
|
1063 |
-
<th scope="row">Exclude</th>
|
1064 |
-
<td><input type="text" name="advps_exclude" value="<?php echo $dataSet['advps_exclude'];?>" style="width:100px;" />
|
1065 |
-
<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>
|
1066 |
-
</tr>
|
1067 |
-
<tr>
|
1068 |
-
<th scope="row">Order by</th>
|
1069 |
-
<td><select name="advps_order_by">
|
1070 |
-
<option value="date" <?php if($dataSet['advps_order_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
1071 |
-
<option value="ID" <?php if($dataSet['advps_order_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
1072 |
-
<option value="author" <?php if($dataSet['advps_order_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
1073 |
-
<option value="title" <?php if($dataSet['advps_order_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
1074 |
-
<option value="name" <?php if($dataSet['advps_order_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
1075 |
-
<option value="rand" <?php if($dataSet['advps_order_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
1076 |
-
<option value="menu_order" <?php if($dataSet['advps_order_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
1077 |
-
<option value="comment_count" <?php if($dataSet['advps_order_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
1078 |
-
</select></td>
|
1079 |
-
</tr>
|
1080 |
-
<tr>
|
1081 |
-
<th scope="row">Order</th>
|
1082 |
-
<td><select name="advps_order">
|
1083 |
-
<option value="ASC" <?php if($dataSet['advps_order'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
1084 |
-
<option value="DESC" <?php if($dataSet['advps_order'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
1085 |
-
</select></td>
|
1086 |
-
</tr>
|
1087 |
-
</table>
|
1088 |
-
</fieldset>
|
1089 |
-
<fieldset>
|
1090 |
-
<legend style="margin-left:10px;"><strong>Effects</strong></legend>
|
1091 |
-
<table class="form-table">
|
1092 |
-
<tr>
|
1093 |
-
<th scope="row">Effect</th>
|
1094 |
-
<td><select name="advps_effects">
|
1095 |
-
<option value="blindX" <?php if($dataSet['advps_effects'] == 'blindX'){echo 'selected="selected"';}?>>blindX</option>
|
1096 |
-
<option value="blindY" <?php if($dataSet['advps_effects'] == 'blindY'){echo 'selected="selected"';}?>>blindY</option>
|
1097 |
-
<option value="blindZ" <?php if($dataSet['advps_effects'] == 'blindZ'){echo 'selected="selected"';}?>>blindZ</option>
|
1098 |
-
<option value="cover" <?php if($dataSet['advps_effects'] == 'cover'){echo 'selected="selected"';}?>>cover</option>
|
1099 |
-
<option value="curtainX" <?php if($dataSet['advps_effects'] == 'curtainX'){echo 'selected="selected"';}?>>curtainX</option>
|
1100 |
-
<option value="curtainY" <?php if($dataSet['advps_effects'] == 'curtainY'){echo 'selected="selected"';}?>>curtainY</option>
|
1101 |
-
<option value="fade" <?php if($dataSet['advps_effects'] == 'fade'){echo 'selected="selected"';}?>>fade</option>
|
1102 |
-
<option value="fadeZoom" <?php if($dataSet['advps_effects'] == 'fadeZoom'){echo 'selected="selected"';}?>>fadeZoom</option>
|
1103 |
-
<option value="growX" <?php if($dataSet['advps_effects'] == 'growX'){echo 'selected="selected"';}?>>growX</option>
|
1104 |
-
<option value="growY" <?php if($dataSet['advps_effects'] == 'growY'){echo 'selected="selected"';}?>>growY</option>
|
1105 |
-
<option value="none" <?php if($dataSet['advps_effects'] == 'none'){echo 'selected="selected"';}?>>none</option>
|
1106 |
-
<option value="scrollUp" <?php if($dataSet['advps_effects'] == 'scrollUp'){echo 'selected="selected"';}?>>scrollUp</option>
|
1107 |
-
<option value="scrollDown" <?php if($dataSet['advps_effects'] == 'scrollDown'){echo 'selected="selected"';}?>>scrollDown</option>
|
1108 |
-
<option value="scrollLeft" <?php if($dataSet['advps_effects'] == 'scrollLeft'){echo 'selected="selected"';}?>>scrollLeft</option>
|
1109 |
-
<option value="scrollRight" <?php if($dataSet['advps_effects'] == 'scrollRight'){echo 'selected="selected"';}?>>scrollRight</option>
|
1110 |
-
<option value="scrollHorz" <?php if($dataSet['advps_effects'] == 'scrollHorz'){echo 'selected="selected"';}?>>scrollHorz</option>
|
1111 |
-
<option value="scrollVert" <?php if($dataSet['advps_effects'] == 'scrollVert'){echo 'selected="selected"';}?>>scrollVert</option>
|
1112 |
-
<option value="shuffle" <?php if($dataSet['advps_effects'] == 'shuffle'){echo 'selected="selected"';}?>>shuffle</option>
|
1113 |
-
<option value="slideX" <?php if($dataSet['advps_effects'] == 'slideX'){echo 'selected="selected"';}?>>slideX</option>
|
1114 |
-
<option value="slideY" <?php if($dataSet['advps_effects'] == 'slideY'){echo 'selected="selected"';}?>>slideY</option>
|
1115 |
-
<option value="toss" <?php if($dataSet['advps_effects'] == 'toss'){echo 'selected="selected"';}?>>toss</option>
|
1116 |
-
<option value="turnUp" <?php if($dataSet['advps_effects'] == 'turnUp'){echo 'selected="selected"';}?>>turnUp</option>
|
1117 |
-
<option value="turnDown" <?php if($dataSet['advps_effects'] == 'turnDown'){echo 'selected="selected"';}?>>turnDown</option>
|
1118 |
-
<option value="turnLeft" <?php if($dataSet['advps_effects'] == 'turnLeft'){echo 'selected="selected"';}?>>turnLeft</option>
|
1119 |
-
<option value="turnRight" <?php if($dataSet['advps_effects'] == 'turnRight'){echo 'selected="selected"';}?>>turnRight</option>
|
1120 |
-
<option value="uncover" <?php if($dataSet['advps_effects'] == 'uncover'){echo 'selected="selected"';}?>>uncover</option>
|
1121 |
-
<option value="wipe" <?php if($dataSet['advps_effects'] == 'wipe'){echo 'selected="selected"';}?>>wipe</option>
|
1122 |
-
<option value="zoom" <?php if($dataSet['advps_effects'] == 'zoom'){echo 'selected="selected"';}?>>zoom</option>
|
1123 |
-
</select></td>
|
1124 |
-
</tr>
|
1125 |
-
<tr>
|
1126 |
-
<th scope="row">Timeout</th>
|
1127 |
-
<td><input type="text" name="advps_timeout" value="<?php echo $dataSet['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
1128 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ 0 to disable auto advance.]</span></td>
|
1129 |
-
</tr>
|
1130 |
-
<tr>
|
1131 |
-
<th scope="row">Easing</th>
|
1132 |
-
<td><select name="advps_easing">
|
1133 |
-
<option value="linear" <?php if($dataSet['advps_easing'] == 'linear'){echo 'selected="selected"';}?>>linear</option>
|
1134 |
-
<option value="swing" <?php if($dataSet['advps_easing'] == 'swing'){echo 'selected="selected"';}?>>swing</option>
|
1135 |
-
<option value="jswing" <?php if($dataSet['advps_easing'] == 'jswing'){echo 'selected="selected"';}?>>jswing</option>
|
1136 |
-
<option value="easeInQuad" <?php if($dataSet['advps_easing'] == 'easeInQuad'){echo 'selected="selected"';}?>>easeInQuad</option>
|
1137 |
-
<option value="easeOutQuad" <?php if($dataSet['advps_easing'] == 'easeOutQuad'){echo 'selected="selected"';}?>>easeOutQuad</option>
|
1138 |
-
<option value="easeInOutQuad" <?php if($dataSet['advps_easing'] == 'easeInOutQuad'){echo 'selected="selected"';}?>>easeInOutQuad</option>
|
1139 |
-
<option value="easeInCubic" <?php if($dataSet['advps_easing'] == 'easeInCubic'){echo 'selected="selected"';}?>>easeInCubic</option>
|
1140 |
-
<option value="easeOutCubic" <?php if($dataSet['advps_easing'] == 'easeOutCubic'){echo 'selected="selected"';}?>>easeOutCubic</option>
|
1141 |
-
<option value="easeInOutCubic" <?php if($dataSet['advps_easing'] == 'easeInOutCubic'){echo 'selected="selected"';}?>>easeInOutCubic</option>
|
1142 |
-
<option value="easeInQuart" <?php if($dataSet['advps_easing'] == 'easeInQuart'){echo 'selected="selected"';}?>>easeInQuart</option>
|
1143 |
-
<option value="easeOutQuart" <?php if($dataSet['advps_easing'] == 'easeOutQuart'){echo 'selected="selected"';}?>>easeOutQuart</option>
|
1144 |
-
<option value="easeInOutQuart" <?php if($dataSet['advps_easing'] == 'easeInOutQuart'){echo 'selected="selected"';}?>>easeInOutQuart</option>
|
1145 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeInQuint'){echo 'selected="selected"';}?>>easeInQuint</option>
|
1146 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeOutQuint'){echo 'selected="selected"';}?>>easeOutQuint</option>
|
1147 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeInOutQuint'){echo 'selected="selected"';}?>>easeInOutQuint</option>
|
1148 |
-
<option value="easeInSine" <?php if($dataSet['advps_easing'] == 'easeInSine'){echo 'selected="selected"';}?>>easeInSine</option>
|
1149 |
-
<option value="easeOutSine" <?php if($dataSet['advps_easing'] == 'easeOutSine'){echo 'selected="selected"';}?>>easeOutSine</option>
|
1150 |
-
<option value="easeInOutSine" <?php if($dataSet['advps_easing'] == 'easeInOutSine'){echo 'selected="selected"';}?>>easeInOutSine</option>
|
1151 |
-
<option value="easeInExpo" <?php if($dataSet['advps_easing'] == 'easeInExpo'){echo 'selected="selected"';}?>>easeInExpo</option>
|
1152 |
-
<option value="easeOutExpo" <?php if($dataSet['advps_easing'] == 'easeOutExpo'){echo 'selected="selected"';}?>>easeOutExpo</option>
|
1153 |
-
<option value="easeInOutExpo" <?php if($dataSet['advps_easing'] == 'easeInOutExpo'){echo 'selected="selected"';}?>>easeInOutExpo</option>
|
1154 |
-
<option value="easeInCirc" <?php if($dataSet['advps_easing'] == 'easeInCirc'){echo 'selected="selected"';}?>>easeInCirc</option>
|
1155 |
-
<option value="easeOutCirc" <?php if($dataSet['advps_easing'] == 'easeOutCirc'){echo 'selected="selected"';}?>>easeOutCirc</option>
|
1156 |
-
<option value="easeInOutCirc" <?php if($dataSet['advps_easing'] == 'easeInOutCirc'){echo 'selected="selected"';}?>>easeInOutCirc</option>
|
1157 |
-
<option value="easeInBounce" <?php if($dataSet['advps_easing'] == 'easeInBounce'){echo 'selected="selected"';}?>>easeInBounce</option>
|
1158 |
-
<option value="easeOutBounce" <?php if($dataSet['advps_easing'] == 'easeOutBounce'){echo 'selected="selected"';}?>>easeOutBounce</option>
|
1159 |
-
<option value="easeInOutBounce" <?php if($dataSet['advps_easing'] == 'easeInOutBounce'){echo 'selected="selected"';}?>>easeInOutBounce</option>
|
1160 |
-
<option value="easeInElastic" <?php if($dataSet['advps_easing'] == 'easeInElastic'){echo 'selected="selected"';}?>>easeInElastic</option>
|
1161 |
-
<option value="easeOutElastic" <?php if($dataSet['advps_easing'] == 'easeOutElastic'){echo 'selected="selected"';}?>>easeOutElastic</option>
|
1162 |
-
<option value="easeInOutElastic" <?php if($dataSet['advps_easing'] == 'easeInOutElastic'){echo 'selected="selected"';}?>>easeInOutElastic</option>
|
1163 |
-
<option value="easeInBack" <?php if($dataSet['advps_easing'] == 'easeInBack'){echo 'selected="selected"';}?>>easeInBack</option>
|
1164 |
-
<option value="easeOutBack" <?php if($dataSet['advps_easing'] == 'easeOutBack'){echo 'selected="selected"';}?>>easeOutBack</option>
|
1165 |
-
<option value="easeInOutBack" <?php if($dataSet['advps_easing'] == 'easeInOutBack'){echo 'selected="selected"';}?>>easeInOutBack</option>
|
1166 |
-
</select></td>
|
1167 |
-
</tr>
|
1168 |
-
<tr>
|
1169 |
-
<th scope="row">Speed</th>
|
1170 |
-
<td><input type="text" name="advps_speed" value="<?php echo $dataSet['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1171 |
-
</tr>
|
1172 |
-
<tr>
|
1173 |
-
<th scope="row">Enable pause on hover</th>
|
1174 |
-
<td><select name="advps_ps_hover">
|
1175 |
-
<option value="yes" <?php if($dataSet['advps_ps_hover'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1176 |
-
<option value="no" <?php if($dataSet['advps_ps_hover'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1177 |
-
</select></td>
|
1178 |
-
</tr>
|
1179 |
-
</table>
|
1180 |
-
</fieldset>
|
1181 |
-
<fieldset>
|
1182 |
-
<legend style="margin-left:10px;"><strong>Container & Thumbnail</strong></legend>
|
1183 |
-
<table class="form-table">
|
1184 |
-
<tr>
|
1185 |
-
<th scope="row">Select Thumbnail</th>
|
1186 |
-
<td><select name="advps_thumbnail">
|
1187 |
-
<option value="thumbnail" <?php if($dataSet['advps_thumbnail'] == 'thumbnail'){echo 'selected="selected"';}?>>thumbnail</option>
|
1188 |
-
<option value="medium" <?php if($dataSet['advps_thumbnail'] == 'medium'){echo 'selected="selected"';}?>>medium</option>
|
1189 |
-
<option value="large" <?php if($dataSet['advps_thumbnail'] == 'large'){echo 'selected="selected"';}?>>large</option>
|
1190 |
-
<option value="full" <?php if($dataSet['advps_thumbnail'] == 'full'){echo 'selected="selected"';}?>>full</option>
|
1191 |
-
<?php
|
1192 |
-
global $_wp_additional_image_sizes;
|
1193 |
-
unset($_wp_additional_image_sizes['post-thumbnail']);
|
1194 |
-
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
1195 |
-
?>
|
1196 |
-
<option value="<?php echo $tkey;?>" <?php if($dataSet['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
1197 |
-
<?php
|
1198 |
-
}
|
1199 |
-
?>
|
1200 |
-
</select></td>
|
1201 |
-
</tr>
|
1202 |
-
<tr>
|
1203 |
-
<th scope="row">Slide Container</th>
|
1204 |
-
<td>Width
|
1205 |
-
<input type="text" name="advps_sld_width" value="<?php echo $dataSet['advps_sld_width'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
1206 |
-
px Height
|
1207 |
-
<input type="text" name="advps_sld_height" value="<?php echo $dataSet['advps_sld_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
1208 |
-
px</td>
|
1209 |
-
</tr>
|
1210 |
-
<tr>
|
1211 |
-
<th scope="row">Padding</th>
|
1212 |
-
<td><input type="text" name="advps_contpad1" value="<?php echo $dataSet['advps_contpad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1213 |
-
px
|
1214 |
-
<input type="text" name="advps_contpad2" value="<?php echo $dataSet['advps_contpad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1215 |
-
px
|
1216 |
-
<input type="text" name="advps_contpad3" value="<?php echo $dataSet['advps_contpad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1217 |
-
px
|
1218 |
-
<input type="text" name="advps_contpad4" value="<?php echo $dataSet['advps_contpad4'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1219 |
-
px </td>
|
1220 |
-
</tr>
|
1221 |
-
<tr>
|
1222 |
-
<th scope="row">Background Color</th>
|
1223 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $dataSet['advps_bgcolor'];?>" style="width:100px;" />
|
1224 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1225 |
-
</tr>
|
1226 |
-
<tr>
|
1227 |
-
<th scope="row">Border</th>
|
1228 |
-
<td><span style="vertical-align:top">
|
1229 |
-
<input type="text" name="advps_border_size" value="<?php echo $dataSet['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1230 |
-
px
|
1231 |
-
<select name="advps_border_type">
|
1232 |
-
<option value="dashed" <?php if($dataSet['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
1233 |
-
<option value="dotted" <?php if($dataSet['advps_border_type'] == 'dotted'){echo 'selected="selected"';}?>>dotted</option>
|
1234 |
-
<option value="double" <?php if($dataSet['advps_border_type'] == 'double'){echo 'selected="selected"';}?>>double</option>
|
1235 |
-
<option value="solid" <?php if($dataSet['advps_border_type'] == 'solid'){echo 'selected="selected"';}?>>solid</option>
|
1236 |
-
<option value="inset" <?php if($dataSet['advps_border_type'] == 'inset'){echo 'selected="selected"';}?>>inset</option>
|
1237 |
-
<option value="outset" <?php if($dataSet['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
1238 |
-
</select>
|
1239 |
-
</span>
|
1240 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="<?php echo $dataSet['advps_border_color'];?>" style="width:100px;" />
|
1241 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1242 |
-
</tr>
|
1243 |
-
<tr>
|
1244 |
-
<th scope="row">Remove Border</th>
|
1245 |
-
<td><select name="advps_remove_border">
|
1246 |
-
<option value="yes" <?php if($dataSet['advps_remove_border'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1247 |
-
<option value="no" <?php if($dataSet['advps_remove_border'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1248 |
-
</select></td>
|
1249 |
-
</tr>
|
1250 |
-
<tr>
|
1251 |
-
<th scope="row">Box Shadow</th>
|
1252 |
-
<td><span style="vertical-align:top">
|
1253 |
-
<input type="text" name="advps_bxshad1" value="<?php echo $dataSet['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1254 |
-
px
|
1255 |
-
<input type="text" name="advps_bxshad2" value="<?php echo $dataSet['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1256 |
-
px
|
1257 |
-
<input type="text" name="advps_bxshad3" value="<?php echo $dataSet['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1258 |
-
px </span>
|
1259 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $dataSet['advps_bxshadcolor'];?>" style="width:100px;" />
|
1260 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1261 |
-
</tr>
|
1262 |
-
<tr>
|
1263 |
-
<th scope="row">Remove Shadow</th>
|
1264 |
-
<td><select name="advps_remove_shd">
|
1265 |
-
<option value="yes" <?php if($dataSet['advps_remove_shd'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1266 |
-
<option value="no" <?php if($dataSet['advps_remove_shd'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1267 |
-
</select></td>
|
1268 |
-
</tr>
|
1269 |
-
<tr>
|
1270 |
-
<th scope="row">Image Orientation</th>
|
1271 |
-
<td><select name="advps_img_Orientation">
|
1272 |
-
<option value="horizontal" <?php if($dataSet['advps_img_Orientation'] == 'horizontal'){echo 'selected="selected"';}?>>Horizontal</option>
|
1273 |
-
<option value="vertical" <?php if($dataSet['advps_img_Orientation'] == 'vertical'){echo 'selected="selected"';}?>>Vertical</option>
|
1274 |
-
</select>
|
1275 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Skip this if you want to show single image per slide.]</span></td>
|
1276 |
-
</tr>
|
1277 |
-
<tr>
|
1278 |
-
<th scope="row">Margin between Images</th>
|
1279 |
-
<td><input type="text" name="advps_imagemar" value="<?php echo $dataSet['advps_imagemar'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1280 |
-
px <span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Skip this if you want to show single image per slide.]</span></td>
|
1281 |
-
</tr>
|
1282 |
-
<tr>
|
1283 |
-
<th scope="row">Enable/Disable link</th>
|
1284 |
-
<td><select name="advps_ed_link">
|
1285 |
-
<option value="enable" <?php if($dataSet['advps_ed_link'] == 'enable'){echo 'selected="selected"';}?>>Enable</option>
|
1286 |
-
<option value="disable" <?php if($dataSet['advps_ed_link'] == 'disable'){echo 'selected="selected"';}?>>Disable</option>
|
1287 |
-
</select></td>
|
1288 |
-
</tr>
|
1289 |
-
<tr>
|
1290 |
-
<th scope="row">link type</th>
|
1291 |
-
<td><select name="advps_link_type">
|
1292 |
-
<option value="permalink" <?php if($dataSet['advps_link_type'] == 'permalink'){echo 'selected="selected"';}?>>Permalink</option>
|
1293 |
-
<option value="custom" <?php if($dataSet['advps_link_type'] == 'custom'){echo 'selected="selected"';}?>>Custom</option>
|
1294 |
-
</select>
|
1295 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
1296 |
-
</tr>
|
1297 |
-
<tr>
|
1298 |
-
<th scope="row">link target</th>
|
1299 |
-
<td><select name="advps_link_target">
|
1300 |
-
<option value="_self" <?php if($dataSet['advps_link_target'] == '_self'){echo 'selected="selected"';}?>>_self</option>
|
1301 |
-
<option value="_blank" <?php if($dataSet['advps_link_target'] == '_blank'){echo 'selected="selected"';}?>>_blank</option>
|
1302 |
-
<option value="_new" <?php if($dataSet['advps_link_target'] == '_new'){echo 'selected="selected"';}?>>_new</option>
|
1303 |
-
<option value="_top" <?php if($dataSet['advps_link_target'] == '_top'){echo 'selected="selected"';}?>>_top</option>
|
1304 |
-
<option value="_parent" <?php if($dataSet['advps_link_target'] == '_parent'){echo 'selected="selected"';}?>>_parent</option>
|
1305 |
-
</select></td>
|
1306 |
-
</tr>
|
1307 |
-
</table>
|
1308 |
-
</fieldset>
|
1309 |
-
<fieldset>
|
1310 |
-
<legend style="margin-left:10px;"><strong>Navigation</strong></legend>
|
1311 |
-
<table class="form-table">
|
1312 |
-
<tr>
|
1313 |
-
<th scope="row">Exclude pager</th>
|
1314 |
-
<td><select name="advps_exclude_pager">
|
1315 |
-
<option value="yes" <?php if($dataSet['advps_exclude_pager'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1316 |
-
<option value="no" <?php if($dataSet['advps_exclude_pager'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1317 |
-
</select></td>
|
1318 |
-
</tr>
|
1319 |
-
<tr>
|
1320 |
-
<th scope="row">Pager type</th>
|
1321 |
-
<td><span style="padding-right:5px;">Number</span>
|
1322 |
-
<input type="radio" name="advps_pager_type" value="number" <?php if($dataSet['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
1323 |
-
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
1324 |
-
<input type="radio" name="advps_pager_type" value="bullet" <?php if($dataSet['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>></td>
|
1325 |
-
</tr>
|
1326 |
-
<tr>
|
1327 |
-
<th scope="row">Pager position</th>
|
1328 |
-
<td>Right
|
1329 |
-
<input type="text" name="advps_pager_right" value="<?php echo $dataSet['advps_pager_right'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
|
1330 |
-
px Bottom
|
1331 |
-
<input type="text" name="advps_pager_bottom" value="<?php echo $dataSet['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
|
1332 |
-
px</td>
|
1333 |
-
</tr>
|
1334 |
-
<tr>
|
1335 |
-
<th scope="row">Exclude Next/Previous</th>
|
1336 |
-
<td><select name="advps_exclude_nxtprev">
|
1337 |
-
<option value="yes" <?php if($dataSet['advps_exclude_nxtprev'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1338 |
-
<option value="no" <?php if($dataSet['advps_exclude_nxtprev'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1339 |
-
</select></td>
|
1340 |
-
</tr>
|
1341 |
-
<tr>
|
1342 |
-
<th scope="row">Exclude Play/Pause</th>
|
1343 |
-
<td><select name="advps_exclude_playpause">
|
1344 |
-
<option value="yes" <?php if($dataSet['advps_exclude_playpause'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1345 |
-
<option value="no" <?php if($dataSet['advps_exclude_playpause'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1346 |
-
</select></td>
|
1347 |
-
</tr>
|
1348 |
-
</table>
|
1349 |
-
</fieldset>
|
1350 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
1351 |
-
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
1352 |
-
<p>
|
1353 |
-
<input type="submit" name="advps_submit" value="Save changes" class="button-primary" />
|
1354 |
-
</p>
|
1355 |
-
</form>
|
1356 |
-
</div>
|
1357 |
-
</div>
|
1358 |
-
</div>
|
1359 |
-
</div>
|
1360 |
-
<?php }?>
|
1361 |
-
<?php if(isset($_POST['advps_add'])){?>
|
1362 |
-
<div class="metabox-holder" style="margin-top:20px;">
|
1363 |
-
<div class="postbox-container" style="width:65%">
|
1364 |
-
<div class="postbox">
|
1365 |
-
<div class="handlediv" title=""> <br>
|
1366 |
-
</div>
|
1367 |
-
<h3 style="cursor:pointer; text-align:center" class="advps-expand"> <span>Add new option set</span> </h3>
|
1368 |
-
<div class="inside">
|
1369 |
-
<form method="post">
|
1370 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px; margin-bottom:10px;">
|
1371 |
-
<legend style="margin-left:10px;"><strong>Query</strong></legend>
|
1372 |
-
<table class="form-table">
|
1373 |
-
<tr>
|
1374 |
-
<th scope="row">Post Type</th>
|
1375 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,'add')">
|
1376 |
-
<option value="post" selected="selected">post</option>
|
1377 |
-
<option value="page">page</option>
|
1378 |
-
<?php
|
1379 |
-
foreach ($customPostTypes as $post_type ) {
|
1380 |
-
?>
|
1381 |
-
<option value="<?php echo $post_type;?>"><?php echo $post_type;?></option>
|
1382 |
-
<?php
|
1383 |
-
}
|
1384 |
-
?>
|
1385 |
-
</select></td>
|
1386 |
-
</tr>
|
1387 |
-
<tr id="advps-cat-fieldadd">
|
1388 |
-
<th scope="row">Category</th>
|
1389 |
-
<td><select name="advps_category[]" multiple="multiple">
|
1390 |
-
<?php
|
1391 |
-
$catList = get_categories();
|
1392 |
-
foreach($catList as $scat){
|
1393 |
-
?>
|
1394 |
-
<option value="<?php echo $scat->term_id;?>"><?php echo $scat->name;?></option>
|
1395 |
-
<?php }?>
|
1396 |
-
</select>
|
1397 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
1398 |
-
</tr>
|
1399 |
-
<tr>
|
1400 |
-
<th scope="row">Max. Number of post</th>
|
1401 |
-
<td><input type="text" name="advps_maxpost" value="10" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1402 |
-
</tr>
|
1403 |
-
<tr>
|
1404 |
-
<th scope="row">Post per Slide</th>
|
1405 |
-
<td><input type="text" name="advps_postperslide" value="1" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1406 |
-
</tr>
|
1407 |
-
<tr>
|
1408 |
-
<th scope="row">Exclude</th>
|
1409 |
-
<td><input type="text" name="advps_exclude" value="" style="width:100px;" />
|
1410 |
-
<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>
|
1411 |
-
</tr>
|
1412 |
-
<tr>
|
1413 |
-
<th scope="row">Order by</th>
|
1414 |
-
<td><select name="advps_order_by">
|
1415 |
-
<option value="date" selected="selected">Date</option>
|
1416 |
-
<option value="ID">ID</option>
|
1417 |
-
<option value="author">Author</option>
|
1418 |
-
<option value="title">Title</option>
|
1419 |
-
<option value="name">Name</option>
|
1420 |
-
<option value="rand">Random</option>
|
1421 |
-
<option value="menu_order">Menu order</option>
|
1422 |
-
<option value="comment_count">Comment count</option>
|
1423 |
-
</select></td>
|
1424 |
-
</tr>
|
1425 |
-
<tr>
|
1426 |
-
<th scope="row">Order</th>
|
1427 |
-
<td><select name="advps_order">
|
1428 |
-
<option value="ASC">Ascending</option>
|
1429 |
-
<option value="DESC" selected="selected">Descending</option>
|
1430 |
-
</select></td>
|
1431 |
-
</tr>
|
1432 |
-
</table>
|
1433 |
-
</fieldset>
|
1434 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
1435 |
-
<legend style="margin-left:10px;"><strong>Effects</strong></legend>
|
1436 |
-
<table class="form-table">
|
1437 |
-
<tr>
|
1438 |
-
<th scope="row">Effect</th>
|
1439 |
-
<td><select name="advps_effects">
|
1440 |
-
<option value="blindX">blindX</option>
|
1441 |
-
<option value="blindY">blindY</option>
|
1442 |
-
<option value="blindZ">blindZ</option>
|
1443 |
-
<option value="cover">cover</option>
|
1444 |
-
<option value="curtainX">curtainX</option>
|
1445 |
-
<option value="curtainY">curtainY</option>
|
1446 |
-
<option value="fade">fade</option>
|
1447 |
-
<option value="fadeZoom">fadeZoom</option>
|
1448 |
-
<option value="growX">growX</option>
|
1449 |
-
<option value="growY">growY</option>
|
1450 |
-
<option value="none">none</option>
|
1451 |
-
<option value="scrollUp">scrollUp</option>
|
1452 |
-
<option value="scrollDown">scrollDown</option>
|
1453 |
-
<option value="scrollLeft">scrollLeft</option>
|
1454 |
-
<option value="scrollRight">scrollRight</option>
|
1455 |
-
<option value="scrollHorz">scrollHorz</option>
|
1456 |
-
<option value="scrollVert">scrollVert</option>
|
1457 |
-
<option value="shuffle">shuffle</option>
|
1458 |
-
<option value="slideX">slideX</option>
|
1459 |
-
<option value="slideY">slideY</option>
|
1460 |
-
<option value="toss">toss</option>
|
1461 |
-
<option value="turnUp">turnUp</option>
|
1462 |
-
<option value="turnDown">turnDown</option>
|
1463 |
-
<option value="turnLeft">turnLeft</option>
|
1464 |
-
<option value="turnRight">turnRight</option>
|
1465 |
-
<option value="uncover" selected="selected">uncover</option>
|
1466 |
-
<option value="wipe">wipe</option>
|
1467 |
-
<option value="zoom">zoom</option>
|
1468 |
-
</select></td>
|
1469 |
-
</tr>
|
1470 |
-
<tr>
|
1471 |
-
<th scope="row">Timeout</th>
|
1472 |
-
<td><input type="text" name="advps_timeout" value="2000" style="width:60px;" onkeypress="return onlyNum(event);" />
|
1473 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ 0 to disable auto advance.]</span></td>
|
1474 |
-
</tr>
|
1475 |
-
<tr>
|
1476 |
-
<th scope="row">Easing</th>
|
1477 |
-
<td><select name="advps_easing">
|
1478 |
-
<option value="linear" selected="selected">linear</option>
|
1479 |
-
<option value="swing">swing</option>
|
1480 |
-
<option value="jswing">jswing</option>
|
1481 |
-
<option value="easeInQuad">easeInQuad</option>
|
1482 |
-
<option value="easeOutQuad">easeOutQuad</option>
|
1483 |
-
<option value="easeInOutQuad">easeInOutQuad</option>
|
1484 |
-
<option value="easeInCubic">easeInCubic</option>
|
1485 |
-
<option value="easeOutCubic">easeOutCubic</option>
|
1486 |
-
<option value="easeInOutCubic">easeInOutCubic</option>
|
1487 |
-
<option value="easeInQuart">easeInQuart</option>
|
1488 |
-
<option value="easeOutQuart">easeOutQuart</option>
|
1489 |
-
<option value="easeInOutQuart">easeInOutQuart</option>
|
1490 |
-
<option value="easeInQuint">easeInQuint</option>
|
1491 |
-
<option value="easeInQuint">easeOutQuint</option>
|
1492 |
-
<option value="easeInQuint">easeInOutQuint</option>
|
1493 |
-
<option value="easeInSine">easeInSine</option>
|
1494 |
-
<option value="easeOutSine">easeOutSine</option>
|
1495 |
-
<option value="easeInOutSine">easeInOutSine</option>
|
1496 |
-
<option value="easeInExpo">easeInExpo</option>
|
1497 |
-
<option value="easeOutExpo">easeOutExpo</option>
|
1498 |
-
<option value="easeInOutExpo">easeInOutExpo</option>
|
1499 |
-
<option value="easeInCirc">easeInCirc</option>
|
1500 |
-
<option value="easeOutCirc">easeOutCirc</option>
|
1501 |
-
<option value="easeInOutCirc">easeInOutCirc</option>
|
1502 |
-
<option value="easeInBounce">easeInBounce</option>
|
1503 |
-
<option value="easeOutBounce">easeOutBounce</option>
|
1504 |
-
<option value="easeInOutBounce">easeInOutBounce</option>
|
1505 |
-
<option value="easeInElastic">easeInElastic</option>
|
1506 |
-
<option value="easeOutElastic">easeOutElastic</option>
|
1507 |
-
<option value="easeInOutElastic">easeInOutElastic</option>
|
1508 |
-
<option value="easeInBack">easeInBack</option>
|
1509 |
-
<option value="easeOutBack">easeOutBack</option>
|
1510 |
-
<option value="easeInOutBack">easeInOutBack</option>
|
1511 |
-
</select></td>
|
1512 |
-
</tr>
|
1513 |
-
<tr>
|
1514 |
-
<th scope="row">Speed</th>
|
1515 |
-
<td><input type="text" name="advps_speed" value="1500" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1516 |
-
</tr>
|
1517 |
-
<tr>
|
1518 |
-
<th scope="row">Enable pause on hover</th>
|
1519 |
-
<td><select name="advps_ps_hover">
|
1520 |
-
<option value="yes" selected="selected">Yes</option>
|
1521 |
-
<option value="no">No</option>
|
1522 |
-
</select></td>
|
1523 |
-
</tr>
|
1524 |
-
</table>
|
1525 |
-
</fieldset>
|
1526 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
1527 |
-
<legend style="margin-left:10px;"><strong>Container & Thumbnail</strong></legend>
|
1528 |
-
<table class="form-table">
|
1529 |
-
<tr>
|
1530 |
-
<th scope="row">Select Thumbnail</th>
|
1531 |
-
<td><select name="advps_thumbnail">
|
1532 |
-
<option value="thumbnail">thumbnail</option>
|
1533 |
-
<option value="medium">medium</option>
|
1534 |
-
<option value="large">large</option>
|
1535 |
-
<option value="full">full</option>
|
1536 |
-
<?php
|
1537 |
-
global $_wp_additional_image_sizes;
|
1538 |
-
unset($_wp_additional_image_sizes['post-thumbnail']);
|
1539 |
-
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
1540 |
-
?>
|
1541 |
-
<option value="<?php echo $tkey;?>" <?php if('advps-thumb-one' == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
1542 |
-
<?php
|
1543 |
-
}
|
1544 |
-
?>
|
1545 |
-
</select></td>
|
1546 |
-
</tr>
|
1547 |
-
<tr>
|
1548 |
-
<th scope="row">Slide Container</th>
|
1549 |
-
<td>Width
|
1550 |
-
<input type="text" name="advps_sld_width" value="624" style="width:80px;" onkeypress="return onlyNum(event);" />
|
1551 |
-
px Height
|
1552 |
-
<input type="text" name="advps_sld_height" value="225" style="width:80px;" onkeypress="return onlyNum(event);" />
|
1553 |
-
px</td>
|
1554 |
-
</tr>
|
1555 |
-
<tr>
|
1556 |
-
<th scope="row">Padding</th>
|
1557 |
-
<td><input type="text" name="advps_contpad1" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1558 |
-
px
|
1559 |
-
<input type="text" name="advps_contpad2" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1560 |
-
px
|
1561 |
-
<input type="text" name="advps_contpad3" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1562 |
-
px
|
1563 |
-
<input type="text" name="advps_contpad4" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1564 |
-
px </td>
|
1565 |
-
</tr>
|
1566 |
-
<tr>
|
1567 |
-
<th scope="row">Background Color</th>
|
1568 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="#FFFFFF" style="width:100px;" />
|
1569 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1570 |
-
</tr>
|
1571 |
-
<tr>
|
1572 |
-
<th scope="row">Border</th>
|
1573 |
-
<td><span style="vertical-align:top">
|
1574 |
-
<input type="text" name="advps_border_size" value="<?php echo $dataSet['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1575 |
-
px
|
1576 |
-
<select name="advps_border_type">
|
1577 |
-
<option value="dashed">dashed</option>
|
1578 |
-
<option value="dotted">dotted</option>
|
1579 |
-
<option value="double">double</option>
|
1580 |
-
<option value="solid">solid</option>
|
1581 |
-
<option value="inset">inset</option>
|
1582 |
-
<option value="outset">outset</option>
|
1583 |
-
</select>
|
1584 |
-
</span>
|
1585 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="#444444" style="width:100px;" />
|
1586 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1587 |
-
</tr>
|
1588 |
-
<tr>
|
1589 |
-
<th scope="row">Remove Border</th>
|
1590 |
-
<td><select name="advps_remove_border">
|
1591 |
-
<option value="yes" selected="selected">Yes</option>
|
1592 |
-
<option value="no">No</option>
|
1593 |
-
</select></td>
|
1594 |
-
</tr>
|
1595 |
-
<tr>
|
1596 |
-
<th scope="row">Box Shadow</th>
|
1597 |
-
<td><span style="vertical-align:top">
|
1598 |
-
<input type="text" name="advps_bxshad1" value="0" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1599 |
-
px
|
1600 |
-
<input type="text" name="advps_bxshad2" value="1" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1601 |
-
px
|
1602 |
-
<input type="text" name="advps_bxshad3" value="4" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1603 |
-
px </span>
|
1604 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="#000000" style="width:100px;" />
|
1605 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1606 |
-
</tr>
|
1607 |
-
<tr>
|
1608 |
-
<th scope="row">Remove Shadow</th>
|
1609 |
-
<td><select name="advps_remove_shd">
|
1610 |
-
<option value="yes">Yes</option>
|
1611 |
-
<option value="no" selected="selected">No</option>
|
1612 |
-
</select></td>
|
1613 |
-
</tr>
|
1614 |
-
<tr>
|
1615 |
-
<th scope="row">Image Orientation</th>
|
1616 |
-
<td><select name="advps_img_Orientation">
|
1617 |
-
<option value="horizontal" selected="selected">Horizontal</option>
|
1618 |
-
<option value="vertical">Vertical</option>
|
1619 |
-
</select>
|
1620 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Skip this if you want to show single image per slide.]</span></td>
|
1621 |
-
</tr>
|
1622 |
-
<tr>
|
1623 |
-
<th scope="row">Margin between Images</th>
|
1624 |
-
<td><input type="text" name="advps_imagemar" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1625 |
-
px <span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Skip this if you want to show single image per slide.]</span></td>
|
1626 |
-
</tr>
|
1627 |
-
<tr>
|
1628 |
-
<th scope="row">Enable/Disable link</th>
|
1629 |
-
<td><select name="advps_ed_link">
|
1630 |
-
<option value="enable">Enable</option>
|
1631 |
-
<option value="disable" selected="selected">Disable</option>
|
1632 |
-
</select></td>
|
1633 |
-
</tr>
|
1634 |
-
<tr>
|
1635 |
-
<th scope="row">link type</th>
|
1636 |
-
<td><select name="advps_link_type">
|
1637 |
-
<option value="permalink" selected="selected">Permalink</option>
|
1638 |
-
<option value="custom">Custom</option>
|
1639 |
-
</select>
|
1640 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
1641 |
-
</tr>
|
1642 |
-
<tr>
|
1643 |
-
<th scope="row">link target</th>
|
1644 |
-
<td><select name="advps_link_target">
|
1645 |
-
<option value="_self" selected="selected">_self</option>
|
1646 |
-
<option value="_blank">_blank</option>
|
1647 |
-
<option value="_new">_new</option>
|
1648 |
-
<option value="_top">_top</option>
|
1649 |
-
<option value="_parent">_parent</option>
|
1650 |
-
</select></td>
|
1651 |
-
</tr>
|
1652 |
-
</table>
|
1653 |
-
</fieldset>
|
1654 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
1655 |
-
<legend style="margin-left:10px;"><strong>Navigation</strong></legend>
|
1656 |
-
<table class="form-table">
|
1657 |
-
<tr>
|
1658 |
-
<th scope="row">Exclude pager</th>
|
1659 |
-
<td><select name="advps_exclude_pager">
|
1660 |
-
<option value="yes">Yes</option>
|
1661 |
-
<option value="no" selected="selected">No</option>
|
1662 |
-
</select></td>
|
1663 |
-
</tr>
|
1664 |
-
<tr>
|
1665 |
-
<th scope="row">Pager type</th>
|
1666 |
-
<td><span style="padding-right:5px;">Number</span>
|
1667 |
-
<input type="radio" name="advps_pager_type" value="number">
|
1668 |
-
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
1669 |
-
<input type="radio" name="advps_pager_type" value="bullet" checked="checked"></td>
|
1670 |
-
</tr>
|
1671 |
-
<tr>
|
1672 |
-
<th scope="row">Pager position</th>
|
1673 |
-
<td>Right
|
1674 |
-
<input type="text" name="advps_pager_right" value="8" style="width:50px;" onkeypress="return onlyNum(event);" />
|
1675 |
-
px Bottom
|
1676 |
-
<input type="text" name="advps_pager_bottom" value="6" style="width:50px;" onkeypress="return onlyNum(event);" />
|
1677 |
-
px</td>
|
1678 |
-
</tr>
|
1679 |
-
<tr>
|
1680 |
-
<th scope="row">Exclude Next/Previous</th>
|
1681 |
-
<td><select name="advps_exclude_nxtprev">
|
1682 |
-
<option value="yes">Yes</option>
|
1683 |
-
<option value="no" selected="selected">No</option>
|
1684 |
-
</select></td>
|
1685 |
-
</tr>
|
1686 |
-
<tr>
|
1687 |
-
<th scope="row">Exclude Play/Pause</th>
|
1688 |
-
<td><select name="advps_exclude_playpause">
|
1689 |
-
<option value="yes">Yes</option>
|
1690 |
-
<option value="no" selected="selected">No</option>
|
1691 |
-
</select></td>
|
1692 |
-
</tr>
|
1693 |
-
</table>
|
1694 |
-
</fieldset>
|
1695 |
-
<input type="hidden" name="template" value="two" />
|
1696 |
-
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
1697 |
-
<p>
|
1698 |
-
<input type="submit" name="advps_submit" value="Add" class="button-primary" style="width:90px; font-weight:bold" />
|
1699 |
-
<span style="margin-left:10px;">
|
1700 |
-
<button class="button-secondary" style="width:90px; height:25px;">Cancel</button>
|
1701 |
-
</span></p>
|
1702 |
-
</form>
|
1703 |
-
</div>
|
1704 |
-
</div>
|
1705 |
-
</div>
|
1706 |
-
</div>
|
1707 |
-
<?php }else{?>
|
1708 |
-
<div style="position:relative; float:left; width:100%">
|
1709 |
-
<form method="post">
|
1710 |
-
<input type="submit" class="button-secondary" value="Add New" name="advps_add" />
|
1711 |
-
</form>
|
1712 |
-
</div>
|
1713 |
-
<?php }}elseif($currTab == 'three'){foreach( $res3 as $dset){ $dataSet = unserialize($dset->opt_data)?>
|
1714 |
-
<div class="metabox-holder" style="margin-top:20px;">
|
1715 |
-
<div class="postbox-container" style="width:65%">
|
1716 |
-
<div class="postbox <?php if(!isset($_POST['opt_id']) || $_POST['opt_id'] != $dset->id){echo 'closed';}?>">
|
1717 |
-
<div class="handlediv" title=""> <br>
|
1718 |
-
</div>
|
1719 |
-
<h3 style="cursor:pointer; text-align:center" class="advps-expand"> <span>Option Set</span> </h3>
|
1720 |
-
<div class="inside">
|
1721 |
-
<div style="position:absolute; top:1.2%; right:4%; font-weight:bold; border:1px solid #393;padding:2px 15px;">ID = <?php echo $dset->id;?></div>
|
1722 |
-
<form method="post">
|
1723 |
-
<fieldset>
|
1724 |
-
<legend style="margin-left:10px;"><strong>Query</strong></legend>
|
1725 |
-
<table class="form-table">
|
1726 |
-
<tr>
|
1727 |
-
<th scope="row">Post Type</th>
|
1728 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
1729 |
-
<option value="post" <?php if($dataSet['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
1730 |
-
<option value="page" <?php if($dataSet['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
1731 |
-
<?php
|
1732 |
-
foreach ($customPostTypes as $post_type ) {
|
1733 |
-
?>
|
1734 |
-
<option value="<?php echo $post_type;?>" <?php if($dataSet['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
1735 |
-
<?php
|
1736 |
-
}
|
1737 |
-
?>
|
1738 |
-
</select></td>
|
1739 |
-
</tr>
|
1740 |
-
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
1741 |
-
<?php if($dataSet['advps_post_types'] != "page"){?>
|
1742 |
-
<th scope="row">Category</th>
|
1743 |
-
<td><select name="advps_category[]" multiple="multiple">
|
1744 |
-
<?php
|
1745 |
-
$catList = get_categories();
|
1746 |
-
foreach($catList as $scat){
|
1747 |
-
?>
|
1748 |
-
<option value="<?php echo $scat->term_id;?>" <?php if(isset($dataSet['advps_category']) && in_array($scat->term_id,$dataSet['advps_category'])){echo 'selected="selected"';}?>><?php echo $scat->name;?></option>
|
1749 |
-
<?php }?>
|
1750 |
-
</select>
|
1751 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple category ]</span></td>
|
1752 |
-
<?php }?>
|
1753 |
-
</tr>
|
1754 |
-
<tr>
|
1755 |
-
<th scope="row">Max. Number of post</th>
|
1756 |
-
<td><input type="text" name="advps_maxpost" value="<?php echo $dataSet['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1757 |
-
</tr>
|
1758 |
-
<tr>
|
1759 |
-
<th scope="row">Exclude</th>
|
1760 |
-
<td><input type="text" name="advps_exclude" value="<?php echo $dataSet['advps_exclude'];?>" style="width:100px;" />
|
1761 |
-
<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>
|
1762 |
-
</tr>
|
1763 |
-
<tr>
|
1764 |
-
<th scope="row">Order by</th>
|
1765 |
-
<td><select name="advps_order_by">
|
1766 |
-
<option value="date" <?php if($dataSet['advps_order_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
1767 |
-
<option value="ID" <?php if($dataSet['advps_order_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
1768 |
-
<option value="author" <?php if($dataSet['advps_order_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
1769 |
-
<option value="title" <?php if($dataSet['advps_order_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
1770 |
-
<option value="name" <?php if($dataSet['advps_order_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
1771 |
-
<option value="rand" <?php if($dataSet['advps_order_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
1772 |
-
<option value="menu_order" <?php if($dataSet['advps_order_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
1773 |
-
<option value="comment_count" <?php if($dataSet['advps_order_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
1774 |
-
</select></td>
|
1775 |
-
</tr>
|
1776 |
-
<tr>
|
1777 |
-
<th scope="row">Order</th>
|
1778 |
-
<td><select name="advps_order">
|
1779 |
-
<option value="ASC" <?php if($dataSet['advps_order'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
1780 |
-
<option value="DESC" <?php if($dataSet['advps_order'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
1781 |
-
</select></td>
|
1782 |
-
</tr>
|
1783 |
-
</table>
|
1784 |
-
</fieldset>
|
1785 |
-
<fieldset>
|
1786 |
-
<legend style="margin-left:10px;"><strong>Effects</strong></legend>
|
1787 |
-
<table class="form-table">
|
1788 |
-
<tr>
|
1789 |
-
<th scope="row">Effect</th>
|
1790 |
-
<td><select name="advps_effects">
|
1791 |
-
<option value="blindX" <?php if($dataSet['advps_effects'] == 'blindX'){echo 'selected="selected"';}?>>blindX</option>
|
1792 |
-
<option value="blindY" <?php if($dataSet['advps_effects'] == 'blindY'){echo 'selected="selected"';}?>>blindY</option>
|
1793 |
-
<option value="blindZ" <?php if($dataSet['advps_effects'] == 'blindZ'){echo 'selected="selected"';}?>>blindZ</option>
|
1794 |
-
<option value="cover" <?php if($dataSet['advps_effects'] == 'cover'){echo 'selected="selected"';}?>>cover</option>
|
1795 |
-
<option value="curtainX" <?php if($dataSet['advps_effects'] == 'curtainX'){echo 'selected="selected"';}?>>curtainX</option>
|
1796 |
-
<option value="curtainY" <?php if($dataSet['advps_effects'] == 'curtainY'){echo 'selected="selected"';}?>>curtainY</option>
|
1797 |
-
<option value="fade" <?php if($dataSet['advps_effects'] == 'fade'){echo 'selected="selected"';}?>>fade</option>
|
1798 |
-
<option value="fadeZoom" <?php if($dataSet['advps_effects'] == 'fadeZoom'){echo 'selected="selected"';}?>>fadeZoom</option>
|
1799 |
-
<option value="growX" <?php if($dataSet['advps_effects'] == 'growX'){echo 'selected="selected"';}?>>growX</option>
|
1800 |
-
<option value="growY" <?php if($dataSet['advps_effects'] == 'growY'){echo 'selected="selected"';}?>>growY</option>
|
1801 |
-
<option value="none" <?php if($dataSet['advps_effects'] == 'none'){echo 'selected="selected"';}?>>none</option>
|
1802 |
-
<option value="scrollUp" <?php if($dataSet['advps_effects'] == 'scrollUp'){echo 'selected="selected"';}?>>scrollUp</option>
|
1803 |
-
<option value="scrollDown" <?php if($dataSet['advps_effects'] == 'scrollDown'){echo 'selected="selected"';}?>>scrollDown</option>
|
1804 |
-
<option value="scrollLeft" <?php if($dataSet['advps_effects'] == 'scrollLeft'){echo 'selected="selected"';}?>>scrollLeft</option>
|
1805 |
-
<option value="scrollRight" <?php if($dataSet['advps_effects'] == 'scrollRight'){echo 'selected="selected"';}?>>scrollRight</option>
|
1806 |
-
<option value="scrollHorz" <?php if($dataSet['advps_effects'] == 'scrollHorz'){echo 'selected="selected"';}?>>scrollHorz</option>
|
1807 |
-
<option value="scrollVert" <?php if($dataSet['advps_effects'] == 'scrollVert'){echo 'selected="selected"';}?>>scrollVert</option>
|
1808 |
-
<option value="shuffle" <?php if($dataSet['advps_effects'] == 'shuffle'){echo 'selected="selected"';}?>>shuffle</option>
|
1809 |
-
<option value="slideX" <?php if($dataSet['advps_effects'] == 'slideX'){echo 'selected="selected"';}?>>slideX</option>
|
1810 |
-
<option value="slideY" <?php if($dataSet['advps_effects'] == 'slideY'){echo 'selected="selected"';}?>>slideY</option>
|
1811 |
-
<option value="toss" <?php if($dataSet['advps_effects'] == 'toss'){echo 'selected="selected"';}?>>toss</option>
|
1812 |
-
<option value="turnUp" <?php if($dataSet['advps_effects'] == 'turnUp'){echo 'selected="selected"';}?>>turnUp</option>
|
1813 |
-
<option value="turnDown" <?php if($dataSet['advps_effects'] == 'turnDown'){echo 'selected="selected"';}?>>turnDown</option>
|
1814 |
-
<option value="turnLeft" <?php if($dataSet['advps_effects'] == 'turnLeft'){echo 'selected="selected"';}?>>turnLeft</option>
|
1815 |
-
<option value="turnRight" <?php if($dataSet['advps_effects'] == 'turnRight'){echo 'selected="selected"';}?>>turnRight</option>
|
1816 |
-
<option value="uncover" <?php if($dataSet['advps_effects'] == 'uncover'){echo 'selected="selected"';}?>>uncover</option>
|
1817 |
-
<option value="wipe" <?php if($dataSet['advps_effects'] == 'wipe'){echo 'selected="selected"';}?>>wipe</option>
|
1818 |
-
<option value="zoom" <?php if($dataSet['advps_effects'] == 'zoom'){echo 'selected="selected"';}?>>zoom</option>
|
1819 |
-
</select></td>
|
1820 |
-
</tr>
|
1821 |
-
<tr>
|
1822 |
-
<th scope="row">Timeout</th>
|
1823 |
-
<td><input type="text" name="advps_timeout" value="<?php echo $dataSet['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
1824 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ 0 to disable auto advance.]</span></td>
|
1825 |
-
</tr>
|
1826 |
-
<tr>
|
1827 |
-
<th scope="row">Easing</th>
|
1828 |
-
<td><select name="advps_easing">
|
1829 |
-
<option value="linear" <?php if($dataSet['advps_easing'] == 'linear'){echo 'selected="selected"';}?>>linear</option>
|
1830 |
-
<option value="swing" <?php if($dataSet['advps_easing'] == 'swing'){echo 'selected="selected"';}?>>swing</option>
|
1831 |
-
<option value="jswing" <?php if($dataSet['advps_easing'] == 'jswing'){echo 'selected="selected"';}?>>jswing</option>
|
1832 |
-
<option value="easeInQuad" <?php if($dataSet['advps_easing'] == 'easeInQuad'){echo 'selected="selected"';}?>>easeInQuad</option>
|
1833 |
-
<option value="easeOutQuad" <?php if($dataSet['advps_easing'] == 'easeOutQuad'){echo 'selected="selected"';}?>>easeOutQuad</option>
|
1834 |
-
<option value="easeInOutQuad" <?php if($dataSet['advps_easing'] == 'easeInOutQuad'){echo 'selected="selected"';}?>>easeInOutQuad</option>
|
1835 |
-
<option value="easeInCubic" <?php if($dataSet['advps_easing'] == 'easeInCubic'){echo 'selected="selected"';}?>>easeInCubic</option>
|
1836 |
-
<option value="easeOutCubic" <?php if($dataSet['advps_easing'] == 'easeOutCubic'){echo 'selected="selected"';}?>>easeOutCubic</option>
|
1837 |
-
<option value="easeInOutCubic" <?php if($dataSet['advps_easing'] == 'easeInOutCubic'){echo 'selected="selected"';}?>>easeInOutCubic</option>
|
1838 |
-
<option value="easeInQuart" <?php if($dataSet['advps_easing'] == 'easeInQuart'){echo 'selected="selected"';}?>>easeInQuart</option>
|
1839 |
-
<option value="easeOutQuart" <?php if($dataSet['advps_easing'] == 'easeOutQuart'){echo 'selected="selected"';}?>>easeOutQuart</option>
|
1840 |
-
<option value="easeInOutQuart" <?php if($dataSet['advps_easing'] == 'easeInOutQuart'){echo 'selected="selected"';}?>>easeInOutQuart</option>
|
1841 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeInQuint'){echo 'selected="selected"';}?>>easeInQuint</option>
|
1842 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeOutQuint'){echo 'selected="selected"';}?>>easeOutQuint</option>
|
1843 |
-
<option value="easeInQuint" <?php if($dataSet['advps_easing'] == 'easeInOutQuint'){echo 'selected="selected"';}?>>easeInOutQuint</option>
|
1844 |
-
<option value="easeInSine" <?php if($dataSet['advps_easing'] == 'easeInSine'){echo 'selected="selected"';}?>>easeInSine</option>
|
1845 |
-
<option value="easeOutSine" <?php if($dataSet['advps_easing'] == 'easeOutSine'){echo 'selected="selected"';}?>>easeOutSine</option>
|
1846 |
-
<option value="easeInOutSine" <?php if($dataSet['advps_easing'] == 'easeInOutSine'){echo 'selected="selected"';}?>>easeInOutSine</option>
|
1847 |
-
<option value="easeInExpo" <?php if($dataSet['advps_easing'] == 'easeInExpo'){echo 'selected="selected"';}?>>easeInExpo</option>
|
1848 |
-
<option value="easeOutExpo" <?php if($dataSet['advps_easing'] == 'easeOutExpo'){echo 'selected="selected"';}?>>easeOutExpo</option>
|
1849 |
-
<option value="easeInOutExpo" <?php if($dataSet['advps_easing'] == 'easeInOutExpo'){echo 'selected="selected"';}?>>easeInOutExpo</option>
|
1850 |
-
<option value="easeInCirc" <?php if($dataSet['advps_easing'] == 'easeInCirc'){echo 'selected="selected"';}?>>easeInCirc</option>
|
1851 |
-
<option value="easeOutCirc" <?php if($dataSet['advps_easing'] == 'easeOutCirc'){echo 'selected="selected"';}?>>easeOutCirc</option>
|
1852 |
-
<option value="easeInOutCirc" <?php if($dataSet['advps_easing'] == 'easeInOutCirc'){echo 'selected="selected"';}?>>easeInOutCirc</option>
|
1853 |
-
<option value="easeInBounce" <?php if($dataSet['advps_easing'] == 'easeInBounce'){echo 'selected="selected"';}?>>easeInBounce</option>
|
1854 |
-
<option value="easeOutBounce" <?php if($dataSet['advps_easing'] == 'easeOutBounce'){echo 'selected="selected"';}?>>easeOutBounce</option>
|
1855 |
-
<option value="easeInOutBounce" <?php if($dataSet['advps_easing'] == 'easeInOutBounce'){echo 'selected="selected"';}?>>easeInOutBounce</option>
|
1856 |
-
<option value="easeInElastic" <?php if($dataSet['advps_easing'] == 'easeInElastic'){echo 'selected="selected"';}?>>easeInElastic</option>
|
1857 |
-
<option value="easeOutElastic" <?php if($dataSet['advps_easing'] == 'easeOutElastic'){echo 'selected="selected"';}?>>easeOutElastic</option>
|
1858 |
-
<option value="easeInOutElastic" <?php if($dataSet['advps_easing'] == 'easeInOutElastic'){echo 'selected="selected"';}?>>easeInOutElastic</option>
|
1859 |
-
<option value="easeInBack" <?php if($dataSet['advps_easing'] == 'easeInBack'){echo 'selected="selected"';}?>>easeInBack</option>
|
1860 |
-
<option value="easeOutBack" <?php if($dataSet['advps_easing'] == 'easeOutBack'){echo 'selected="selected"';}?>>easeOutBack</option>
|
1861 |
-
<option value="easeInOutBack" <?php if($dataSet['advps_easing'] == 'easeInOutBack'){echo 'selected="selected"';}?>>easeInOutBack</option>
|
1862 |
-
</select></td>
|
1863 |
-
</tr>
|
1864 |
-
<tr>
|
1865 |
-
<th scope="row">Speed</th>
|
1866 |
-
<td><input type="text" name="advps_speed" value="<?php echo $dataSet['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
1867 |
-
</tr>
|
1868 |
-
<tr>
|
1869 |
-
<th scope="row">Enable pause on hover</th>
|
1870 |
-
<td><select name="advps_ps_hover">
|
1871 |
-
<option value="yes" <?php if($dataSet['advps_ps_hover'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1872 |
-
<option value="no" <?php if($dataSet['advps_ps_hover'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1873 |
-
</select></td>
|
1874 |
-
</tr>
|
1875 |
-
</table>
|
1876 |
-
</fieldset>
|
1877 |
-
<fieldset>
|
1878 |
-
<legend style="margin-left:10px;"><strong>Content</strong></legend>
|
1879 |
-
<table class="form-table">
|
1880 |
-
<tr>
|
1881 |
-
<th scope="row">Show on slide</th>
|
1882 |
-
<td><select name="advps_content_set[]" multiple="multiple">
|
1883 |
-
<option value="thumb" <?php if(in_array('thumb',$dataSet['advps_content_set'])){echo 'selected="selected"';}?>>Thumbnail</option>
|
1884 |
-
<option value="title" <?php if(in_array('title',$dataSet['advps_content_set'])){echo 'selected="selected"';}?>>Title</option>
|
1885 |
-
<option value="excerpt" <?php if(in_array('excerpt',$dataSet['advps_content_set'])){echo 'selected="selected"';}?>>Excerpt</option>
|
1886 |
-
<option value="content" <?php if(in_array('content',$dataSet['advps_content_set'])){echo 'selected="selected"';}?>>Content</option>
|
1887 |
-
</select>
|
1888 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple ]</span></td>
|
1889 |
-
</tr>
|
1890 |
-
<tr>
|
1891 |
-
<th scope="row">Select Thumbnail</th>
|
1892 |
-
<td><select name="advps_thumbnail">
|
1893 |
-
<option value="thumbnail" <?php if($dataSet['advps_thumbnail'] == 'thumbnail'){echo 'selected="selected"';}?>>thumbnail</option>
|
1894 |
-
<option value="medium" <?php if($dataSet['advps_thumbnail'] == 'medium'){echo 'selected="selected"';}?>>medium</option>
|
1895 |
-
<option value="large" <?php if($dataSet['advps_thumbnail'] == 'large'){echo 'selected="selected"';}?>>large</option>
|
1896 |
-
<option value="full" <?php if($dataSet['advps_thumbnail'] == 'full'){echo 'selected="selected"';}?>>full</option>
|
1897 |
-
<?php
|
1898 |
-
global $_wp_additional_image_sizes;
|
1899 |
-
unset($_wp_additional_image_sizes['post-thumbnail']);
|
1900 |
-
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
1901 |
-
?>
|
1902 |
-
<option value="<?php echo $tkey;?>" <?php if($dataSet['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
1903 |
-
<?php
|
1904 |
-
}
|
1905 |
-
?>
|
1906 |
-
</select></td>
|
1907 |
-
</tr>
|
1908 |
-
<tr>
|
1909 |
-
<th scope="row">Slide Container</th>
|
1910 |
-
<td>Width
|
1911 |
-
<input type="text" name="advps_sld_width" value="<?php echo $dataSet['advps_sld_width'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
1912 |
-
px Height
|
1913 |
-
<input type="text" name="advps_sld_height" value="<?php echo $dataSet['advps_sld_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
1914 |
-
px</td>
|
1915 |
-
</tr>
|
1916 |
-
<tr>
|
1917 |
-
<th scope="row">Padding</th>
|
1918 |
-
<td><input type="text" name="advps_contpad1" value="<?php echo $dataSet['advps_contpad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1919 |
-
px
|
1920 |
-
<input type="text" name="advps_contpad2" value="<?php echo $dataSet['advps_contpad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1921 |
-
px
|
1922 |
-
<input type="text" name="advps_contpad3" value="<?php echo $dataSet['advps_contpad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1923 |
-
px
|
1924 |
-
<input type="text" name="advps_contpad4" value="<?php echo $dataSet['advps_contpad4'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1925 |
-
px </td>
|
1926 |
-
</tr>
|
1927 |
-
<tr>
|
1928 |
-
<th scope="row">Background Color</th>
|
1929 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $dataSet['advps_bgcolor'];?>" style="width:100px;" />
|
1930 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1931 |
-
</tr>
|
1932 |
-
<tr>
|
1933 |
-
<th scope="row">Border</th>
|
1934 |
-
<td><span style="vertical-align:top">
|
1935 |
-
<input type="text" name="advps_border_size" value="<?php echo $dataSet['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1936 |
-
px
|
1937 |
-
<select name="advps_border_type">
|
1938 |
-
<option value="dashed" <?php if($dataSet['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
1939 |
-
<option value="dotted" <?php if($dataSet['advps_border_type'] == 'dotted'){echo 'selected="selected"';}?>>dotted</option>
|
1940 |
-
<option value="double" <?php if($dataSet['advps_border_type'] == 'double'){echo 'selected="selected"';}?>>double</option>
|
1941 |
-
<option value="solid" <?php if($dataSet['advps_border_type'] == 'solid'){echo 'selected="selected"';}?>>solid</option>
|
1942 |
-
<option value="inset" <?php if($dataSet['advps_border_type'] == 'inset'){echo 'selected="selected"';}?>>inset</option>
|
1943 |
-
<option value="outset" <?php if($dataSet['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
1944 |
-
</select>
|
1945 |
-
</span>
|
1946 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="<?php echo $dataSet['advps_border_color'];?>" style="width:100px;" />
|
1947 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1948 |
-
</tr>
|
1949 |
-
<tr>
|
1950 |
-
<th scope="row">Remove Border</th>
|
1951 |
-
<td><select name="advps_remove_border">
|
1952 |
-
<option value="yes" <?php if($dataSet['advps_remove_border'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1953 |
-
<option value="no" <?php if($dataSet['advps_remove_border'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1954 |
-
</select></td>
|
1955 |
-
</tr>
|
1956 |
-
<tr>
|
1957 |
-
<th scope="row">Box Shadow</th>
|
1958 |
-
<td><span style="vertical-align:top">
|
1959 |
-
<input type="text" name="advps_bxshad1" value="<?php echo $dataSet['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1960 |
-
px
|
1961 |
-
<input type="text" name="advps_bxshad2" value="<?php echo $dataSet['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1962 |
-
px
|
1963 |
-
<input type="text" name="advps_bxshad3" value="<?php echo $dataSet['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
1964 |
-
px </span>
|
1965 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $dataSet['advps_bxshadcolor'];?>" style="width:100px;" />
|
1966 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1967 |
-
</tr>
|
1968 |
-
<tr>
|
1969 |
-
<th scope="row">Remove Shadow</th>
|
1970 |
-
<td><select name="advps_remove_shd">
|
1971 |
-
<option value="yes" <?php if($dataSet['advps_remove_shd'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
1972 |
-
<option value="no" <?php if($dataSet['advps_remove_shd'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
1973 |
-
</select></td>
|
1974 |
-
</tr>
|
1975 |
-
<tr>
|
1976 |
-
<th scope="row">Content width</th>
|
1977 |
-
<td><input type="text" name="advps_cont_width" value="<?php echo $dataSet['advps_cont_width'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
1978 |
-
px</td>
|
1979 |
-
</tr>
|
1980 |
-
<tr>
|
1981 |
-
<th scope="row">Title tag</th>
|
1982 |
-
<td><select name="advps_ttitle_tag">
|
1983 |
-
<option value="h1" <?php if($dataSet['advps_ttitle_tag'] == 'h1'){echo 'selected="selected"';}?>>h1</option>
|
1984 |
-
<option value="h2" <?php if($dataSet['advps_ttitle_tag'] == 'h2'){echo 'selected="selected"';}?>>h2</option>
|
1985 |
-
<option value="h3" <?php if($dataSet['advps_ttitle_tag'] == 'h3'){echo 'selected="selected"';}?>>h3</option>
|
1986 |
-
<option value="div" <?php if($dataSet['advps_ttitle_tag'] == 'div'){echo 'selected="selected"';}?>>div</option>
|
1987 |
-
</select></td>
|
1988 |
-
</tr>
|
1989 |
-
<tr>
|
1990 |
-
<th scope="row">Title font Color</th>
|
1991 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleFcolor" value="<?php echo $dataSet['advps_titleFcolor'];?>" style="width:100px;" class="advps-color-picker" />
|
1992 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1993 |
-
</tr>
|
1994 |
-
<tr>
|
1995 |
-
<th scope="row">Title hover Color</th>
|
1996 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleHcolor" value="<?php echo $dataSet['advps_titleHcolor'];?>" style="width:100px;" class="advps-color-picker" />
|
1997 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
1998 |
-
</tr>
|
1999 |
-
<tr>
|
2000 |
-
<th scope="row">Title font size</th>
|
2001 |
-
<td><input type="text" name="advps_titleFsize" value="<?php echo $dataSet['advps_titleFsize'];?>" style="width:60px;" />
|
2002 |
-
px</td>
|
2003 |
-
</tr>
|
2004 |
-
<tr>
|
2005 |
-
<th scope="row">Excerpt/Content font color</th>
|
2006 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_excptFcolor" value="<?php echo $dataSet['advps_excptFcolor'];?>" style="width:100px;" />
|
2007 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2008 |
-
</tr>
|
2009 |
-
<tr>
|
2010 |
-
<th scope="row">Excerpt/Content font size</th>
|
2011 |
-
<td><input type="text" name="advps_excptFsize" value="<?php echo $dataSet['advps_excptFsize'];?>" style="width:60px;" />
|
2012 |
-
px</td>
|
2013 |
-
</tr>
|
2014 |
-
<tr>
|
2015 |
-
<th scope="row">Excerpt length</th>
|
2016 |
-
<td><input type="text" name="advps_excerptlen" value="<?php echo $dataSet['advps_excerptlen'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
2017 |
-
words</td>
|
2018 |
-
</tr>
|
2019 |
-
<tr>
|
2020 |
-
<th scope="row">Enable/Disable link</th>
|
2021 |
-
<td><select name="advps_ed_link">
|
2022 |
-
<option value="enable" <?php if($dataSet['advps_ed_link'] == 'enable'){echo 'selected="selected"';}?>>Enable</option>
|
2023 |
-
<option value="disable" <?php if($dataSet['advps_ed_link'] == 'disable'){echo 'selected="selected"';}?>>Disable</option>
|
2024 |
-
</select></td>
|
2025 |
-
</tr>
|
2026 |
-
<tr>
|
2027 |
-
<th scope="row">link type</th>
|
2028 |
-
<td><select name="advps_link_type">
|
2029 |
-
<option value="permalink" <?php if($dataSet['advps_link_type'] == 'permalink'){echo 'selected="selected"';}?>>Permalink</option>
|
2030 |
-
<option value="custom" <?php if($dataSet['advps_link_type'] == 'custom'){echo 'selected="selected"';}?>>Custom</option>
|
2031 |
-
</select>
|
2032 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
2033 |
-
</tr>
|
2034 |
-
<tr>
|
2035 |
-
<th scope="row">link target</th>
|
2036 |
-
<td><select name="advps_link_target">
|
2037 |
-
<option value="_self" <?php if($dataSet['advps_link_target'] == '_self'){echo 'selected="selected"';}?>>_self</option>
|
2038 |
-
<option value="_blank" <?php if($dataSet['advps_link_target'] == '_blank'){echo 'selected="selected"';}?>>_blank</option>
|
2039 |
-
<option value="_new" <?php if($dataSet['advps_link_target'] == '_new'){echo 'selected="selected"';}?>>_new</option>
|
2040 |
-
<option value="_top" <?php if($dataSet['advps_link_target'] == '_top'){echo 'selected="selected"';}?>>_top</option>
|
2041 |
-
<option value="_parent" <?php if($dataSet['advps_link_target'] == '_parent'){echo 'selected="selected"';}?>>_parent</option>
|
2042 |
-
</select></td>
|
2043 |
-
</tr>
|
2044 |
-
</table>
|
2045 |
-
</fieldset>
|
2046 |
-
<fieldset>
|
2047 |
-
<legend style="margin-left:10px;"><strong>Navigation</strong></legend>
|
2048 |
-
<table class="form-table">
|
2049 |
-
<tr>
|
2050 |
-
<th scope="row">Exclude pager</th>
|
2051 |
-
<td><select name="advps_exclude_pager">
|
2052 |
-
<option value="yes" <?php if($dataSet['advps_exclude_pager'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
2053 |
-
<option value="no" <?php if($dataSet['advps_exclude_pager'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
2054 |
-
</select></td>
|
2055 |
-
</tr>
|
2056 |
-
<tr>
|
2057 |
-
<th scope="row">Pager type</th>
|
2058 |
-
<td><span style="padding-right:5px;">Number</span>
|
2059 |
-
<input type="radio" name="advps_pager_type" value="number" <?php if($dataSet['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
2060 |
-
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
2061 |
-
<input type="radio" name="advps_pager_type" value="bullet" <?php if($dataSet['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>></td>
|
2062 |
-
</tr>
|
2063 |
-
<tr>
|
2064 |
-
<th scope="row">Pager position</th>
|
2065 |
-
<td>Right
|
2066 |
-
<input type="text" name="advps_pager_right" value="<?php echo $dataSet['advps_pager_right'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
|
2067 |
-
px Bottom
|
2068 |
-
<input type="text" name="advps_pager_bottom" value="<?php echo $dataSet['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
|
2069 |
-
px</td>
|
2070 |
-
</tr>
|
2071 |
-
<tr>
|
2072 |
-
<th scope="row">Exclude Next/Previous</th>
|
2073 |
-
<td><select name="advps_exclude_nxtprev">
|
2074 |
-
<option value="yes" <?php if($dataSet['advps_exclude_nxtprev'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
2075 |
-
<option value="no" <?php if($dataSet['advps_exclude_nxtprev'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
2076 |
-
</select></td>
|
2077 |
-
</tr>
|
2078 |
-
<tr>
|
2079 |
-
<th scope="row">Exclude Play/Pause</th>
|
2080 |
-
<td><select name="advps_exclude_playpause">
|
2081 |
-
<option value="yes" <?php if($dataSet['advps_exclude_playpause'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
2082 |
-
<option value="no" <?php if($dataSet['advps_exclude_playpause'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
2083 |
-
</select></td>
|
2084 |
-
</tr>
|
2085 |
-
</table>
|
2086 |
-
</fieldset>
|
2087 |
-
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
2088 |
-
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
2089 |
-
<p>
|
2090 |
-
<input type="submit" name="advps_submit" value="Save changes" class="button-primary" />
|
2091 |
-
</p>
|
2092 |
-
</form>
|
2093 |
-
</div>
|
2094 |
-
</div>
|
2095 |
-
</div>
|
2096 |
-
</div>
|
2097 |
-
<?php }?>
|
2098 |
-
<?php if(isset($_POST['advps_add'])){?>
|
2099 |
-
<div class="metabox-holder" style="margin-top:20px;">
|
2100 |
-
<div class="postbox-container" style="width:65%">
|
2101 |
-
<div class="postbox">
|
2102 |
-
<div class="handlediv" title=""> <br>
|
2103 |
-
</div>
|
2104 |
-
<h3 style="cursor:pointer; text-align:center" class="advps-expand"> <span>Add new option set</span> </h3>
|
2105 |
-
<div class="inside">
|
2106 |
-
<form method="post">
|
2107 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px; margin-bottom:10px;">
|
2108 |
-
<legend style="margin-left:10px;"><strong>Query</strong></legend>
|
2109 |
-
<table class="form-table">
|
2110 |
-
<tr>
|
2111 |
-
<th scope="row">Post Type</th>
|
2112 |
-
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,'add')">
|
2113 |
-
<option value="post" selected="selected">post</option>
|
2114 |
-
<option value="page">page</option>
|
2115 |
-
<?php
|
2116 |
-
foreach ($customPostTypes as $post_type ) {
|
2117 |
-
?>
|
2118 |
-
<option value="<?php echo $post_type;?>"><?php echo $post_type;?></option>
|
2119 |
-
<?php
|
2120 |
-
}
|
2121 |
-
?>
|
2122 |
-
</select></td>
|
2123 |
-
</tr>
|
2124 |
-
<tr id="advps-cat-fieldadd">
|
2125 |
-
<th scope="row">Category</th>
|
2126 |
-
<td><select name="advps_category[]" multiple="multiple">
|
2127 |
-
<?php
|
2128 |
-
$catList = get_categories();
|
2129 |
-
foreach($catList as $scat){
|
2130 |
-
?>
|
2131 |
-
<option value="<?php echo $scat->term_id;?>"><?php echo $scat->name;?></option>
|
2132 |
-
<?php }?>
|
2133 |
-
</select>
|
2134 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * You can select multiple category ]</span></td>
|
2135 |
-
</tr>
|
2136 |
-
<tr>
|
2137 |
-
<th scope="row">Max. Number of post</th>
|
2138 |
-
<td><input type="text" name="advps_maxpost" value="10" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
2139 |
-
</tr>
|
2140 |
-
<tr>
|
2141 |
-
<th scope="row">Exclude</th>
|
2142 |
-
<td><input type="text" name="advps_exclude" value="" style="width:100px;" />
|
2143 |
-
<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>
|
2144 |
-
</tr>
|
2145 |
-
<tr>
|
2146 |
-
<th scope="row">Order by</th>
|
2147 |
-
<td><select name="advps_order_by">
|
2148 |
-
<option value="date" selected="selected">Date</option>
|
2149 |
-
<option value="ID">ID</option>
|
2150 |
-
<option value="author">Author</option>
|
2151 |
-
<option value="title">Title</option>
|
2152 |
-
<option value="name">Name</option>
|
2153 |
-
<option value="rand">Random</option>
|
2154 |
-
<option value="menu_order">Menu order</option>
|
2155 |
-
<option value="comment_count">Comment count</option>
|
2156 |
-
</select></td>
|
2157 |
-
</tr>
|
2158 |
-
<tr>
|
2159 |
-
<th scope="row">Order</th>
|
2160 |
-
<td><select name="advps_order">
|
2161 |
-
<option value="ASC">Ascending</option>
|
2162 |
-
<option value="DESC" selected="selected">Descending</option>
|
2163 |
-
</select></td>
|
2164 |
-
</tr>
|
2165 |
-
</table>
|
2166 |
-
</fieldset>
|
2167 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
2168 |
-
<legend style="margin-left:10px;"><strong>Effects</strong></legend>
|
2169 |
-
<table class="form-table">
|
2170 |
-
<tr>
|
2171 |
-
<th scope="row">Effect</th>
|
2172 |
-
<td><select name="advps_effects">
|
2173 |
-
<option value="blindX">blindX</option>
|
2174 |
-
<option value="blindY">blindY</option>
|
2175 |
-
<option value="blindZ">blindZ</option>
|
2176 |
-
<option value="cover">cover</option>
|
2177 |
-
<option value="curtainX">curtainX</option>
|
2178 |
-
<option value="curtainY">curtainY</option>
|
2179 |
-
<option value="fade">fade</option>
|
2180 |
-
<option value="fadeZoom">fadeZoom</option>
|
2181 |
-
<option value="growX">growX</option>
|
2182 |
-
<option value="growY">growY</option>
|
2183 |
-
<option value="none">none</option>
|
2184 |
-
<option value="scrollUp">scrollUp</option>
|
2185 |
-
<option value="scrollDown">scrollDown</option>
|
2186 |
-
<option value="scrollLeft">scrollLeft</option>
|
2187 |
-
<option value="scrollRight">scrollRight</option>
|
2188 |
-
<option value="scrollHorz">scrollHorz</option>
|
2189 |
-
<option value="scrollVert">scrollVert</option>
|
2190 |
-
<option value="shuffle">shuffle</option>
|
2191 |
-
<option value="slideX">slideX</option>
|
2192 |
-
<option value="slideY">slideY</option>
|
2193 |
-
<option value="toss">toss</option>
|
2194 |
-
<option value="turnUp">turnUp</option>
|
2195 |
-
<option value="turnDown">turnDown</option>
|
2196 |
-
<option value="turnLeft">turnLeft</option>
|
2197 |
-
<option value="turnRight">turnRight</option>
|
2198 |
-
<option value="uncover" selected="selected">uncover</option>
|
2199 |
-
<option value="wipe">wipe</option>
|
2200 |
-
<option value="zoom">zoom</option>
|
2201 |
-
</select></td>
|
2202 |
-
</tr>
|
2203 |
-
<tr>
|
2204 |
-
<th scope="row">Timeout</th>
|
2205 |
-
<td><input type="text" name="advps_timeout" value="2000" style="width:60px;" onkeypress="return onlyNum(event);" />
|
2206 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ 0 to disable auto advance.]</span></td>
|
2207 |
-
</tr>
|
2208 |
-
<tr>
|
2209 |
-
<th scope="row">Easing</th>
|
2210 |
-
<td><select name="advps_easing">
|
2211 |
-
<option value="linear" selected="selected">linear</option>
|
2212 |
-
<option value="swing">swing</option>
|
2213 |
-
<option value="jswing">jswing</option>
|
2214 |
-
<option value="easeInQuad">easeInQuad</option>
|
2215 |
-
<option value="easeOutQuad">easeOutQuad</option>
|
2216 |
-
<option value="easeInOutQuad">easeInOutQuad</option>
|
2217 |
-
<option value="easeInCubic">easeInCubic</option>
|
2218 |
-
<option value="easeOutCubic">easeOutCubic</option>
|
2219 |
-
<option value="easeInOutCubic">easeInOutCubic</option>
|
2220 |
-
<option value="easeInQuart">easeInQuart</option>
|
2221 |
-
<option value="easeOutQuart">easeOutQuart</option>
|
2222 |
-
<option value="easeInOutQuart">easeInOutQuart</option>
|
2223 |
-
<option value="easeInQuint">easeInQuint</option>
|
2224 |
-
<option value="easeInQuint">easeOutQuint</option>
|
2225 |
-
<option value="easeInQuint">easeInOutQuint</option>
|
2226 |
-
<option value="easeInSine">easeInSine</option>
|
2227 |
-
<option value="easeOutSine">easeOutSine</option>
|
2228 |
-
<option value="easeInOutSine">easeInOutSine</option>
|
2229 |
-
<option value="easeInExpo">easeInExpo</option>
|
2230 |
-
<option value="easeOutExpo">easeOutExpo</option>
|
2231 |
-
<option value="easeInOutExpo">easeInOutExpo</option>
|
2232 |
-
<option value="easeInCirc">easeInCirc</option>
|
2233 |
-
<option value="easeOutCirc">easeOutCirc</option>
|
2234 |
-
<option value="easeInOutCirc">easeInOutCirc</option>
|
2235 |
-
<option value="easeInBounce">easeInBounce</option>
|
2236 |
-
<option value="easeOutBounce">easeOutBounce</option>
|
2237 |
-
<option value="easeInOutBounce">easeInOutBounce</option>
|
2238 |
-
<option value="easeInElastic">easeInElastic</option>
|
2239 |
-
<option value="easeOutElastic">easeOutElastic</option>
|
2240 |
-
<option value="easeInOutElastic">easeInOutElastic</option>
|
2241 |
-
<option value="easeInBack">easeInBack</option>
|
2242 |
-
<option value="easeOutBack">easeOutBack</option>
|
2243 |
-
<option value="easeInOutBack">easeInOutBack</option>
|
2244 |
-
</select></td>
|
2245 |
-
</tr>
|
2246 |
-
<tr>
|
2247 |
-
<th scope="row">Speed</th>
|
2248 |
-
<td><input type="text" name="advps_speed" value="1500" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
2249 |
-
</tr>
|
2250 |
-
<tr>
|
2251 |
-
<th scope="row">Enable pause on hover</th>
|
2252 |
-
<td><select name="advps_ps_hover">
|
2253 |
-
<option value="yes" selected="selected">Yes</option>
|
2254 |
-
<option value="no">No</option>
|
2255 |
-
</select></td>
|
2256 |
-
</tr>
|
2257 |
-
</table>
|
2258 |
-
</fieldset>
|
2259 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
2260 |
-
<legend style="margin-left:10px;"><strong>Content</strong></legend>
|
2261 |
-
<table class="form-table">
|
2262 |
-
<tr>
|
2263 |
-
<th scope="row">Show on slide</th>
|
2264 |
-
<td><select name="advps_content_set[]" multiple="multiple">
|
2265 |
-
<option value="thumb" selected="selected">Thumbnail</option>
|
2266 |
-
<option value="title" selected="selected">Title</option>
|
2267 |
-
<option value="excerpt" selected="selected">Excerpt</option>
|
2268 |
-
<option value="content">Content</option>
|
2269 |
-
</select>
|
2270 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple ]</span></td>
|
2271 |
-
</tr>
|
2272 |
-
<tr>
|
2273 |
-
<th scope="row">Select Thumbnail</th>
|
2274 |
-
<td><select name="advps_thumbnail">
|
2275 |
-
<option value="thumbnail">thumbnail</option>
|
2276 |
-
<option value="medium"selected="selected">medium</option>
|
2277 |
-
<option value="large">large</option>
|
2278 |
-
<option value="full">full</option>
|
2279 |
-
<?php
|
2280 |
-
global $_wp_additional_image_sizes;
|
2281 |
-
unset($_wp_additional_image_sizes['post-thumbnail']);
|
2282 |
-
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
2283 |
-
?>
|
2284 |
-
<option value="<?php echo $tkey;?>"><?php echo $tkey;?></option>
|
2285 |
-
<?php
|
2286 |
-
}
|
2287 |
-
?>
|
2288 |
-
</select></td>
|
2289 |
-
</tr>
|
2290 |
-
<tr>
|
2291 |
-
<th scope="row">Slide Container</th>
|
2292 |
-
<td>Width
|
2293 |
-
<input type="text" name="advps_sld_width" value="624" style="width:80px;" onkeypress="return onlyNum(event);" />
|
2294 |
-
px Height
|
2295 |
-
<input type="text" name="advps_sld_height" value="225" style="width:80px;" onkeypress="return onlyNum(event);" />
|
2296 |
-
px</td>
|
2297 |
-
</tr>
|
2298 |
-
<tr>
|
2299 |
-
<th scope="row">Padding</th>
|
2300 |
-
<td><input type="text" name="advps_contpad1" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2301 |
-
px
|
2302 |
-
<input type="text" name="advps_contpad2" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2303 |
-
px
|
2304 |
-
<input type="text" name="advps_contpad3" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2305 |
-
px
|
2306 |
-
<input type="text" name="advps_contpad4" value="10" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2307 |
-
px </td>
|
2308 |
-
</tr>
|
2309 |
-
<tr>
|
2310 |
-
<th scope="row">Background Color</th>
|
2311 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="#FFFFFF" style="width:100px;" />
|
2312 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2313 |
-
</tr>
|
2314 |
-
<tr>
|
2315 |
-
<th scope="row">Border</th>
|
2316 |
-
<td><span style="vertical-align:top">
|
2317 |
-
<input type="text" name="advps_border_size" value="1" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2318 |
-
px
|
2319 |
-
<select name="advps_border_type">
|
2320 |
-
<option value="dashed">dashed</option>
|
2321 |
-
<option value="dotted">dotted</option>
|
2322 |
-
<option value="double">double</option>
|
2323 |
-
<option value="solid"selected="selected">solid</option>
|
2324 |
-
<option value="inset">inset</option>
|
2325 |
-
<option value="outset">outset</option>
|
2326 |
-
</select>
|
2327 |
-
</span>
|
2328 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_border_color" value="#444444" style="width:100px;" />
|
2329 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2330 |
-
</tr>
|
2331 |
-
<tr>
|
2332 |
-
<th scope="row">Remove Border</th>
|
2333 |
-
<td><select name="advps_remove_border">
|
2334 |
-
<option value="yes" selected="selected">Yes</option>
|
2335 |
-
<option value="no">No</option>
|
2336 |
-
</select></td>
|
2337 |
-
</tr>
|
2338 |
-
<tr>
|
2339 |
-
<th scope="row">Box Shadow</th>
|
2340 |
-
<td><span style="vertical-align:top">
|
2341 |
-
<input type="text" name="advps_bxshad1" value="0" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2342 |
-
px
|
2343 |
-
<input type="text" name="advps_bxshad2" value="1" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2344 |
-
px
|
2345 |
-
<input type="text" name="advps_bxshad3" value="4" style="width:40px;" onkeypress="return onlyNum(event);" />
|
2346 |
-
px </span>
|
2347 |
-
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="#000000" style="width:100px;" />
|
2348 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2349 |
-
</tr>
|
2350 |
-
<tr>
|
2351 |
-
<th scope="row">Remove Shadow</th>
|
2352 |
-
<td><select name="advps_remove_shd">
|
2353 |
-
<option value="yes">Yes</option>
|
2354 |
-
<option value="no" selected="selected">No</option>
|
2355 |
-
</select></td>
|
2356 |
-
</tr>
|
2357 |
-
<tr>
|
2358 |
-
<th scope="row">Content width</th>
|
2359 |
-
<td><input type="text" name="advps_cont_width" value="280" style="width:60px;" onkeypress="return onlyNum(event);" />
|
2360 |
-
px</td>
|
2361 |
-
</tr>
|
2362 |
-
<tr>
|
2363 |
-
<th scope="row">Title tag</th>
|
2364 |
-
<td><select name="advps_ttitle_tag">
|
2365 |
-
<option value="h1">h1</option>
|
2366 |
-
<option value="h2" selected="selected">h2</option>
|
2367 |
-
<option value="h3">h3</option>
|
2368 |
-
<option value="div">div</option>
|
2369 |
-
</select></td>
|
2370 |
-
</tr>
|
2371 |
-
<tr>
|
2372 |
-
<th scope="row">Title font Color</th>
|
2373 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleFcolor" value="#000000" style="width:100px;" class="advps-color-picker" />
|
2374 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2375 |
-
</tr>
|
2376 |
-
<tr>
|
2377 |
-
<th scope="row">Title hover Color</th>
|
2378 |
-
<td><input id="advpscolor<?php echo ++$flg?>" type="text" name="advps_titleHcolor" value="#E6E6E6" style="width:100px;" class="advps-color-picker" />
|
2379 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2380 |
-
</tr>
|
2381 |
-
<tr>
|
2382 |
-
<th scope="row">Title font size</th>
|
2383 |
-
<td><input type="text" name="advps_titleFsize" value="22" style="width:60px;" />
|
2384 |
-
px</td>
|
2385 |
-
</tr>
|
2386 |
-
<tr>
|
2387 |
-
<th scope="row">Excerpt/Content font color</th>
|
2388 |
-
<td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_excptFcolor" value="#333333" style="width:100px;" />
|
2389 |
-
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
2390 |
-
</tr>
|
2391 |
-
<tr>
|
2392 |
-
<th scope="row">Excerpt/Content font size</th>
|
2393 |
-
<td><input type="text" name="advps_excptFsize" value="12" style="width:60px;" />
|
2394 |
-
px</td>
|
2395 |
-
</tr>
|
2396 |
-
<tr>
|
2397 |
-
<th scope="row">Excerpt length</th>
|
2398 |
-
<td><input type="text" name="advps_excerptlen" value="30" style="width:60px;" onkeypress="return onlyNum(event);" />
|
2399 |
-
words</td>
|
2400 |
-
</tr>
|
2401 |
-
<tr>
|
2402 |
-
<th scope="row">Enable/Disable link</th>
|
2403 |
-
<td><select name="advps_ed_link">
|
2404 |
-
<option value="enable" selected="selected">Enable</option>
|
2405 |
-
<option value="disable">Disable</option>
|
2406 |
-
</select></td>
|
2407 |
-
</tr>
|
2408 |
-
<tr>
|
2409 |
-
<th scope="row">link type</th>
|
2410 |
-
<td><select name="advps_link_type">
|
2411 |
-
<option value="permalink" selected="selected">Permalink</option>
|
2412 |
-
<option value="custom">Custom</option>
|
2413 |
-
</select>
|
2414 |
-
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
2415 |
-
</tr>
|
2416 |
-
<tr>
|
2417 |
-
<th scope="row">link target</th>
|
2418 |
-
<td><select name="advps_link_target">
|
2419 |
-
<option value="_self" selected="selected">_self</option>
|
2420 |
-
<option value="_blank">_blank</option>
|
2421 |
-
<option value="_new">_new</option>
|
2422 |
-
<option value="_top">_top</option>
|
2423 |
-
<option value="_parent">_parent</option>
|
2424 |
-
</select></td>
|
2425 |
-
</tr>
|
2426 |
-
</table>
|
2427 |
-
</fieldset>
|
2428 |
-
<fieldset style="border:1px solid #D9D9D9; border-radius:2px;margin-bottom:10px;">
|
2429 |
-
<legend style="margin-left:10px;"><strong>Navigation</strong></legend>
|
2430 |
-
<table class="form-table">
|
2431 |
-
<tr>
|
2432 |
-
<th scope="row">Exclude pager</th>
|
2433 |
-
<td><select name="advps_exclude_pager">
|
2434 |
-
<option value="yes">Yes</option>
|
2435 |
-
<option value="no" selected="selected">No</option>
|
2436 |
-
</select></td>
|
2437 |
-
</tr>
|
2438 |
-
<tr>
|
2439 |
-
<th scope="row">Pager type</th>
|
2440 |
-
<td><span style="padding-right:5px;">Number</span>
|
2441 |
-
<input type="radio" name="advps_pager_type" value="number">
|
2442 |
-
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
2443 |
-
<input type="radio" name="advps_pager_type" value="bullet" checked="checked"></td>
|
2444 |
-
</tr>
|
2445 |
-
<tr>
|
2446 |
-
<th scope="row">Pager position</th>
|
2447 |
-
<td>Right
|
2448 |
-
<input type="text" name="advps_pager_right" value="8" style="width:50px;" onkeypress="return onlyNum(event);" />
|
2449 |
-
px Bottom
|
2450 |
-
<input type="text" name="advps_pager_bottom" value="6" style="width:50px;" onkeypress="return onlyNum(event);" />
|
2451 |
-
px</td>
|
2452 |
-
</tr>
|
2453 |
-
<tr>
|
2454 |
-
<th scope="row">Exclude Next/Previous</th>
|
2455 |
-
<td><select name="advps_exclude_nxtprev">
|
2456 |
-
<option value="yes">Yes</option>
|
2457 |
-
<option value="no" selected="selected">No</option>
|
2458 |
-
</select></td>
|
2459 |
-
</tr>
|
2460 |
-
<tr>
|
2461 |
-
<th scope="row">Exclude Play/Pause</th>
|
2462 |
-
<td><select name="advps_exclude_playpause">
|
2463 |
-
<option value="yes">Yes</option>
|
2464 |
-
<option value="no" selected="selected">No</option>
|
2465 |
-
</select></td>
|
2466 |
-
</tr>
|
2467 |
-
</table>
|
2468 |
-
</fieldset>
|
2469 |
-
<input type="hidden" name="template" value="three" />
|
2470 |
-
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
2471 |
-
<p>
|
2472 |
-
<input type="submit" name="advps_submit" value="Add" class="button-primary" style="width:90px; font-weight:bold" />
|
2473 |
-
<span style="margin-left:10px;">
|
2474 |
-
<button class="button-secondary" style="width:90px; height:25px;">Cancel</button>
|
2475 |
-
</span></p>
|
2476 |
-
</form>
|
2477 |
-
</div>
|
2478 |
-
</div>
|
2479 |
-
</div>
|
2480 |
-
</div>
|
2481 |
-
<?php }else{?>
|
2482 |
-
<div style="position:relative; float:left; width:100%">
|
2483 |
-
<form method="post">
|
2484 |
-
<input type="submit" class="button-secondary" value="Add New" name="advps_add" />
|
2485 |
-
</form>
|
2486 |
-
</div>
|
2487 |
-
<?php }}elseif($currTab == 'thumb'){?>
|
2488 |
<div class="metabox-holder" style="margin-top:20px;">
|
2489 |
<div class="postbox-container" style="width:65%">
|
2490 |
<div class="postbox" style="margin-bottom:15px;">
|
2491 |
<h3><strong>Thumbnail settings</strong></h3>
|
2492 |
-
<table class="form-table">
|
2493 |
<?php foreach( $res_thumb as $thmb){?>
|
2494 |
<tr>
|
2495 |
<form method="post">
|
@@ -2513,6 +262,7 @@ fieldset {
|
|
2513 |
</tr>
|
2514 |
<?php }?>
|
2515 |
</table>
|
|
|
2516 |
</div>
|
2517 |
<?php if(!isset($_POST['advps_add_thumb']) || $_POST['advps_add_thumb'] != 'Add New'){?>
|
2518 |
<div style="position:relative; float:left; width:100%;">
|
@@ -2550,4 +300,4 @@ fieldset {
|
|
2550 |
</div>
|
2551 |
<?php }?>
|
2552 |
</div>
|
2553 |
-
<meta name="wpversion" content="<?php echo $wp_version;?>" />
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
|
|
|
|
|
|
|
|
|
4 |
global $wpdb;
|
5 |
global $wp_version;
|
6 |
$stsMgs = '';
|
13 |
{
|
14 |
$currTab = 'one';
|
15 |
}
|
16 |
+
if(isset($_POST['optset-id'])){
|
17 |
+
if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
|
18 |
+
{
|
19 |
+
print 'Sorry, your nonce did not verify.';
|
20 |
+
exit;
|
21 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
+
$q_del = $wpdb->prepare("delete from ".$wpdb->prefix."advps_optionset where id = %d",$_POST['optset-id']);
|
|
|
|
|
24 |
|
25 |
+
if($wpdb->query($q_del)){
|
26 |
+
$stsMgs = "Deleted successfully.";
|
|
|
27 |
}
|
28 |
+
}
|
29 |
+
if(isset($_POST['advps_submit'])){
|
30 |
+
|
31 |
+
if($_POST['advps_submit'] == 'Add new option set'){
|
32 |
|
33 |
if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
|
34 |
{
|
42 |
if( ! in_array( $template, $tem_list )){
|
43 |
exit;
|
44 |
}
|
45 |
+
global $advpsPlist;
|
46 |
+
global $advpsQuery;
|
47 |
+
global $advpsSlide;
|
48 |
+
//global $advpsSlide2;
|
49 |
+
global $advpsCaroTicker;
|
50 |
+
global $advpsContainer;
|
51 |
+
global $advpsContainer2;
|
52 |
+
global $advpsContainer3;
|
53 |
+
global $advpsContent;
|
54 |
+
global $advpsContent2;
|
55 |
+
global $advpsNavigation;
|
56 |
|
57 |
+
if( $template == 'one'){
|
58 |
+
$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($advpsContainer),serialize($advpsContent),serialize($advpsNavigation));
|
59 |
+
}
|
60 |
+
elseif( $template == 'two'){
|
61 |
+
$q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,plist,query,slider,caro_ticker,container,navigation) values(%s,%s,%s,%s,%s,%s,%s)",$template,serialize($advpsPlist),serialize($advpsQuery),serialize($advpsSlide),serialize($advpsCaroTicker),serialize($advpsContainer2),serialize($advpsNavigation));
|
62 |
+
}
|
63 |
+
elseif($template == 'three'){
|
64 |
+
$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));
|
|
|
65 |
}
|
|
|
|
|
|
|
66 |
if($wpdb->query($q_add)){
|
67 |
+
update_option('advpssmethod'.$_POST['nextoptid'],'plist');
|
68 |
$stsMgs = "Added successfully.";
|
69 |
}
|
70 |
}
|
111 |
}
|
112 |
}
|
113 |
|
114 |
+
$q1 = "select * from ".$wpdb->prefix."advps_optionset where template = 'one'";
|
115 |
+
$q2 = "select * from ".$wpdb->prefix."advps_optionset where template = 'two'";
|
116 |
+
$q3 = "select * from ".$wpdb->prefix."advps_optionset where template = 'three'";
|
117 |
$res1 = $wpdb->get_results($q1);
|
118 |
$res2 = $wpdb->get_results($q2);
|
119 |
$res3 = $wpdb->get_results($q3);
|
123 |
$catList = get_categories();
|
124 |
$customPostTypes = get_post_types(array('public' => true, '_builtin' => false));
|
125 |
?>
|
126 |
+
<script>
|
127 |
+
jQuery(document).ready(function($) {
|
128 |
+
$("legend.advps-legend").click(function(){
|
129 |
+
if($(this).hasClass('advpssm')){
|
130 |
+
$(this).parent().find("div").eq(0).slideToggle(100,'linear',function(){});
|
131 |
+
}
|
132 |
+
else{
|
133 |
+
$(this).parent().find("table").slideToggle(100,'linear',function(){});
|
134 |
+
}
|
135 |
+
if($(this).hasClass('closed')){
|
136 |
+
$(this).css('background-image','url(<?php echo advps_url?>images/up.png)');
|
137 |
+
$(this).removeClass('closed');
|
138 |
+
}
|
139 |
+
else
|
140 |
+
{
|
141 |
+
$(this).css('background-image','url(<?php echo advps_url?>images/down.png)');
|
142 |
+
$(this).addClass('closed');
|
143 |
+
}
|
144 |
+
})
|
145 |
+
});
|
146 |
+
</script>
|
147 |
<style>
|
148 |
+
.form-table th
|
149 |
+
{
|
150 |
+
font-size:12px;
|
151 |
+
}
|
152 |
fieldset {
|
153 |
+
border:1px solid #999999;
|
154 |
+
margin-bottom:20px;
|
155 |
+
padding:0px 5px 10px 20px;
|
156 |
+
}
|
157 |
+
.advps-legend
|
158 |
+
{
|
159 |
+
background-color:#6E6E6E;
|
160 |
+
background-image:url(<?php echo advps_url?>images/up.png);
|
161 |
+
background-repeat:no-repeat;
|
162 |
+
background-position: 96px 6px;
|
163 |
+
color:#FFF;
|
164 |
+
border:1px solid #999;
|
165 |
+
padding:4px 10px;
|
166 |
+
font-size:12px;
|
167 |
+
margin-left:10px;
|
168 |
+
cursor:pointer;
|
169 |
+
border-radius:4px;
|
170 |
}
|
171 |
+
.postbox .inside{
|
172 |
position:relative;
|
173 |
+
margin: 15px 25px;
|
174 |
+
}
|
175 |
+
.wp-admin select
|
176 |
+
{
|
177 |
+
font-size:12px;
|
178 |
}
|
179 |
.wp-admin select[multiple], #wpcontent select[multiple] {
|
180 |
height: auto;
|
181 |
}
|
182 |
+
.form-table, .form-table td, .form-table th, .form-table td p, .form-wrap label
|
183 |
+
{
|
184 |
+
font-size:12px;
|
185 |
+
}
|
186 |
+
.advps-optset-label
|
187 |
+
{
|
188 |
+
width:200px;
|
189 |
+
}
|
190 |
+
.ajx-sts
|
191 |
+
{
|
192 |
+
color: #298A08;
|
193 |
+
font-size: 12px;
|
194 |
+
font-style: italic;
|
195 |
+
font-weight: bold;
|
196 |
+
padding-left: 20px;
|
197 |
+
}
|
198 |
+
.postbox .down
|
199 |
+
{
|
200 |
+
background-image:url(<?php echo advps_url?>images/downb.png);
|
201 |
+
background-repeat:no-repeat;
|
202 |
+
background-position: 4px 10px;
|
203 |
+
}
|
204 |
+
.postbox .up
|
205 |
+
{
|
206 |
+
background-image:url(<?php echo advps_url?>images/upb.png);
|
207 |
+
background-repeat:no-repeat;
|
208 |
+
background-position: 4px 10px;
|
209 |
+
}
|
210 |
+
.advps-highlight
|
211 |
+
{
|
212 |
+
border: 1px solid #7AD03A !important;
|
213 |
+
}
|
214 |
+
.advps-hide{
|
215 |
+
display:none;
|
216 |
+
}
|
217 |
+
.advps-fade
|
218 |
+
{
|
219 |
+
color:#D1D0CE;
|
220 |
+
}
|
221 |
</style>
|
222 |
<div class="wrap">
|
223 |
<?php if($stsMgs != ''){?>
|
225 |
<p><?php echo $stsMgs;?></p>
|
226 |
</div>
|
227 |
<?php }?>
|
228 |
+
<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>
|
|
|
229 |
</h2>
|
230 |
+
<?php if($currTab == 'one'){
|
231 |
+
require 'templates/template-one.php';
|
232 |
+
}elseif($currTab == 'two'){
|
233 |
+
require 'templates/template-two.php';
|
234 |
+
}elseif($currTab == 'three'){
|
235 |
+
require 'templates/template-three.php';
|
236 |
+
}elseif($currTab == 'thumb'){?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
<div class="metabox-holder" style="margin-top:20px;">
|
238 |
<div class="postbox-container" style="width:65%">
|
239 |
<div class="postbox" style="margin-bottom:15px;">
|
240 |
<h3><strong>Thumbnail settings</strong></h3>
|
241 |
+
<table class="form-table" style="margin-left:12px;">
|
242 |
<?php foreach( $res_thumb as $thmb){?>
|
243 |
<tr>
|
244 |
<form method="post">
|
262 |
</tr>
|
263 |
<?php }?>
|
264 |
</table>
|
265 |
+
<p style="margin-left:12px; font-style:italic; font-size:12px; font-weight:bold;"><span style="text-decoration:underline; font-weight:bolder;">N.B.</span> From version 2 you dont need to re-generate your existing post thumbnail after creating a new thumbnail size or changing dimensions of existing advps thumbnail size.</p>
|
266 |
</div>
|
267 |
<?php if(!isset($_POST['advps_add_thumb']) || $_POST['advps_add_thumb'] != 'Add New'){?>
|
268 |
<div style="position:relative; float:left; width:100%;">
|
300 |
</div>
|
301 |
<?php }?>
|
302 |
</div>
|
303 |
+
<meta name="wpversion" content="<?php echo $wp_version;?>" />
|
advps-db.php
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
+
|
4 |
+
global $advpsPlist;
|
5 |
+
global $advpsQuery;
|
6 |
+
global $advpsSlide;
|
7 |
+
//global $advpsSlide2;
|
8 |
+
global $advpsCaroTicker;
|
9 |
+
global $advpsContainer;
|
10 |
+
global $advpsContainer2;
|
11 |
+
global $advpsContainer3;
|
12 |
+
global $advpsContent;
|
13 |
+
global $advpsContent2;
|
14 |
+
global $advpsNavigation;
|
15 |
+
|
16 |
+
$advpsPlist = array(
|
17 |
+
"advps_post_stypes" => "post",
|
18 |
+
"advps_plistmax" => "99",
|
19 |
+
"advps_plistorder_by" => "name",
|
20 |
+
"advps_plistorder" => "ASC",
|
21 |
+
"advps_plist" => array()
|
22 |
+
);
|
23 |
+
|
24 |
+
$advpsQuery = array(
|
25 |
+
"advps_post_types" => "post",
|
26 |
+
"advps_maxpost" => "10",
|
27 |
+
"advps_offset" => "",
|
28 |
+
"advps_exclude" => "",
|
29 |
+
"advps_order_by" => "date",
|
30 |
+
"advps_order" => "DESC"
|
31 |
+
);
|
32 |
+
|
33 |
+
$advpsSlide = array(
|
34 |
+
"advps_slider_type" => "standard",
|
35 |
+
"advps_transition" => "css3",
|
36 |
+
"advps_effects" => "fade",
|
37 |
+
"advps_speed" => "2000",
|
38 |
+
"advps_autoplay" => "yes",
|
39 |
+
"advps_timeout" => "3000",
|
40 |
+
"advps_sldmargin" => "0",
|
41 |
+
"advps_ps_hover" => "yes"
|
42 |
+
);
|
43 |
+
//$advpsSlide2 = array_merge($advpsSlide,array("advps_slider_type" => "standard"));
|
44 |
+
|
45 |
+
$advpsCaroTicker = array(
|
46 |
+
"advps_caro_slds" => "3",
|
47 |
+
"advps_caro_sldwidth" => "180",
|
48 |
+
);
|
49 |
+
|
50 |
+
$advpsContainer = array(
|
51 |
+
"advps_thumbnail" => "advps-thumb-one",
|
52 |
+
"advps_default_image" => "",
|
53 |
+
"advps_sld_width" => "600",
|
54 |
+
"advps_bgcolor" => "#FFFFFF",
|
55 |
+
"advps_border_size" => "1",
|
56 |
+
"advps_border_type" => "solid",
|
57 |
+
"advps_border_color" => "#444444",
|
58 |
+
"advps_remove_border" => "no",
|
59 |
+
"advps_bxshad1" => "0",
|
60 |
+
"advps_bxshad2" => "1",
|
61 |
+
"advps_bxshad3" => "4",
|
62 |
+
"advps_bxshadcolor" => "#000000",
|
63 |
+
"advps_remove_shd" => "no"
|
64 |
+
);
|
65 |
+
$advpsContainer2 = array_merge($advpsContainer,array("advps_ed_link" => "enable","advps_link_type" => "permalink","advps_link_target" => "_self"));
|
66 |
+
|
67 |
+
$advpsContainer3 = array_merge($advpsContainer,array("advps_contpad1" => "10","advps_contpad2" => "10","advps_contpad3" => "10","advps_contpad4" => "10","advps_thumbnail" => "medium"));
|
68 |
+
|
69 |
+
$advpsContent = array(
|
70 |
+
"advps_overlay_width" => "30",
|
71 |
+
"advps_overlay_height" => "100",
|
72 |
+
"advps_overlay_color" => "#000000",
|
73 |
+
"advps_overlay_opacity" => "0.6",
|
74 |
+
"advps_text_opacity" => "1",
|
75 |
+
"advps_text_align" => "left",
|
76 |
+
"advps_ttitle_tag" => "h2",
|
77 |
+
"advps_titleFcolor" => "#FFFFFF",
|
78 |
+
"advps_titleHcolor" => "#c9c9c9",
|
79 |
+
"advps_titleFsize" => "1.5",
|
80 |
+
"advps_ttitleFSunit" => "vw",
|
81 |
+
"advps_titleLheight" => "1.6",
|
82 |
+
"advps_ttitleLHunit" => "vw",
|
83 |
+
"advps_excptFcolor" => "#FFFFFF",
|
84 |
+
"advps_excptFsize" => "1",
|
85 |
+
"advps_excptFSunit" => "vw",
|
86 |
+
"advps_excptLheight" => "1",
|
87 |
+
"advps_excptLHunit" => "vw",
|
88 |
+
"advps_excerptlen" => "25",
|
89 |
+
"advps_excpt_visibility" => "always show",
|
90 |
+
"advps_excpt_position" => "left",
|
91 |
+
"advps_exclude_excpt" => "no",
|
92 |
+
"advps_ed_link" => "enable",
|
93 |
+
"advps_link_type" => "permalink",
|
94 |
+
"advps_link_target" => "_self"
|
95 |
+
);
|
96 |
+
$advpsContent2 = array(
|
97 |
+
"advps_content_set" => array(0=>"thumb",1=>"title",2=>"excerpt"),
|
98 |
+
"advps_cont_width" => "250",
|
99 |
+
"advps_ttitle_tag" => "h2",
|
100 |
+
"advps_titleFcolor" => "#565656",
|
101 |
+
"advps_titleHcolor" => "#000000",
|
102 |
+
"advps_titleFsize" => "1.5",
|
103 |
+
"advps_ttitleFSunit" => "vw",
|
104 |
+
"advps_titleLheight" => "1.6",
|
105 |
+
"advps_ttitleLHunit" => "vw",
|
106 |
+
"advps_excptFcolor" => "#444444",
|
107 |
+
"advps_excptFsize" => "1",
|
108 |
+
"advps_excptFSunit" => "vw",
|
109 |
+
"advps_excptLheight" => "1",
|
110 |
+
"advps_excptLHunit" => "vw",
|
111 |
+
"advps_excerptlen" => "25",
|
112 |
+
"advps_ed_link" => "enable",
|
113 |
+
"advps_link_type" => "permalink",
|
114 |
+
"advps_link_target" => "_self"
|
115 |
+
);
|
116 |
+
$advpsNavigation = array(
|
117 |
+
"advps_exclude_pager" => "no",
|
118 |
+
"advps_pager_type" => "bullet",
|
119 |
+
"advps_pthumb_width" => "10",
|
120 |
+
"advps_pager_align" => "center",
|
121 |
+
"advps_pager_bottom" => "-35",
|
122 |
+
"advps_exclude_playpause" => "no",
|
123 |
+
"advps_ppause_align" => "center",
|
124 |
+
"advps_ppause_bottom" => "6",
|
125 |
+
"advps_exclude_nxtprev" => "no"
|
126 |
+
);
|
127 |
+
|
128 |
+
function set_advps_options(){
|
129 |
+
global $wpdb;
|
130 |
+
global $advpsPlist;
|
131 |
+
global $advpsQuery;
|
132 |
+
global $advpsSlide;
|
133 |
+
global $advpsSlide2;
|
134 |
+
global $advpsCaroTicker;
|
135 |
+
global $advpsContainer;
|
136 |
+
global $advpsContainer2;
|
137 |
+
global $advpsContainer3;
|
138 |
+
global $advpsContent;
|
139 |
+
global $advpsContent2;
|
140 |
+
global $advpsNavigation;
|
141 |
+
|
142 |
+
$db_version = get_option('advps-db-version');
|
143 |
+
$advps_opt_table = $wpdb->prefix.'advps_optionset';
|
144 |
+
|
145 |
+
if(!get_option('advpssmethod1')){
|
146 |
+
add_option('advpssmethod1','plist');
|
147 |
+
}
|
148 |
+
if(!get_option('advpssmethod2')){
|
149 |
+
add_option('advpssmethod2','plist');
|
150 |
+
}
|
151 |
+
if(!get_option('advpssmethod3')){
|
152 |
+
add_option('advpssmethod3','plist');
|
153 |
+
}
|
154 |
+
|
155 |
+
if( $wpdb->get_results("SHOW TABLES LIKE '".$advps_opt_table."'") && $db_version < 2 ){
|
156 |
+
$wpdb->query("DROP TABLE ".$advps_opt_table);
|
157 |
+
}
|
158 |
+
|
159 |
+
$ins_q = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."advps_optionset (
|
160 |
+
`id` int(5) NOT NULL AUTO_INCREMENT,
|
161 |
+
`template` varchar(10) CHARACTER SET utf8 NOT NULL,
|
162 |
+
`plist` text CHARACTER SET utf8 NOT NULL,
|
163 |
+
`query` text CHARACTER SET utf8 NOT NULL,
|
164 |
+
`slider` text NOT NULL,
|
165 |
+
`caro_ticker` text NOT NULL,
|
166 |
+
`container` text NOT NULL,
|
167 |
+
`content` text NOT NULL,
|
168 |
+
`navigation` text NOT NULL,
|
169 |
+
PRIMARY KEY (`id`)
|
170 |
+
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1";
|
171 |
+
$wpdb->query($ins_q);
|
172 |
+
|
173 |
+
$ins_q2 = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."advps_thumbnail (
|
174 |
+
`id` int(2) NOT NULL AUTO_INCREMENT,
|
175 |
+
`thumb_name` varchar(500) NOT NULL,
|
176 |
+
`width` int(4) NOT NULL,
|
177 |
+
`height` int(4) NOT NULL,
|
178 |
+
`crop` varchar(5) NOT NULL,
|
179 |
+
PRIMARY KEY (`id`)
|
180 |
+
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1";
|
181 |
+
$wpdb->query($ins_q2);
|
182 |
+
|
183 |
+
$q1 = "insert into ".$advps_opt_table." (template,plist,query,slider,caro_ticker,container,content,navigation) values('one','".serialize($advpsPlist)."','".serialize($advpsQuery)."','".serialize($advpsSlide)."','".serialize($advpsCaroTicker)."','".serialize($advpsContainer)."','".serialize($advpsContent)."','".serialize($advpsNavigation)."')";
|
184 |
+
$q2 = "insert into ".$advps_opt_table." (template,plist,query,slider,caro_ticker,container,navigation) values('two','".serialize($advpsPlist)."','".serialize($advpsQuery)."','".serialize($advpsSlide)."','".serialize($advpsCaroTicker)."','".serialize($advpsContainer2)."','".serialize($advpsNavigation)."')";
|
185 |
+
$q3 = "insert into ".$advps_opt_table." (template,plist,query,slider,caro_ticker,container,content,navigation) values('three','".serialize($advpsPlist)."','".serialize($advpsQuery)."','".serialize($advpsSlide)."','".serialize($advpsCaroTicker)."','".serialize($advpsContainer3)."','".serialize($advpsContent2)."','".serialize($advpsNavigation)."')";
|
186 |
+
|
187 |
+
if(!$wpdb->get_results("select id from ".$advps_opt_table." where template = 'one'")){
|
188 |
+
$wpdb->query($q1);
|
189 |
+
}
|
190 |
+
if(!$wpdb->get_results("select id from ".$advps_opt_table." where template = 'two'")){
|
191 |
+
$wpdb->query($q2);
|
192 |
+
}
|
193 |
+
if(!$wpdb->get_results("select id from ".$advps_opt_table." where template = 'three'")){
|
194 |
+
$wpdb->query($q3);
|
195 |
+
}
|
196 |
+
|
197 |
+
if(!$wpdb->get_results("select id from ".$wpdb->prefix."advps_thumbnail where thumb_name = 'advps-thumb-one'")){
|
198 |
+
$wpdb->query( "insert into ".$wpdb->prefix."advps_thumbnail (thumb_name,width,height,crop) values('advps-thumb-one',600,220,'yes')");
|
199 |
+
}
|
200 |
+
update_option('advps-db-version',2);
|
201 |
+
}
|
advps-style.css
CHANGED
@@ -126,98 +126,172 @@
|
|
126 |
.advps-bullet li.activeSlide a{
|
127 |
background:url(images/advps-bullet-active-two.png) no-repeat;
|
128 |
}
|
129 |
-
|
130 |
-
.advps-
|
131 |
-
|
132 |
-
height:
|
133 |
-
position:absolute;
|
134 |
-
left:0%;
|
135 |
-
top:39%;
|
136 |
-
z-index:100;
|
137 |
-
display:none;
|
138 |
-
background:url(images/advps-left-arrow.png) no-repeat;
|
139 |
-
text-indent:-9999px;
|
140 |
-
cursor:pointer;
|
141 |
}
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
}
|
154 |
-
|
155 |
-
{
|
156 |
-
width:
|
157 |
-
|
158 |
-
right:46%;
|
159 |
-
top:39%;
|
160 |
-
z-index:100;
|
161 |
-
display:none;
|
162 |
-
}
|
163 |
-
.advps-left-arrow-two{
|
164 |
-
width:20px;
|
165 |
-
height:29px;
|
166 |
-
position:absolute;
|
167 |
-
left:1%;
|
168 |
-
top:39%;
|
169 |
-
z-index:100;
|
170 |
-
display:none;
|
171 |
-
background:url(images/l1.png) no-repeat;
|
172 |
-
text-indent:-9999px;
|
173 |
-
cursor:pointer;
|
174 |
}
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
cursor:pointer;
|
185 |
-
display:none;
|
186 |
}
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
position:absolute;
|
200 |
-
left:36%;
|
201 |
-
bottom:0;
|
202 |
-
z-index:100;
|
203 |
-
background:url(images/advps-down-arrow.png) no-repeat;
|
204 |
-
text-indent:-9999px;
|
205 |
-
cursor:pointer;
|
206 |
-
|
207 |
}
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
cursor:pointer;
|
218 |
}
|
219 |
|
220 |
-
.
|
221 |
-
{
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
126 |
.advps-bullet li.activeSlide a{
|
127 |
background:url(images/advps-bullet-active-two.png) no-repeat;
|
128 |
}
|
129 |
+
|
130 |
+
.advps-slide-container .advs-title
|
131 |
+
{
|
132 |
+
line-height:30px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
}
|
134 |
+
|
135 |
+
/************************************** bx slider css *********************************************/
|
136 |
+
|
137 |
+
/** RESET AND LAYOUT
|
138 |
+
===================================*/
|
139 |
+
|
140 |
+
.bx-wrapper {
|
141 |
+
position: relative;
|
142 |
+
margin: 0 auto 60px;
|
143 |
+
padding: 0;
|
144 |
+
*zoom: 1;
|
145 |
}
|
146 |
+
|
147 |
+
.bx-wrapper img {
|
148 |
+
max-width: 100%;
|
149 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
}
|
151 |
+
|
152 |
+
/** THEME
|
153 |
+
===================================*/
|
154 |
+
|
155 |
+
.bx-wrapper .bx-pager,
|
156 |
+
.bx-wrapper .bx-controls-auto {
|
157 |
+
position: absolute;
|
158 |
+
/*bottom: -30px;*/
|
159 |
+
width: 100%;
|
|
|
|
|
160 |
}
|
161 |
+
|
162 |
+
/* LOADER */
|
163 |
+
|
164 |
+
.bx-wrapper .bx-loading {
|
165 |
+
min-height: 50px;
|
166 |
+
background: url(images/bx_loader.gif) center center no-repeat #fff;
|
167 |
+
height: 100%;
|
168 |
+
width: 100%;
|
169 |
+
position: absolute;
|
170 |
+
top: 0;
|
171 |
+
left: 0;
|
172 |
+
z-index: 2000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
}
|
174 |
+
|
175 |
+
/* PAGER */
|
176 |
+
|
177 |
+
.bx-wrapper .bx-pager {
|
178 |
+
font-size: .85em;
|
179 |
+
font-family: Arial;
|
180 |
+
font-weight: bold;
|
181 |
+
color: #666;
|
182 |
+
padding-top: 20px;
|
|
|
183 |
}
|
184 |
|
185 |
+
.bx-wrapper .bx-pager .bx-pager-item,
|
186 |
+
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
187 |
+
display: inline-block;
|
188 |
+
*zoom: 1;
|
189 |
+
*display: inline;
|
190 |
+
}
|
191 |
+
|
192 |
+
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
193 |
+
.bx-wrapper .bx-pager.bx-default-pager a.active {
|
194 |
+
/*background: #000;*/
|
195 |
+
}
|
196 |
+
|
197 |
+
/* DIRECTION CONTROLS (NEXT / PREV) */
|
198 |
+
|
199 |
+
.bx-wrapper .bx-prev {
|
200 |
+
left: 10px;
|
201 |
+
background: url(images/controls.png) no-repeat 0 -32px;
|
202 |
+
}
|
203 |
+
|
204 |
+
.bx-wrapper .bx-next {
|
205 |
+
right: 10px;
|
206 |
+
background: url(images/controls.png) no-repeat -43px -32px;
|
207 |
+
}
|
208 |
+
|
209 |
+
.bx-wrapper .bx-prev:hover {
|
210 |
+
background-position: 0 0;
|
211 |
+
}
|
212 |
+
|
213 |
+
.bx-wrapper .bx-next:hover {
|
214 |
+
background-position: -43px 0;
|
215 |
+
}
|
216 |
+
|
217 |
+
.bx-wrapper .bx-controls-direction a {
|
218 |
+
position: absolute;
|
219 |
+
top: 50%;
|
220 |
+
margin-top: -16px;
|
221 |
+
outline: 0;
|
222 |
+
width: 32px;
|
223 |
+
height: 32px;
|
224 |
+
text-indent: -9999px;
|
225 |
+
z-index: 9999;
|
226 |
+
}
|
227 |
+
|
228 |
+
.bx-wrapper .bx-controls-direction a.disabled {
|
229 |
+
display: none;
|
230 |
+
}
|
231 |
+
|
232 |
+
/* AUTO CONTROLS (START / STOP) */
|
233 |
+
|
234 |
+
/*.bx-wrapper .bx-controls-auto {
|
235 |
+
text-align: center;
|
236 |
+
}*/
|
237 |
+
|
238 |
+
.bx-wrapper .bx-controls-auto .bx-start {
|
239 |
+
display: block;
|
240 |
+
text-indent: -9999px;
|
241 |
+
width: 10px;
|
242 |
+
height: 11px;
|
243 |
+
outline: 0;
|
244 |
+
background: url(images/controls.png) -86px -11px no-repeat;
|
245 |
+
margin: 0 3px;
|
246 |
+
}
|
247 |
+
|
248 |
+
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
249 |
+
.bx-wrapper .bx-controls-auto .bx-start.active {
|
250 |
+
background-position: -86px 0;
|
251 |
+
}
|
252 |
+
|
253 |
+
.bx-wrapper .bx-controls-auto .bx-stop {
|
254 |
+
display: block;
|
255 |
+
text-indent: -9999px;
|
256 |
+
width: 9px;
|
257 |
+
height: 11px;
|
258 |
+
outline: 0;
|
259 |
+
background: url(images/controls.png) -86px -44px no-repeat;
|
260 |
+
margin: 0 3px;
|
261 |
+
}
|
262 |
+
|
263 |
+
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
264 |
+
.bx-wrapper .bx-controls-auto .bx-stop.active {
|
265 |
+
background-position: -86px -33px;
|
266 |
+
}
|
267 |
+
|
268 |
+
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
269 |
+
|
270 |
+
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
271 |
+
/*text-align: left;*/
|
272 |
+
width: 100%;
|
273 |
+
}
|
274 |
+
|
275 |
+
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
276 |
+
/*right: 0;*/
|
277 |
+
/*width: 35px;*/
|
278 |
+
}
|
279 |
+
|
280 |
+
/* IMAGE CAPTIONS */
|
281 |
+
|
282 |
+
.bx-wrapper .bx-caption {
|
283 |
+
position: absolute;
|
284 |
+
bottom: 0;
|
285 |
+
left: 0;
|
286 |
+
background: #666\9;
|
287 |
+
background: rgba(80, 80, 80, 0.75);
|
288 |
+
width: 100%;
|
289 |
+
}
|
290 |
+
|
291 |
+
.bx-wrapper .bx-caption span {
|
292 |
+
color: #fff;
|
293 |
+
font-family: Arial;
|
294 |
+
display: block;
|
295 |
+
font-size: .85em;
|
296 |
+
padding: 10px;
|
297 |
}
|
aq_resizer.php
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Title : Aqua Resizer
|
5 |
+
* Description : Resizes WordPress images on the fly
|
6 |
+
* Version : 1.2.0
|
7 |
+
* Author : Syamil MJ
|
8 |
+
* Author URI : http://aquagraphite.com
|
9 |
+
* License : WTFPL - http://sam.zoy.org/wtfpl/
|
10 |
+
* Documentation : https://github.com/sy4mil/Aqua-Resizer/
|
11 |
+
*
|
12 |
+
* @param string $url - (required) must be uploaded using wp media uploader
|
13 |
+
* @param int $width - (required)
|
14 |
+
* @param int $height - (optional)
|
15 |
+
* @param bool $crop - (optional) default to soft crop
|
16 |
+
* @param bool $single - (optional) returns an array if false
|
17 |
+
* @uses wp_upload_dir()
|
18 |
+
* @uses image_resize_dimensions()
|
19 |
+
* @uses wp_get_image_editor()
|
20 |
+
*
|
21 |
+
* @return str|array
|
22 |
+
*/
|
23 |
+
|
24 |
+
if(!class_exists('Aq_Resize')) {
|
25 |
+
class Aq_Resize
|
26 |
+
{
|
27 |
+
/**
|
28 |
+
* The singleton instance
|
29 |
+
*/
|
30 |
+
static private $instance = null;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* No initialization allowed
|
34 |
+
*/
|
35 |
+
private function __construct() {}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* No cloning allowed
|
39 |
+
*/
|
40 |
+
private function __clone() {}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* For your custom default usage you may want to initialize an Aq_Resize object by yourself and then have own defaults
|
44 |
+
*/
|
45 |
+
static public function getInstance() {
|
46 |
+
if(self::$instance == null) {
|
47 |
+
self::$instance = new self;
|
48 |
+
}
|
49 |
+
|
50 |
+
return self::$instance;
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Run, forest.
|
55 |
+
*/
|
56 |
+
public function process( $url, $width = null, $height = null, $crop = null, $single = true, $upscale = false ) {
|
57 |
+
// Validate inputs.
|
58 |
+
if ( ! $url || ( ! $width && ! $height ) ) return false;
|
59 |
+
|
60 |
+
// Caipt'n, ready to hook.
|
61 |
+
if ( true === $upscale ) add_filter( 'image_resize_dimensions', array($this, 'aq_upscale'), 10, 6 );
|
62 |
+
|
63 |
+
// Define upload path & dir.
|
64 |
+
$upload_info = wp_upload_dir();
|
65 |
+
$upload_dir = $upload_info['basedir'];
|
66 |
+
$upload_url = $upload_info['baseurl'];
|
67 |
+
|
68 |
+
$http_prefix = "http://";
|
69 |
+
$https_prefix = "https://";
|
70 |
+
|
71 |
+
/* if the $url scheme differs from $upload_url scheme, make them match
|
72 |
+
if the schemes differe, images don't show up. */
|
73 |
+
if(!strncmp($url,$https_prefix,strlen($https_prefix))){ //if url begins with https:// make $upload_url begin with https:// as well
|
74 |
+
$upload_url = str_replace($http_prefix,$https_prefix,$upload_url);
|
75 |
+
}
|
76 |
+
elseif(!strncmp($url,$http_prefix,strlen($http_prefix))){ //if url begins with http:// make $upload_url begin with http:// as well
|
77 |
+
$upload_url = str_replace($https_prefix,$http_prefix,$upload_url);
|
78 |
+
}
|
79 |
+
|
80 |
+
|
81 |
+
// Check if $img_url is local.
|
82 |
+
if ( false === strpos( $url, $upload_url ) ) return false;
|
83 |
+
|
84 |
+
// Define path of image.
|
85 |
+
$rel_path = str_replace( $upload_url, '', $url );
|
86 |
+
$img_path = $upload_dir . $rel_path;
|
87 |
+
|
88 |
+
// Check if img path exists, and is an image indeed.
|
89 |
+
if ( ! file_exists( $img_path ) or ! getimagesize( $img_path ) ) return false;
|
90 |
+
|
91 |
+
// Get image info.
|
92 |
+
$info = pathinfo( $img_path );
|
93 |
+
$ext = $info['extension'];
|
94 |
+
list( $orig_w, $orig_h ) = getimagesize( $img_path );
|
95 |
+
|
96 |
+
// Get image size after cropping.
|
97 |
+
$dims = image_resize_dimensions( $orig_w, $orig_h, $width, $height, $crop );
|
98 |
+
$dst_w = $dims[4];
|
99 |
+
$dst_h = $dims[5];
|
100 |
+
|
101 |
+
// Return the original image only if it exactly fits the needed measures.
|
102 |
+
if ( ! $dims && ( ( ( null === $height && $orig_w == $width ) xor ( null === $width && $orig_h == $height ) ) xor ( $height == $orig_h && $width == $orig_w ) ) ) {
|
103 |
+
$img_url = $url;
|
104 |
+
$dst_w = $orig_w;
|
105 |
+
$dst_h = $orig_h;
|
106 |
+
} else {
|
107 |
+
// Use this to check if cropped image already exists, so we can return that instead.
|
108 |
+
$suffix = "{$dst_w}x{$dst_h}";
|
109 |
+
$dst_rel_path = str_replace( '.' . $ext, '', $rel_path );
|
110 |
+
$destfilename = "{$upload_dir}{$dst_rel_path}-{$suffix}.{$ext}";
|
111 |
+
|
112 |
+
if ( ! $dims || ( true == $crop && false == $upscale && ( $dst_w < $width || $dst_h < $height ) ) ) {
|
113 |
+
// Can't resize, so return false saying that the action to do could not be processed as planned.
|
114 |
+
return false;
|
115 |
+
}
|
116 |
+
// Else check if cache exists.
|
117 |
+
elseif ( file_exists( $destfilename ) && getimagesize( $destfilename ) ) {
|
118 |
+
$img_url = "{$upload_url}{$dst_rel_path}-{$suffix}.{$ext}";
|
119 |
+
}
|
120 |
+
// Else, we resize the image and return the new resized image url.
|
121 |
+
else {
|
122 |
+
|
123 |
+
$editor = wp_get_image_editor( $img_path );
|
124 |
+
|
125 |
+
if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) )
|
126 |
+
return false;
|
127 |
+
|
128 |
+
$resized_file = $editor->save();
|
129 |
+
|
130 |
+
if ( ! is_wp_error( $resized_file ) ) {
|
131 |
+
$resized_rel_path = str_replace( $upload_dir, '', $resized_file['path'] );
|
132 |
+
$img_url = $upload_url . $resized_rel_path;
|
133 |
+
} else {
|
134 |
+
return false;
|
135 |
+
}
|
136 |
+
|
137 |
+
}
|
138 |
+
}
|
139 |
+
|
140 |
+
// Okay, leave the ship.
|
141 |
+
if ( true === $upscale ) remove_filter( 'image_resize_dimensions', array( $this, 'aq_upscale' ) );
|
142 |
+
|
143 |
+
// Return the output.
|
144 |
+
if ( $single ) {
|
145 |
+
// str return.
|
146 |
+
$image = $img_url;
|
147 |
+
} else {
|
148 |
+
// array return.
|
149 |
+
$image = array (
|
150 |
+
0 => $img_url,
|
151 |
+
1 => $dst_w,
|
152 |
+
2 => $dst_h
|
153 |
+
);
|
154 |
+
}
|
155 |
+
|
156 |
+
return $image;
|
157 |
+
}
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Callback to overwrite WP computing of thumbnail measures
|
161 |
+
*/
|
162 |
+
function aq_upscale( $default, $orig_w, $orig_h, $dest_w, $dest_h, $crop ) {
|
163 |
+
if ( ! $crop ) return null; // Let the wordpress default function handle this.
|
164 |
+
|
165 |
+
// Here is the point we allow to use larger image size than the original one.
|
166 |
+
$aspect_ratio = $orig_w / $orig_h;
|
167 |
+
$new_w = $dest_w;
|
168 |
+
$new_h = $dest_h;
|
169 |
+
|
170 |
+
if ( ! $new_w ) {
|
171 |
+
$new_w = intval( $new_h * $aspect_ratio );
|
172 |
+
}
|
173 |
+
|
174 |
+
if ( ! $new_h ) {
|
175 |
+
$new_h = intval( $new_w / $aspect_ratio );
|
176 |
+
}
|
177 |
+
|
178 |
+
$size_ratio = max( $new_w / $orig_w, $new_h / $orig_h );
|
179 |
+
|
180 |
+
$crop_w = round( $new_w / $size_ratio );
|
181 |
+
$crop_h = round( $new_h / $size_ratio );
|
182 |
+
|
183 |
+
$s_x = floor( ( $orig_w - $crop_w ) / 2 );
|
184 |
+
$s_y = floor( ( $orig_h - $crop_h ) / 2 );
|
185 |
+
|
186 |
+
return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h );
|
187 |
+
}
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
|
195 |
+
if(!function_exists('aq_resize')) {
|
196 |
+
|
197 |
+
/**
|
198 |
+
* This is just a tiny wrapper function for the class above so that there is no
|
199 |
+
* need to change any code in your own WP themes. Usage is still the same :)
|
200 |
+
*/
|
201 |
+
function aq_resize( $url, $width = null, $height = null, $crop = null, $single = true, $upscale = false ) {
|
202 |
+
$aq_resize = Aq_Resize::getInstance();
|
203 |
+
return $aq_resize->process( $url, $width, $height, $crop, $single, $upscale );
|
204 |
+
}
|
205 |
+
}
|
206 |
+
|
207 |
+
|
bxslider/jquery.bxslider.css
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* BxSlider v4.0 - Fully loaded, responsive content slider
|
3 |
+
* http://bxslider.com
|
4 |
+
*
|
5 |
+
* Written by: Steven Wanderski, 2012
|
6 |
+
* http://stevenwanderski.com
|
7 |
+
* (while drinking Belgian ales and listening to jazz)
|
8 |
+
*
|
9 |
+
* CEO and founder of bxCreative, LTD
|
10 |
+
* http://bxcreative.com
|
11 |
+
*/
|
12 |
+
|
13 |
+
|
14 |
+
/** RESET AND LAYOUT
|
15 |
+
===================================*/
|
16 |
+
|
17 |
+
.bx-wrapper {
|
18 |
+
position: relative;
|
19 |
+
margin: 0 auto 60px;
|
20 |
+
padding: 0;
|
21 |
+
*zoom: 1;
|
22 |
+
}
|
23 |
+
|
24 |
+
.bx-wrapper img {
|
25 |
+
max-width: 100%;
|
26 |
+
display: block;
|
27 |
+
}
|
28 |
+
|
29 |
+
/** THEME
|
30 |
+
===================================*/
|
31 |
+
|
32 |
+
.bx-wrapper .bx-viewport {
|
33 |
+
-moz-box-shadow: 0 0 5px #ccc;
|
34 |
+
-webkit-box-shadow: 0 0 5px #ccc;
|
35 |
+
box-shadow: 0 0 5px #ccc;
|
36 |
+
border: solid #fff 5px;
|
37 |
+
left: -5px;
|
38 |
+
background: #fff;
|
39 |
+
}
|
40 |
+
|
41 |
+
.bx-wrapper .bx-pager,
|
42 |
+
.bx-wrapper .bx-controls-auto {
|
43 |
+
position: absolute;
|
44 |
+
bottom: -30px;
|
45 |
+
width: 100%;
|
46 |
+
}
|
47 |
+
|
48 |
+
/* LOADER */
|
49 |
+
|
50 |
+
.bx-wrapper .bx-loading {
|
51 |
+
min-height: 50px;
|
52 |
+
background: url(images/bx_loader.gif) center center no-repeat #fff;
|
53 |
+
height: 100%;
|
54 |
+
width: 100%;
|
55 |
+
position: absolute;
|
56 |
+
top: 0;
|
57 |
+
left: 0;
|
58 |
+
z-index: 2000;
|
59 |
+
}
|
60 |
+
|
61 |
+
/* PAGER */
|
62 |
+
|
63 |
+
.bx-wrapper .bx-pager {
|
64 |
+
text-align: center;
|
65 |
+
font-size: .85em;
|
66 |
+
font-family: Arial;
|
67 |
+
font-weight: bold;
|
68 |
+
color: #666;
|
69 |
+
padding-top: 20px;
|
70 |
+
}
|
71 |
+
|
72 |
+
.bx-wrapper .bx-pager .bx-pager-item,
|
73 |
+
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
74 |
+
display: inline-block;
|
75 |
+
*zoom: 1;
|
76 |
+
*display: inline;
|
77 |
+
}
|
78 |
+
|
79 |
+
.bx-wrapper .bx-pager.bx-default-pager a {
|
80 |
+
background: #666;
|
81 |
+
text-indent: -9999px;
|
82 |
+
display: block;
|
83 |
+
width: 10px;
|
84 |
+
height: 10px;
|
85 |
+
margin: 0 5px;
|
86 |
+
outline: 0;
|
87 |
+
-moz-border-radius: 5px;
|
88 |
+
-webkit-border-radius: 5px;
|
89 |
+
border-radius: 5px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
93 |
+
.bx-wrapper .bx-pager.bx-default-pager a.active {
|
94 |
+
background: #000;
|
95 |
+
}
|
96 |
+
|
97 |
+
/* DIRECTION CONTROLS (NEXT / PREV) */
|
98 |
+
|
99 |
+
.bx-wrapper .bx-prev {
|
100 |
+
left: 10px;
|
101 |
+
background: url(images/controls.png) no-repeat 0 -32px;
|
102 |
+
}
|
103 |
+
|
104 |
+
.bx-wrapper .bx-next {
|
105 |
+
right: 10px;
|
106 |
+
background: url(images/controls.png) no-repeat -43px -32px;
|
107 |
+
}
|
108 |
+
|
109 |
+
.bx-wrapper .bx-prev:hover {
|
110 |
+
background-position: 0 0;
|
111 |
+
}
|
112 |
+
|
113 |
+
.bx-wrapper .bx-next:hover {
|
114 |
+
background-position: -43px 0;
|
115 |
+
}
|
116 |
+
|
117 |
+
.bx-wrapper .bx-controls-direction a {
|
118 |
+
position: absolute;
|
119 |
+
top: 50%;
|
120 |
+
margin-top: -16px;
|
121 |
+
outline: 0;
|
122 |
+
width: 32px;
|
123 |
+
height: 32px;
|
124 |
+
text-indent: -9999px;
|
125 |
+
z-index: 9999;
|
126 |
+
}
|
127 |
+
|
128 |
+
.bx-wrapper .bx-controls-direction a.disabled {
|
129 |
+
display: none;
|
130 |
+
}
|
131 |
+
|
132 |
+
/* AUTO CONTROLS (START / STOP) */
|
133 |
+
|
134 |
+
.bx-wrapper .bx-controls-auto {
|
135 |
+
text-align: center;
|
136 |
+
}
|
137 |
+
|
138 |
+
.bx-wrapper .bx-controls-auto .bx-start {
|
139 |
+
display: block;
|
140 |
+
text-indent: -9999px;
|
141 |
+
width: 10px;
|
142 |
+
height: 11px;
|
143 |
+
outline: 0;
|
144 |
+
background: url(images/controls.png) -86px -11px no-repeat;
|
145 |
+
margin: 0 3px;
|
146 |
+
}
|
147 |
+
|
148 |
+
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
149 |
+
.bx-wrapper .bx-controls-auto .bx-start.active {
|
150 |
+
background-position: -86px 0;
|
151 |
+
}
|
152 |
+
|
153 |
+
.bx-wrapper .bx-controls-auto .bx-stop {
|
154 |
+
display: block;
|
155 |
+
text-indent: -9999px;
|
156 |
+
width: 9px;
|
157 |
+
height: 11px;
|
158 |
+
outline: 0;
|
159 |
+
background: url(images/controls.png) -86px -44px no-repeat;
|
160 |
+
margin: 0 3px;
|
161 |
+
}
|
162 |
+
|
163 |
+
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
164 |
+
.bx-wrapper .bx-controls-auto .bx-stop.active {
|
165 |
+
background-position: -86px -33px;
|
166 |
+
}
|
167 |
+
|
168 |
+
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
169 |
+
|
170 |
+
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
171 |
+
text-align: left;
|
172 |
+
width: 80%;
|
173 |
+
}
|
174 |
+
|
175 |
+
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
176 |
+
right: 0;
|
177 |
+
width: 35px;
|
178 |
+
}
|
179 |
+
|
180 |
+
/* IMAGE CAPTIONS */
|
181 |
+
|
182 |
+
.bx-wrapper .bx-caption {
|
183 |
+
position: absolute;
|
184 |
+
bottom: 0;
|
185 |
+
left: 0;
|
186 |
+
background: #666\9;
|
187 |
+
background: rgba(80, 80, 80, 0.75);
|
188 |
+
width: 100%;
|
189 |
+
}
|
190 |
+
|
191 |
+
.bx-wrapper .bx-caption span {
|
192 |
+
color: #fff;
|
193 |
+
font-family: Arial;
|
194 |
+
display: block;
|
195 |
+
font-size: .85em;
|
196 |
+
padding: 10px;
|
197 |
+
}
|
bxslider/jquery.bxslider.min.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* BxSlider v4.1.2 - Fully loaded, responsive content slider
|
3 |
+
* http://bxslider.com
|
4 |
+
*
|
5 |
+
* Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
|
6 |
+
* Written while drinking Belgian ales and listening to jazz
|
7 |
+
*
|
8 |
+
* Released under the MIT license - http://opensource.org/licenses/MIT
|
9 |
+
*/
|
10 |
+
!function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+n+"</a></div>"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},C=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",k),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);
|
bxslider/plugins/jquery.easing.1.3.js
ADDED
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3 |
+
*
|
4 |
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5 |
+
* to offer multiple easing options
|
6 |
+
*
|
7 |
+
* TERMS OF USE - jQuery Easing
|
8 |
+
*
|
9 |
+
* Open source under the BSD License.
|
10 |
+
*
|
11 |
+
* Copyright © 2008 George McGinley Smith
|
12 |
+
* All rights reserved.
|
13 |
+
*
|
14 |
+
* Redistribution and use in source and binary forms, with or without modification,
|
15 |
+
* are permitted provided that the following conditions are met:
|
16 |
+
*
|
17 |
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18 |
+
* conditions and the following disclaimer.
|
19 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20 |
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21 |
+
* provided with the distribution.
|
22 |
+
*
|
23 |
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24 |
+
* or promote products derived from this software without specific prior written permission.
|
25 |
+
*
|
26 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28 |
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29 |
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31 |
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32 |
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33 |
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35 |
+
*
|
36 |
+
*/
|
37 |
+
|
38 |
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39 |
+
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
40 |
+
|
41 |
+
jQuery.extend( jQuery.easing,
|
42 |
+
{
|
43 |
+
def: 'easeOutQuad',
|
44 |
+
swing: function (x, t, b, c, d) {
|
45 |
+
//alert(jQuery.easing.default);
|
46 |
+
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
47 |
+
},
|
48 |
+
easeInQuad: function (x, t, b, c, d) {
|
49 |
+
return c*(t/=d)*t + b;
|
50 |
+
},
|
51 |
+
easeOutQuad: function (x, t, b, c, d) {
|
52 |
+
return -c *(t/=d)*(t-2) + b;
|
53 |
+
},
|
54 |
+
easeInOutQuad: function (x, t, b, c, d) {
|
55 |
+
if ((t/=d/2) < 1) return c/2*t*t + b;
|
56 |
+
return -c/2 * ((--t)*(t-2) - 1) + b;
|
57 |
+
},
|
58 |
+
easeInCubic: function (x, t, b, c, d) {
|
59 |
+
return c*(t/=d)*t*t + b;
|
60 |
+
},
|
61 |
+
easeOutCubic: function (x, t, b, c, d) {
|
62 |
+
return c*((t=t/d-1)*t*t + 1) + b;
|
63 |
+
},
|
64 |
+
easeInOutCubic: function (x, t, b, c, d) {
|
65 |
+
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
66 |
+
return c/2*((t-=2)*t*t + 2) + b;
|
67 |
+
},
|
68 |
+
easeInQuart: function (x, t, b, c, d) {
|
69 |
+
return c*(t/=d)*t*t*t + b;
|
70 |
+
},
|
71 |
+
easeOutQuart: function (x, t, b, c, d) {
|
72 |
+
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
73 |
+
},
|
74 |
+
easeInOutQuart: function (x, t, b, c, d) {
|
75 |
+
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
76 |
+
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
77 |
+
},
|
78 |
+
easeInQuint: function (x, t, b, c, d) {
|
79 |
+
return c*(t/=d)*t*t*t*t + b;
|
80 |
+
},
|
81 |
+
easeOutQuint: function (x, t, b, c, d) {
|
82 |
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
83 |
+
},
|
84 |
+
easeInOutQuint: function (x, t, b, c, d) {
|
85 |
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
86 |
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
87 |
+
},
|
88 |
+
easeInSine: function (x, t, b, c, d) {
|
89 |
+
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
90 |
+
},
|
91 |
+
easeOutSine: function (x, t, b, c, d) {
|
92 |
+
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
93 |
+
},
|
94 |
+
easeInOutSine: function (x, t, b, c, d) {
|
95 |
+
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
96 |
+
},
|
97 |
+
easeInExpo: function (x, t, b, c, d) {
|
98 |
+
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
99 |
+
},
|
100 |
+
easeOutExpo: function (x, t, b, c, d) {
|
101 |
+
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
102 |
+
},
|
103 |
+
easeInOutExpo: function (x, t, b, c, d) {
|
104 |
+
if (t==0) return b;
|
105 |
+
if (t==d) return b+c;
|
106 |
+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
107 |
+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
108 |
+
},
|
109 |
+
easeInCirc: function (x, t, b, c, d) {
|
110 |
+
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
111 |
+
},
|
112 |
+
easeOutCirc: function (x, t, b, c, d) {
|
113 |
+
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
114 |
+
},
|
115 |
+
easeInOutCirc: function (x, t, b, c, d) {
|
116 |
+
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
117 |
+
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
118 |
+
},
|
119 |
+
easeInElastic: function (x, t, b, c, d) {
|
120 |
+
var s=1.70158;var p=0;var a=c;
|
121 |
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
122 |
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
123 |
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
124 |
+
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
125 |
+
},
|
126 |
+
easeOutElastic: function (x, t, b, c, d) {
|
127 |
+
var s=1.70158;var p=0;var a=c;
|
128 |
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
129 |
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
130 |
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
131 |
+
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
132 |
+
},
|
133 |
+
easeInOutElastic: function (x, t, b, c, d) {
|
134 |
+
var s=1.70158;var p=0;var a=c;
|
135 |
+
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
136 |
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
137 |
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
138 |
+
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
139 |
+
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
140 |
+
},
|
141 |
+
easeInBack: function (x, t, b, c, d, s) {
|
142 |
+
if (s == undefined) s = 1.70158;
|
143 |
+
return c*(t/=d)*t*((s+1)*t - s) + b;
|
144 |
+
},
|
145 |
+
easeOutBack: function (x, t, b, c, d, s) {
|
146 |
+
if (s == undefined) s = 1.70158;
|
147 |
+
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
148 |
+
},
|
149 |
+
easeInOutBack: function (x, t, b, c, d, s) {
|
150 |
+
if (s == undefined) s = 1.70158;
|
151 |
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
152 |
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
153 |
+
},
|
154 |
+
easeInBounce: function (x, t, b, c, d) {
|
155 |
+
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
156 |
+
},
|
157 |
+
easeOutBounce: function (x, t, b, c, d) {
|
158 |
+
if ((t/=d) < (1/2.75)) {
|
159 |
+
return c*(7.5625*t*t) + b;
|
160 |
+
} else if (t < (2/2.75)) {
|
161 |
+
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
162 |
+
} else if (t < (2.5/2.75)) {
|
163 |
+
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
164 |
+
} else {
|
165 |
+
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
166 |
+
}
|
167 |
+
},
|
168 |
+
easeInOutBounce: function (x, t, b, c, d) {
|
169 |
+
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
170 |
+
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
171 |
+
}
|
172 |
+
});
|
173 |
+
|
174 |
+
/*
|
175 |
+
*
|
176 |
+
* TERMS OF USE - EASING EQUATIONS
|
177 |
+
*
|
178 |
+
* Open source under the BSD License.
|
179 |
+
*
|
180 |
+
* Copyright © 2001 Robert Penner
|
181 |
+
* All rights reserved.
|
182 |
+
*
|
183 |
+
* Redistribution and use in source and binary forms, with or without modification,
|
184 |
+
* are permitted provided that the following conditions are met:
|
185 |
+
*
|
186 |
+
* Redistributions of source code must retain the above copyright notice, this list of
|
187 |
+
* conditions and the following disclaimer.
|
188 |
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
189 |
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
190 |
+
* provided with the distribution.
|
191 |
+
*
|
192 |
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
193 |
+
* or promote products derived from this software without specific prior written permission.
|
194 |
+
*
|
195 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
196 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
197 |
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
198 |
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
199 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
200 |
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
201 |
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
202 |
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
203 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
204 |
+
*
|
205 |
+
*/
|
bxslider/plugins/jquery.fitvids.js
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*global jQuery */
|
2 |
+
/*jshint multistr:true browser:true */
|
3 |
+
/*!
|
4 |
+
* FitVids 1.0
|
5 |
+
*
|
6 |
+
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
7 |
+
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
8 |
+
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
9 |
+
*
|
10 |
+
* Date: Thu Sept 01 18:00:00 2011 -0500
|
11 |
+
*/
|
12 |
+
|
13 |
+
(function( $ ){
|
14 |
+
|
15 |
+
"use strict";
|
16 |
+
|
17 |
+
$.fn.fitVids = function( options ) {
|
18 |
+
var settings = {
|
19 |
+
customSelector: null
|
20 |
+
};
|
21 |
+
|
22 |
+
var div = document.createElement('div'),
|
23 |
+
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
|
24 |
+
|
25 |
+
div.className = 'fit-vids-style';
|
26 |
+
div.innerHTML = '­<style> \
|
27 |
+
.fluid-width-video-wrapper { \
|
28 |
+
width: 100%; \
|
29 |
+
position: relative; \
|
30 |
+
padding: 0; \
|
31 |
+
} \
|
32 |
+
\
|
33 |
+
.fluid-width-video-wrapper iframe, \
|
34 |
+
.fluid-width-video-wrapper object, \
|
35 |
+
.fluid-width-video-wrapper embed { \
|
36 |
+
position: absolute; \
|
37 |
+
top: 0; \
|
38 |
+
left: 0; \
|
39 |
+
width: 100%; \
|
40 |
+
height: 100%; \
|
41 |
+
} \
|
42 |
+
</style>';
|
43 |
+
|
44 |
+
ref.parentNode.insertBefore(div,ref);
|
45 |
+
|
46 |
+
if ( options ) {
|
47 |
+
$.extend( settings, options );
|
48 |
+
}
|
49 |
+
|
50 |
+
return this.each(function(){
|
51 |
+
var selectors = [
|
52 |
+
"iframe[src*='player.vimeo.com']",
|
53 |
+
"iframe[src*='www.youtube.com']",
|
54 |
+
"iframe[src*='www.kickstarter.com']",
|
55 |
+
"object",
|
56 |
+
"embed"
|
57 |
+
];
|
58 |
+
|
59 |
+
if (settings.customSelector) {
|
60 |
+
selectors.push(settings.customSelector);
|
61 |
+
}
|
62 |
+
|
63 |
+
var $allVideos = $(this).find(selectors.join(','));
|
64 |
+
|
65 |
+
$allVideos.each(function(){
|
66 |
+
var $this = $(this);
|
67 |
+
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
68 |
+
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
69 |
+
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
70 |
+
aspectRatio = height / width;
|
71 |
+
if(!$this.attr('id')){
|
72 |
+
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
|
73 |
+
$this.attr('id', videoID);
|
74 |
+
}
|
75 |
+
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
|
76 |
+
$this.removeAttr('height').removeAttr('width');
|
77 |
+
});
|
78 |
+
});
|
79 |
+
};
|
80 |
+
})( jQuery );
|
images/ajax-loader.gif
ADDED
Binary file
|
images/bx_loader.gif
ADDED
Binary file
|
images/controls.png
ADDED
Binary file
|
images/down.png
ADDED
Binary file
|
images/downb.png
ADDED
Binary file
|
images/up.png
ADDED
Binary file
|
images/upb.png
ADDED
Binary file
|
js/advps.script.js
CHANGED
@@ -3,14 +3,20 @@ jQuery(document).ready(function($) {
|
|
3 |
//alert('got');
|
4 |
var wpversion = $('meta[name=wpversion]').attr("content");
|
5 |
//alert($('meta[name=wpversion]').attr("content"));
|
6 |
-
$(".postbox h3.advps-expand").click(function(){
|
7 |
-
|
|
|
|
|
8 |
if($(this).parent().hasClass('closed')){
|
9 |
-
|
|
|
|
|
10 |
}
|
11 |
else
|
12 |
{
|
13 |
-
|
|
|
|
|
14 |
}
|
15 |
});
|
16 |
|
@@ -40,28 +46,6 @@ jQuery(document).ready(function($) {
|
|
40 |
}//
|
41 |
});
|
42 |
|
43 |
-
/*function checkPager(){
|
44 |
-
var pagerVal = jQuery("#ex_pager").val();
|
45 |
-
//alert(pagerVal);
|
46 |
-
if(pagerVal == 'yes'){
|
47 |
-
jQuery(".pagerfld").fadeOut(500,'linear',function(){});
|
48 |
-
}
|
49 |
-
else
|
50 |
-
{
|
51 |
-
jQuery(".pagerfld").fadeIn(500,'linear',function(){});
|
52 |
-
}
|
53 |
-
}
|
54 |
-
function checkNextPrev(){
|
55 |
-
var nxtprvVal = jQuery("#ex_nxtprv").val();
|
56 |
-
//alert(pagerVal);
|
57 |
-
if(nxtprvVal == 'yes'){
|
58 |
-
jQuery(".nxtprvfld").fadeOut(500,'linear',function(){});
|
59 |
-
}
|
60 |
-
else
|
61 |
-
{
|
62 |
-
jQuery(".nxtprvfld").fadeIn(500,'linear',function(){});
|
63 |
-
}
|
64 |
-
}*/
|
65 |
function onlyNum(evt)
|
66 |
{
|
67 |
var e = window.event || evt;
|
@@ -72,26 +56,20 @@ function onlyNum(evt)
|
|
72 |
|
73 |
return true;
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
-
/*function advpsUpdateOpt(a,f){
|
78 |
-
//alert(n);
|
79 |
-
if(a==2){
|
80 |
-
var chkConf = confirm("Do you realy want to dele this option set ?");
|
81 |
-
if(chkConf){
|
82 |
-
jQuery("#advps_ack"+f).val('delete');
|
83 |
-
jQuery("#updateOptFrm"+f).submit();
|
84 |
-
}
|
85 |
-
}
|
86 |
-
else{
|
87 |
-
jQuery("#advps_ack").val('update');
|
88 |
-
jQuery("#updateOptFrm").submit();
|
89 |
-
}
|
90 |
-
}*/
|
91 |
function advpsCheckCat(p,n){
|
92 |
-
//alert(jQuery('#advps-cat-field').html());
|
93 |
-
//alert(p);
|
94 |
-
//return;
|
95 |
var fldSel = 'advps-cat-field'+n;
|
96 |
if(p != "page"){
|
97 |
jQuery.ajax({
|
@@ -115,3 +93,124 @@ function advpsCheckCat(p,n){
|
|
115 |
}
|
116 |
}
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
//alert('got');
|
4 |
var wpversion = $('meta[name=wpversion]').attr("content");
|
5 |
//alert($('meta[name=wpversion]').attr("content"));
|
6 |
+
$(".postbox h3.advps-expand,.postbox .handlediv").click(function(e){
|
7 |
+
if($(this).hasClass('advps-highlight')){
|
8 |
+
$(this).removeClass('advps-highlight')
|
9 |
+
}
|
10 |
if($(this).parent().hasClass('closed')){
|
11 |
+
$(this).parent().removeClass('closed');
|
12 |
+
$(this).parent().find(".handlediv").removeClass('down');
|
13 |
+
$(this).parent().find(".handlediv").addClass('up');
|
14 |
}
|
15 |
else
|
16 |
{
|
17 |
+
$(this).parent().addClass('closed');
|
18 |
+
$(this).parent().find(".handlediv").removeClass('up');
|
19 |
+
$(this).parent().find(".handlediv").addClass('down');
|
20 |
}
|
21 |
});
|
22 |
|
46 |
}//
|
47 |
});
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
function onlyNum(evt)
|
50 |
{
|
51 |
var e = window.event || evt;
|
56 |
|
57 |
return true;
|
58 |
|
59 |
+
}
|
60 |
+
function NumNdNeg(evt)
|
61 |
+
{
|
62 |
+
var e = window.event || evt;
|
63 |
+
var charCode = e.which || e.keyCode;
|
64 |
+
|
65 |
+
if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 45)
|
66 |
+
return false;
|
67 |
+
|
68 |
+
return true;
|
69 |
+
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
function advpsCheckCat(p,n){
|
|
|
|
|
|
|
73 |
var fldSel = 'advps-cat-field'+n;
|
74 |
if(p != "page"){
|
75 |
jQuery.ajax({
|
93 |
}
|
94 |
}
|
95 |
|
96 |
+
function advpsUpdateLabel(f,v,id){
|
97 |
+
jQuery('#lbludtSts'+id).css('display','inline');
|
98 |
+
jQuery.ajax({
|
99 |
+
type : "post",
|
100 |
+
context: this,
|
101 |
+
dataType : "html",
|
102 |
+
url : advpsajx.ajaxurl,
|
103 |
+
data : {action: "advpsUpdateLabel",f_name:f,f_value:v,checkReq:advpsajx.advpsAjaxReqChck},
|
104 |
+
success: function(response) {
|
105 |
+
jQuery('#lbltxt'+id).html(v);
|
106 |
+
jQuery('#lbludtSts'+id).css('display','none');
|
107 |
+
},
|
108 |
+
complete : function(){
|
109 |
+
|
110 |
+
}
|
111 |
+
});///
|
112 |
+
}
|
113 |
+
function updateOptionSet(id){
|
114 |
+
var optdata = jQuery('#'+id).serialize();
|
115 |
+
|
116 |
+
jQuery('.ajx-sts').html('');
|
117 |
+
jQuery('#'+id).find('.ajx-loader').css('display','inline');
|
118 |
+
|
119 |
+
jQuery.ajax({
|
120 |
+
type : "post",
|
121 |
+
context: this,
|
122 |
+
dataType : "html",
|
123 |
+
url : advpsajx.ajaxurl,
|
124 |
+
data : {action: "advpsUpdateOpt",optdata:optdata,checkReq:advpsajx.advpsAjaxReqChck},
|
125 |
+
success: function(response) {
|
126 |
+
|
127 |
+
jQuery('#'+id).find('.ajx-loader').css('display','none');
|
128 |
+
jQuery('#'+id).find('.ajx-sts').html(response);
|
129 |
+
setTimeout('clearText()',4000);
|
130 |
+
},
|
131 |
+
complete : function(){
|
132 |
+
|
133 |
+
}
|
134 |
+
});///
|
135 |
+
}
|
136 |
+
function listPost(n){
|
137 |
+
var fldSel = 'advps-plist-field'+n;
|
138 |
+
|
139 |
+
var ptype = jQuery("#plist"+n+" select[name=advps_post_stypes]").val();
|
140 |
+
var pmax = jQuery("#plist"+n+" input[name=advps_plistmax]").val();
|
141 |
+
var porderBy = jQuery("#plist"+n+" select[name=advps_plistorder_by]").val();
|
142 |
+
var porder = jQuery("#plist"+n+" select[name=advps_plistorder]").val();
|
143 |
+
|
144 |
+
jQuery('#plist'+n).find('.ajx-loaderp').css('display','inline');
|
145 |
+
|
146 |
+
jQuery.ajax({
|
147 |
+
type : "post",
|
148 |
+
context: this,
|
149 |
+
dataType : "html",
|
150 |
+
url : advpsajx.ajaxurl,
|
151 |
+
data : {action: "advpsListPost",ptype:ptype,pmax:pmax,porderBy:porderBy,porder:porder,checkReq:advpsajx.advpsAjaxReqChck},
|
152 |
+
success: function(response) {
|
153 |
+
jQuery('#'+fldSel).html(response);
|
154 |
+
jQuery('#plist'+n).find('.ajx-loaderp').css('display','none');
|
155 |
+
|
156 |
+
},
|
157 |
+
complete : function(){
|
158 |
+
|
159 |
+
}
|
160 |
+
});///
|
161 |
+
}
|
162 |
+
function updateSm(elem,id){
|
163 |
+
jQuery('#smudtsts'+id).css('display','inline');
|
164 |
+
|
165 |
+
var selval = jQuery(elem).val();
|
166 |
+
var selnam = jQuery(elem).attr('name');
|
167 |
+
|
168 |
+
if(selval == 'query'){
|
169 |
+
jQuery("#plist"+id+" table").addClass("advps-hide");
|
170 |
+
jQuery("#query"+id+" table").removeClass("advps-hide");
|
171 |
+
}
|
172 |
+
else
|
173 |
+
{
|
174 |
+
jQuery("#query"+id+" table").addClass("advps-hide");
|
175 |
+
jQuery("#plist"+id+" table").removeClass("advps-hide");
|
176 |
+
}
|
177 |
+
|
178 |
+
jQuery.ajax({
|
179 |
+
type : "post",
|
180 |
+
context: this,
|
181 |
+
dataType : "html",
|
182 |
+
url : advpsajx.ajaxurl,
|
183 |
+
data : {action: "advpsUpdateSmethod",selnam:selnam,selval:selval,checkReq:advpsajx.advpsAjaxReqChck},
|
184 |
+
success: function(response) {
|
185 |
+
jQuery('#smudtsts'+id).css('display','none');
|
186 |
+
},
|
187 |
+
complete : function(){
|
188 |
+
|
189 |
+
}
|
190 |
+
});///
|
191 |
+
}
|
192 |
+
|
193 |
+
function deleteOptSet(id){
|
194 |
+
var rsp = confirm("Do you really want to delete this option set?");
|
195 |
+
if(rsp){
|
196 |
+
jQuery("#frmOptDel"+id).removeAttr("onsubmit");
|
197 |
+
jQuery("#frmOptDel"+id).submit();
|
198 |
+
}
|
199 |
+
}
|
200 |
+
function pagerAttr(v){
|
201 |
+
alert(v);
|
202 |
+
}
|
203 |
+
function clearText(){
|
204 |
+
jQuery('.ajx-sts').html('');
|
205 |
+
}
|
206 |
+
function sliderType(v,id){
|
207 |
+
if(v != 'standard'){
|
208 |
+
jQuery("#advps-pthumb-lvl"+id).addClass('advps-fade');
|
209 |
+
jQuery("#advps-pthumb"+id).attr('disabled','disabled');
|
210 |
+
}
|
211 |
+
else
|
212 |
+
{
|
213 |
+
jQuery("#advps-pthumb-lvl"+id).removeClass('advps-fade');
|
214 |
+
jQuery("#advps-pthumb"+id).removeAttr('disabled');
|
215 |
+
}
|
216 |
+
}
|
readme.txt
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
=== Advanced post slider ===
|
2 |
Contributors: digontoahsan
|
3 |
Donate link:
|
4 |
-
Tags: post slider, slider, slideshow, logo scroller, testimonial scroller, banner rotator, recent post slider, sidebar slideshow, posts, post, image, image slideshow
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag:
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -52,8 +52,6 @@ Use shortcode [advps-slideshow optset="optset ID"] at admin panel post/page edit
|
|
52 |
Use WordPress function "do_shortcode" for use in template or theme PHP file.
|
53 |
`<?php echo do_shortcode( '[advps-slideshow optset="1"]' ); ?>`
|
54 |
|
55 |
-
Watch this <a href="https://www.youtube.com/watch?v=5OcqO8Wmrhs" target="_blank">video</a> for installation and quick overview.
|
56 |
-
|
57 |
== Frequently Asked Questions ==
|
58 |
|
59 |
= Where do I submit a question? =
|
@@ -63,11 +61,12 @@ Dont have any FAQ for now.
|
|
63 |
== Screenshots ==
|
64 |
|
65 |
1. Templates and options
|
66 |
-
2.
|
67 |
-
3.
|
68 |
-
4. Template one
|
69 |
-
5.
|
70 |
-
6. Template three
|
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
@@ -82,12 +81,27 @@ Dont have any FAQ for now.
|
|
82 |
= 1.2 =
|
83 |
* Fix for exclude option
|
84 |
|
85 |
-
=
|
86 |
-
*
|
87 |
-
|
88 |
-
|
89 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
-
== Thank You ==
|
92 |
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
=== Advanced post slider ===
|
2 |
Contributors: digontoahsan
|
3 |
Donate link:
|
4 |
+
Tags: post slider, slider, slideshow, wordpress slideshow, logo scroller, testimonial scroller, banner rotator, recent post slider, bxslider, sidebar slideshow, posts, post, image, image slideshow,
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 2.0
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Responsive slideshow plugin powered with three built-in templates, lots of easy customizable options and many more to explore.
|
12 |
|
13 |
== Description ==
|
14 |
|
52 |
Use WordPress function "do_shortcode" for use in template or theme PHP file.
|
53 |
`<?php echo do_shortcode( '[advps-slideshow optset="1"]' ); ?>`
|
54 |
|
|
|
|
|
55 |
== Frequently Asked Questions ==
|
56 |
|
57 |
= Where do I submit a question? =
|
61 |
== Screenshots ==
|
62 |
|
63 |
1. Templates and options
|
64 |
+
2. Template one example
|
65 |
+
3. Template one example
|
66 |
+
4. Template one example
|
67 |
+
5. Carousel & Ticker with template one
|
68 |
+
6. Template three example
|
69 |
+
7. Template three example
|
70 |
|
71 |
== Changelog ==
|
72 |
|
81 |
= 1.2 =
|
82 |
* Fix for exclude option
|
83 |
|
84 |
+
= 2.0 =
|
85 |
+
* Important Upgrade notice
|
86 |
+
* Dont perform automatic upgrade now. There is a bug and I will fix it ASAP. Rather than upgrading automatically by clicking update now just deactivate the plugin then delete it from admin panel then re-install version 2 again.
|
87 |
+
|
88 |
+
* Before upgrade
|
89 |
+
* Database structure of Advanced post slider is changed. Your previous option set and settings will be lost.
|
90 |
+
* jQuery plugin is changed to bxSlider. jQuery Cycle plugin lover may consider not to update.
|
91 |
+
|
92 |
+
* Enhancements & New feature
|
93 |
+
* Responsive
|
94 |
+
* Thumbnail pagination
|
95 |
+
* Carousel & Ticker mode for all templates
|
96 |
+
* Multiple slide for all template
|
97 |
+
* Improved design for template one
|
98 |
+
* Improved admin UI
|
99 |
|
|
|
100 |
|
101 |
+
== Upgrade Notice ==
|
102 |
+
* Important Upgrade notice
|
103 |
+
* Dont perform automatic upgrade now. There is a bug and I will fix it ASAP. Rather than upgrading automatically by clicking update now just deactivate the plugin then delete it from admin panel then re-install version 2 again.
|
104 |
+
|
105 |
+
* Before upgrade
|
106 |
+
* Database structure of Advanced post slider is changed. Your previous option set and settings will be lost.
|
107 |
+
* jQuery plugin is changed to bxSlider. jQuery Cycle plugin lover may consider not to update.
|
templates/template-one.php
ADDED
@@ -0,0 +1,636 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
+
foreach( $res1 as $dset){
|
4 |
+
$plist = unserialize($dset->plist);
|
5 |
+
$query = unserialize($dset->query);
|
6 |
+
$slider = unserialize($dset->slider);
|
7 |
+
$caro_ticker = unserialize($dset->caro_ticker);
|
8 |
+
$container = unserialize($dset->container);
|
9 |
+
$content = unserialize($dset->content);
|
10 |
+
$navigation = unserialize($dset->navigation);
|
11 |
+
?>
|
12 |
+
<div class="metabox-holder" style="margin-top:20px;">
|
13 |
+
<div class="postbox-container" style="width:72%">
|
14 |
+
<div class="postbox closed">
|
15 |
+
<div class="handlediv down" title="Click to toggle"> <br>
|
16 |
+
</div>
|
17 |
+
<h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new option set' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
|
18 |
+
<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>
|
19 |
+
</h3>
|
20 |
+
<div class="inside">
|
21 |
+
<fieldset>
|
22 |
+
<legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
|
23 |
+
<table class="form-table">
|
24 |
+
<tr>
|
25 |
+
<th scope="row">Option set label</th>
|
26 |
+
<td><input type="text" style="width:px;" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
|
27 |
+
<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>
|
28 |
+
</tr>
|
29 |
+
<tr>
|
30 |
+
<th scope="row">Usage</th>
|
31 |
+
<td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo $dset->id;?>"]' readonly="readonly" /></td>
|
32 |
+
</tr>
|
33 |
+
</table>
|
34 |
+
</fieldset>
|
35 |
+
<fieldset>
|
36 |
+
<legend class="advps-legend advpssm" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend>
|
37 |
+
<div id="advps-sel<?php echo $dset->id;?>">
|
38 |
+
<table class="form-table">
|
39 |
+
<tr>
|
40 |
+
<th scope="row">Select post using</th>
|
41 |
+
<td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">
|
42 |
+
<option value="plist" <?php if(get_option('advpssmethod'.$dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>
|
43 |
+
<option value="query" <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>
|
44 |
+
</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>
|
45 |
+
</tr>
|
46 |
+
</table>
|
47 |
+
<form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">
|
48 |
+
<table class="form-table <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'advps-hide';}?>">
|
49 |
+
<tr>
|
50 |
+
<th scope="row">Listing option</th>
|
51 |
+
<td><select title="Post type" name="advps_post_stypes">
|
52 |
+
<option value="post" <?php if($plist['advps_post_stypes'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
53 |
+
<option value="page" <?php if($plist['advps_post_stypes'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
54 |
+
<?php
|
55 |
+
foreach ($customPostTypes as $post_type ) {
|
56 |
+
?>
|
57 |
+
<option value="<?php echo $post_type;?>" <?php if($plist['advps_post_stypes'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
58 |
+
<?php
|
59 |
+
}
|
60 |
+
?>
|
61 |
+
</select>
|
62 |
+
<span style="padding-left:10px;">
|
63 |
+
<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" />
|
64 |
+
</span> <span style="padding-left:10px;">
|
65 |
+
<select name="advps_plistorder_by" title="Order by">
|
66 |
+
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
67 |
+
<option value="ID" <?php if($plist['advps_plistorder_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
68 |
+
<option value="author" <?php if($plist['advps_plistorder_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
69 |
+
<option value="title" <?php if($plist['advps_plistorder_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
70 |
+
<option value="name" <?php if($plist['advps_plistorder_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
71 |
+
<option value="rand" <?php if($plist['advps_plistorder_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
72 |
+
<option value="menu_order" <?php if($plist['advps_plistorder_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
73 |
+
<option value="comment_count" <?php if($plist['advps_plistorder_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
74 |
+
</select>
|
75 |
+
</span> <span style="padding-left:10px;">
|
76 |
+
<select name="advps_plistorder" title="Order">
|
77 |
+
<option value="ASC" <?php if($plist['advps_plistorder'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
78 |
+
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
79 |
+
</select>
|
80 |
+
</span> <span style="padding-left:10px;">
|
81 |
+
<button class="button-secondary" value="" onclick="listPost(<?php echo $dset->id;?>)">List</button>
|
82 |
+
</span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
|
83 |
+
</tr>
|
84 |
+
<tr>
|
85 |
+
<th scope="row">Select post from list</th>
|
86 |
+
<td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo $dset->id;?>">
|
87 |
+
<?php
|
88 |
+
$lpargs = array(
|
89 |
+
'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes'] : 'post',
|
90 |
+
'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax'] : 99,
|
91 |
+
'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by'] : 'date',
|
92 |
+
'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder'] : 'DESC'
|
93 |
+
);
|
94 |
+
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
95 |
+
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
96 |
+
<?php the_title();?>
|
97 |
+
</option>
|
98 |
+
<?php endwhile;wp_reset_query();?>
|
99 |
+
</select>
|
100 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple ]</span></td>
|
101 |
+
</tr>
|
102 |
+
<tr>
|
103 |
+
<th scope="row"> </th>
|
104 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo $dset->id;?>')" />
|
105 |
+
<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>
|
106 |
+
</tr>
|
107 |
+
</table>
|
108 |
+
<input type="hidden" name="opt_field" value="plist" />
|
109 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
110 |
+
</form>
|
111 |
+
<form method="post" onsubmit="return false" id="query<?php echo $dset->id;?>">
|
112 |
+
<table class="form-table <?php if(!get_option('advpssmethod'.$dset->id) || get_option('advpssmethod'.$dset->id) == 'plist'){echo 'advps-hide';}?>">
|
113 |
+
<tr>
|
114 |
+
<th scope="row">Post Type</th>
|
115 |
+
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
116 |
+
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
117 |
+
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
118 |
+
<?php
|
119 |
+
foreach ($customPostTypes as $post_type ) {
|
120 |
+
?>
|
121 |
+
<option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
122 |
+
<?php
|
123 |
+
}
|
124 |
+
?>
|
125 |
+
</select></td>
|
126 |
+
</tr>
|
127 |
+
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
128 |
+
<?php
|
129 |
+
$posttypeobj = get_post_type_object($query['advps_post_types']);
|
130 |
+
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
131 |
+
?>
|
132 |
+
<th scope="row">Category</th>
|
133 |
+
<td><select name="advps_category[]" multiple="multiple">
|
134 |
+
<?php
|
135 |
+
$catList = get_categories();
|
136 |
+
foreach($catList as $scat){
|
137 |
+
?>
|
138 |
+
<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>
|
139 |
+
<?php }?>
|
140 |
+
</select>
|
141 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
142 |
+
<?php }?>
|
143 |
+
</tr>
|
144 |
+
<tr>
|
145 |
+
<th scope="row">Max. Number of post</th>
|
146 |
+
<td><input type="text" name="advps_maxpost" value="<?php echo $query['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
147 |
+
</tr>
|
148 |
+
<tr>
|
149 |
+
<th scope="row">Offset (optional)</th>
|
150 |
+
<td><input type="text" name="advps_offset" value="<?php echo $query['advps_offset'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
151 |
+
</tr>
|
152 |
+
<tr>
|
153 |
+
<th scope="row">Exclude (optional)</th>
|
154 |
+
<td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />
|
155 |
+
<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>
|
156 |
+
</tr>
|
157 |
+
<tr>
|
158 |
+
<th scope="row">Order by</th>
|
159 |
+
<td><select name="advps_order_by">
|
160 |
+
<option value="date" <?php if($query['advps_order_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
161 |
+
<option value="ID" <?php if($query['advps_order_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
162 |
+
<option value="author" <?php if($query['advps_order_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
163 |
+
<option value="title" <?php if($query['advps_order_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
164 |
+
<option value="name" <?php if($query['advps_order_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
165 |
+
<option value="rand" <?php if($query['advps_order_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
166 |
+
<option value="menu_order" <?php if($query['advps_order_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
167 |
+
<option value="comment_count" <?php if($query['advps_order_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
168 |
+
</select></td>
|
169 |
+
</tr>
|
170 |
+
<tr>
|
171 |
+
<th scope="row">Order</th>
|
172 |
+
<td><select name="advps_order">
|
173 |
+
<option value="ASC" <?php if($query['advps_order'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
174 |
+
<option value="DESC" <?php if($query['advps_order'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
175 |
+
</select></td>
|
176 |
+
</tr>
|
177 |
+
<tr>
|
178 |
+
<th scope="row"> </th>
|
179 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo $dset->id;?>')" />
|
180 |
+
<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>
|
181 |
+
</tr>
|
182 |
+
</table>
|
183 |
+
<input type="hidden" name="opt_field" value="query" />
|
184 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
185 |
+
</form>
|
186 |
+
</div>
|
187 |
+
</fieldset>
|
188 |
+
<fieldset>
|
189 |
+
<legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend>
|
190 |
+
<form method="post" id="slider<?php echo $dset->id;?>" onsubmit="return false">
|
191 |
+
<table class="form-table">
|
192 |
+
<tr>
|
193 |
+
<th scope="row">Slider Type</th>
|
194 |
+
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">
|
195 |
+
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
196 |
+
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
197 |
+
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
198 |
+
</select></td>
|
199 |
+
</tr>
|
200 |
+
<tr>
|
201 |
+
<th scope="row">Transitions type </th>
|
202 |
+
<td><select name="advps_transition">
|
203 |
+
<option value="css3" <?php if($slider['advps_transition'] == 'css3'){echo 'selected="selected"';}?>>CSS3</option>
|
204 |
+
<option value="jquery" <?php if($slider['advps_transition'] == 'jquery'){echo 'selected="selected"';}?>>jQuery animation</option>
|
205 |
+
</select>
|
206 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. CSS3 transitions is recommended ]</span></td>
|
207 |
+
</tr>
|
208 |
+
<tr>
|
209 |
+
<th scope="row">Effect</th>
|
210 |
+
<td><select name="advps_effects">
|
211 |
+
<option value="horizontal" <?php if($slider['advps_effects'] == 'horizontal'){echo 'selected="selected"';}?>>Horizontal</option>
|
212 |
+
<option value="vertical" <?php if($slider['advps_effects'] == 'vertical'){echo 'selected="selected"';}?>>Vertical</option>
|
213 |
+
<option value="fade" <?php if($slider['advps_effects'] == 'fade'){echo 'selected="selected"';}?>>Fade</option>
|
214 |
+
</select></td>
|
215 |
+
</tr>
|
216 |
+
<tr>
|
217 |
+
<th scope="row">Speed</th>
|
218 |
+
<td><input type="text" name="advps_speed" value="<?php echo $slider['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
219 |
+
</tr>
|
220 |
+
<tr>
|
221 |
+
<th scope="row">Auto play</th>
|
222 |
+
<td><select name="advps_autoplay">
|
223 |
+
<option value="yes" <?php if($slider['advps_autoplay'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
224 |
+
<option value="no" <?php if($slider['advps_autoplay'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
225 |
+
</select></td>
|
226 |
+
</tr>
|
227 |
+
<tr>
|
228 |
+
<th scope="row">Pause</th>
|
229 |
+
<td><input type="text" name="advps_timeout" value="<?php echo $slider['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
230 |
+
</tr>
|
231 |
+
<tr>
|
232 |
+
<th scope="row">Slide margin</th>
|
233 |
+
<td><input type="text" name="advps_sldmargin" value="<?php echo $slider['advps_sldmargin'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
234 |
+
</tr>
|
235 |
+
<tr>
|
236 |
+
<th scope="row">Enable pause on hover</th>
|
237 |
+
<td><select name="advps_ps_hover">
|
238 |
+
<option value="yes" <?php if($slider['advps_ps_hover'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
239 |
+
<option value="no" <?php if($slider['advps_ps_hover'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
240 |
+
</select></td>
|
241 |
+
</tr>
|
242 |
+
<tr>
|
243 |
+
<th scope="row"> </th>
|
244 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo $dset->id;?>')" />
|
245 |
+
<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>
|
246 |
+
</tr>
|
247 |
+
</table>
|
248 |
+
<input type="hidden" name="opt_field" value="slider" />
|
249 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
250 |
+
</form>
|
251 |
+
</fieldset>
|
252 |
+
<fieldset>
|
253 |
+
<legend class="advps-legend" style="width:121px; background-position:120px 6px;"><strong>Carousel & Ticker</strong></legend>
|
254 |
+
<form method="post" onsubmit="return false" id="caro_ticker<?php echo $dset->id;?>">
|
255 |
+
<table class="form-table">
|
256 |
+
<tr>
|
257 |
+
<th scope="row">Number of slide</th>
|
258 |
+
<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);" />
|
259 |
+
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
260 |
+
</tr>
|
261 |
+
<tr>
|
262 |
+
<th scope="row">Slide width</th>
|
263 |
+
<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);" />
|
264 |
+
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
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('caro_ticker<?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="caro_ticker" />
|
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:155px; background-position:154px 6px;"><strong>Container & Thumbnail</strong></legend>
|
278 |
+
<form method="post" onsubmit="return false" id="container<?php echo $dset->id;?>">
|
279 |
+
<table class="form-table">
|
280 |
+
<tr>
|
281 |
+
<th scope="row">Select Thumbnail</th>
|
282 |
+
<td><select name="advps_thumbnail">
|
283 |
+
<option value="thumbnail" <?php if($container['advps_thumbnail'] == 'thumbnail'){echo 'selected="selected"';}?>>thumbnail</option>
|
284 |
+
<option value="medium" <?php if($container['advps_thumbnail'] == 'medium'){echo 'selected="selected"';}?>>medium</option>
|
285 |
+
<option value="large" <?php if($container['advps_thumbnail'] == 'large'){echo 'selected="selected"';}?>>large</option>
|
286 |
+
<option value="full" <?php if($container['advps_thumbnail'] == 'full'){echo 'selected="selected"';}?>>full</option>
|
287 |
+
<?php
|
288 |
+
global $_wp_additional_image_sizes;
|
289 |
+
unset($_wp_additional_image_sizes['post-thumbnail']);
|
290 |
+
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
291 |
+
?>
|
292 |
+
<option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
293 |
+
<?php
|
294 |
+
}
|
295 |
+
?>
|
296 |
+
</select></td>
|
297 |
+
</tr>
|
298 |
+
<tr>
|
299 |
+
<th scope="row">Default image url</th>
|
300 |
+
<td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo $container['advps_default_image'];}?>" style="width:250px;" />
|
301 |
+
<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>
|
302 |
+
</tr>
|
303 |
+
<tr>
|
304 |
+
<th scope="row">Slide Container Width</th>
|
305 |
+
<td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
|
306 |
+
px</td>
|
307 |
+
</tr>
|
308 |
+
<tr>
|
309 |
+
<th scope="row">Background Color</th>
|
310 |
+
<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;" />
|
311 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
312 |
+
</tr>
|
313 |
+
<tr>
|
314 |
+
<th scope="row">Border</th>
|
315 |
+
<td><span style="vertical-align:top">
|
316 |
+
<input type="text" name="advps_border_size" value="<?php echo $container['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
317 |
+
px
|
318 |
+
<select name="advps_border_type">
|
319 |
+
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
320 |
+
<option value="dotted" <?php if($container['advps_border_type'] == 'dotted'){echo 'selected="selected"';}?>>dotted</option>
|
321 |
+
<option value="double" <?php if($container['advps_border_type'] == 'double'){echo 'selected="selected"';}?>>double</option>
|
322 |
+
<option value="solid" <?php if($container['advps_border_type'] == 'solid'){echo 'selected="selected"';}?>>solid</option>
|
323 |
+
<option value="inset" <?php if($container['advps_border_type'] == 'inset'){echo 'selected="selected"';}?>>inset</option>
|
324 |
+
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
325 |
+
</select>
|
326 |
+
</span>
|
327 |
+
<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;" />
|
328 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
329 |
+
</tr>
|
330 |
+
<tr>
|
331 |
+
<th scope="row">Remove Border</th>
|
332 |
+
<td><select name="advps_remove_border">
|
333 |
+
<option value="yes" <?php if($container['advps_remove_border'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
334 |
+
<option value="no" <?php if($container['advps_remove_border'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
335 |
+
</select></td>
|
336 |
+
</tr>
|
337 |
+
<tr>
|
338 |
+
<th scope="row">Box Shadow</th>
|
339 |
+
<td><span style="vertical-align:top">
|
340 |
+
<input type="text" name="advps_bxshad1" value="<?php echo $container['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
341 |
+
px
|
342 |
+
<input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
343 |
+
px
|
344 |
+
<input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
345 |
+
px </span>
|
346 |
+
<input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $container['advps_bxshadcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />
|
347 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
348 |
+
</tr>
|
349 |
+
<tr>
|
350 |
+
<th scope="row">Remove Shadow</th>
|
351 |
+
<td><select name="advps_remove_shd">
|
352 |
+
<option value="yes" <?php if($container['advps_remove_shd'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
353 |
+
<option value="no" <?php if($container['advps_remove_shd'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
354 |
+
</select></td>
|
355 |
+
</tr>
|
356 |
+
<tr>
|
357 |
+
<th scope="row"> </th>
|
358 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo $dset->id;?>')" />
|
359 |
+
<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>
|
360 |
+
</tr>
|
361 |
+
</table>
|
362 |
+
<input type="hidden" name="opt_field" value="container" />
|
363 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
364 |
+
</form>
|
365 |
+
</fieldset>
|
366 |
+
<fieldset>
|
367 |
+
<legend class="advps-legend" style="width:102px; background-position:101px 6px;"><strong>Title & Excerpt</strong></legend>
|
368 |
+
<form method="post" onsubmit="return false" id="content<?php echo $dset->id;?>">
|
369 |
+
<table class="form-table">
|
370 |
+
<tr>
|
371 |
+
<th scope="row">Overlay size</th>
|
372 |
+
<td>Width
|
373 |
+
<input type="text" name="advps_overlay_width" value="<?php echo $content['advps_overlay_width'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
374 |
+
% Height
|
375 |
+
<input type="text" name="advps_overlay_height" value="<?php echo $content['advps_overlay_height'];?>" style="width:80px;" onkeypress="return onlyNum(event);" />
|
376 |
+
%</td>
|
377 |
+
</tr>
|
378 |
+
<tr>
|
379 |
+
<th scope="row">Overlay color</th>
|
380 |
+
<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?>" />
|
381 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
382 |
+
</tr>
|
383 |
+
<tr>
|
384 |
+
<th scope="row">Overlay opacity</th>
|
385 |
+
<td><input type="text" name="advps_overlay_opacity" value="<?php echo $content['advps_overlay_opacity'];?>" style="width:50px;" />
|
386 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
387 |
+
</tr>
|
388 |
+
<tr>
|
389 |
+
<th scope="row">Overlay Position</th>
|
390 |
+
<td><select name="advps_excpt_position">
|
391 |
+
<option value="left" <?php if($content['advps_excpt_position'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
392 |
+
<option value="right" <?php if($content['advps_excpt_position'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
393 |
+
<option value="bottom" <?php if($content['advps_excpt_position'] == 'bottom'){echo 'selected="selected"';}?>>Bottom</option>
|
394 |
+
</select>
|
395 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. After changing it you may need to change overlay width and height also]</span></td>
|
396 |
+
</tr>
|
397 |
+
<tr>
|
398 |
+
<th scope="row">Overlay visibility</th>
|
399 |
+
<td><select name="advps_excpt_visibility">
|
400 |
+
<option value="show on hover" <?php if($content['advps_excpt_visibility'] == 'show on hover'){echo 'selected="selected"';}?>>Show on hover</option>
|
401 |
+
<option value="always show" <?php if($content['advps_excpt_visibility'] == 'always show'){echo 'selected="selected"';}?>>Always show</option>
|
402 |
+
</select></td>
|
403 |
+
</tr>
|
404 |
+
<tr>
|
405 |
+
<th scope="row">Text opacity</th>
|
406 |
+
<td><input type="text" name="advps_text_opacity" value="<?php echo $content['advps_text_opacity'];?>" style="width:50px;" />
|
407 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ 0 - 1 ]</span></td>
|
408 |
+
</tr>
|
409 |
+
<tr>
|
410 |
+
<th scope="row">Text align</th>
|
411 |
+
<td><select name="advps_text_align">
|
412 |
+
<option value="center" <?php if($content['advps_text_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
413 |
+
<option value="left" <?php if($content['advps_text_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
414 |
+
<option value="right" <?php if($content['advps_text_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
415 |
+
</select></td>
|
416 |
+
</tr>
|
417 |
+
<tr>
|
418 |
+
<th scope="row">Title tag</th>
|
419 |
+
<td><select name="advps_ttitle_tag">
|
420 |
+
<option value="h1" <?php if($content['advps_ttitle_tag'] == 'h1'){echo 'selected="selected"';}?>>h1</option>
|
421 |
+
<option value="h2" <?php if($content['advps_ttitle_tag'] == 'h2'){echo 'selected="selected"';}?>>h2</option>
|
422 |
+
<option value="h3" <?php if($content['advps_ttitle_tag'] == 'h3'){echo 'selected="selected"';}?>>h3</option>
|
423 |
+
<option value="div" <?php if($content['advps_ttitle_tag'] == 'div'){echo 'selected="selected"';}?>>div</option>
|
424 |
+
</select></td>
|
425 |
+
</tr>
|
426 |
+
<tr>
|
427 |
+
<th scope="row">Title font Color</th>
|
428 |
+
<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?>" />
|
429 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
430 |
+
</tr>
|
431 |
+
<tr>
|
432 |
+
<th scope="row">Title hover Color</th>
|
433 |
+
<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?>" />
|
434 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
435 |
+
</tr>
|
436 |
+
<tr>
|
437 |
+
<th scope="row">Title font size</th>
|
438 |
+
<td><input type="text" name="advps_titleFsize" value="<?php echo $content['advps_titleFsize'];?>" style="width:60px;" />
|
439 |
+
<select name="advps_ttitleFSunit" style="vertical-align:top;">
|
440 |
+
<option value="vw" <?php if($content['advps_ttitleFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
441 |
+
<option value="vh" <?php if($content['advps_ttitleFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
442 |
+
<option value="%" <?php if($content['advps_ttitleFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
443 |
+
<option value="em" <?php if($content['advps_ttitleFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
444 |
+
<option value="px" <?php if($content['advps_ttitleFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
445 |
+
<option value="pt" <?php if($content['advps_ttitleFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
446 |
+
</select></td>
|
447 |
+
</tr>
|
448 |
+
<tr>
|
449 |
+
<th scope="row">Title line height</th>
|
450 |
+
<td><input type="text" name="advps_titleLheight" value="<?php echo $content['advps_titleLheight'];?>" style="width:60px;" />
|
451 |
+
<select name="advps_ttitleLHunit" style="vertical-align:top;">
|
452 |
+
<option value="vw" <?php if($content['advps_ttitleLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
453 |
+
<option value="vh" <?php if($content['advps_ttitleLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
454 |
+
<option value="%" <?php if($content['advps_ttitleLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
455 |
+
<option value="em" <?php if($content['advps_ttitleLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
456 |
+
<option value="px" <?php if($content['advps_ttitleLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
457 |
+
<option value="pt" <?php if($content['advps_ttitleLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
458 |
+
</select></td>
|
459 |
+
</tr>
|
460 |
+
<tr>
|
461 |
+
<th scope="row">Excerpt font color</th>
|
462 |
+
<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?>" />
|
463 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
464 |
+
</tr>
|
465 |
+
<tr>
|
466 |
+
<th scope="row">Excerpt font size</th>
|
467 |
+
<td><input type="text" name="advps_excptFsize" value="<?php echo $content['advps_excptFsize'];?>" style="width:60px;" />
|
468 |
+
<select name="advps_excptFSunit" style="vertical-align:top;">
|
469 |
+
<option value="vw" <?php if($content['advps_excptFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
470 |
+
<option value="vh" <?php if($content['advps_excptFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
471 |
+
<option value="%" <?php if($content['advps_excptFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
472 |
+
<option value="em" <?php if($content['advps_excptFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
473 |
+
<option value="px" <?php if($content['advps_excptFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
474 |
+
<option value="pt" <?php if($content['advps_excptFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
475 |
+
</select></td>
|
476 |
+
</tr>
|
477 |
+
<tr>
|
478 |
+
<th scope="row">Excerpt line height</th>
|
479 |
+
<td><input type="text" name="advps_excptLheight" value="<?php echo $content['advps_excptLheight'];?>" style="width:60px;" />
|
480 |
+
<select name="advps_excptLHunit" style="vertical-align:top;">
|
481 |
+
<option value="vw" <?php if($content['advps_excptLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
482 |
+
<option value="vh" <?php if($content['advps_excptLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
483 |
+
<option value="%" <?php if($content['advps_excptLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
484 |
+
<option value="em" <?php if($content['advps_excptLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
485 |
+
<option value="px" <?php if($content['advps_excptLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
486 |
+
<option value="pt" <?php if($content['advps_excptLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
487 |
+
</select></td>
|
488 |
+
</tr>
|
489 |
+
<tr>
|
490 |
+
<th scope="row">Excerpt length</th>
|
491 |
+
<td><input type="text" name="advps_excerptlen" value="<?php echo $content['advps_excerptlen'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
492 |
+
words</td>
|
493 |
+
</tr>
|
494 |
+
<tr>
|
495 |
+
<th scope="row">Exclude excerpt</th>
|
496 |
+
<td><select name="advps_exclude_excpt">
|
497 |
+
<option value="yes" <?php if($content['advps_exclude_excpt'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
498 |
+
<option value="no" <?php if($content['advps_exclude_excpt'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
499 |
+
</select></td>
|
500 |
+
</tr>
|
501 |
+
<tr>
|
502 |
+
<th scope="row">Enable/Disable link</th>
|
503 |
+
<td><select name="advps_ed_link">
|
504 |
+
<option value="enable" <?php if($content['advps_ed_link'] == 'enable'){echo 'selected="selected"';}?>>Enable</option>
|
505 |
+
<option value="disable" <?php if($content['advps_ed_link'] == 'disable'){echo 'selected="selected"';}?>>Disable</option>
|
506 |
+
</select></td>
|
507 |
+
</tr>
|
508 |
+
<tr>
|
509 |
+
<th scope="row">link type</th>
|
510 |
+
<td><select name="advps_link_type">
|
511 |
+
<option value="permalink" <?php if($content['advps_link_type'] == 'permalink'){echo 'selected="selected"';}?>>Permalink</option>
|
512 |
+
<option value="custom" <?php if($content['advps_link_type'] == 'custom'){echo 'selected="selected"';}?>>Custom</option>
|
513 |
+
</select>
|
514 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
515 |
+
</tr>
|
516 |
+
<tr>
|
517 |
+
<th scope="row">link target</th>
|
518 |
+
<td><select name="advps_link_target">
|
519 |
+
<option value="_self" <?php if($content['advps_link_target'] == '_self'){echo 'selected="selected"';}?>>_self</option>
|
520 |
+
<option value="_blank" <?php if($content['advps_link_target'] == '_blank'){echo 'selected="selected"';}?>>_blank</option>
|
521 |
+
<option value="_new" <?php if($content['advps_link_target'] == '_new'){echo 'selected="selected"';}?>>_new</option>
|
522 |
+
<option value="_top" <?php if($content['advps_link_target'] == '_top'){echo 'selected="selected"';}?>>_top</option>
|
523 |
+
<option value="_parent" <?php if($content['advps_link_target'] == '_parent'){echo 'selected="selected"';}?>>_parent</option>
|
524 |
+
</select></td>
|
525 |
+
</tr>
|
526 |
+
<tr>
|
527 |
+
<th scope="row"> </th>
|
528 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('content<?php echo $dset->id;?>')" />
|
529 |
+
<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>
|
530 |
+
</tr>
|
531 |
+
</table>
|
532 |
+
<input type="hidden" name="opt_field" value="content" />
|
533 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
534 |
+
</form>
|
535 |
+
</fieldset>
|
536 |
+
<fieldset>
|
537 |
+
<legend class="advps-legend" style="width:79px; background-position:78px 6px;"><strong>Navigation</strong></legend>
|
538 |
+
<form method="post" onsubmit="return false" id="navigation<?php echo $dset->id;?>">
|
539 |
+
<table class="form-table">
|
540 |
+
<tr>
|
541 |
+
<th scope="row">Exclude pager</th>
|
542 |
+
<td><select name="advps_exclude_pager">
|
543 |
+
<option value="yes" <?php if($navigation['advps_exclude_pager'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
544 |
+
<option value="no" <?php if($navigation['advps_exclude_pager'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
545 |
+
</select></td>
|
546 |
+
</tr>
|
547 |
+
<tr>
|
548 |
+
<th scope="row">Pager type</th>
|
549 |
+
<td><span style="padding-right:5px;">Number</span>
|
550 |
+
<input type="radio" name="advps_pager_type" value="number" <?php if($navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
551 |
+
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
552 |
+
<input type="radio" name="advps_pager_type" value="bullet" <?php if($navigation['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>>
|
553 |
+
<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>
|
554 |
+
<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($navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td>
|
555 |
+
</tr>
|
556 |
+
<tr>
|
557 |
+
<th scope="row">Thumbnail Width</th>
|
558 |
+
<td>
|
559 |
+
<input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" /> %
|
560 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
561 |
+
</tr>
|
562 |
+
<tr>
|
563 |
+
<th scope="row">Pager align</th>
|
564 |
+
<td><select name="advps_pager_align">
|
565 |
+
<option value="center" <?php if($navigation['advps_pager_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
566 |
+
<option value="left" <?php if($navigation['advps_pager_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
567 |
+
<option value="right" <?php if($navigation['advps_pager_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
568 |
+
</select></td>
|
569 |
+
</tr>
|
570 |
+
<tr>
|
571 |
+
<th scope="row">Pager position from bottom</th>
|
572 |
+
<td><input type="text" name="advps_pager_bottom" value="<?php echo $navigation['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />
|
573 |
+
px</td>
|
574 |
+
</tr>
|
575 |
+
<tr>
|
576 |
+
<th scope="row">Exclude Play/Pause</th>
|
577 |
+
<td><select name="advps_exclude_playpause">
|
578 |
+
<option value="yes" <?php if($navigation['advps_exclude_playpause'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
579 |
+
<option value="no" <?php if($navigation['advps_exclude_playpause'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
580 |
+
</select>
|
581 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Play/Pause works when Slider Type is standard and auto play is enabled. ]</span></td>
|
582 |
+
</tr>
|
583 |
+
<tr>
|
584 |
+
<th scope="row">Play/Pause align</th>
|
585 |
+
<td><select name="advps_ppause_align">
|
586 |
+
<option value="center" <?php if($navigation['advps_ppause_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
587 |
+
<option value="left" <?php if($navigation['advps_ppause_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
588 |
+
<option value="right" <?php if($navigation['advps_ppause_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
589 |
+
</select></td>
|
590 |
+
</tr>
|
591 |
+
<tr>
|
592 |
+
<th scope="row">Play/Pause position from bottom</th>
|
593 |
+
<td><input type="text" name="advps_ppause_bottom" value="<?php echo $navigation['advps_ppause_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />
|
594 |
+
px</td>
|
595 |
+
</tr>
|
596 |
+
<tr>
|
597 |
+
<th scope="row">Exclude Next/Previous</th>
|
598 |
+
<td><select name="advps_exclude_nxtprev">
|
599 |
+
<option value="yes" <?php if($navigation['advps_exclude_nxtprev'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
600 |
+
<option value="no" <?php if($navigation['advps_exclude_nxtprev'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
601 |
+
</select></td>
|
602 |
+
</tr>
|
603 |
+
<tr>
|
604 |
+
<th scope="row"> </th>
|
605 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo $dset->id;?>')" />
|
606 |
+
<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>
|
607 |
+
</tr>
|
608 |
+
</table>
|
609 |
+
<input type="hidden" name="opt_field" value="navigation" />
|
610 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
611 |
+
</form>
|
612 |
+
</fieldset>
|
613 |
+
<!-- </form>-->
|
614 |
+
<form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
|
615 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
|
616 |
+
<p>
|
617 |
+
<input type="submit" name="del-optset" value="Delete this option set" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" />
|
618 |
+
</p>
|
619 |
+
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
620 |
+
</form>
|
621 |
+
</div>
|
622 |
+
</div>
|
623 |
+
</div>
|
624 |
+
</div>
|
625 |
+
<?php
|
626 |
+
}
|
627 |
+
$tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
|
628 |
+
?>
|
629 |
+
<div style="position:relative; float:left; width:100%">
|
630 |
+
<form method="post">
|
631 |
+
<input type="hidden" name="template" value="one" />
|
632 |
+
<input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
|
633 |
+
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
634 |
+
<input type="submit" name="advps_submit" value="Add new option set" class="button-primary" style="font-weight:bold" />
|
635 |
+
</form>
|
636 |
+
</div>
|
templates/template-three.php
ADDED
@@ -0,0 +1,608 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
+
|
4 |
+
foreach( $res3 as $dset){
|
5 |
+
$plist = unserialize($dset->plist);
|
6 |
+
$query = unserialize($dset->query);
|
7 |
+
$slider = unserialize($dset->slider);
|
8 |
+
$caro_ticker = unserialize($dset->caro_ticker);
|
9 |
+
$container = unserialize($dset->container);
|
10 |
+
$content = unserialize($dset->content);
|
11 |
+
$navigation = unserialize($dset->navigation);
|
12 |
+
?>
|
13 |
+
<div class="metabox-holder" style="margin-top:20px;">
|
14 |
+
<div class="postbox-container" style="width:72%">
|
15 |
+
<div class="postbox closed">
|
16 |
+
<div class="handlediv down" title="Click to toggle"> <br>
|
17 |
+
</div>
|
18 |
+
<h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new option set' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
|
19 |
+
<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>
|
20 |
+
</h3>
|
21 |
+
<div class="inside">
|
22 |
+
<fieldset>
|
23 |
+
<legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
|
24 |
+
<table class="form-table">
|
25 |
+
<tr>
|
26 |
+
<th scope="row">Option set label</th>
|
27 |
+
<td><input type="text" style="width:px;" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
|
28 |
+
<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>
|
29 |
+
</tr>
|
30 |
+
<tr>
|
31 |
+
<th scope="row">Usage</th>
|
32 |
+
<td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo $dset->id;?>"]' readonly="readonly" /></td>
|
33 |
+
</tr>
|
34 |
+
</table>
|
35 |
+
</fieldset>
|
36 |
+
<fieldset>
|
37 |
+
<legend class="advps-legend" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend>
|
38 |
+
<div id="advps-sel<?php echo $dset->id;?>">
|
39 |
+
<table class="form-table">
|
40 |
+
<tr>
|
41 |
+
<th scope="row">Select post using</th>
|
42 |
+
<td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">
|
43 |
+
<option value="plist" <?php if(get_option('advpssmethod'.$dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>
|
44 |
+
<option value="query" <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>
|
45 |
+
</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>
|
46 |
+
</tr>
|
47 |
+
</table>
|
48 |
+
<form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">
|
49 |
+
<table class="form-table <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'advps-hide';}?>">
|
50 |
+
<tr>
|
51 |
+
<th scope="row">Listing option</th>
|
52 |
+
<td><select title="Post type" name="advps_post_stypes">
|
53 |
+
<option value="post" <?php if($plist['advps_post_stypes'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
54 |
+
<option value="page" <?php if($plist['advps_post_stypes'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
55 |
+
<?php
|
56 |
+
foreach ($customPostTypes as $post_type ) {
|
57 |
+
?>
|
58 |
+
<option value="<?php echo $post_type;?>" <?php if($plist['advps_post_stypes'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
59 |
+
<?php
|
60 |
+
}
|
61 |
+
?>
|
62 |
+
</select>
|
63 |
+
<span style="padding-left:10px;">
|
64 |
+
<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" />
|
65 |
+
</span> <span style="padding-left:10px;">
|
66 |
+
<select name="advps_plistorder_by" title="Order by">
|
67 |
+
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
68 |
+
<option value="ID" <?php if($plist['advps_plistorder_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
69 |
+
<option value="author" <?php if($plist['advps_plistorder_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
70 |
+
<option value="title" <?php if($plist['advps_plistorder_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
71 |
+
<option value="name" <?php if($plist['advps_plistorder_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
72 |
+
<option value="rand" <?php if($plist['advps_plistorder_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
73 |
+
<option value="menu_order" <?php if($plist['advps_plistorder_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
74 |
+
<option value="comment_count" <?php if($plist['advps_plistorder_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
75 |
+
</select>
|
76 |
+
</span> <span style="padding-left:10px;">
|
77 |
+
<select name="advps_plistorder" title="Order">
|
78 |
+
<option value="ASC" <?php if($plist['advps_plistorder'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
79 |
+
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
80 |
+
</select>
|
81 |
+
</span> <span style="padding-left:10px;">
|
82 |
+
<button class="button-secondary" value="" onclick="listPost(<?php echo $dset->id;?>)">List</button>
|
83 |
+
</span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
|
84 |
+
</tr>
|
85 |
+
<tr>
|
86 |
+
<th scope="row">Select post from list</th>
|
87 |
+
<td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo $dset->id;?>">
|
88 |
+
<?php
|
89 |
+
$lpargs = array(
|
90 |
+
'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes'] : 'post',
|
91 |
+
'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax'] : 99,
|
92 |
+
'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by'] : 'date',
|
93 |
+
'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder'] : 'DESC'
|
94 |
+
);
|
95 |
+
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
96 |
+
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
97 |
+
<?php the_title();?>
|
98 |
+
</option>
|
99 |
+
<?php endwhile;wp_reset_query();?>
|
100 |
+
</select>
|
101 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple ]</span></td>
|
102 |
+
</tr>
|
103 |
+
<tr>
|
104 |
+
<th scope="row"> </th>
|
105 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo $dset->id;?>')" />
|
106 |
+
<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>
|
107 |
+
</tr>
|
108 |
+
</table>
|
109 |
+
<input type="hidden" name="opt_field" value="plist" />
|
110 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
111 |
+
</form>
|
112 |
+
<form method="post" onsubmit="return false" id="query<?php echo $dset->id;?>">
|
113 |
+
<table class="form-table <?php if(!get_option('advpssmethod'.$dset->id) || get_option('advpssmethod'.$dset->id) == 'plist'){echo 'advps-hide';}?>">
|
114 |
+
<tr>
|
115 |
+
<th scope="row">Post Type</th>
|
116 |
+
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
117 |
+
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
118 |
+
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
119 |
+
<?php
|
120 |
+
foreach ($customPostTypes as $post_type ) {
|
121 |
+
?>
|
122 |
+
<option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
123 |
+
<?php
|
124 |
+
}
|
125 |
+
?>
|
126 |
+
</select></td>
|
127 |
+
</tr>
|
128 |
+
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
129 |
+
<?php
|
130 |
+
$posttypeobj = get_post_type_object($query['advps_post_types']);
|
131 |
+
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
132 |
+
?>
|
133 |
+
<th scope="row">Category</th>
|
134 |
+
<td><select name="advps_category[]" multiple="multiple">
|
135 |
+
<?php
|
136 |
+
$catList = get_categories();
|
137 |
+
foreach($catList as $scat){
|
138 |
+
?>
|
139 |
+
<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>
|
140 |
+
<?php }?>
|
141 |
+
</select>
|
142 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple category ]</span></td>
|
143 |
+
<?php }?>
|
144 |
+
</tr>
|
145 |
+
<tr>
|
146 |
+
<th scope="row">Max. Number of post</th>
|
147 |
+
<td><input type="text" name="advps_maxpost" value="<?php echo $query['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
148 |
+
</tr>
|
149 |
+
<tr>
|
150 |
+
<th scope="row">Offset (optional)</th>
|
151 |
+
<td><input type="text" name="advps_offset" value="<?php echo $query['advps_offset'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
152 |
+
</tr>
|
153 |
+
<tr>
|
154 |
+
<th scope="row">Exclude (optional)</th>
|
155 |
+
<td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />
|
156 |
+
<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>
|
157 |
+
</tr>
|
158 |
+
<tr>
|
159 |
+
<th scope="row">Order by</th>
|
160 |
+
<td><select name="advps_order_by">
|
161 |
+
<option value="date" <?php if($query['advps_order_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
162 |
+
<option value="ID" <?php if($query['advps_order_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
163 |
+
<option value="author" <?php if($query['advps_order_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
164 |
+
<option value="title" <?php if($query['advps_order_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
165 |
+
<option value="name" <?php if($query['advps_order_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
166 |
+
<option value="rand" <?php if($query['advps_order_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
167 |
+
<option value="menu_order" <?php if($query['advps_order_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
168 |
+
<option value="comment_count" <?php if($query['advps_order_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
169 |
+
</select></td>
|
170 |
+
</tr>
|
171 |
+
<tr>
|
172 |
+
<th scope="row">Order</th>
|
173 |
+
<td><select name="advps_order">
|
174 |
+
<option value="ASC" <?php if($query['advps_order'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
175 |
+
<option value="DESC" <?php if($query['advps_order'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
176 |
+
</select></td>
|
177 |
+
</tr>
|
178 |
+
<tr>
|
179 |
+
<th scope="row"> </th>
|
180 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo $dset->id;?>')" />
|
181 |
+
<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>
|
182 |
+
</tr>
|
183 |
+
</table>
|
184 |
+
<input type="hidden" name="opt_field" value="query" />
|
185 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
186 |
+
</form>
|
187 |
+
</div>
|
188 |
+
</fieldset>
|
189 |
+
<fieldset>
|
190 |
+
<legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend>
|
191 |
+
<form method="post" id="slider<?php echo $dset->id;?>" onsubmit="return false">
|
192 |
+
<table class="form-table">
|
193 |
+
<tr>
|
194 |
+
<th scope="row">Slider Type</th>
|
195 |
+
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">
|
196 |
+
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
197 |
+
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
198 |
+
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
199 |
+
</select></td>
|
200 |
+
</tr>
|
201 |
+
<tr>
|
202 |
+
<th scope="row">Transitions type </th>
|
203 |
+
<td><select name="advps_transition">
|
204 |
+
<option value="css3" <?php if($slider['advps_transition'] == 'css3'){echo 'selected="selected"';}?>>CSS3</option>
|
205 |
+
<option value="jquery" <?php if($slider['advps_transition'] == 'jquery'){echo 'selected="selected"';}?>>jQuery animation</option>
|
206 |
+
</select>
|
207 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. CSS3 transitions is recommended ]</span></td>
|
208 |
+
</tr>
|
209 |
+
<tr>
|
210 |
+
<th scope="row">Effect</th>
|
211 |
+
<td><select name="advps_effects">
|
212 |
+
<option value="horizontal" <?php if($slider['advps_effects'] == 'horizontal'){echo 'selected="selected"';}?>>Horizontal</option>
|
213 |
+
<option value="vertical" <?php if($slider['advps_effects'] == 'vertical'){echo 'selected="selected"';}?>>Vertical</option>
|
214 |
+
<option value="fade" <?php if($slider['advps_effects'] == 'fade'){echo 'selected="selected"';}?>>Fade</option>
|
215 |
+
</select></td>
|
216 |
+
</tr>
|
217 |
+
<tr>
|
218 |
+
<th scope="row">Speed</th>
|
219 |
+
<td><input type="text" name="advps_speed" value="<?php echo $slider['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
220 |
+
</tr>
|
221 |
+
<tr>
|
222 |
+
<th scope="row">Auto play</th>
|
223 |
+
<td><select name="advps_autoplay">
|
224 |
+
<option value="yes" <?php if($slider['advps_autoplay'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
225 |
+
<option value="no" <?php if($slider['advps_autoplay'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
226 |
+
</select></td>
|
227 |
+
</tr>
|
228 |
+
<tr>
|
229 |
+
<th scope="row">Pause</th>
|
230 |
+
<td><input type="text" name="advps_timeout" value="<?php echo $slider['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
231 |
+
</tr>
|
232 |
+
<tr>
|
233 |
+
<th scope="row">Slide margin</th>
|
234 |
+
<td><input type="text" name="advps_sldmargin" value="<?php echo $slider['advps_sldmargin'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
235 |
+
</tr>
|
236 |
+
<tr>
|
237 |
+
<th scope="row">Enable pause on hover</th>
|
238 |
+
<td><select name="advps_ps_hover">
|
239 |
+
<option value="yes" <?php if($slider['advps_ps_hover'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
240 |
+
<option value="no" <?php if($slider['advps_ps_hover'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
241 |
+
</select></td>
|
242 |
+
</tr>
|
243 |
+
<tr>
|
244 |
+
<th scope="row"> </th>
|
245 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo $dset->id;?>')" />
|
246 |
+
<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>
|
247 |
+
</tr>
|
248 |
+
</table>
|
249 |
+
<input type="hidden" name="opt_field" value="slider" />
|
250 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
251 |
+
</form>
|
252 |
+
</fieldset>
|
253 |
+
<fieldset>
|
254 |
+
<legend class="advps-legend" style="width:121px; background-position:120px 6px;"><strong>Carousel & Ticker</strong></legend>
|
255 |
+
<form method="post" onsubmit="return false" id="caro_ticker<?php echo $dset->id;?>">
|
256 |
+
<table class="form-table">
|
257 |
+
<tr>
|
258 |
+
<th scope="row">Number of slide</th>
|
259 |
+
<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);" />
|
260 |
+
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
261 |
+
</tr>
|
262 |
+
<tr>
|
263 |
+
<th scope="row">Slide width</th>
|
264 |
+
<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);" />
|
265 |
+
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
266 |
+
</tr>
|
267 |
+
<tr>
|
268 |
+
<th scope="row"> </th>
|
269 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo $dset->id;?>')" />
|
270 |
+
<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>
|
271 |
+
</tr>
|
272 |
+
</table>
|
273 |
+
<input type="hidden" name="opt_field" value="caro_ticker" />
|
274 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
275 |
+
</form>
|
276 |
+
</fieldset>
|
277 |
+
<fieldset>
|
278 |
+
<legend class="advps-legend" style="width:155px; background-position:154px 6px;"><strong>Container & Thumbnail</strong></legend>
|
279 |
+
<form method="post" onsubmit="return false" id="container<?php echo $dset->id;?>">
|
280 |
+
<table class="form-table">
|
281 |
+
<tr>
|
282 |
+
<th scope="row">Select Thumbnail</th>
|
283 |
+
<td><select name="advps_thumbnail">
|
284 |
+
<option value="thumbnail" <?php if($container['advps_thumbnail'] == 'thumbnail'){echo 'selected="selected"';}?>>thumbnail</option>
|
285 |
+
<option value="medium" <?php if($container['advps_thumbnail'] == 'medium'){echo 'selected="selected"';}?>>medium</option>
|
286 |
+
<option value="large" <?php if($container['advps_thumbnail'] == 'large'){echo 'selected="selected"';}?>>large</option>
|
287 |
+
<option value="full" <?php if($container['advps_thumbnail'] == 'full'){echo 'selected="selected"';}?>>full</option>
|
288 |
+
<?php
|
289 |
+
global $_wp_additional_image_sizes;
|
290 |
+
unset($_wp_additional_image_sizes['post-thumbnail']);
|
291 |
+
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
292 |
+
?>
|
293 |
+
<option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
294 |
+
<?php
|
295 |
+
}
|
296 |
+
?>
|
297 |
+
</select></td>
|
298 |
+
</tr>
|
299 |
+
<tr>
|
300 |
+
<th scope="row">Default image url</th>
|
301 |
+
<td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo $container['advps_default_image'];}?>" style="width:250px;" />
|
302 |
+
<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>
|
303 |
+
</tr>
|
304 |
+
<tr>
|
305 |
+
<th scope="row">Slide Container Width</th>
|
306 |
+
<td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
|
307 |
+
px </td>
|
308 |
+
</tr>
|
309 |
+
<tr>
|
310 |
+
<th scope="row">Padding</th>
|
311 |
+
<td><input type="text" name="advps_contpad1" value="<?php echo $container['advps_contpad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
312 |
+
px
|
313 |
+
<input type="text" name="advps_contpad2" value="<?php echo $container['advps_contpad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
314 |
+
px
|
315 |
+
<input type="text" name="advps_contpad3" value="<?php echo $container['advps_contpad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
316 |
+
px
|
317 |
+
<input type="text" name="advps_contpad4" value="<?php echo $container['advps_contpad4'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
318 |
+
px </td>
|
319 |
+
</tr>
|
320 |
+
<tr>
|
321 |
+
<th scope="row">Background Color</th>
|
322 |
+
<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;" />
|
323 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
324 |
+
</tr>
|
325 |
+
<tr>
|
326 |
+
<th scope="row">Border</th>
|
327 |
+
<td><span style="vertical-align:top">
|
328 |
+
<input type="text" name="advps_border_size" value="<?php echo $container['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
329 |
+
px
|
330 |
+
<select name="advps_border_type">
|
331 |
+
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
332 |
+
<option value="dotted" <?php if($container['advps_border_type'] == 'dotted'){echo 'selected="selected"';}?>>dotted</option>
|
333 |
+
<option value="double" <?php if($container['advps_border_type'] == 'double'){echo 'selected="selected"';}?>>double</option>
|
334 |
+
<option value="solid" <?php if($container['advps_border_type'] == 'solid'){echo 'selected="selected"';}?>>solid</option>
|
335 |
+
<option value="inset" <?php if($container['advps_border_type'] == 'inset'){echo 'selected="selected"';}?>>inset</option>
|
336 |
+
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
337 |
+
</select>
|
338 |
+
</span>
|
339 |
+
<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;" />
|
340 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
341 |
+
</tr>
|
342 |
+
<tr>
|
343 |
+
<th scope="row">Remove Border</th>
|
344 |
+
<td><select name="advps_remove_border">
|
345 |
+
<option value="yes" <?php if($container['advps_remove_border'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
346 |
+
<option value="no" <?php if($container['advps_remove_border'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
347 |
+
</select></td>
|
348 |
+
</tr>
|
349 |
+
<tr>
|
350 |
+
<th scope="row">Box Shadow</th>
|
351 |
+
<td><span style="vertical-align:top">
|
352 |
+
<input type="text" name="advps_bxshad1" value="<?php echo $container['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
353 |
+
px
|
354 |
+
<input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
355 |
+
px
|
356 |
+
<input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
357 |
+
px </span>
|
358 |
+
<input class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $container['advps_bxshadcolor'];?>" style="width:100px;" id="advpscolor<?php echo ++$flg?>" />
|
359 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
360 |
+
</tr>
|
361 |
+
<tr>
|
362 |
+
<th scope="row">Remove Shadow</th>
|
363 |
+
<td><select name="advps_remove_shd">
|
364 |
+
<option value="yes" <?php if($container['advps_remove_shd'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
365 |
+
<option value="no" <?php if($container['advps_remove_shd'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
366 |
+
</select></td>
|
367 |
+
</tr>
|
368 |
+
<tr>
|
369 |
+
<th scope="row"> </th>
|
370 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo $dset->id;?>')" />
|
371 |
+
<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>
|
372 |
+
</tr>
|
373 |
+
</table>
|
374 |
+
<input type="hidden" name="opt_field" value="container" />
|
375 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
376 |
+
</form>
|
377 |
+
</fieldset>
|
378 |
+
<fieldset>
|
379 |
+
<legend class="advps-legend" style="width:66px; background-position:65px 6px;"><strong>Content</strong></legend>
|
380 |
+
<form method="post" onsubmit="return false" id="content<?php echo $dset->id;?>">
|
381 |
+
<table class="form-table">
|
382 |
+
<tr>
|
383 |
+
<th scope="row">Show on slide</th>
|
384 |
+
<td><select name="advps_content_set[]" multiple="multiple">
|
385 |
+
<option value="thumb" <?php if(in_array('thumb',$content['advps_content_set'])){echo 'selected="selected"';}?>>Thumbnail</option>
|
386 |
+
<option value="title" <?php if(in_array('title',$content['advps_content_set'])){echo 'selected="selected"';}?>>Title</option>
|
387 |
+
<option value="excerpt" <?php if(in_array('excerpt',$content['advps_content_set'])){echo 'selected="selected"';}?>>Excerpt</option>
|
388 |
+
<option value="content" <?php if(in_array('content',$content['advps_content_set'])){echo 'selected="selected"';}?>>Content</option>
|
389 |
+
</select>
|
390 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top">[ * You can select multiple ]</span></td>
|
391 |
+
</tr>
|
392 |
+
<tr>
|
393 |
+
<th scope="row">Content width</th>
|
394 |
+
<td><input type="text" name="advps_cont_width" value="<?php echo $content['advps_cont_width'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
395 |
+
px</td>
|
396 |
+
</tr>
|
397 |
+
<tr>
|
398 |
+
<th scope="row">Title tag</th>
|
399 |
+
<td><select name="advps_ttitle_tag">
|
400 |
+
<option value="h1" <?php if($content['advps_ttitle_tag'] == 'h1'){echo 'selected="selected"';}?>>h1</option>
|
401 |
+
<option value="h2" <?php if($content['advps_ttitle_tag'] == 'h2'){echo 'selected="selected"';}?>>h2</option>
|
402 |
+
<option value="h3" <?php if($content['advps_ttitle_tag'] == 'h3'){echo 'selected="selected"';}?>>h3</option>
|
403 |
+
<option value="div" <?php if($content['advps_ttitle_tag'] == 'div'){echo 'selected="selected"';}?>>div</option>
|
404 |
+
</select></td>
|
405 |
+
</tr>
|
406 |
+
<tr>
|
407 |
+
<th scope="row">Title font Color</th>
|
408 |
+
<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" />
|
409 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
410 |
+
</tr>
|
411 |
+
<tr>
|
412 |
+
<th scope="row">Title hover Color</th>
|
413 |
+
<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" />
|
414 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
415 |
+
</tr>
|
416 |
+
<tr>
|
417 |
+
<th scope="row">Title font size</th>
|
418 |
+
<td><input type="text" name="advps_titleFsize" value="<?php echo $content['advps_titleFsize'];?>" style="width:60px;" />
|
419 |
+
<select name="advps_ttitleFSunit" style="vertical-align:top;">
|
420 |
+
<option value="vw" <?php if($content['advps_ttitleFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
421 |
+
<option value="vh" <?php if($content['advps_ttitleFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
422 |
+
<option value="%" <?php if($content['advps_ttitleFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
423 |
+
<option value="em" <?php if($content['advps_ttitleFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
424 |
+
<option value="px" <?php if($content['advps_ttitleFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
425 |
+
<option value="pt" <?php if($content['advps_ttitleFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
426 |
+
</select></td>
|
427 |
+
</tr>
|
428 |
+
<tr>
|
429 |
+
<th scope="row">Title line height</th>
|
430 |
+
<td><input type="text" name="advps_titleLheight" value="<?php echo $content['advps_titleLheight'];?>" style="width:60px;" />
|
431 |
+
<select name="advps_ttitleLHunit" style="vertical-align:top;">
|
432 |
+
<option value="vw" <?php if($content['advps_ttitleLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
433 |
+
<option value="vh" <?php if($content['advps_ttitleLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
434 |
+
<option value="%" <?php if($content['advps_ttitleLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
435 |
+
<option value="em" <?php if($content['advps_ttitleLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
436 |
+
<option value="px" <?php if($content['advps_ttitleLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
437 |
+
<option value="pt" <?php if($content['advps_ttitleLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
438 |
+
</select></td>
|
439 |
+
</tr>
|
440 |
+
<tr>
|
441 |
+
<th scope="row">Excerpt/Content font color</th>
|
442 |
+
<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;" />
|
443 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
444 |
+
</tr>
|
445 |
+
<tr>
|
446 |
+
<th scope="row">Excerpt/Content font size</th>
|
447 |
+
<td><input type="text" name="advps_excptFsize" value="<?php echo $content['advps_excptFsize'];?>" style="width:60px;" />
|
448 |
+
<select name="advps_excptFSunit" style="vertical-align:top;">
|
449 |
+
<option value="vw" <?php if($content['advps_excptFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
450 |
+
<option value="vh" <?php if($content['advps_excptFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
451 |
+
<option value="%" <?php if($content['advps_excptFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
452 |
+
<option value="em" <?php if($content['advps_excptFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
453 |
+
<option value="px" <?php if($content['advps_excptFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
454 |
+
<option value="pt" <?php if($content['advps_excptFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
455 |
+
</select></td>
|
456 |
+
</tr>
|
457 |
+
<tr>
|
458 |
+
<th scope="row">Excerpt line height</th>
|
459 |
+
<td><input type="text" name="advps_excptLheight" value="<?php echo $content['advps_excptLheight'];?>" style="width:60px;" />
|
460 |
+
<select name="advps_excptLHunit" style="vertical-align:top;">
|
461 |
+
<option value="vw" <?php if($content['advps_excptLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
|
462 |
+
<option value="vh" <?php if($content['advps_excptLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
|
463 |
+
<option value="%" <?php if($content['advps_excptLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
|
464 |
+
<option value="em" <?php if($content['advps_excptLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
465 |
+
<option value="px" <?php if($content['advps_excptLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
466 |
+
<option value="pt" <?php if($content['advps_excptLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
467 |
+
</select></td>
|
468 |
+
</tr>
|
469 |
+
<tr>
|
470 |
+
<th scope="row">Excerpt length</th>
|
471 |
+
<td><input type="text" name="advps_excerptlen" value="<?php echo $content['advps_excerptlen'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
472 |
+
words</td>
|
473 |
+
</tr>
|
474 |
+
<tr>
|
475 |
+
<th scope="row">Enable/Disable link</th>
|
476 |
+
<td><select name="advps_ed_link">
|
477 |
+
<option value="enable" <?php if($content['advps_ed_link'] == 'enable'){echo 'selected="selected"';}?>>Enable</option>
|
478 |
+
<option value="disable" <?php if($content['advps_ed_link'] == 'disable'){echo 'selected="selected"';}?>>Disable</option>
|
479 |
+
</select></td>
|
480 |
+
</tr>
|
481 |
+
<tr>
|
482 |
+
<th scope="row">link type</th>
|
483 |
+
<td><select name="advps_link_type">
|
484 |
+
<option value="permalink" <?php if($content['advps_link_type'] == 'permalink'){echo 'selected="selected"';}?>>Permalink</option>
|
485 |
+
<option value="custom" <?php if($content['advps_link_type'] == 'custom'){echo 'selected="selected"';}?>>Custom</option>
|
486 |
+
</select>
|
487 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
488 |
+
</tr>
|
489 |
+
<tr>
|
490 |
+
<th scope="row">link target</th>
|
491 |
+
<td><select name="advps_link_target">
|
492 |
+
<option value="_self" <?php if($content['advps_link_target'] == '_self'){echo 'selected="selected"';}?>>_self</option>
|
493 |
+
<option value="_blank" <?php if($content['advps_link_target'] == '_blank'){echo 'selected="selected"';}?>>_blank</option>
|
494 |
+
<option value="_new" <?php if($content['advps_link_target'] == '_new'){echo 'selected="selected"';}?>>_new</option>
|
495 |
+
<option value="_top" <?php if($content['advps_link_target'] == '_top'){echo 'selected="selected"';}?>>_top</option>
|
496 |
+
<option value="_parent" <?php if($content['advps_link_target'] == '_parent'){echo 'selected="selected"';}?>>_parent</option>
|
497 |
+
</select></td>
|
498 |
+
</tr>
|
499 |
+
<tr>
|
500 |
+
<th scope="row"> </th>
|
501 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('content<?php echo $dset->id;?>')" />
|
502 |
+
<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>
|
503 |
+
</tr>
|
504 |
+
</table>
|
505 |
+
<input type="hidden" name="opt_field" value="content" />
|
506 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
507 |
+
</form>
|
508 |
+
</fieldset>
|
509 |
+
<fieldset>
|
510 |
+
<legend class="advps-legend" style="width:79px; background-position:78px 6px;"><strong>Navigation</strong></legend>
|
511 |
+
<form method="post" onsubmit="return false" id="navigation<?php echo $dset->id;?>">
|
512 |
+
<table class="form-table">
|
513 |
+
<tr>
|
514 |
+
<th scope="row">Exclude pager</th>
|
515 |
+
<td><select name="advps_exclude_pager">
|
516 |
+
<option value="yes" <?php if($navigation['advps_exclude_pager'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
517 |
+
<option value="no" <?php if($navigation['advps_exclude_pager'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
518 |
+
</select></td>
|
519 |
+
</tr>
|
520 |
+
<tr>
|
521 |
+
<th scope="row">Pager type</th>
|
522 |
+
<td><span style="padding-right:5px;">Number</span>
|
523 |
+
<input type="radio" name="advps_pager_type" value="number" <?php if($navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
524 |
+
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
525 |
+
<input type="radio" name="advps_pager_type" value="bullet" <?php if($navigation['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>>
|
526 |
+
<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>
|
527 |
+
<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($navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td>
|
528 |
+
</tr>
|
529 |
+
<tr>
|
530 |
+
<th scope="row">Thumbnail Width</th>
|
531 |
+
<td>
|
532 |
+
<input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" /> %
|
533 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
534 |
+
</tr>
|
535 |
+
<tr>
|
536 |
+
<th scope="row">Pager align</th>
|
537 |
+
<td><select name="advps_pager_align">
|
538 |
+
<option value="center" <?php if($navigation['advps_pager_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
539 |
+
<option value="left" <?php if($navigation['advps_pager_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
540 |
+
<option value="right" <?php if($navigation['advps_pager_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
541 |
+
</select></td>
|
542 |
+
</tr>
|
543 |
+
<tr>
|
544 |
+
<th scope="row">Pager position from bottom</th>
|
545 |
+
<td><input type="text" name="advps_pager_bottom" value="<?php echo $navigation['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />
|
546 |
+
px</td>
|
547 |
+
</tr>
|
548 |
+
<tr>
|
549 |
+
<th scope="row">Exclude Play/Pause</th>
|
550 |
+
<td><select name="advps_exclude_playpause">
|
551 |
+
<option value="yes" <?php if($navigation['advps_exclude_playpause'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
552 |
+
<option value="no" <?php if($navigation['advps_exclude_playpause'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
553 |
+
</select>
|
554 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Play/Pause works when Slider Type is standard and auto play is enabled. ]</span></td>
|
555 |
+
</tr>
|
556 |
+
<tr>
|
557 |
+
<th scope="row">Play/Pause align</th>
|
558 |
+
<td><select name="advps_ppause_align">
|
559 |
+
<option value="center" <?php if($navigation['advps_ppause_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
560 |
+
<option value="left" <?php if($navigation['advps_ppause_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
561 |
+
<option value="right" <?php if($navigation['advps_ppause_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
562 |
+
</select></td>
|
563 |
+
</tr>
|
564 |
+
<tr>
|
565 |
+
<th scope="row">Play/Pause position from bottom</th>
|
566 |
+
<td><input type="text" name="advps_ppause_bottom" value="<?php echo $navigation['advps_ppause_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />
|
567 |
+
px</td>
|
568 |
+
</tr>
|
569 |
+
<tr>
|
570 |
+
<th scope="row">Exclude Next/Previous</th>
|
571 |
+
<td><select name="advps_exclude_nxtprev">
|
572 |
+
<option value="yes" <?php if($navigation['advps_exclude_nxtprev'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
573 |
+
<option value="no" <?php if($navigation['advps_exclude_nxtprev'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
574 |
+
</select></td>
|
575 |
+
</tr>
|
576 |
+
<tr>
|
577 |
+
<th scope="row"> </th>
|
578 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo $dset->id;?>')" />
|
579 |
+
<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>
|
580 |
+
</tr>
|
581 |
+
</table>
|
582 |
+
<input type="hidden" name="opt_field" value="navigation" />
|
583 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
584 |
+
</form>
|
585 |
+
</fieldset>
|
586 |
+
<form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
|
587 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
|
588 |
+
<p>
|
589 |
+
<input type="submit" name="del-optset" value="Delete this option set" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" />
|
590 |
+
</p>
|
591 |
+
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
592 |
+
</form>
|
593 |
+
</div>
|
594 |
+
</div>
|
595 |
+
</div>
|
596 |
+
</div>
|
597 |
+
<?php
|
598 |
+
}
|
599 |
+
$tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
|
600 |
+
?>
|
601 |
+
<div style="position:relative; float:left; width:100%">
|
602 |
+
<form method="post">
|
603 |
+
<input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
|
604 |
+
<input type="hidden" name="template" value="three" />
|
605 |
+
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
606 |
+
<input type="submit" name="advps_submit" value="Add new option set" class="button-primary" style="font-weight:bold" />
|
607 |
+
</form>
|
608 |
+
</div>
|
templates/template-two.php
ADDED
@@ -0,0 +1,493 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
+
|
4 |
+
foreach( $res2 as $dset){
|
5 |
+
$plist = unserialize($dset->plist);
|
6 |
+
$query = unserialize($dset->query);
|
7 |
+
$slider = unserialize($dset->slider);
|
8 |
+
$caro_ticker = unserialize($dset->caro_ticker);
|
9 |
+
$container = unserialize($dset->container);
|
10 |
+
$navigation = unserialize($dset->navigation);
|
11 |
+
|
12 |
+
?>
|
13 |
+
<div class="metabox-holder" style="margin-top:20px;">
|
14 |
+
<div class="postbox-container" style="width:72%">
|
15 |
+
<div class="postbox closed">
|
16 |
+
<div class="handlediv down" title="Click to toggle"> <br>
|
17 |
+
</div>
|
18 |
+
<h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new option set' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
|
19 |
+
<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>
|
20 |
+
</h3>
|
21 |
+
<div class="inside">
|
22 |
+
<fieldset>
|
23 |
+
<legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
|
24 |
+
<table class="form-table">
|
25 |
+
<tr>
|
26 |
+
<th scope="row">Option set label</th>
|
27 |
+
<td><input type="text" style="" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
|
28 |
+
<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>
|
29 |
+
</tr>
|
30 |
+
<tr>
|
31 |
+
<th scope="row">Usage</th>
|
32 |
+
<td><input style="width:200px; font-size:12px; text-align:center;" type="text" value='[advps-slideshow optset="<?php echo $dset->id;?>"]' readonly="readonly" /></td>
|
33 |
+
</tr>
|
34 |
+
</table>
|
35 |
+
</fieldset>
|
36 |
+
<fieldset>
|
37 |
+
<legend class="advps-legend advpssm" style="width:80px; background-position:79px 6px;"><strong>Select Post</strong></legend>
|
38 |
+
<div id="advps-sel<?php echo $dset->id;?>">
|
39 |
+
<table class="form-table">
|
40 |
+
<tr>
|
41 |
+
<th scope="row">Select post using</th>
|
42 |
+
<td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">
|
43 |
+
<option value="plist" <?php if(get_option('advpssmethod'.$dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>
|
44 |
+
<option value="query" <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>
|
45 |
+
</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>
|
46 |
+
</tr>
|
47 |
+
</table>
|
48 |
+
<form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">
|
49 |
+
<table class="form-table <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'advps-hide';}?>">
|
50 |
+
<tr>
|
51 |
+
<th scope="row">Listing option</th>
|
52 |
+
<td><select title="Post type" name="advps_post_stypes">
|
53 |
+
<option value="post" <?php if($plist['advps_post_stypes'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
54 |
+
<option value="page" <?php if($plist['advps_post_stypes'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
55 |
+
<?php
|
56 |
+
foreach ($customPostTypes as $post_type ) {
|
57 |
+
?>
|
58 |
+
<option value="<?php echo $post_type;?>" <?php if($plist['advps_post_stypes'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
59 |
+
<?php
|
60 |
+
}
|
61 |
+
?>
|
62 |
+
</select>
|
63 |
+
<span style="padding-left:10px;">
|
64 |
+
<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" />
|
65 |
+
</span> <span style="padding-left:10px;">
|
66 |
+
<select name="advps_plistorder_by" title="Order by">
|
67 |
+
<option value="date" <?php if($plist['advps_plistorder_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
68 |
+
<option value="ID" <?php if($plist['advps_plistorder_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
69 |
+
<option value="author" <?php if($plist['advps_plistorder_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
70 |
+
<option value="title" <?php if($plist['advps_plistorder_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
71 |
+
<option value="name" <?php if($plist['advps_plistorder_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
72 |
+
<option value="rand" <?php if($plist['advps_plistorder_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
73 |
+
<option value="menu_order" <?php if($plist['advps_plistorder_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
74 |
+
<option value="comment_count" <?php if($plist['advps_plistorder_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
75 |
+
</select>
|
76 |
+
</span> <span style="padding-left:10px;">
|
77 |
+
<select name="advps_plistorder" title="Order">
|
78 |
+
<option value="ASC" <?php if($plist['advps_plistorder'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
79 |
+
<option value="DESC" <?php if($plist['advps_plistorder'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
80 |
+
</select>
|
81 |
+
</span> <span style="padding-left:10px;">
|
82 |
+
<button class="button-secondary" value="" onclick="listPost(<?php echo $dset->id;?>)">List</button>
|
83 |
+
</span> <span class="ajx-loaderp" style="padding-left:12px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
|
84 |
+
</tr>
|
85 |
+
<tr>
|
86 |
+
<th scope="row">Select post from list</th>
|
87 |
+
<td><select name="advps_plist[]" multiple="multiple" style="min-height:250px; min-width:300px;" id="advps-plist-field<?php echo $dset->id;?>">
|
88 |
+
<?php
|
89 |
+
$lpargs = array(
|
90 |
+
'post_type' => ($plist['advps_post_stypes']) ? $plist['advps_post_stypes'] : 'post',
|
91 |
+
'posts_per_page' => ($plist['advps_plistmax']) ? $plist['advps_plistmax'] : 99,
|
92 |
+
'orderby' => ($plist['advps_plistorder_by']) ? $plist['advps_plistorder_by'] : 'date',
|
93 |
+
'order' => ($plist['advps_plistorder']) ? $plist['advps_plistorder'] : 'DESC'
|
94 |
+
);
|
95 |
+
$pl_query = new WP_Query($lpargs); while ($pl_query->have_posts()) : $pl_query->the_post();?>
|
96 |
+
<option value="<?php the_id();?>" <?php if(isset($plist['advps_plist']) && in_array(get_the_id(),$plist['advps_plist'])){echo 'selected="selected"';}?>>
|
97 |
+
<?php the_title();?>
|
98 |
+
</option>
|
99 |
+
<?php endwhile;wp_reset_query();?>
|
100 |
+
</select>
|
101 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple ]</span></td>
|
102 |
+
</tr>
|
103 |
+
<tr>
|
104 |
+
<th scope="row"> </th>
|
105 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('plist<?php echo $dset->id;?>')" />
|
106 |
+
<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>
|
107 |
+
</tr>
|
108 |
+
</table>
|
109 |
+
<input type="hidden" name="opt_field" value="plist" />
|
110 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
111 |
+
</form>
|
112 |
+
<form method="post" onsubmit="return false" id="query<?php echo $dset->id;?>">
|
113 |
+
<table class="form-table <?php if(!get_option('advpssmethod'.$dset->id) || get_option('advpssmethod'.$dset->id) == 'plist'){echo 'advps-hide';}?>">
|
114 |
+
<tr>
|
115 |
+
<th scope="row">Post Type</th>
|
116 |
+
<td><select name="advps_post_types" onchange="advpsCheckCat(this.value,<?php echo $dset->id;?>)">
|
117 |
+
<option value="post" <?php if($query['advps_post_types'] == 'post'){echo 'selected="selected"';}?>>post</option>
|
118 |
+
<option value="page" <?php if($query['advps_post_types'] == 'page'){echo 'selected="selected"';}?>>page</option>
|
119 |
+
<?php
|
120 |
+
foreach ($customPostTypes as $post_type ) {
|
121 |
+
?>
|
122 |
+
<option value="<?php echo $post_type;?>" <?php if($query['advps_post_types'] == $post_type){echo 'selected="selected"';}?>><?php echo $post_type;?></option>
|
123 |
+
<?php
|
124 |
+
}
|
125 |
+
?>
|
126 |
+
</select></td>
|
127 |
+
</tr>
|
128 |
+
<tr id="advps-cat-field<?php echo $dset->id;?>">
|
129 |
+
<?php
|
130 |
+
$posttypeobj = get_post_type_object($query['advps_post_types']);
|
131 |
+
if($query['advps_post_types'] != "page" && ($query['advps_post_types'] == 'post' || in_array('category',$posttypeobj->taxonomies))){
|
132 |
+
?>
|
133 |
+
<th scope="row">Category</th>
|
134 |
+
<td><select name="advps_category[]" multiple="multiple">
|
135 |
+
<?php
|
136 |
+
$catList = get_categories();
|
137 |
+
foreach($catList as $scat){
|
138 |
+
?>
|
139 |
+
<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>
|
140 |
+
<?php }?>
|
141 |
+
</select>
|
142 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic; vertical-align:top;">[ * You can select multiple category ]</span></td>
|
143 |
+
<?php }?>
|
144 |
+
</tr>
|
145 |
+
<tr>
|
146 |
+
<th scope="row">Max. Number of post</th>
|
147 |
+
<td><input type="text" name="advps_maxpost" value="<?php echo $query['advps_maxpost'];?>" style="width:60px;" onkeypress="return onlyNum(event);" />
|
148 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ * Maximum Slides]</span></td>
|
149 |
+
</tr>
|
150 |
+
<tr>
|
151 |
+
<th scope="row">Offset (optional)</th>
|
152 |
+
<td><input type="text" name="advps_offset" value="<?php echo $query['advps_offset'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
153 |
+
</tr>
|
154 |
+
<tr>
|
155 |
+
<th scope="row">Exclude (optional)</th>
|
156 |
+
<td><input type="text" name="advps_exclude" value="<?php echo $query['advps_exclude'];?>" style="width:100px;" />
|
157 |
+
<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>
|
158 |
+
</tr>
|
159 |
+
<tr>
|
160 |
+
<th scope="row">Order by</th>
|
161 |
+
<td><select name="advps_order_by">
|
162 |
+
<option value="date" <?php if($query['advps_order_by'] == 'date'){echo 'selected="selected"';}?>>Date</option>
|
163 |
+
<option value="ID" <?php if($query['advps_order_by'] == 'ID'){echo 'selected="selected"';}?>>ID</option>
|
164 |
+
<option value="author" <?php if($query['advps_order_by'] == 'author'){echo 'selected="selected"';}?>>Author</option>
|
165 |
+
<option value="title" <?php if($query['advps_order_by'] == 'title'){echo 'selected="selected"';}?>>Title</option>
|
166 |
+
<option value="name" <?php if($query['advps_order_by'] == 'name'){echo 'selected="selected"';}?>>Name</option>
|
167 |
+
<option value="rand" <?php if($query['advps_order_by'] == 'rand'){echo 'selected="selected"';}?>>Random</option>
|
168 |
+
<option value="menu_order" <?php if($query['advps_order_by'] == 'menu_order'){echo 'selected="selected"';}?>>Menu order</option>
|
169 |
+
<option value="comment_count" <?php if($query['advps_order_by'] == 'comment_count'){echo 'selected="selected"';}?>>Comment count</option>
|
170 |
+
</select></td>
|
171 |
+
</tr>
|
172 |
+
<tr>
|
173 |
+
<th scope="row">Order</th>
|
174 |
+
<td><select name="advps_order">
|
175 |
+
<option value="ASC" <?php if($query['advps_order'] == 'ASC'){echo 'selected="selected"';}?>>Ascending</option>
|
176 |
+
<option value="DESC" <?php if($query['advps_order'] == 'DESC'){echo 'selected="selected"';}?>>Descending</option>
|
177 |
+
</select></td>
|
178 |
+
</tr>
|
179 |
+
<tr>
|
180 |
+
<th scope="row"> </th>
|
181 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('query<?php echo $dset->id;?>')" />
|
182 |
+
<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>
|
183 |
+
</tr>
|
184 |
+
</table>
|
185 |
+
<input type="hidden" name="opt_field" value="query" />
|
186 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
187 |
+
</form>
|
188 |
+
</div>
|
189 |
+
</fieldset>
|
190 |
+
<fieldset>
|
191 |
+
<legend class="advps-legend" style="width:50px; background-position:49px 6px;"><strong>Slider</strong></legend>
|
192 |
+
<form method="post" id="slider<?php echo $dset->id;?>" onsubmit="return false">
|
193 |
+
<table class="form-table">
|
194 |
+
<tr>
|
195 |
+
<th scope="row">Slider Type</th>
|
196 |
+
<td><select name="advps_slider_type" onchange="sliderType(this.value,<?php echo $dset->id;?>);">
|
197 |
+
<option value="standard" <?php if($slider['advps_slider_type'] == 'standard'){echo 'selected="selected"';}?>>Standard</option>
|
198 |
+
<option value="carousel" <?php if($slider['advps_slider_type'] == 'carousel'){echo 'selected="selected"';}?>>Carousel</option>
|
199 |
+
<option value="ticker" <?php if($slider['advps_slider_type'] == 'ticker'){echo 'selected="selected"';}?>>Ticker</option>
|
200 |
+
</select></td>
|
201 |
+
</tr>
|
202 |
+
<tr>
|
203 |
+
<th scope="row">Transitions type </th>
|
204 |
+
<td><select name="advps_transition">
|
205 |
+
<option value="css3" <?php if($slider['advps_transition'] == 'css3'){echo 'selected="selected"';}?>>CSS3</option>
|
206 |
+
<option value="jquery" <?php if($slider['advps_transition'] == 'jquery'){echo 'selected="selected"';}?>>jQuery animation</option>
|
207 |
+
</select>
|
208 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. CSS3 transitions is recommended ]</span></td>
|
209 |
+
</tr>
|
210 |
+
<tr>
|
211 |
+
<th scope="row">Effect</th>
|
212 |
+
<td><select name="advps_effects">
|
213 |
+
<option value="horizontal" <?php if($slider['advps_effects'] == 'horizontal'){echo 'selected="selected"';}?>>Horizontal</option>
|
214 |
+
<option value="vertical" <?php if($slider['advps_effects'] == 'vertical'){echo 'selected="selected"';}?>>Vertical</option>
|
215 |
+
<option value="fade" <?php if($slider['advps_effects'] == 'fade'){echo 'selected="selected"';}?>>Fade</option>
|
216 |
+
</select></td>
|
217 |
+
</tr>
|
218 |
+
<tr>
|
219 |
+
<th scope="row">Speed</th>
|
220 |
+
<td><input type="text" name="advps_speed" value="<?php echo $slider['advps_speed'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
221 |
+
</tr>
|
222 |
+
<tr>
|
223 |
+
<th scope="row">Auto play</th>
|
224 |
+
<td><select name="advps_autoplay">
|
225 |
+
<option value="yes" <?php if($slider['advps_autoplay'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
226 |
+
<option value="no" <?php if($slider['advps_autoplay'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
227 |
+
</select></td>
|
228 |
+
</tr>
|
229 |
+
<tr>
|
230 |
+
<th scope="row">Pause</th>
|
231 |
+
<td><input type="text" name="advps_timeout" value="<?php echo $slider['advps_timeout'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
232 |
+
</tr>
|
233 |
+
<tr>
|
234 |
+
<th scope="row">Slide margin</th>
|
235 |
+
<td><input type="text" name="advps_sldmargin" value="<?php echo $slider['advps_sldmargin'];?>" style="width:60px;" onkeypress="return onlyNum(event);" /></td>
|
236 |
+
</tr>
|
237 |
+
<tr>
|
238 |
+
<th scope="row">Enable pause on hover</th>
|
239 |
+
<td><select name="advps_ps_hover">
|
240 |
+
<option value="yes" <?php if($slider['advps_ps_hover'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
241 |
+
<option value="no" <?php if($slider['advps_ps_hover'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
242 |
+
</select>
|
243 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;"> [ N.B. For slider type TICKER this will NOT work with CSS transitions.]</span></td>
|
244 |
+
</tr>
|
245 |
+
<tr>
|
246 |
+
<th scope="row"> </th>
|
247 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('slider<?php echo $dset->id;?>')" />
|
248 |
+
<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>
|
249 |
+
</tr>
|
250 |
+
</table>
|
251 |
+
<input type="hidden" name="opt_field" value="slider" />
|
252 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
253 |
+
</form>
|
254 |
+
</fieldset>
|
255 |
+
<fieldset>
|
256 |
+
<legend class="advps-legend" style="width:121px; background-position:120px 6px;"><strong>Carousel & Ticker</strong></legend>
|
257 |
+
<form method="post" onsubmit="return false" id="caro_ticker<?php echo $dset->id;?>">
|
258 |
+
<table class="form-table">
|
259 |
+
<tr>
|
260 |
+
<th scope="row">Number of slide</th>
|
261 |
+
<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);" />
|
262 |
+
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
263 |
+
</tr>
|
264 |
+
<tr>
|
265 |
+
<th scope="row">Slide width</th>
|
266 |
+
<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);" />
|
267 |
+
<span style="padding-left:20px; font-size:10px; font-style:italic;">[ N.B. For slider type Carousel or Ticker. ]</span></td>
|
268 |
+
</tr>
|
269 |
+
<tr>
|
270 |
+
<th scope="row"> </th>
|
271 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('caro_ticker<?php echo $dset->id;?>')" />
|
272 |
+
<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>
|
273 |
+
</tr>
|
274 |
+
</table>
|
275 |
+
<input type="hidden" name="opt_field" value="caro_ticker" />
|
276 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
277 |
+
</form>
|
278 |
+
</fieldset>
|
279 |
+
<fieldset>
|
280 |
+
<legend class="advps-legend" style="width:158px; background-position:157px 6px;"><strong>Container & Thumbnail</strong></legend>
|
281 |
+
<form method="post" onsubmit="return false" id="container<?php echo $dset->id;?>">
|
282 |
+
<table class="form-table">
|
283 |
+
<tr>
|
284 |
+
<th scope="row">Select Thumbnail</th>
|
285 |
+
<td><select name="advps_thumbnail">
|
286 |
+
<option value="thumbnail" <?php if($container['advps_thumbnail'] == 'thumbnail'){echo 'selected="selected"';}?>>thumbnail</option>
|
287 |
+
<option value="medium" <?php if($container['advps_thumbnail'] == 'medium'){echo 'selected="selected"';}?>>medium</option>
|
288 |
+
<option value="large" <?php if($container['advps_thumbnail'] == 'large'){echo 'selected="selected"';}?>>large</option>
|
289 |
+
<option value="full" <?php if($container['advps_thumbnail'] == 'full'){echo 'selected="selected"';}?>>full</option>
|
290 |
+
<?php
|
291 |
+
global $_wp_additional_image_sizes;
|
292 |
+
unset($_wp_additional_image_sizes['post-thumbnail']);
|
293 |
+
foreach($_wp_additional_image_sizes as $tkey => $tval){
|
294 |
+
?>
|
295 |
+
<option value="<?php echo $tkey;?>" <?php if($container['advps_thumbnail'] == $tkey){echo 'selected="selected"';}?>><?php echo $tkey;?></option>
|
296 |
+
<?php
|
297 |
+
}
|
298 |
+
?>
|
299 |
+
</select></td>
|
300 |
+
</tr>
|
301 |
+
<tr>
|
302 |
+
<th scope="row">Default image url</th>
|
303 |
+
<td><input type="text" name="advps_default_image" value="<?php if(isset($container['advps_default_image'])){ echo $container['advps_default_image'];}?>" style="width:250px;" />
|
304 |
+
<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>
|
305 |
+
</tr>
|
306 |
+
<tr>
|
307 |
+
<th scope="row">Slide Container Width</th>
|
308 |
+
<td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
|
309 |
+
px</td>
|
310 |
+
</tr>
|
311 |
+
<tr>
|
312 |
+
<th scope="row">Background Color</th>
|
313 |
+
<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;" />
|
314 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
315 |
+
</tr>
|
316 |
+
<tr>
|
317 |
+
<th scope="row">Border</th>
|
318 |
+
<td><span style="vertical-align:top">
|
319 |
+
<input type="text" name="advps_border_size" value="<?php echo $container['advps_border_size'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
320 |
+
px
|
321 |
+
<select name="advps_border_type">
|
322 |
+
<option value="dashed" <?php if($container['advps_border_type'] == 'dashed'){echo 'selected="selected"';}?>>dashed</option>
|
323 |
+
<option value="dotted" <?php if($container['advps_border_type'] == 'dotted'){echo 'selected="selected"';}?>>dotted</option>
|
324 |
+
<option value="double" <?php if($container['advps_border_type'] == 'double'){echo 'selected="selected"';}?>>double</option>
|
325 |
+
<option value="solid" <?php if($container['advps_border_type'] == 'solid'){echo 'selected="selected"';}?>>solid</option>
|
326 |
+
<option value="inset" <?php if($container['advps_border_type'] == 'inset'){echo 'selected="selected"';}?>>inset</option>
|
327 |
+
<option value="outset" <?php if($container['advps_border_type'] == 'outset'){echo 'selected="selected"';}?>>outset</option>
|
328 |
+
</select>
|
329 |
+
</span>
|
330 |
+
<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;" />
|
331 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
332 |
+
</tr>
|
333 |
+
<tr>
|
334 |
+
<th scope="row">Remove Border</th>
|
335 |
+
<td><select name="advps_remove_border">
|
336 |
+
<option value="yes" <?php if($container['advps_remove_border'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
337 |
+
<option value="no" <?php if($container['advps_remove_border'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
338 |
+
</select></td>
|
339 |
+
</tr>
|
340 |
+
<tr>
|
341 |
+
<th scope="row">Box Shadow</th>
|
342 |
+
<td><span style="vertical-align:top">
|
343 |
+
<input type="text" name="advps_bxshad1" value="<?php echo $container['advps_bxshad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
344 |
+
px
|
345 |
+
<input type="text" name="advps_bxshad2" value="<?php echo $container['advps_bxshad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
346 |
+
px
|
347 |
+
<input type="text" name="advps_bxshad3" value="<?php echo $container['advps_bxshad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
|
348 |
+
px </span>
|
349 |
+
<input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bxshadcolor" value="<?php echo $container['advps_bxshadcolor'];?>" style="width:100px;" />
|
350 |
+
<div class="advpsfarb" style="padding-left:22%"></div></td>
|
351 |
+
</tr>
|
352 |
+
<tr>
|
353 |
+
<th scope="row">Remove Shadow</th>
|
354 |
+
<td><select name="advps_remove_shd">
|
355 |
+
<option value="yes" <?php if($container['advps_remove_shd'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
356 |
+
<option value="no" <?php if($container['advps_remove_shd'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
357 |
+
</select></td>
|
358 |
+
</tr>
|
359 |
+
<tr>
|
360 |
+
<th scope="row">Enable/Disable link</th>
|
361 |
+
<td><select name="advps_ed_link">
|
362 |
+
<option value="enable" <?php if($container['advps_ed_link'] == 'enable'){echo 'selected="selected"';}?>>Enable</option>
|
363 |
+
<option value="disable" <?php if($container['advps_ed_link'] == 'disable'){echo 'selected="selected"';}?>>Disable</option>
|
364 |
+
</select></td>
|
365 |
+
</tr>
|
366 |
+
<tr>
|
367 |
+
<th scope="row">link type</th>
|
368 |
+
<td><select name="advps_link_type">
|
369 |
+
<option value="permalink" <?php if($container['advps_link_type'] == 'permalink'){echo 'selected="selected"';}?>>Permalink</option>
|
370 |
+
<option value="custom" <?php if($container['advps_link_type'] == 'custom'){echo 'selected="selected"';}?>>Custom</option>
|
371 |
+
</select>
|
372 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For custom link create a custom field with name 'advps_custom_link' ]</span></td>
|
373 |
+
</tr>
|
374 |
+
<tr>
|
375 |
+
<th scope="row">link target</th>
|
376 |
+
<td><select name="advps_link_target">
|
377 |
+
<option value="_self" <?php if($container['advps_link_target'] == '_self'){echo 'selected="selected"';}?>>_self</option>
|
378 |
+
<option value="_blank" <?php if($container['advps_link_target'] == '_blank'){echo 'selected="selected"';}?>>_blank</option>
|
379 |
+
<option value="_new" <?php if($container['advps_link_target'] == '_new'){echo 'selected="selected"';}?>>_new</option>
|
380 |
+
<option value="_top" <?php if($container['advps_link_target'] == '_top'){echo 'selected="selected"';}?>>_top</option>
|
381 |
+
<option value="_parent" <?php if($container['advps_link_target'] == '_parent'){echo 'selected="selected"';}?>>_parent</option>
|
382 |
+
</select></td>
|
383 |
+
</tr>
|
384 |
+
<tr>
|
385 |
+
<th scope="row"> </th>
|
386 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('container<?php echo $dset->id;?>')" />
|
387 |
+
<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>
|
388 |
+
</tr>
|
389 |
+
</table>
|
390 |
+
<input type="hidden" name="opt_field" value="container" />
|
391 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
392 |
+
</form>
|
393 |
+
</fieldset>
|
394 |
+
<fieldset>
|
395 |
+
<legend class="advps-legend" style="width:79px; background-position:78px 6px;"><strong>Navigation</strong></legend>
|
396 |
+
<form method="post" onsubmit="return false" id="navigation<?php echo $dset->id;?>">
|
397 |
+
<table class="form-table">
|
398 |
+
<tr>
|
399 |
+
<th scope="row">Exclude pager</th>
|
400 |
+
<td><select name="advps_exclude_pager">
|
401 |
+
<option value="yes" <?php if($navigation['advps_exclude_pager'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
402 |
+
<option value="no" <?php if($navigation['advps_exclude_pager'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
403 |
+
</select></td>
|
404 |
+
</tr>
|
405 |
+
<tr>
|
406 |
+
<th scope="row">Pager type</th>
|
407 |
+
<td><span style="padding-right:5px;">Number</span>
|
408 |
+
<input type="radio" name="advps_pager_type" value="number" <?php if($navigation['advps_pager_type'] == 'number'){echo 'checked="checked"';}?>>
|
409 |
+
<span style="padding:0px 5px 0px 10px;">Bullet</span>
|
410 |
+
<input type="radio" name="advps_pager_type" value="bullet" <?php if($navigation['advps_pager_type'] == 'bullet'){echo 'checked="checked"';}?>>
|
411 |
+
<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>
|
412 |
+
<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($navigation['advps_pager_type'] == 'thumb'){echo 'checked="checked"';}?>></td>
|
413 |
+
</tr>
|
414 |
+
<tr>
|
415 |
+
<th scope="row">Thumbnail Width</th>
|
416 |
+
<td>
|
417 |
+
<input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" /> %
|
418 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
|
419 |
+
</tr>
|
420 |
+
<tr>
|
421 |
+
<th scope="row">Pager align</th>
|
422 |
+
<td><select name="advps_pager_align">
|
423 |
+
<option value="center" <?php if($navigation['advps_pager_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
424 |
+
<option value="left" <?php if($navigation['advps_pager_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
425 |
+
<option value="right" <?php if($navigation['advps_pager_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
426 |
+
</select></td>
|
427 |
+
</tr>
|
428 |
+
<tr>
|
429 |
+
<th scope="row">Pager position from bottom</th>
|
430 |
+
<td><input type="text" name="advps_pager_bottom" value="<?php echo $navigation['advps_pager_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />
|
431 |
+
px</td>
|
432 |
+
</tr>
|
433 |
+
<tr>
|
434 |
+
<th scope="row">Exclude Play/Pause</th>
|
435 |
+
<td><select name="advps_exclude_playpause">
|
436 |
+
<option value="yes" <?php if($navigation['advps_exclude_playpause'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
437 |
+
<option value="no" <?php if($navigation['advps_exclude_playpause'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
438 |
+
</select>
|
439 |
+
<span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Play/Pause works when Slider Type is standard and auto play is enabled. ]</span></td>
|
440 |
+
</tr>
|
441 |
+
<tr>
|
442 |
+
<th scope="row">Play/Pause align</th>
|
443 |
+
<td><select name="advps_ppause_align">
|
444 |
+
<option value="center" <?php if($navigation['advps_ppause_align'] == 'center'){echo 'selected="selected"';}?>>Center</option>
|
445 |
+
<option value="left" <?php if($navigation['advps_ppause_align'] == 'left'){echo 'selected="selected"';}?>>Left</option>
|
446 |
+
<option value="right" <?php if($navigation['advps_ppause_align'] == 'right'){echo 'selected="selected"';}?>>Right</option>
|
447 |
+
</select></td>
|
448 |
+
</tr>
|
449 |
+
<tr>
|
450 |
+
<th scope="row">Play/Pause position from bottom</th>
|
451 |
+
<td><input type="text" name="advps_ppause_bottom" value="<?php echo $navigation['advps_ppause_bottom'];?>" style="width:50px;" onkeypress="return NumNdNeg(event);" />
|
452 |
+
px</td>
|
453 |
+
</tr>
|
454 |
+
<tr>
|
455 |
+
<th scope="row">Exclude Next/Previous</th>
|
456 |
+
<td><select name="advps_exclude_nxtprev">
|
457 |
+
<option value="yes" <?php if($navigation['advps_exclude_nxtprev'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
458 |
+
<option value="no" <?php if($navigation['advps_exclude_nxtprev'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
459 |
+
</select></td>
|
460 |
+
</tr>
|
461 |
+
<tr>
|
462 |
+
<th scope="row"> </th>
|
463 |
+
<td><input type="submit" name="advps_submit" value="Save changes" class="button-primary" onclick="updateOptionSet('navigation<?php echo $dset->id;?>')" />
|
464 |
+
<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>
|
465 |
+
</tr>
|
466 |
+
</table>
|
467 |
+
<input type="hidden" name="opt_field" value="navigation" />
|
468 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="opt_id" />
|
469 |
+
</form>
|
470 |
+
</fieldset>
|
471 |
+
<form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
|
472 |
+
<input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
|
473 |
+
<p>
|
474 |
+
<input type="submit" name="del-optset" value="Delete this option set" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" />
|
475 |
+
</p>
|
476 |
+
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
477 |
+
</form>
|
478 |
+
</div>
|
479 |
+
</div>
|
480 |
+
</div>
|
481 |
+
</div>
|
482 |
+
<?php
|
483 |
+
}
|
484 |
+
$tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
|
485 |
+
?>
|
486 |
+
<div style="position:relative; float:left; width:100%">
|
487 |
+
<form method="post">
|
488 |
+
<input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
|
489 |
+
<input type="hidden" name="template" value="two" />
|
490 |
+
<?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
|
491 |
+
<input type="submit" name="advps_submit" value="Add new option set" class="button-primary" style="font-weight:bold" />
|
492 |
+
</form>
|
493 |
+
</div>
|