Advanced post slider - Version 2.1.4

Version Description

  • Small change for Advanced post slider built-in image resizing functionality.

=

Download this release

Release Info

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

Code changes from version 2.1.3 to 2.1.4

Files changed (2) hide show
  1. advanced-post-slider.php +10 -10
  2. 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: Responsive slideshow plugin powered with three built-in templates, lots of easy customizable options and many more to explore.
6
- Version: 2.1.3
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
@@ -482,8 +482,8 @@
482
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
483
  if($advps_custom_thumb){
484
  $thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
485
- $advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop);
486
- echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="'.get_the_title().'"/>';
487
  }
488
  else
489
  {
@@ -493,7 +493,7 @@
493
  elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
494
  {
495
  ?>
496
- <img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" />
497
  <?php
498
  }
499
  ?>
@@ -516,8 +516,8 @@
516
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
517
  if($advps_custom_thumb){
518
  $thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
519
- $advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop);
520
- echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="'.get_the_title().'"/>';
521
  }
522
  else
523
  {
@@ -527,7 +527,7 @@
527
  elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
528
  {
529
  ?>
530
- <img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" />
531
  <?php
532
  }
533
  ?>
@@ -542,8 +542,8 @@
542
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
543
  if($advps_custom_thumb){
544
  $thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
545
- $advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop);
546
- echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="'.get_the_title().'"/>';
547
  }
548
  else
549
  {
@@ -553,7 +553,7 @@
553
  elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
554
  {
555
  ?>
556
- <img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" />
557
  <?php
558
  }
559
  ?>
3
  Plugin Name: Advanced post slider
4
  Plugin URI: www.wpcue.com
5
  Description: Responsive slideshow plugin powered with three built-in templates, lots of easy customizable options and many more to explore.
6
+ Version: 2.1.4
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
482
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
483
  if($advps_custom_thumb){
484
  $thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
485
+ $advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop,true,true);
486
+ echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="'.get_the_title().'" />';
487
  }
488
  else
489
  {
493
  elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
494
  {
495
  ?>
496
+ <img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" alt="<?php the_title();?>" />
497
  <?php
498
  }
499
  ?>
516
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
517
  if($advps_custom_thumb){
518
  $thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
519
+ $advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop,true,true);
520
+ echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="'.get_the_title().'" />';
521
  }
522
  else
523
  {
527
  elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
528
  {
529
  ?>
530
+ <img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" alt="<?php the_title();?>" />
531
  <?php
532
  }
533
  ?>
542
  $advps_custom_thumb = $wpdb->get_results("select width,height,crop from ".$wpdb->prefix."advps_thumbnail where thumb_name = '".$container['advps_thumbnail']."'");
543
  if($advps_custom_thumb){
544
  $thmb_image = wp_get_attachment_url( get_post_thumbnail_id());
545
+ $advps_image = aq_resize( $thmb_image, $advps_custom_thumb[0]->width, $advps_custom_thumb[0]->height,$advps_custom_thumb[0]->crop,true,true);
546
+ echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="'.get_the_title().'" />';
547
  }
548
  else
549
  {
553
  elseif(isset($container['advps_default_image']) && $container['advps_default_image'] != '')
554
  {
555
  ?>
556
+ <img src="<?php echo $container['advps_default_image'];?>" class="wp-post-image" alt="<?php the_title();?>" />
557
  <?php
558
  }
559
  ?>
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: 3.9.1
7
- Stable tag: 2.1.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -118,5 +118,8 @@ Dont have any FAQ for now.
118
  * Small change for image ALT attribute.
119
  * Small change in admin UI.
120
 
 
 
 
121
  == Upgrade Notice ==
122
  * Few modification. Upgrade is recommended.
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.1.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
118
  * Small change for image ALT attribute.
119
  * Small change in admin UI.
120
 
121
+ = 2.1.4 =
122
+ * Small change for Advanced post slider built-in image resizing functionality.
123
+
124
  == Upgrade Notice ==
125
  * Few modification. Upgrade is recommended.