Advanced post slider - Version 2.3.0

Version Description

  • Option added to centering the slideshow.
  • Media query for text size.
  • Rel attribute for link.

Check details here Advanced post slider 2.3.0

=

Download this release

Release Info

Developer digontoahsan
Plugin Icon wp plugin Advanced post slider
Version 2.3.0
Comparing to
See all releases

Code changes from version 2.2.0 to 2.3.0

advanced-post-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced post slider
4
  Plugin URI: www.wpcue.com
5
  Description: A multipurpose responsive slideshow plugin powered with three built-in design template, lots of easy customizable options and many more to explore.
6
- Version: 2.2.0
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
@@ -72,6 +72,9 @@
72
  if(get_option('advps-db-version') < 2){
73
  set_advps_options();
74
  }
 
 
 
75
  }
76
  add_action( 'plugins_loaded', 'advps_update_db' );
77
  /* ---------------------------------------------------------------------------------------*/
@@ -429,6 +432,77 @@
429
  {
430
  border: 1px solid #666666;
431
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
432
  </style>
433
  <script type="text/javascript">
434
  jQuery(document).ready(function($){
@@ -478,13 +552,13 @@
478
  });
479
  });
480
  </script>
481
- <div id="advps_container<?php echo $sldshowID;?>" class="advps-slide-container" style="max-width:<?php echo $container['advps_sld_width'];?>px;">
482
 
483
  <div id="<?php echo "advpsslideshow_".$sldshowID;?>">
484
  <?php $count = 1;$the_query = new WP_Query($query_arg); while ($the_query->have_posts()) : $the_query->the_post();if($template == 'one'):
485
  ?>
486
  <div class="advps-slide">
487
- <?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 }?>
488
  <?php
489
  if(has_post_thumbnail()){
490
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
@@ -509,8 +583,8 @@
509
 
510
  <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 }?>">
511
  <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>
512
- <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'];?>;">
513
- <<?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'];?>>
514
 
515
  <?php if($content['advps_exclude_excpt'] == 'no'){the_excerpt();}?>
516
  </div>
@@ -518,7 +592,7 @@
518
  </div>
519
  <?php elseif($template == 'two'):?>
520
  <div class="advps-slide">
521
- <?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 }?>
522
  <?php
523
  if(has_post_thumbnail()){
524
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
@@ -543,8 +617,8 @@
543
  </div>
544
  <?php elseif($template == 'three'):?>
545
  <div class="advps-slide">
546
- <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';?>;">
547
- <?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 }?>
548
  <?php
549
  if(has_post_thumbnail()){
550
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
@@ -566,8 +640,8 @@
566
  }
567
  ?>
568
  <?php if( $content['advps_ed_link']=='enable'){?></a><?php }endif;?>
569
- <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'];?>;">
570
- <?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 }?>
571
  <?php the_title();?>
572
  <?php if( $content['advps_ed_link']=='enable'){?></a><?php }?></<?php echo $content['advps_ttitle_tag'];?>><?php }?>
573
  <?php if(in_array('content',$content['advps_content_set'])){
3
  Plugin Name: Advanced post slider
4
  Plugin URI: www.wpcue.com
5
  Description: A multipurpose responsive slideshow plugin powered with three built-in design template, lots of easy customizable options and many more to explore.
6
+ Version: 2.3.0
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
72
  if(get_option('advps-db-version') < 2){
73
  set_advps_options();
74
  }
75
+ if(get_option('advps-db-version') && !get_option('advps-update-notification')){
76
+ update_option('advps-update-notification','show');
77
+ }
78
  }
79
  add_action( 'plugins_loaded', 'advps_update_db' );
80
  /* ---------------------------------------------------------------------------------------*/
432
  {
433
  border: 1px solid #666666;
434
  }
435
+ /* medai queries */
436
+ #advps_container<?php echo $sldshowID;?> .advs-title,#advps_container<?php echo $sldshowID;?> .advs-title a
437
+ {
438
+ font-size:<?php if(isset($content['advps_titleFsizeL'])){echo $content['advps_titleFsizeL'];}else{echo 20;}?>px;
439
+ line-height:<?php if(isset($content['advps_titleLheightL'])){echo $content['advps_titleLheightL'];}else{echo 20;}?>px;
440
+ }
441
+ #advps_container<?php echo $sldshowID;?> .advps-slide p
442
+ {
443
+ font-size:<?php if(isset($content['advps_excptFsizeL'])){echo $content['advps_excptFsizeL'];}else{echo 14;}?>px;
444
+ line-height:<?php if(isset($content['advps_excptLheightL'])){echo $content['advps_excptLheightL'];}else{echo 14;}?>px;
445
+ }
446
+ @media screen and (max-width: 1024px){
447
+ #advps_container<?php echo $sldshowID;?> .advs-title,#advps_container<?php echo $sldshowID;?> .advs-title a
448
+ {
449
+ font-size:<?php if(isset($content['advps_titleFsize1'])){echo $content['advps_titleFsize1'];}else{echo 18;}?>px;
450
+ line-height:<?php if(isset($content['advps_titleLheight1'])){echo $content['advps_titleLheight1'];}else{echo 18;}?>px;
451
+ }
452
+ #advps_container<?php echo $sldshowID;?> .advps-slide p
453
+ {
454
+ font-size:<?php if(isset($content['advps_excptFsize1'])){echo $content['advps_excptFsize1'];}else{echo 12;}?>px;
455
+ line-height:<?php if(isset($content['advps_excptLheight1'])){echo $content['advps_excptLheight1'];}else{echo 12;}?>px;
456
+ }
457
+ }
458
+ @media screen and (max-width: 768px){
459
+ #advps_container<?php echo $sldshowID;?> h2.advs-title, #advps_container<?php echo $sldshowID;?> h2.advs-title a
460
+ {
461
+ font-size:<?php if(isset($content['advps_titleFsize2'])){echo $content['advps_titleFsize2'];}else{echo 16;}?>px;
462
+ line-height:<?php if(isset($content['advps_titleLheight2'])){echo $content['advps_titleLheight2'];}else{echo 16;}?>px;
463
+ }
464
+ #advps_container<?php echo $sldshowID;?> .advps-slide p
465
+ {
466
+ font-size:<?php if(isset($content['advps_excptFsize2'])){echo $content['advps_excptFsize2'];}else{echo 12;}?>px;
467
+ line-height:<?php if(isset($content['advps_excptLheight2'])){echo $content['advps_excptLheight2'];}else{echo 12;}?>px;
468
+ }
469
+ }
470
+ @media screen and (max-width: 650px){
471
+ #advps_container<?php echo $sldshowID;?> h2.advs-title, #advps_container<?php echo $sldshowID;?> h2.advs-title a
472
+ {
473
+ font-size:<?php if(isset($content['advps_titleFsize3'])){echo $content['advps_titleFsize3'];}else{echo 15;}?>px;
474
+ line-height:<?php if(isset($content['advps_titleLheight3'])){echo $content['advps_titleLheight3'];}else{echo 15;}?>px;
475
+ }
476
+ #advps_container<?php echo $sldshowID;?> .advps-slide p
477
+ {
478
+ font-size:<?php if(isset($content['advps_excptFsize3'])){echo $content['advps_excptFsize3'];}else{echo 12;}?>px;
479
+ line-height:<?php if(isset($content['advps_excptLheight3'])){echo $content['advps_excptLheight3'];}else{echo 12;}?>px;
480
+ }
481
+ }
482
+ @media screen and (max-width: 480px){
483
+ #advps_container<?php echo $sldshowID;?> h2.advs-title, #advps_container<?php echo $sldshowID;?> h2.advs-title a
484
+ {
485
+ font-size:<?php if(isset($content['advps_titleFsize4'])){echo $content['advps_titleFsize4'];}else{echo 15;}?>px;
486
+ line-height:<?php if(isset($content['advps_titleLheight4'])){echo $content['advps_titleLheight4'];}else{echo 15;}?>px;
487
+ }
488
+ #advps_container<?php echo $sldshowID;?> .advps-slide p
489
+ {
490
+ font-size:<?php if(isset($content['advps_excptFsize4'])){echo $content['advps_excptFsize4'];}else{echo 12;}?>px;
491
+ line-height:<?php if(isset($content['advps_excptLheight4'])){echo $content['advps_excptLheight4'];}else{echo 12;}?>px;
492
+ }
493
+ }
494
+ @media screen and (max-width: 320px){
495
+ #advps_container<?php echo $sldshowID;?> h2.advs-title, #advps_container<?php echo $sldshowID;?> h2.advs-title a
496
+ {
497
+ font-size:<?php if(isset($content['advps_titleFsize5'])){echo $content['advps_titleFsize5'];}else{echo 15;}?>px;
498
+ line-height:<?php if(isset($content['advps_titleLheight5'])){echo $content['advps_titleLheight5'];}else{echo 15;}?>px;
499
+ }
500
+ #advps_container<?php echo $sldshowID;?> .advps-slide p
501
+ {
502
+ font-size:<?php if(isset($content['advps_excptFsize5'])){echo $content['advps_excptFsize5'];}else{echo 12;}?>px;
503
+ line-height:<?php if(isset($content['advps_excptLheight5'])){echo $content['advps_excptLheight5'];}else{echo 12;}?>px;
504
+ }
505
+ }
506
  </style>
507
  <script type="text/javascript">
508
  jQuery(document).ready(function($){
552
  });
553
  });
554
  </script>
555
+ <div id="advps_container<?php echo $sldshowID;?>" class="advps-slide-container" style="max-width:<?php echo $container['advps_sld_width'];?>px;<?php if($container['advps_centering'] && $container['advps_centering'] == 'yes'){echo 'margin:auto;';}?>">
556
 
557
  <div id="<?php echo "advpsslideshow_".$sldshowID;?>">
558
  <?php $count = 1;$the_query = new WP_Query($query_arg); while ($the_query->have_posts()) : $the_query->the_post();if($template == 'one'):
559
  ?>
560
  <div class="advps-slide">
561
+ <?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 if($content['advps_link_rel'] && $content['advps_link_rel'] != 'none'){?>rel="<?php echo $content['advps_link_rel'];?>"<?php }?>><?php }?>
562
  <?php
563
  if(has_post_thumbnail()){
564
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
583
 
584
  <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 }?>">
585
  <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>
586
+ <div class="advps-excerpt-block-<?php echo $template?>" style="text-align:<?php echo $content['advps_text_align'];?>;color:<?php echo $content['advps_excptFcolor'];?>;-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'];?>;">
587
+ <<?php echo $content['advps_ttitle_tag'];?> class="advs-title" style="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="margin:5px 0px 10px 0px;color:<?php echo $content['advps_titleFcolor'];?>" <?php if($content['advps_link_rel'] && $content['advps_link_rel'] != 'none'){?>rel="<?php echo $content['advps_link_rel'];?>"<?php }?>><?php }?><?php the_title();?><?php if( $content['advps_ed_link']=='enable'){?></a><?php }?></<?php echo $content['advps_ttitle_tag'];?>>
588
 
589
  <?php if($content['advps_exclude_excpt'] == 'no'){the_excerpt();}?>
590
  </div>
592
  </div>
593
  <?php elseif($template == 'two'):?>
594
  <div class="advps-slide">
595
+ <?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 if($container['advps_link_rel'] && $container['advps_link_rel'] != 'none'){?>rel="<?php echo $container['advps_link_rel'];?>"<?php }?>><?php }?>
596
  <?php
597
  if(has_post_thumbnail()){
598
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
617
  </div>
618
  <?php elseif($template == 'three'):?>
619
  <div class="advps-slide">
620
+ <div class="advps-slide-field-three" style="position:relative;float:left;padding:<?php echo $container['advps_contpad1'].$container['advps_padu1'].' '.$container['advps_contpad2'].$container['advps_padu2'].' '.$container['advps_contpad3'].$container['advps_padu3'].' '.$container['advps_contpad4'].$container['advps_padu4'];?>;">
621
+ <?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 if($content['advps_link_rel'] && $content['advps_link_rel'] != 'none'){?>rel="<?php echo $content['advps_link_rel'];?>"<?php }?>><?php }?>
622
  <?php
623
  if(has_post_thumbnail()){
624
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
640
  }
641
  ?>
642
  <?php if( $content['advps_ed_link']=='enable'){?></a><?php }endif;?>
643
+ <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'];?>;">
644
+ <?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'];?>;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'];?>;margin:5px 0px 10px 0px;" <?php if($content['advps_link_rel'] && $content['advps_link_rel'] != 'none'){?>rel="<?php echo $content['advps_link_rel'];?>"<?php }?>><?php }?>
645
  <?php the_title();?>
646
  <?php if( $content['advps_ed_link']=='enable'){?></a><?php }?></<?php echo $content['advps_ttitle_tag'];?>><?php }?>
647
  <?php if(in_array('content',$content['advps_content_set'])){
advps-admin.php CHANGED
@@ -13,18 +13,37 @@
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
- delete_option('optset'.$_POST['optset-id']);
27
- $stsMgs = "Deleted successfully.";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
  }
30
  if(isset($_POST['advps_submit'])){
@@ -227,6 +246,13 @@ fieldset {
227
  }
228
  </style>
229
  <div class="wrap">
 
 
 
 
 
 
 
230
  <?php if($stsMgs != ''){?>
231
  <div id="message" class="updated below-h2">
232
  <p><?php echo $stsMgs;?></p>
@@ -241,7 +267,7 @@ fieldset {
241
  require 'templates/template-three.php';
242
  }elseif($currTab == 'thumb'){?>
243
  <div class="advps-col-right">
244
- <h2>Advanced post slider 2.2.0</h2>
245
  <ul>
246
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
247
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
13
  {
14
  $currTab = 'one';
15
  }
16
+ if(isset($_GET['hide'])){
17
+ update_option('advps-update-notification','hide');
18
+ }
19
  if(isset($_POST['optset-id'])){
20
  if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
21
  {
22
  print 'Sorry, your nonce did not verify.';
23
  exit;
24
  }
25
+
26
+ if(isset($_POST['del-optset'])){
27
  $q_del = $wpdb->prepare("delete from ".$wpdb->prefix."advps_optionset where id = %d",$_POST['optset-id']);
28
 
29
+ if($wpdb->query($q_del)){
30
+ delete_option('optset'.$_POST['optset-id']);
31
+ $stsMgs = "Deleted successfully.";
32
+ }
33
+ }
34
+ elseif(isset($_POST['dup-optset'])){
35
+
36
+ $q_sel = "select * from ".$wpdb->prefix."advps_optionset where id = ".$_POST['optset-id'];
37
+ $res = $wpdb->get_results($q_sel);
38
+ //echo get_option('advpssmethod'.$_POST['optset-id']);exit;
39
+ //echo '<pre>';
40
+ //print_r($res);exit;
41
+ $q_add = $wpdb->prepare("insert into ".$wpdb->prefix."advps_optionset (template,plist,query,slider,caro_ticker,container,content,navigation) values(%s,%s,%s,%s,%s,%s,%s,%s)",$res[0]->template,$res[0]->plist,$res[0]->query,$res[0]->slider,$res[0]->caro_ticker,$res[0]->container,$res[0]->content,$res[0]->navigation);
42
+
43
+ if($wpdb->query($q_add)){
44
+ update_option('advpssmethod'.$_POST['nextoptid'],get_option('advpssmethod'.$_POST['optset-id']));
45
+ $stsMgs = "Duplicated successfully.";
46
+ }
47
  }
48
  }
49
  if(isset($_POST['advps_submit'])){
246
  }
247
  </style>
248
  <div class="wrap">
249
+ <?php if(get_option('advps-update-notification') && get_option('advps-update-notification') == 'show'){?>
250
+ <div id="message" class="updated below-h2">
251
+ <p>Advanced post slider is updated. <span style="margin:0 10px;"><input class="button" type="button" onclick="document.location.href='http://www.wpcue.com/advanced-post-slider-2-3-0/';" value="Check what's new in version 2.3.0"></span>
252
+ <input class="button" type="button" onclick="document.location.href='admin.php?page=advps-slideshow&hide=1';" value="Hide this message">
253
+ </p>
254
+ </div>
255
+ <?php }?>
256
  <?php if($stsMgs != ''){?>
257
  <div id="message" class="updated below-h2">
258
  <p><?php echo $stsMgs;?></p>
267
  require 'templates/template-three.php';
268
  }elseif($currTab == 'thumb'){?>
269
  <div class="advps-col-right">
270
+ <h2>Advanced post slider 2.3.0</h2>
271
  <ul>
272
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
273
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
advps-db.php CHANGED
@@ -51,6 +51,7 @@
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",
@@ -64,7 +65,7 @@
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",
@@ -76,21 +77,38 @@
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(
@@ -111,6 +129,7 @@
111
  "advps_excerptlen" => "25",
112
  "advps_ed_link" => "enable",
113
  "advps_link_type" => "permalink",
 
114
  "advps_link_target" => "_self"
115
  );
116
  $advpsNavigation = array(
@@ -142,6 +161,10 @@
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
  }
51
  "advps_thumbnail" => "advps-thumb-one",
52
  "advps_default_image" => "",
53
  "advps_sld_width" => "600",
54
+ "advps_centering" => "no",
55
  "advps_bgcolor" => "#FFFFFF",
56
  "advps_border_size" => "1",
57
  "advps_border_type" => "solid",
65
  );
66
  $advpsContainer2 = array_merge($advpsContainer,array("advps_ed_link" => "enable","advps_link_type" => "permalink","advps_link_target" => "_self"));
67
 
68
+ $advpsContainer3 = array_merge($advpsContainer,array("advps_contpad1" => "0.8","advps_contpad2" => "0.8","advps_contpad3" => "0.8","advps_contpad4" => "0.8","advps_thumbnail" => "medium","advps_padu1"=>"vw","advps_padu2"=>"vw","advps_padu3"=>"vw","advps_padu4"=>"vw"));
69
 
70
  $advpsContent = array(
71
  "advps_overlay_width" => "30",
77
  "advps_ttitle_tag" => "h2",
78
  "advps_titleFcolor" => "#FFFFFF",
79
  "advps_titleHcolor" => "#c9c9c9",
80
+ "advps_titleFsizeL" => "20",
81
+ "advps_titleFsize1" => "18",
82
+ "advps_titleFsize2" => "16",
83
+ "advps_titleFsize3" => "15",
84
+ "advps_titleFsize4" => "15",
85
+ "advps_titleFsize5" => "15",
86
+ "advps_titleLheightL" => "20",
87
+ "advps_titleLheight1" => "18",
88
+ "advps_titleLheight1" => "16",
89
+ "advps_titleLheight1" => "15",
90
+ "advps_titleLheight1" => "15",
91
+ "advps_titleLheight1" => "15",
92
  "advps_excptFcolor" => "#FFFFFF",
93
+ "advps_excptFsizeL" => "14",
94
+ "advps_excptFsize1" => "12",
95
+ "advps_excptFsize2" => "12",
96
+ "advps_excptFsize3" => "12",
97
+ "advps_excptFsize4" => "12",
98
+ "advps_excptFsize5" => "12",
99
+ "advps_excptLheightL" => "14",
100
+ "advps_excptLheight1" => "12",
101
+ "advps_excptLheight1" => "12",
102
+ "advps_excptLheight1" => "12",
103
+ "advps_excptLheight1" => "12",
104
+ "advps_excptLheight1" => "12",
105
  "advps_excerptlen" => "25",
106
  "advps_excpt_visibility" => "always show",
107
  "advps_excpt_position" => "left",
108
  "advps_exclude_excpt" => "no",
109
  "advps_ed_link" => "enable",
110
  "advps_link_type" => "permalink",
111
+ "advps_link_rel" => "none",
112
  "advps_link_target" => "_self"
113
  );
114
  $advpsContent2 = array(
129
  "advps_excerptlen" => "25",
130
  "advps_ed_link" => "enable",
131
  "advps_link_type" => "permalink",
132
+ "advps_link_rel" => "none",
133
  "advps_link_target" => "_self"
134
  );
135
  $advpsNavigation = array(
161
  $db_version = get_option('advps-db-version');
162
  $advps_opt_table = $wpdb->prefix.'advps_optionset';
163
 
164
+ /*if($db_version){
165
+ update_option('advps-update-notification','show');
166
+ }*/
167
+
168
  if(!get_option('advpssmethod1')){
169
  add_option('advpssmethod1','plist');
170
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: digontoahsan
3
  Donate link:
4
  Tags: post slider, slider, slideshow, wordpress slideshow, best slideshow, best post slider, best slideshow plugin, images, logo scroller, testimonial scroller, banner rotator, recent post slider, bxslider, image slider, sidebar slideshow, posts, post, image, image slideshow, responsive slideshow, responsive slider, best responsive slider, best carousel slider, carousel slider, ticker, responsive carousel slider, responsive carousel, showcase, news slider, thumbnail, thumbnail slider, featured thumbnail
5
  Requires at least: 3.0.1
6
- Tested up to: 3.9.1
7
- Stable tag: 2.2.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -128,5 +128,12 @@ Dont have any FAQ for now.
128
  * Pager z-index issue resolved.
129
  * More unique id for container.
130
 
 
 
 
 
 
 
 
131
  == Upgrade Notice ==
132
  * Upgrade is highly recommended.
3
  Donate link:
4
  Tags: post slider, slider, slideshow, wordpress slideshow, best slideshow, best post slider, best slideshow plugin, images, logo scroller, testimonial scroller, banner rotator, recent post slider, bxslider, image slider, sidebar slideshow, posts, post, image, image slideshow, responsive slideshow, responsive slider, best responsive slider, best carousel slider, carousel slider, ticker, responsive carousel slider, responsive carousel, showcase, news slider, thumbnail, thumbnail slider, featured thumbnail
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.1.1
7
+ Stable tag: 2.3.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
128
  * Pager z-index issue resolved.
129
  * More unique id for container.
130
 
131
+ = 2.3.0 =
132
+ * Option added to centering the slideshow.
133
+ * Media query for text size.
134
+ * Rel attribute for link.
135
+
136
+ Check details here [Advanced post slider 2.3.0](http://www.wpcue.com/advanced-post-slider-2-3-0/)
137
+
138
  == Upgrade Notice ==
139
  * Upgrade is highly recommended.
templates/template-one.php CHANGED
@@ -1,8 +1,9 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
3
  ?>
 
4
  <div class="advps-col-right">
5
- <h2>Advanced post slider 2.2.0</h2>
6
  <ul>
7
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
8
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
@@ -12,13 +13,14 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
12
  <h3>Do you like this Plugin?</h3>
13
  <p>I spend lots of free hours to develop, maintain and providing support to this plugin. Any kind of participation will be highly appreciated and real inspiration for me to work more.</p>
14
  <ul>
15
- <li>Write a small blog for Advanced post slider and give link to our site.</li>
16
  <li>Share it to your social media.</li>
17
  <li><a href="http://wordpress.org/support/view/plugin-reviews/advanced-post-slider" target="_blank">Give it a good rating and review</a></li>
18
  <li><a href="http://wordpress.org/plugins/advanced-post-slider/" target="_blank">Vote that it work</a></li>
19
  </ul>
20
  </div>
21
  <?php
 
22
  foreach( $res1 as $dset){
23
  $plist = unserialize($dset->plist);
24
  $query = unserialize($dset->query);
@@ -27,6 +29,8 @@ foreach( $res1 as $dset){
27
  $container = unserialize($dset->container);
28
  $content = unserialize($dset->content);
29
  $navigation = unserialize($dset->navigation);
 
 
30
  ?>
31
  <div class="metabox-holder" style="margin-top:20px;">
32
  <div class="postbox-container" style="width:100%">
@@ -325,6 +329,13 @@ foreach( $res1 as $dset){
325
  <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
326
  &nbsp;px</td>
327
  </tr>
 
 
 
 
 
 
 
328
  <tr>
329
  <th scope="row">Background Color</th>
330
  <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;" />
@@ -455,27 +466,33 @@ foreach( $res1 as $dset){
455
  </tr>
456
  <tr>
457
  <th scope="row">Title font size</th>
458
- <td><input type="text" name="advps_titleFsize" value="<?php echo $content['advps_titleFsize'];?>" style="width:60px;" />
459
- <select name="advps_ttitleFSunit" style="vertical-align:top;">
460
- <option value="vw" <?php if($content['advps_ttitleFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
461
- <option value="vh" <?php if($content['advps_ttitleFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
462
- <option value="%" <?php if($content['advps_ttitleFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
463
- <option value="em" <?php if($content['advps_ttitleFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
464
- <option value="px" <?php if($content['advps_ttitleFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
465
- <option value="pt" <?php if($content['advps_ttitleFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
466
- </select></td>
 
 
 
467
  </tr>
468
  <tr>
469
  <th scope="row">Title line height</th>
470
- <td><input type="text" name="advps_titleLheight" value="<?php echo $content['advps_titleLheight'];?>" style="width:60px;" />
471
- <select name="advps_ttitleLHunit" style="vertical-align:top;">
472
- <option value="vw" <?php if($content['advps_ttitleLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
473
- <option value="vh" <?php if($content['advps_ttitleLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
474
- <option value="%" <?php if($content['advps_ttitleLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
475
- <option value="em" <?php if($content['advps_ttitleLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
476
- <option value="px" <?php if($content['advps_ttitleLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
477
- <option value="pt" <?php if($content['advps_ttitleLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
478
- </select></td>
 
 
 
479
  </tr>
480
  <tr>
481
  <th scope="row">Excerpt font color</th>
@@ -484,27 +501,33 @@ foreach( $res1 as $dset){
484
  </tr>
485
  <tr>
486
  <th scope="row">Excerpt font size</th>
487
- <td><input type="text" name="advps_excptFsize" value="<?php echo $content['advps_excptFsize'];?>" style="width:60px;" />
488
- <select name="advps_excptFSunit" style="vertical-align:top;">
489
- <option value="vw" <?php if($content['advps_excptFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
490
- <option value="vh" <?php if($content['advps_excptFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
491
- <option value="%" <?php if($content['advps_excptFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
492
- <option value="em" <?php if($content['advps_excptFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
493
- <option value="px" <?php if($content['advps_excptFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
494
- <option value="pt" <?php if($content['advps_excptFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
495
- </select></td>
 
 
 
496
  </tr>
497
  <tr>
498
  <th scope="row">Excerpt line height</th>
499
- <td><input type="text" name="advps_excptLheight" value="<?php echo $content['advps_excptLheight'];?>" style="width:60px;" />
500
- <select name="advps_excptLHunit" style="vertical-align:top;">
501
- <option value="vw" <?php if($content['advps_excptLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
502
- <option value="vh" <?php if($content['advps_excptLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
503
- <option value="%" <?php if($content['advps_excptLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
504
- <option value="em" <?php if($content['advps_excptLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
505
- <option value="px" <?php if($content['advps_excptLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
506
- <option value="pt" <?php if($content['advps_excptLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
507
- </select></td>
 
 
 
508
  </tr>
509
  <tr>
510
  <th scope="row">Excerpt length</th>
@@ -533,6 +556,29 @@ foreach( $res1 as $dset){
533
  </select>
534
  <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>
535
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  <tr>
537
  <th scope="row">link target</th>
538
  <td><select name="advps_link_target">
@@ -632,9 +678,12 @@ foreach( $res1 as $dset){
632
  <!-- </form>-->
633
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
634
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
 
635
  <p>
636
  <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
637
- </p>
 
 
638
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
639
  </form>
640
  </div>
@@ -643,12 +692,11 @@ foreach( $res1 as $dset){
643
  </div>
644
  <?php
645
  }
646
- $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
647
  ?>
648
  <div style="position:relative; float:left; width:72%">
649
  <form method="post">
650
  <input type="hidden" name="template" value="one" />
651
- <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
652
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
653
  <input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
654
  </form>
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
3
  ?>
4
+
5
  <div class="advps-col-right">
6
+ <h2>Advanced post slider 2.3.0</h2>
7
  <ul>
8
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
9
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
13
  <h3>Do you like this Plugin?</h3>
14
  <p>I spend lots of free hours to develop, maintain and providing support to this plugin. Any kind of participation will be highly appreciated and real inspiration for me to work more.</p>
15
  <ul>
16
+ <li>Write a small blog for Advanced post slider and give link to our site.</li>
17
  <li>Share it to your social media.</li>
18
  <li><a href="http://wordpress.org/support/view/plugin-reviews/advanced-post-slider" target="_blank">Give it a good rating and review</a></li>
19
  <li><a href="http://wordpress.org/plugins/advanced-post-slider/" target="_blank">Vote that it work</a></li>
20
  </ul>
21
  </div>
22
  <?php
23
+ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
24
  foreach( $res1 as $dset){
25
  $plist = unserialize($dset->plist);
26
  $query = unserialize($dset->query);
29
  $container = unserialize($dset->container);
30
  $content = unserialize($dset->content);
31
  $navigation = unserialize($dset->navigation);
32
+
33
+ if( !$content['advps_link_rel'] ) $content['advps_link_rel'] = 'none';
34
  ?>
35
  <div class="metabox-holder" style="margin-top:20px;">
36
  <div class="postbox-container" style="width:100%">
329
  <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
330
  &nbsp;px</td>
331
  </tr>
332
+ <tr>
333
+ <th scope="row">Center whole slideshow</th>
334
+ <td><select name="advps_centering">
335
+ <option value="no" <?php if($container['advps_centering'] && $container['advps_centering'] == 'no'){echo 'selected="selected"';}?>>No</option>
336
+ <option value="yes" <?php if($container['advps_centering'] && $container['advps_centering'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
337
+ </select></td>
338
+ </tr>
339
  <tr>
340
  <th scope="row">Background Color</th>
341
  <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $container['advps_bgcolor'];?>" style="width:100px;" />
466
  </tr>
467
  <tr>
468
  <th scope="row">Title font size</th>
469
+ <td><input type="text" name="advps_titleFsizeL" value="<?php if(isset($content['advps_titleFsizeL'])){ echo $content['advps_titleFsizeL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
470
+ &nbsp;px&nbsp;&nbsp;
471
+ <input type="text" name="advps_titleFsize1" value="<?php if(isset($content['advps_titleFsize1'])){ echo $content['advps_titleFsize1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
472
+ &nbsp;px&nbsp;&nbsp;
473
+ <input type="text" name="advps_titleFsize2" value="<?php if(isset($content['advps_titleFsize2'])){echo $content['advps_titleFsize2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
474
+ &nbsp;px&nbsp;&nbsp;
475
+ <input type="text" name="advps_titleFsize3" value="<?php if(isset($content['advps_titleFsize3'])){echo $content['advps_titleFsize3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
476
+ &nbsp;px&nbsp;&nbsp;
477
+ <input type="text" name="advps_titleFsize4" value="<?php if(isset($content['advps_titleFsize4'])){echo $content['advps_titleFsize4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
478
+ &nbsp;px&nbsp;&nbsp;
479
+ <input type="text" name="advps_titleFsize5" value="<?php if(isset($content['advps_titleFsize5'])){echo $content['advps_titleFsize5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
480
+ &nbsp;px&nbsp;&nbsp; <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Different sizes for different media screen width. Hover the field to know which field is for which width. ]</span></td>
481
  </tr>
482
  <tr>
483
  <th scope="row">Title line height</th>
484
+ <td><input type="text" name="advps_titleLheightL" value="<?php if(isset($content['advps_titleLheightL'])){ echo $content['advps_titleLheightL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
485
+ &nbsp;px&nbsp;&nbsp;
486
+ <input type="text" name="advps_titleLheight1" value="<?php if(isset($content['advps_titleLheight1'])){ echo $content['advps_titleLheight1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
487
+ &nbsp;px&nbsp;&nbsp;
488
+ <input type="text" name="advps_titleLheight2" value="<?php if(isset($content['advps_titleLheight2'])){echo $content['advps_titleLheight2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
489
+ &nbsp;px&nbsp;&nbsp;
490
+ <input type="text" name="advps_titleLheight3" value="<?php if(isset($content['advps_titleLheight3'])){echo $content['advps_titleLheight3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
491
+ &nbsp;px&nbsp;&nbsp;
492
+ <input type="text" name="advps_titleLheight4" value="<?php if(isset($content['advps_titleLheight4'])){echo $content['advps_titleLheight4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
493
+ &nbsp;px&nbsp;&nbsp;
494
+ <input type="text" name="advps_titleLheight5" value="<?php if(isset($content['advps_titleLheight5'])){echo $content['advps_titleLheight5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
495
+ &nbsp;px&nbsp;&nbsp; <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Each for different media screen width. Hover the field to know which field is for which width. ]</span></td>
496
  </tr>
497
  <tr>
498
  <th scope="row">Excerpt font color</th>
501
  </tr>
502
  <tr>
503
  <th scope="row">Excerpt font size</th>
504
+ <td><input type="text" name="advps_excptFsizeL" value="<?php if(isset($content['advps_excptFsizeL'])){ echo $content['advps_excptFsizeL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
505
+ &nbsp;px&nbsp;&nbsp;
506
+ <input type="text" name="advps_excptFsize1" value="<?php if(isset($content['advps_excptFsize1'])){ echo $content['advps_excptFsize1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
507
+ &nbsp;px&nbsp;&nbsp;
508
+ <input type="text" name="advps_excptFsize2" value="<?php if(isset($content['advps_excptFsize2'])){echo $content['advps_excptFsize2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
509
+ &nbsp;px&nbsp;&nbsp;
510
+ <input type="text" name="advps_excptFsize3" value="<?php if(isset($content['advps_excptFsize3'])){echo $content['advps_excptFsize3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
511
+ &nbsp;px&nbsp;&nbsp;
512
+ <input type="text" name="advps_excptFsize4" value="<?php if(isset($content['advps_excptFsize4'])){echo $content['advps_excptFsize4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
513
+ &nbsp;px&nbsp;&nbsp;
514
+ <input type="text" name="advps_excptFsize5" value="<?php if(isset($content['advps_excptFsize5'])){echo $content['advps_excptFsize5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
515
+ &nbsp;px&nbsp;&nbsp; </td>
516
  </tr>
517
  <tr>
518
  <th scope="row">Excerpt line height</th>
519
+ <td><input type="text" name="advps_excptLheightL" value="<?php if(isset($content['advps_excptLheightL'])){ echo $content['advps_excptLheightL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
520
+ &nbsp;px&nbsp;&nbsp;
521
+ <input type="text" name="advps_excptLheight1" value="<?php if(isset($content['advps_excptLheight1'])){ echo $content['advps_excptLheight1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
522
+ &nbsp;px&nbsp;&nbsp;
523
+ <input type="text" name="advps_excptLheight2" value="<?php if(isset($content['advps_excptLheight2'])){echo $content['advps_excptLheight2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
524
+ &nbsp;px&nbsp;&nbsp;
525
+ <input type="text" name="advps_excptLheight3" value="<?php if(isset($content['advps_excptLheight3'])){echo $content['advps_excptLheight3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
526
+ &nbsp;px&nbsp;&nbsp;
527
+ <input type="text" name="advps_excptLheight4" value="<?php if(isset($content['advps_excptLheight4'])){echo $content['advps_excptLheight4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
528
+ &nbsp;px&nbsp;&nbsp;
529
+ <input type="text" name="advps_excptLheight5" value="<?php if(isset($content['advps_excptLheight5'])){echo $content['advps_excptLheight5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
530
+ &nbsp;px&nbsp;&nbsp; </td>
531
  </tr>
532
  <tr>
533
  <th scope="row">Excerpt length</th>
556
  </select>
557
  <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>
558
  </tr>
559
+ <tr>
560
+ <th scope="row">Link rel</th>
561
+ <td><select name="advps_link_rel">
562
+ <option value="none" <?php if($content['advps_link_rel'] == 'none'){echo 'selected="selected"';}?>>None</option>
563
+ <option value="alternate" <?php if($content['advps_link_rel'] == 'alternate'){echo 'selected="selected"';}?>>Alternate</option>
564
+ <option value="archives" <?php if($content['advps_link_rel'] == 'archives'){echo 'selected="selected"';}?>>Archives</option>
565
+ <option value="author" <?php if($content['advps_link_rel'] == 'author'){echo 'selected="selected"';}?>>Author</option>
566
+ <option value="bookmark" <?php if($content['advps_link_rel'] == 'bookmark'){echo 'selected="selected"';}?>>Bookmark</option>
567
+ <option value="external" <?php if($content['advps_link_rel'] == 'external'){echo 'selected="selected"';}?>>External</option>
568
+ <option value="first" <?php if($content['advps_link_rel'] == 'first'){echo 'selected="selected"';}?>>First</option>
569
+ <option value="help" <?php if($content['advps_link_rel'] == 'help'){echo 'selected="selected"';}?>>Help</option>
570
+ <option value="icon" <?php if($content['advps_link_rel'] == 'icon'){echo 'selected="selected"';}?>>Icon</option>
571
+ <option value="index" <?php if($content['advps_link_rel'] == 'index'){echo 'selected="selected"';}?>>Index</option>
572
+ <option value="last" <?php if($content['advps_link_rel'] == 'last'){echo 'selected="selected"';}?>>Last</option>
573
+ <option value="license" <?php if($content['advps_link_rel'] == 'license'){echo 'selected="selected"';}?>>License</option>
574
+ <option value="next" <?php if($content['advps_link_rel'] == 'next'){echo 'selected="selected"';}?>>Next</option>
575
+ <option value="nofollow" <?php if($content['advps_link_rel'] == 'nofollow'){echo 'selected="selected"';}?>>Nofollow</option>
576
+ <option value="noreferrer" <?php if($content['advps_link_rel'] == 'noreferrer'){echo 'selected="selected"';}?>>Noreferrer</option>
577
+ <option value="pingback" <?php if($content['advps_link_rel'] == 'pingback'){echo 'selected="selected"';}?>>Pingback</option>
578
+ <option value="prefetch" <?php if($content['advps_link_rel'] == 'prefetch'){echo 'selected="selected"';}?>>Prefetch</option>
579
+ <option value="prev" <?php if($content['advps_link_rel'] == 'prev'){echo 'selected="selected"';}?>>Prev</option>
580
+ </select></td>
581
+ </tr>
582
  <tr>
583
  <th scope="row">link target</th>
584
  <td><select name="advps_link_target">
678
  <!-- </form>-->
679
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
680
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
681
+ <input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />
682
  <p>
683
  <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
684
+ <span style="margin-left:5px;">
685
+ <input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
686
+ </span> </p>
687
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
688
  </form>
689
  </div>
692
  </div>
693
  <?php
694
  }
 
695
  ?>
696
  <div style="position:relative; float:left; width:72%">
697
  <form method="post">
698
  <input type="hidden" name="template" value="one" />
699
+ <input type="hidden" name="nextoptid" id="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
700
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
701
  <input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
702
  </form>
templates/template-three.php CHANGED
@@ -1,8 +1,9 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
3
  ?>
 
4
  <div class="advps-col-right">
5
- <h2>Advanced post slider 2.2.0</h2>
6
  <ul>
7
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
8
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
@@ -12,13 +13,14 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
12
  <h3>Do you like this Plugin?</h3>
13
  <p>I spend lots of free hours to develop, maintain and providing support to this plugin. Any kind of participation will be highly appreciated and real inspiration for me to work more.</p>
14
  <ul>
15
- <li>Write a small blog for Advanced post slider and give link to our site.</li>
16
  <li>Share it to your social media.</li>
17
  <li><a href="http://wordpress.org/support/view/plugin-reviews/advanced-post-slider" target="_blank">Give it a good rating and review</a></li>
18
  <li><a href="http://wordpress.org/plugins/advanced-post-slider/" target="_blank">Vote that it work</a></li>
19
  </ul>
20
  </div>
21
  <?php
 
22
  foreach( $res3 as $dset){
23
  $plist = unserialize($dset->plist);
24
  $query = unserialize($dset->query);
@@ -27,6 +29,8 @@ foreach( $res3 as $dset){
27
  $container = unserialize($dset->container);
28
  $content = unserialize($dset->content);
29
  $navigation = unserialize($dset->navigation);
 
 
30
  ?>
31
  <div class="metabox-holder" style="margin-top:20px;">
32
  <div class="postbox-container" style="width:100%">
@@ -60,7 +64,8 @@ foreach( $res3 as $dset){
60
  <td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">
61
  <option value="plist" <?php if(get_option('advpssmethod'.$dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>
62
  <option value="query" <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>
63
- </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>
 
64
  </tr>
65
  </table>
66
  <form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">
@@ -324,16 +329,51 @@ foreach( $res3 as $dset){
324
  <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
325
  &nbsp;px </td>
326
  </tr>
 
 
 
 
 
 
 
327
  <tr>
328
  <th scope="row">Padding</th>
329
- <td><input type="text" name="advps_contpad1" value="<?php echo $container['advps_contpad1'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
330
- px &nbsp;&nbsp;
331
- <input type="text" name="advps_contpad2" value="<?php echo $container['advps_contpad2'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
332
- px&nbsp;&nbsp;
333
- <input type="text" name="advps_contpad3" value="<?php echo $container['advps_contpad3'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
334
- px&nbsp;&nbsp;
335
- <input type="text" name="advps_contpad4" value="<?php echo $container['advps_contpad4'];?>" style="width:40px;" onkeypress="return onlyNum(event);" />
336
- px&nbsp;&nbsp; </td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  </tr>
338
  <tr>
339
  <th scope="row">Background Color</th>
@@ -433,27 +473,33 @@ foreach( $res3 as $dset){
433
  </tr>
434
  <tr>
435
  <th scope="row">Title font size</th>
436
- <td><input type="text" name="advps_titleFsize" value="<?php echo $content['advps_titleFsize'];?>" style="width:60px;" />
437
- <select name="advps_ttitleFSunit" style="vertical-align:top;">
438
- <option value="vw" <?php if($content['advps_ttitleFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
439
- <option value="vh" <?php if($content['advps_ttitleFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
440
- <option value="%" <?php if($content['advps_ttitleFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
441
- <option value="em" <?php if($content['advps_ttitleFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
442
- <option value="px" <?php if($content['advps_ttitleFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
443
- <option value="pt" <?php if($content['advps_ttitleFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
444
- </select></td>
 
 
 
445
  </tr>
446
  <tr>
447
  <th scope="row">Title line height</th>
448
- <td><input type="text" name="advps_titleLheight" value="<?php echo $content['advps_titleLheight'];?>" style="width:60px;" />
449
- <select name="advps_ttitleLHunit" style="vertical-align:top;">
450
- <option value="vw" <?php if($content['advps_ttitleLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
451
- <option value="vh" <?php if($content['advps_ttitleLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
452
- <option value="%" <?php if($content['advps_ttitleLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
453
- <option value="em" <?php if($content['advps_ttitleLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
454
- <option value="px" <?php if($content['advps_ttitleLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
455
- <option value="pt" <?php if($content['advps_ttitleLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
456
- </select></td>
 
 
 
457
  </tr>
458
  <tr>
459
  <th scope="row">Excerpt/Content font color</th>
@@ -462,27 +508,33 @@ foreach( $res3 as $dset){
462
  </tr>
463
  <tr>
464
  <th scope="row">Excerpt/Content font size</th>
465
- <td><input type="text" name="advps_excptFsize" value="<?php echo $content['advps_excptFsize'];?>" style="width:60px;" />
466
- <select name="advps_excptFSunit" style="vertical-align:top;">
467
- <option value="vw" <?php if($content['advps_excptFSunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
468
- <option value="vh" <?php if($content['advps_excptFSunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
469
- <option value="%" <?php if($content['advps_excptFSunit'] == '%'){echo 'selected="selected"';}?>>%</option>
470
- <option value="em" <?php if($content['advps_excptFSunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
471
- <option value="px" <?php if($content['advps_excptFSunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
472
- <option value="pt" <?php if($content['advps_excptFSunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
473
- </select></td>
 
 
 
474
  </tr>
475
  <tr>
476
  <th scope="row">Excerpt line height</th>
477
- <td><input type="text" name="advps_excptLheight" value="<?php echo $content['advps_excptLheight'];?>" style="width:60px;" />
478
- <select name="advps_excptLHunit" style="vertical-align:top;">
479
- <option value="vw" <?php if($content['advps_excptLHunit'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
480
- <option value="vh" <?php if($content['advps_excptLHunit'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
481
- <option value="%" <?php if($content['advps_excptLHunit'] == '%'){echo 'selected="selected"';}?>>%</option>
482
- <option value="em" <?php if($content['advps_excptLHunit'] == 'em'){echo 'selected="selected"';}?>>em</option>
483
- <option value="px" <?php if($content['advps_excptLHunit'] == 'px'){echo 'selected="selected"';}?>>px</option>
484
- <option value="pt" <?php if($content['advps_excptLHunit'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
485
- </select></td>
 
 
 
486
  </tr>
487
  <tr>
488
  <th scope="row">Excerpt length</th>
@@ -504,6 +556,29 @@ foreach( $res3 as $dset){
504
  </select>
505
  <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>
506
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
507
  <tr>
508
  <th scope="row">link target</th>
509
  <td><select name="advps_link_target">
@@ -546,9 +621,8 @@ foreach( $res3 as $dset){
546
  </tr>
547
  <tr>
548
  <th scope="row">Thumbnail Width</th>
549
- <td>
550
- <input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />&nbsp;%
551
- <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
552
  </tr>
553
  <tr>
554
  <th scope="row">Pager align</th>
@@ -603,9 +677,12 @@ foreach( $res3 as $dset){
603
  </fieldset>
604
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
605
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
 
606
  <p>
607
  <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
608
- </p>
 
 
609
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
610
  </form>
611
  </div>
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
3
  ?>
4
+
5
  <div class="advps-col-right">
6
+ <h2>Advanced post slider 2.3.0</h2>
7
  <ul>
8
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
9
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
13
  <h3>Do you like this Plugin?</h3>
14
  <p>I spend lots of free hours to develop, maintain and providing support to this plugin. Any kind of participation will be highly appreciated and real inspiration for me to work more.</p>
15
  <ul>
16
+ <li>Write a small blog for Advanced post slider and give link to our site.</li>
17
  <li>Share it to your social media.</li>
18
  <li><a href="http://wordpress.org/support/view/plugin-reviews/advanced-post-slider" target="_blank">Give it a good rating and review</a></li>
19
  <li><a href="http://wordpress.org/plugins/advanced-post-slider/" target="_blank">Vote that it work</a></li>
20
  </ul>
21
  </div>
22
  <?php
23
+ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
24
  foreach( $res3 as $dset){
25
  $plist = unserialize($dset->plist);
26
  $query = unserialize($dset->query);
29
  $container = unserialize($dset->container);
30
  $content = unserialize($dset->content);
31
  $navigation = unserialize($dset->navigation);
32
+
33
+ if( !$content['advps_link_rel'] ) $content['advps_link_rel'] = 'none';
34
  ?>
35
  <div class="metabox-holder" style="margin-top:20px;">
36
  <div class="postbox-container" style="width:100%">
64
  <td><select name="advpssmethod<?php echo $dset->id?>" onchange="updateSm(this,<?php echo $dset->id;?>);">
65
  <option value="plist" <?php if(get_option('advpssmethod'.$dset->id) == 'plist'){echo 'selected="selected"';}?>>Post list</option>
66
  <option value="query" <?php if(get_option('advpssmethod'.$dset->id) == 'query'){echo 'selected="selected"';}?>>Query</option>
67
+ </select>
68
+ <span id="smudtsts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
69
  </tr>
70
  </table>
71
  <form method="post" onsubmit="return false" id="plist<?php echo $dset->id;?>">
329
  <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
330
  &nbsp;px </td>
331
  </tr>
332
+ <tr>
333
+ <th scope="row">Center whole slideshow</th>
334
+ <td><select name="advps_centering">
335
+ <option value="no" <?php if($container['advps_centering'] && $container['advps_centering'] == 'no'){echo 'selected="selected"';}?>>No</option>
336
+ <option value="yes" <?php if($container['advps_centering'] && $container['advps_centering'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
337
+ </select></td>
338
+ </tr>
339
  <tr>
340
  <th scope="row">Padding</th>
341
+ <td><input type="text" name="advps_contpad1" value="<?php echo $container['advps_contpad1'];?>" style="width:40px; height:25px;" />
342
+ <select name="advps_padu1" style="vertical-align:top; width:46px; height:25px;">
343
+ <option value="vw" <?php if(isset($content['advps_padu1']) && $content['advps_padu1'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
344
+ <option value="vh" <?php if(isset($content['advps_padu1']) && $content['advps_padu1'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
345
+ <option value="%" <?php if(isset($content['advps_padu1']) && $content['advps_padu1'] == '%'){echo 'selected="selected"';}?>>%</option>
346
+ <option value="em" <?php if(isset($content['advps_padu1']) && $content['advps_padu1'] == 'em'){echo 'selected="selected"';}?>>em</option>
347
+ <option value="px" <?php if(isset($content['advps_padu1']) && $content['advps_padu1'] == 'px'){echo 'selected="selected"';}?>>px</option>
348
+ <option value="pt" <?php if(isset($content['advps_padu1']) && $content['advps_padu1'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
349
+ </select>
350
+ <input type="text" name="advps_contpad2" value="<?php echo $container['advps_contpad2'];?>" style="width:40px; height:25px;" />
351
+ <select name="advps_padu2" style="vertical-align:top;width:46px; height:25px;">
352
+ <option value="vw" <?php if(isset($content['advps_padu2']) && $content['advps_padu2'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
353
+ <option value="vh" <?php if(isset($content['advps_padu2']) && $content['advps_padu2'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
354
+ <option value="%" <?php if(isset($content['advps_padu2']) && $content['advps_padu2'] == '%'){echo 'selected="selected"';}?>>%</option>
355
+ <option value="em" <?php if(isset($content['advps_padu2']) && $content['advps_padu2'] == 'em'){echo 'selected="selected"';}?>>em</option>
356
+ <option value="px" <?php if(isset($content['advps_padu2']) && $content['advps_padu2'] == 'px'){echo 'selected="selected"';}?>>px</option>
357
+ <option value="pt" <?php if(isset($content['advps_padu2']) && $content['advps_padu2'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
358
+ </select>
359
+ <input type="text" name="advps_contpad3" value="<?php echo $container['advps_contpad3'];?>" style="width:40px; height:25px;" />
360
+ <select name="advps_padu3" style="vertical-align:top;width:46px; height:25px;">
361
+ <option value="vw" <?php if(isset($content['advps_padu3']) && $content['advps_padu3'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
362
+ <option value="vh" <?php if(isset($content['advps_padu3']) && $content['advps_padu3'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
363
+ <option value="%" <?php if(isset($content['advps_padu3']) && $content['advps_padu3'] == '%'){echo 'selected="selected"';}?>>%</option>
364
+ <option value="em" <?php if(isset($content['advps_padu3']) && $content['advps_padu3'] == 'em'){echo 'selected="selected"';}?>>em</option>
365
+ <option value="px" <?php if(isset($content['advps_padu3']) && $content['advps_padu3'] == 'px'){echo 'selected="selected"';}?>>px</option>
366
+ <option value="pt" <?php if(isset($content['advps_padu3']) && $content['advps_padu3'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
367
+ </select>
368
+ <input type="text" name="advps_contpad4" value="<?php echo $container['advps_contpad4'];?>" style="width:40px; height:25px;" />
369
+ <select name="advps_padu4" style="vertical-align:top;width:46px; height:25px;">
370
+ <option value="vw" <?php if(isset($content['advps_padu4']) && $content['advps_padu4'] == 'vw'){echo 'selected="selected"';}?>>vw</option>
371
+ <option value="vh" <?php if(isset($content['advps_padu4']) && $content['advps_padu4'] == 'vh'){echo 'selected="selected"';}?>>vh</option>
372
+ <option value="%" <?php if(isset($content['advps_padu4']) && $content['advps_padu4'] == '%'){echo 'selected="selected"';}?>>%</option>
373
+ <option value="em" <?php if(isset($content['advps_padu4']) && $content['advps_padu4'] == 'em'){echo 'selected="selected"';}?>>em</option>
374
+ <option value="px" <?php if(isset($content['advps_padu4']) && $content['advps_padu4'] == 'px'){echo 'selected="selected"';}?>>px</option>
375
+ <option value="pt" <?php if(isset($content['advps_padu4']) && $content['advps_padu4'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
376
+ </select></td>
377
  </tr>
378
  <tr>
379
  <th scope="row">Background Color</th>
473
  </tr>
474
  <tr>
475
  <th scope="row">Title font size</th>
476
+ <td><input type="text" name="advps_titleFsizeL" value="<?php if(isset($content['advps_titleFsizeL'])){ echo $content['advps_titleFsizeL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
477
+ &nbsp;px&nbsp;&nbsp;
478
+ <input type="text" name="advps_titleFsize1" value="<?php if(isset($content['advps_titleFsize1'])){ echo $content['advps_titleFsize1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
479
+ &nbsp;px&nbsp;&nbsp;
480
+ <input type="text" name="advps_titleFsize2" value="<?php if(isset($content['advps_titleFsize2'])){echo $content['advps_titleFsize2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
481
+ &nbsp;px&nbsp;&nbsp;
482
+ <input type="text" name="advps_titleFsize3" value="<?php if(isset($content['advps_titleFsize3'])){echo $content['advps_titleFsize3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
483
+ &nbsp;px&nbsp;&nbsp;
484
+ <input type="text" name="advps_titleFsize4" value="<?php if(isset($content['advps_titleFsize4'])){echo $content['advps_titleFsize4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
485
+ &nbsp;px&nbsp;&nbsp;
486
+ <input type="text" name="advps_titleFsize5" value="<?php if(isset($content['advps_titleFsize5'])){echo $content['advps_titleFsize5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
487
+ &nbsp;px&nbsp;&nbsp; <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Different sizes for different media screen width. Hover the field to know which field is for which width. ]</span></td>
488
  </tr>
489
  <tr>
490
  <th scope="row">Title line height</th>
491
+ <td><input type="text" name="advps_titleLheightL" value="<?php if(isset($content['advps_titleLheightL'])){ echo $content['advps_titleLheightL'];}else{echo 20;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
492
+ &nbsp;px&nbsp;&nbsp;
493
+ <input type="text" name="advps_titleLheight1" value="<?php if(isset($content['advps_titleLheight1'])){ echo $content['advps_titleLheight1'];}else{echo 18;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
494
+ &nbsp;px&nbsp;&nbsp;
495
+ <input type="text" name="advps_titleLheight2" value="<?php if(isset($content['advps_titleLheight2'])){echo $content['advps_titleLheight2'];}else{echo 16;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
496
+ &nbsp;px&nbsp;&nbsp;
497
+ <input type="text" name="advps_titleLheight3" value="<?php if(isset($content['advps_titleLheight3'])){echo $content['advps_titleLheight3'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
498
+ &nbsp;px&nbsp;&nbsp;
499
+ <input type="text" name="advps_titleLheight4" value="<?php if(isset($content['advps_titleLheight4'])){echo $content['advps_titleLheight4'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
500
+ &nbsp;px&nbsp;&nbsp;
501
+ <input type="text" name="advps_titleLheight5" value="<?php if(isset($content['advps_titleLheight5'])){echo $content['advps_titleLheight5'];}else{echo 15;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
502
+ &nbsp;px&nbsp;&nbsp; <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. Each for different media screen width. Hover the field to know which field is for which width. ]</span></td>
503
  </tr>
504
  <tr>
505
  <th scope="row">Excerpt/Content font color</th>
508
  </tr>
509
  <tr>
510
  <th scope="row">Excerpt/Content font size</th>
511
+ <td><input type="text" name="advps_excptFsizeL" value="<?php if(isset($content['advps_excptFsizeL'])){ echo $content['advps_excptFsizeL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
512
+ &nbsp;px&nbsp;&nbsp;
513
+ <input type="text" name="advps_excptFsize1" value="<?php if(isset($content['advps_excptFsize1'])){ echo $content['advps_excptFsize1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
514
+ &nbsp;px&nbsp;&nbsp;
515
+ <input type="text" name="advps_excptFsize2" value="<?php if(isset($content['advps_excptFsize2'])){echo $content['advps_excptFsize2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
516
+ &nbsp;px&nbsp;&nbsp;
517
+ <input type="text" name="advps_excptFsize3" value="<?php if(isset($content['advps_excptFsize3'])){echo $content['advps_excptFsize3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
518
+ &nbsp;px&nbsp;&nbsp;
519
+ <input type="text" name="advps_excptFsize4" value="<?php if(isset($content['advps_excptFsize4'])){echo $content['advps_excptFsize4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
520
+ &nbsp;px&nbsp;&nbsp;
521
+ <input type="text" name="advps_excptFsize5" value="<?php if(isset($content['advps_excptFsize5'])){echo $content['advps_excptFsize5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
522
+ &nbsp;px&nbsp;&nbsp; </td>
523
  </tr>
524
  <tr>
525
  <th scope="row">Excerpt line height</th>
526
+ <td><input type="text" name="advps_excptLheightL" value="<?php if(isset($content['advps_excptLheightL'])){ echo $content['advps_excptLheightL'];}else{echo 14;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For desktop, laptop and larger width device." />
527
+ &nbsp;px&nbsp;&nbsp;
528
+ <input type="text" name="advps_excptLheight1" value="<?php if(isset($content['advps_excptLheight1'])){ echo $content['advps_excptLheight1'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 1024" />
529
+ &nbsp;px&nbsp;&nbsp;
530
+ <input type="text" name="advps_excptLheight2" value="<?php if(isset($content['advps_excptLheight2'])){echo $content['advps_excptLheight2'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 768" />
531
+ &nbsp;px&nbsp;&nbsp;
532
+ <input type="text" name="advps_excptLheight3" value="<?php if(isset($content['advps_excptLheight3'])){echo $content['advps_excptLheight3'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 650" />
533
+ &nbsp;px&nbsp;&nbsp;
534
+ <input type="text" name="advps_excptLheight4" value="<?php if(isset($content['advps_excptLheight4'])){echo $content['advps_excptLheight4'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 480" />
535
+ &nbsp;px&nbsp;&nbsp;
536
+ <input type="text" name="advps_excptLheight5" value="<?php if(isset($content['advps_excptLheight5'])){echo $content['advps_excptLheight5'];}else{echo 12;}?>" style="width:40px;" onkeypress="return onlyNum(event);" title="For media screen smaller than 320" />
537
+ &nbsp;px&nbsp;&nbsp; </td>
538
  </tr>
539
  <tr>
540
  <th scope="row">Excerpt length</th>
556
  </select>
557
  <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>
558
  </tr>
559
+ <tr>
560
+ <th scope="row">Link rel</th>
561
+ <td><select name="advps_link_rel">
562
+ <option value="none" <?php if($content['advps_link_rel'] == 'none'){echo 'selected="selected"';}?>>None</option>
563
+ <option value="alternate" <?php if($content['advps_link_rel'] == 'alternate'){echo 'selected="selected"';}?>>Alternate</option>
564
+ <option value="archives" <?php if($content['advps_link_rel'] == 'archives'){echo 'selected="selected"';}?>>Archives</option>
565
+ <option value="author" <?php if($content['advps_link_rel'] == 'author'){echo 'selected="selected"';}?>>Author</option>
566
+ <option value="bookmark" <?php if($content['advps_link_rel'] == 'bookmark'){echo 'selected="selected"';}?>>Bookmark</option>
567
+ <option value="external" <?php if($content['advps_link_rel'] == 'external'){echo 'selected="selected"';}?>>External</option>
568
+ <option value="first" <?php if($content['advps_link_rel'] == 'first'){echo 'selected="selected"';}?>>First</option>
569
+ <option value="help" <?php if($content['advps_link_rel'] == 'help'){echo 'selected="selected"';}?>>Help</option>
570
+ <option value="icon" <?php if($content['advps_link_rel'] == 'icon'){echo 'selected="selected"';}?>>Icon</option>
571
+ <option value="index" <?php if($content['advps_link_rel'] == 'index'){echo 'selected="selected"';}?>>Index</option>
572
+ <option value="last" <?php if($content['advps_link_rel'] == 'last'){echo 'selected="selected"';}?>>Last</option>
573
+ <option value="license" <?php if($content['advps_link_rel'] == 'license'){echo 'selected="selected"';}?>>License</option>
574
+ <option value="next" <?php if($content['advps_link_rel'] == 'next'){echo 'selected="selected"';}?>>Next</option>
575
+ <option value="nofollow" <?php if($content['advps_link_rel'] == 'nofollow'){echo 'selected="selected"';}?>>Nofollow</option>
576
+ <option value="noreferrer" <?php if($content['advps_link_rel'] == 'noreferrer'){echo 'selected="selected"';}?>>Noreferrer</option>
577
+ <option value="pingback" <?php if($content['advps_link_rel'] == 'pingback'){echo 'selected="selected"';}?>>Pingback</option>
578
+ <option value="prefetch" <?php if($content['advps_link_rel'] == 'prefetch'){echo 'selected="selected"';}?>>Prefetch</option>
579
+ <option value="prev" <?php if($content['advps_link_rel'] == 'prev'){echo 'selected="selected"';}?>>Prev</option>
580
+ </select></td>
581
+ </tr>
582
  <tr>
583
  <th scope="row">link target</th>
584
  <td><select name="advps_link_target">
621
  </tr>
622
  <tr>
623
  <th scope="row">Thumbnail Width</th>
624
+ <td><input type="text" name="advps_pthumb_width" value="<?php echo $navigation['advps_pthumb_width'];?>" style="width:50px;" onkeypress="return onlyNum(event);" />
625
+ &nbsp;% <span style="padding-left:10px; font-size:10px; font-style:italic;">[ N.B. For pager type thumbnail. ]</span></td>
 
626
  </tr>
627
  <tr>
628
  <th scope="row">Pager align</th>
677
  </fieldset>
678
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
679
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
680
+ <input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />
681
  <p>
682
  <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
683
+ <span style="margin-left:5px;">
684
+ <input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
685
+ </span> </p>
686
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
687
  </form>
688
  </div>
templates/template-two.php CHANGED
@@ -2,7 +2,7 @@
2
  if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
3
  ?>
4
  <div class="advps-col-right">
5
- <h2>Advanced post slider 2.2.0</h2>
6
  <ul>
7
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
8
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
@@ -19,6 +19,7 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
19
  </ul>
20
  </div>
21
  <?php
 
22
  foreach( $res2 as $dset){
23
  $plist = unserialize($dset->plist);
24
  $query = unserialize($dset->query);
@@ -26,6 +27,8 @@ foreach( $res2 as $dset){
26
  $caro_ticker = unserialize($dset->caro_ticker);
27
  $container = unserialize($dset->container);
28
  $navigation = unserialize($dset->navigation);
 
 
29
 
30
  ?>
31
  <div class="metabox-holder" style="margin-top:20px;">
@@ -326,6 +329,13 @@ foreach( $res2 as $dset){
326
  <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
327
  &nbsp;px</td>
328
  </tr>
 
 
 
 
 
 
 
329
  <tr>
330
  <th scope="row">Background Color</th>
331
  <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;" />
@@ -389,6 +399,29 @@ foreach( $res2 as $dset){
389
  </select>
390
  <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>
391
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
392
  <tr>
393
  <th scope="row">link target</th>
394
  <td><select name="advps_link_target">
@@ -488,8 +521,10 @@ foreach( $res2 as $dset){
488
  </fieldset>
489
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
490
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
 
491
  <p>
492
  <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
 
493
  </p>
494
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
495
  </form>
2
  if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
3
  ?>
4
  <div class="advps-col-right">
5
+ <h2>Advanced post slider 2.3.0</h2>
6
  <ul>
7
  <li><a href="http://www.wpcue.com/wordpress-plugins/advanced-post-slider/" target="_blank">Plugin Homepage</a></li>
8
  <li><a href="http://www.wpcue.com/support/forum/advanced-post-slider/" target="_blank">Help / Support</a></li>
19
  </ul>
20
  </div>
21
  <?php
22
+ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."advps_optionset'");
23
  foreach( $res2 as $dset){
24
  $plist = unserialize($dset->plist);
25
  $query = unserialize($dset->query);
27
  $caro_ticker = unserialize($dset->caro_ticker);
28
  $container = unserialize($dset->container);
29
  $navigation = unserialize($dset->navigation);
30
+
31
+ if( !$container['advps_link_rel'] ) $container['advps_link_rel'] = 'none';
32
 
33
  ?>
34
  <div class="metabox-holder" style="margin-top:20px;">
329
  <td><input type="text" name="advps_sld_width" value="<?php echo $container['advps_sld_width'];?>" style="width:45px;" onkeypress="return onlyNum(event);" />
330
  &nbsp;px</td>
331
  </tr>
332
+ <tr>
333
+ <th scope="row">Center whole slideshow</th>
334
+ <td><select name="advps_centering">
335
+ <option value="no" <?php if($container['advps_centering'] && $container['advps_centering'] == 'no'){echo 'selected="selected"';}?>>No</option>
336
+ <option value="yes" <?php if($container['advps_centering'] && $container['advps_centering'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
337
+ </select></td>
338
+ </tr>
339
  <tr>
340
  <th scope="row">Background Color</th>
341
  <td><input id="advpscolor<?php echo ++$flg?>" class="advps-color-picker" type="text" name="advps_bgcolor" value="<?php echo $container['advps_bgcolor'];?>" style="width:100px;" />
399
  </select>
400
  <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>
401
  </tr>
402
+ <tr>
403
+ <th scope="row">Link rel</th>
404
+ <td><select name="advps_link_rel">
405
+ <option value="none" <?php if($container['advps_link_rel'] == 'none'){echo 'selected="selected"';}?>>None</option>
406
+ <option value="alternate" <?php if($container['advps_link_rel'] == 'alternate'){echo 'selected="selected"';}?>>Alternate</option>
407
+ <option value="archives" <?php if($container['advps_link_rel'] == 'archives'){echo 'selected="selected"';}?>>Archives</option>
408
+ <option value="author" <?php if($container['advps_link_rel'] == 'author'){echo 'selected="selected"';}?>>Author</option>
409
+ <option value="bookmark" <?php if($container['advps_link_rel'] == 'bookmark'){echo 'selected="selected"';}?>>Bookmark</option>
410
+ <option value="external" <?php if($container['advps_link_rel'] == 'external'){echo 'selected="selected"';}?>>External</option>
411
+ <option value="first" <?php if($container['advps_link_rel'] == 'first'){echo 'selected="selected"';}?>>First</option>
412
+ <option value="help" <?php if($container['advps_link_rel'] == 'help'){echo 'selected="selected"';}?>>Help</option>
413
+ <option value="icon" <?php if($container['advps_link_rel'] == 'icon'){echo 'selected="selected"';}?>>Icon</option>
414
+ <option value="index" <?php if($container['advps_link_rel'] == 'index'){echo 'selected="selected"';}?>>Index</option>
415
+ <option value="last" <?php if($container['advps_link_rel'] == 'last'){echo 'selected="selected"';}?>>Last</option>
416
+ <option value="license" <?php if($container['advps_link_rel'] == 'license'){echo 'selected="selected"';}?>>License</option>
417
+ <option value="next" <?php if($container['advps_link_rel'] == 'next'){echo 'selected="selected"';}?>>Next</option>
418
+ <option value="nofollow" <?php if($container['advps_link_rel'] == 'nofollow'){echo 'selected="selected"';}?>>Nofollow</option>
419
+ <option value="noreferrer" <?php if($container['advps_link_rel'] == 'noreferrer'){echo 'selected="selected"';}?>>Noreferrer</option>
420
+ <option value="pingback" <?php if($container['advps_link_rel'] == 'pingback'){echo 'selected="selected"';}?>>Pingback</option>
421
+ <option value="prefetch" <?php if($container['advps_link_rel'] == 'prefetch'){echo 'selected="selected"';}?>>Prefetch</option>
422
+ <option value="prev" <?php if($container['advps_link_rel'] == 'prev'){echo 'selected="selected"';}?>>Prev</option>
423
+ </select></td>
424
+ </tr>
425
  <tr>
426
  <th scope="row">link target</th>
427
  <td><select name="advps_link_target">
521
  </fieldset>
522
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
523
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
524
+ <input type="hidden" value="<?php echo $tcount[0]->Auto_increment;?>" name="nextoptid" />
525
  <p>
526
  <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
527
+ <span style="margin-left:5px;"><input type="submit" name="dup-optset" value="Duplicate" class="button-secondary" onclick="duplicateOptSet(<?php echo $dset->id;?>)" style="width:12%;" /></span>
528
  </p>
529
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
530
  </form>