Advanced post slider - Version 1.2.1

Version Description

  • Option for set default image at template one. If there is no featured image for a post then it will be shown.

=

Download this release

Release Info

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

Code changes from version 1.2 to 1.2.1

Files changed (3) hide show
  1. advanced-post-slider.php +10 -3
  2. advps-admin.php +10 -0
  3. readme.txt +4 -1
advanced-post-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced post slider
4
  Plugin URI: www.wpcue.com
5
  Description: Advanced post slider is a slideshow plugin powered with three built-in templates, lots of effect, easy customizable options and many more to explore.
6
- Version: 1.2
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
@@ -53,6 +53,7 @@
53
 
54
  $templateOneDefaultOptions = array(
55
  "advps_thumbnail" => "advps_thumbnail_one",
 
56
  "advps_sld_width" => "820",
57
  "advps_sld_height" => "270",
58
  "advps_contpad1" => "10",
@@ -476,13 +477,19 @@
476
  $th_height = $th_metadata['sizes'][$optset['advps_thumbnail']]['height'];
477
  }
478
  }
 
 
 
 
 
479
  ?>
480
  <div class="advps-slide" style="width:<?php if(isset($th_width)){echo $th_width;}?>px; height:<?php if(isset($th_height)){echo $th_height;}?>px;">
481
  <?php if( $optset['advps_ed_link']=='enable'){?><a target="<?php echo $optset['advps_link_target'];?>" href="<?php if($optset['advps_link_type'] == 'permalink'){the_permalink();}else{echo get_post_meta($post->ID,'advps_custom_link',true);}?>"><?php }?>
482
  <?php
483
- if(has_post_thumbnail()){the_post_thumbnail($optset['advps_thumbnail']);}
484
  ?>
485
- <?php if( $optset['advps_ed_link']=='enable'){?></a><?php }?>
 
486
 
487
  <div class="advps-excerpt-<?php echo $template?>" style="width:<?php echo $optset['advps_overlay_width'];?>%;height:<?php echo $optset['advps_overlay_height'];?>%;<?php if($optset['advps_excpt_visibility'] == 'show on hover'){?>display:none;<?php }if($optset['advps_excpt_position'] == 'left'){?>top:0; left:0;<?php }elseif($optset['advps_excpt_position'] == 'right'){?>top:0; right:0;<?php }elseif($optset['advps_excpt_position'] == 'bottom'){?>bottom:0; left:0;<?php }?>">
488
  <div class="advps-overlay-<?php echo $template?>" style="background-color:<?php echo $optset['advps_overlay_color'];?>; -moz-opacity:<?php echo $optset['advps_overlay_opacity'];?>;filter:alpha(opacity=<?php echo $optset['advps_overlay_opacity']*100;?>);opacity:<?php echo $optset['advps_overlay_opacity'];?>;"></div>
3
  Plugin Name: Advanced post slider
4
  Plugin URI: www.wpcue.com
5
  Description: Advanced post slider is a slideshow plugin powered with three built-in templates, lots of effect, easy customizable options and many more to explore.
6
+ Version: 1.2.1
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
53
 
54
  $templateOneDefaultOptions = array(
55
  "advps_thumbnail" => "advps_thumbnail_one",
56
+ "advps_default_image" => "",
57
  "advps_sld_width" => "820",
58
  "advps_sld_height" => "270",
59
  "advps_contpad1" => "10",
477
  $th_height = $th_metadata['sizes'][$optset['advps_thumbnail']]['height'];
478
  }
479
  }
480
+ else
481
+ {
482
+ $th_width = $optset['advps_sld_width'] - ($optset['advps_contpad2']+$optset['advps_contpad4']);
483
+ $th_height = $optset['advps_sld_height'] - ($optset['advps_contpad1']+$optset['advps_contpad3']);
484
+ }
485
  ?>
486
  <div class="advps-slide" style="width:<?php if(isset($th_width)){echo $th_width;}?>px; height:<?php if(isset($th_height)){echo $th_height;}?>px;">
487
  <?php if( $optset['advps_ed_link']=='enable'){?><a target="<?php echo $optset['advps_link_target'];?>" href="<?php if($optset['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()){the_post_thumbnail($optset['advps_thumbnail']);}else{
490
  ?>
491
+ <img src="<?php echo $optset['advps_default_image'];?>" style="width:<?php echo $th_width;?>px;height:<?php echo $th_height;?>px;" class="wp-post-image" />
492
+ <?php }if( $optset['advps_ed_link']=='enable'){?></a><?php }?>
493
 
494
  <div class="advps-excerpt-<?php echo $template?>" style="width:<?php echo $optset['advps_overlay_width'];?>%;height:<?php echo $optset['advps_overlay_height'];?>%;<?php if($optset['advps_excpt_visibility'] == 'show on hover'){?>display:none;<?php }if($optset['advps_excpt_position'] == 'left'){?>top:0; left:0;<?php }elseif($optset['advps_excpt_position'] == 'right'){?>top:0; right:0;<?php }elseif($optset['advps_excpt_position'] == 'bottom'){?>bottom:0; left:0;<?php }?>">
495
  <div class="advps-overlay-<?php echo $template?>" style="background-color:<?php echo $optset['advps_overlay_color'];?>; -moz-opacity:<?php echo $optset['advps_overlay_opacity'];?>;filter:alpha(opacity=<?php echo $optset['advps_overlay_opacity']*100;?>);opacity:<?php echo $optset['advps_overlay_opacity'];?>;"></div>
advps-admin.php CHANGED
@@ -354,6 +354,11 @@ fieldset {
354
  ?>
355
  </select></td>
356
  </tr>
 
 
 
 
 
357
  <tr>
358
  <th scope="row">Slide Container</th>
359
  <td>Width&nbsp;
@@ -764,6 +769,11 @@ fieldset {
764
  ?>
765
  </select></td>
766
  </tr>
 
 
 
 
 
767
  <tr>
768
  <th scope="row">Slide Container</th>
769
  <td>Width&nbsp;
354
  ?>
355
  </select></td>
356
  </tr>
357
+ <tr>
358
+ <th scope="row">Default image url</th>
359
+ <td><input type="text" name="advps_default_image" value="<?php echo $dataSet['advps_default_image'];?>" style="width:250px;" />
360
+ <span style="padding-left:10px; font-size:10px; font-style:italic;"> [ N.B. If any post doesn't have featured image then default image will be shown.]</span></td>
361
+ </tr>
362
  <tr>
363
  <th scope="row">Slide Container</th>
364
  <td>Width&nbsp;
769
  ?>
770
  </select></td>
771
  </tr>
772
+ <tr>
773
+ <th scope="row">Default image url</th>
774
+ <td><input type="text" name="advps_default_image" value="" style="width:250px;" />
775
+ <span style="padding-left:10px; font-size:10px; font-style:italic;"> [ N.B. If any post doesn't have featured image then default image will be shown.]</span></td>
776
+ </tr>
777
  <tr>
778
  <th scope="row">Slide Container</th>
779
  <td>Width&nbsp;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: post slider, slider, slideshow, logo scroller, testimonial scroller, banner rotator, recent post slider, sidebar slideshow, posts, post, image, image slideshow
5
  Requires at least: 3.0.1
6
  Tested up to: 3.8.1
7
- Stable tag: 1.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,6 +82,9 @@ Dont have any FAQ for now.
82
  = 1.2 =
83
  * Fix for exclude option
84
 
 
 
 
85
  == Upgrade Notice ==
86
  * Current version
87
 
4
  Tags: post slider, slider, slideshow, logo scroller, testimonial scroller, banner rotator, recent post slider, sidebar slideshow, posts, post, image, image slideshow
5
  Requires at least: 3.0.1
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.2.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
  = 1.2 =
83
  * Fix for exclude option
84
 
85
+ = 1.2.1 =
86
+ * Option for set default image at template one. If there is no featured image for a post then it will be shown.
87
+
88
  == Upgrade Notice ==
89
  * Current version
90