Version Description
Download this release
Release Info
Developer | digontoahsan |
Plugin | Advanced post slider |
Version | 2.3.2 |
Comparing to | |
See all releases |
Code changes from version 2.3.1 to 2.3.2
- advanced-post-slider.php +14 -8
- advps-admin.php +1 -1
- readme.txt +1 -1
- templates/template-one.php +4 -4
- templates/template-three.php +9 -5
- templates/template-two.php +4 -4
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.3.
|
7 |
Author: digontoahsan
|
8 |
Author URI: www.wpcue.com
|
9 |
License: GPL2
|
@@ -552,13 +552,13 @@
|
|
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']."'");
|
@@ -584,7 +584,7 @@
|
|
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,7 +592,7 @@
|
|
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']."'");
|
@@ -615,10 +615,16 @@
|
|
615 |
?>
|
616 |
<?php if( $container['advps_ed_link']=='enable'){?></a><?php }?>
|
617 |
</div>
|
618 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
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']."'");
|
@@ -641,7 +647,7 @@
|
|
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'])){
|
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.2
|
7 |
Author: digontoahsan
|
8 |
Author URI: www.wpcue.com
|
9 |
License: GPL2
|
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(isset($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(isset($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']."'");
|
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(isset($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(isset($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']."'");
|
615 |
?>
|
616 |
<?php if( $container['advps_ed_link']=='enable'){?></a><?php }?>
|
617 |
</div>
|
618 |
+
<?php
|
619 |
+
elseif($template == 'three'):
|
620 |
+
if(!isset($container['advps_padu1'])) $container['advps_padu1'] = 'px';
|
621 |
+
if(!isset($container['advps_padu2'])) $container['advps_padu2'] = 'px';
|
622 |
+
if(!isset($container['advps_padu3'])) $container['advps_padu3'] = 'px';
|
623 |
+
if(!isset($container['advps_padu4'])) $container['advps_padu4'] = 'px';
|
624 |
+
?>
|
625 |
<div class="advps-slide">
|
626 |
<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'];?>;">
|
627 |
+
<?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(isset($content['advps_link_rel']) && $content['advps_link_rel'] != 'none'){?>rel="<?php echo $content['advps_link_rel'];?>"<?php }?>><?php }?>
|
628 |
<?php
|
629 |
if(has_post_thumbnail()){
|
630 |
$advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
|
647 |
?>
|
648 |
<?php if( $content['advps_ed_link']=='enable'){?></a><?php }endif;?>
|
649 |
<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'];?>;">
|
650 |
+
<?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(isset($content['advps_link_rel']) && $content['advps_link_rel'] != 'none'){?>rel="<?php echo $content['advps_link_rel'];?>"<?php }?>><?php }?>
|
651 |
<?php the_title();?>
|
652 |
<?php if( $content['advps_ed_link']=='enable'){?></a><?php }?></<?php echo $content['advps_ttitle_tag'];?>><?php }?>
|
653 |
<?php if(in_array('content',$content['advps_content_set'])){
|
advps-admin.php
CHANGED
@@ -248,7 +248,7 @@ fieldset {
|
|
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.
|
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>
|
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.2"></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>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
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.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
templates/template-one.php
CHANGED
@@ -3,7 +3,7 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
-
<h2>Advanced post slider 2.3.
|
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>
|
@@ -30,7 +30,7 @@ foreach( $res1 as $dset){
|
|
30 |
$content = unserialize($dset->content);
|
31 |
$navigation = unserialize($dset->navigation);
|
32 |
|
33 |
-
if(
|
34 |
?>
|
35 |
<div class="metabox-holder" style="margin-top:20px;">
|
36 |
<div class="postbox-container" style="width:100%">
|
@@ -332,8 +332,8 @@ foreach( $res1 as $dset){
|
|
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>
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
+
<h2>Advanced post slider 2.3.2</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>
|
30 |
$content = unserialize($dset->content);
|
31 |
$navigation = unserialize($dset->navigation);
|
32 |
|
33 |
+
if( !isset($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%">
|
332 |
<tr>
|
333 |
<th scope="row">Center whole slideshow</th>
|
334 |
<td><select name="advps_centering">
|
335 |
+
<option value="no" <?php if(isset($container['advps_centering']) && $container['advps_centering'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
336 |
+
<option value="yes" <?php if(isset($container['advps_centering']) && $container['advps_centering'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
337 |
</select></td>
|
338 |
</tr>
|
339 |
<tr>
|
templates/template-three.php
CHANGED
@@ -3,7 +3,7 @@ if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
-
<h2>Advanced post slider 2.3.
|
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>
|
@@ -30,7 +30,11 @@ foreach( $res3 as $dset){
|
|
30 |
$content = unserialize($dset->content);
|
31 |
$navigation = unserialize($dset->navigation);
|
32 |
|
33 |
-
if(
|
|
|
|
|
|
|
|
|
34 |
?>
|
35 |
<div class="metabox-holder" style="margin-top:20px;">
|
36 |
<div class="postbox-container" style="width:100%">
|
@@ -332,8 +336,8 @@ foreach( $res3 as $dset){
|
|
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>
|
@@ -345,7 +349,7 @@ foreach( $res3 as $dset){
|
|
345 |
<option value="%" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == '%'){echo 'selected="selected"';}?>>%</option>
|
346 |
<option value="em" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
347 |
<option value="px" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
348 |
-
<option value="pt" <?php if(isset($container['advps_padu1']) && $
|
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;">
|
3 |
?>
|
4 |
|
5 |
<div class="advps-col-right">
|
6 |
+
<h2>Advanced post slider 2.3.2</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>
|
30 |
$content = unserialize($dset->content);
|
31 |
$navigation = unserialize($dset->navigation);
|
32 |
|
33 |
+
if( !isset( $content['advps_link_rel'] )) $content['advps_link_rel'] = 'none';
|
34 |
+
if(!isset($container['advps_padu1'])) $container['advps_padu1'] = 'px';
|
35 |
+
if(!isset($container['advps_padu2'])) $container['advps_padu2'] = 'px';
|
36 |
+
if(!isset($container['advps_padu3'])) $container['advps_padu3'] = 'px';
|
37 |
+
if(!isset($container['advps_padu4'])) $container['advps_padu4'] = 'px';
|
38 |
?>
|
39 |
<div class="metabox-holder" style="margin-top:20px;">
|
40 |
<div class="postbox-container" style="width:100%">
|
336 |
<tr>
|
337 |
<th scope="row">Center whole slideshow</th>
|
338 |
<td><select name="advps_centering">
|
339 |
+
<option value="no" <?php if(isset($container['advps_centering']) && $container['advps_centering'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
340 |
+
<option value="yes" <?php if(isset($container['advps_centering']) && $container['advps_centering'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
341 |
</select></td>
|
342 |
</tr>
|
343 |
<tr>
|
349 |
<option value="%" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == '%'){echo 'selected="selected"';}?>>%</option>
|
350 |
<option value="em" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'em'){echo 'selected="selected"';}?>>em</option>
|
351 |
<option value="px" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'px'){echo 'selected="selected"';}?>>px</option>
|
352 |
+
<option value="pt" <?php if(isset($container['advps_padu1']) && $container['advps_padu1'] == 'pt'){echo 'selected="selected"';}?>>pt</option>
|
353 |
</select>
|
354 |
<input type="text" name="advps_contpad2" value="<?php echo $container['advps_contpad2'];?>" style="width:40px; height:25px;" />
|
355 |
<select name="advps_padu2" style="vertical-align:top;width:46px; height:25px;">
|
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.3.
|
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>
|
@@ -28,7 +28,7 @@ foreach( $res2 as $dset){
|
|
28 |
$container = unserialize($dset->container);
|
29 |
$navigation = unserialize($dset->navigation);
|
30 |
|
31 |
-
if(
|
32 |
|
33 |
?>
|
34 |
<div class="metabox-holder" style="margin-top:20px;">
|
@@ -332,8 +332,8 @@ foreach( $res2 as $dset){
|
|
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>
|
2 |
if ( ! defined( 'ABSPATH' ) || ! current_user_can( 'manage_options' ) ) exit;
|
3 |
?>
|
4 |
<div class="advps-col-right">
|
5 |
+
<h2>Advanced post slider 2.3.2</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>
|
28 |
$container = unserialize($dset->container);
|
29 |
$navigation = unserialize($dset->navigation);
|
30 |
|
31 |
+
if( !isset( $container['advps_link_rel'] )) $container['advps_link_rel'] = 'none';
|
32 |
|
33 |
?>
|
34 |
<div class="metabox-holder" style="margin-top:20px;">
|
332 |
<tr>
|
333 |
<th scope="row">Center whole slideshow</th>
|
334 |
<td><select name="advps_centering">
|
335 |
+
<option value="no" <?php if(isset($container['advps_centering']) && $container['advps_centering'] == 'no'){echo 'selected="selected"';}?>>No</option>
|
336 |
+
<option value="yes" <?php if(isset($container['advps_centering']) && $container['advps_centering'] == 'yes'){echo 'selected="selected"';}?>>Yes</option>
|
337 |
</select></td>
|
338 |
</tr>
|
339 |
<tr>
|