Advanced post slider - Version 2.1.3

Version Description

  • Small change for image ALT attribute.
  • Small change in admin UI.

=

Download this release

Release Info

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

Code changes from version 2.1.2 to 2.1.3

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.2
7
  Author: digontoahsan
8
  Author URI: www.wpcue.com
9
  License: GPL2
@@ -483,7 +483,7 @@
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="dff"/>';
487
  }
488
  else
489
  {
@@ -517,7 +517,7 @@
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="dff"/>';
521
  }
522
  else
523
  {
@@ -543,7 +543,7 @@
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="dff"/>';
547
  }
548
  else
549
  {
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
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
  {
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
  {
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
  {
advps-admin.php CHANGED
@@ -29,7 +29,7 @@
29
  }
30
  if(isset($_POST['advps_submit'])){
31
 
32
- if($_POST['advps_submit'] == 'Add new option set'){
33
 
34
  if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
35
  {
29
  }
30
  if(isset($_POST['advps_submit'])){
31
 
32
+ if($_POST['advps_submit'] == 'Add new slideshow'){
33
 
34
  if ( !isset($_POST['advps_wpnonce']) || !wp_verify_nonce($_POST['advps_wpnonce'],'advps-checkauthnonce') )
35
  {
js/advps.script.js CHANGED
@@ -191,7 +191,7 @@ function updateSm(elem,id){
191
  }
192
 
193
  function deleteOptSet(id){
194
- var rsp = confirm("Do you really want to delete this option set?");
195
  if(rsp){
196
  jQuery("#frmOptDel"+id).removeAttr("onsubmit");
197
  jQuery("#frmOptDel"+id).submit();
191
  }
192
 
193
  function deleteOptSet(id){
194
+ var rsp = confirm("Do you really want to delete this slider?");
195
  if(rsp){
196
  jQuery("#frmOptDel"+id).removeAttr("onsubmit");
197
  jQuery("#frmOptDel"+id).submit();
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.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -51,7 +51,7 @@ Manual
51
  3. Activate the plugin through the 'Plugins' menu in WordPress
52
  4. Check the "Adv. Slider" Tab created by this plugins for manage options
53
 
54
- Use shortcode [advps-slideshow optset="optset ID"] at admin panel post/page edit screen where optset ID is the id of the option set. You will get the id of optoin set at the top right corner of each option set from admin panel.
55
 
56
  Use WordPress function "do_shortcode" for use in template or theme PHP file.
57
  `<?php echo do_shortcode( '[advps-slideshow optset="1"]' ); ?>`
@@ -114,5 +114,9 @@ Dont have any FAQ for now.
114
  = 2.1.2 =
115
  * Site down problem for some user is resolved.
116
 
 
 
 
 
117
  == Upgrade Notice ==
118
- * Bug fix release for version 2. Upgrade highly 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.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
51
  3. Activate the plugin through the 'Plugins' menu in WordPress
52
  4. Check the "Adv. Slider" Tab created by this plugins for manage options
53
 
54
+ You will get slideshow shortcode something like [advps-slideshow optset="1"] at very first section of every slideshow option set. Use it at admin panel post/page edit screen.
55
 
56
  Use WordPress function "do_shortcode" for use in template or theme PHP file.
57
  `<?php echo do_shortcode( '[advps-slideshow optset="1"]' ); ?>`
114
  = 2.1.2 =
115
  * Site down problem for some user is resolved.
116
 
117
+ = 2.1.3 =
118
+ * Small change for image ALT attribute.
119
+ * Small change in admin UI.
120
+
121
  == Upgrade Notice ==
122
+ * Few modification. Upgrade is recommended.
templates/template-one.php CHANGED
@@ -14,16 +14,16 @@ foreach( $res1 as $dset){
14
  <div class="postbox closed">
15
  <div class="handlediv down" title="Click to toggle"> <br>
16
  </div>
17
- <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new option set' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
18
- <?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>
19
  </h3>
20
  <div class="inside">
21
  <fieldset>
22
  <legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
23
  <table class="form-table">
24
  <tr>
25
- <th scope="row">Option set label</th>
26
- <td><input type="text" style="width:px;" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
27
  <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
28
  </tr>
29
  <tr>
@@ -614,7 +614,7 @@ foreach( $res1 as $dset){
614
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
615
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
616
  <p>
617
- <input type="submit" name="del-optset" value="Delete this option set" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" />
618
  </p>
619
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
620
  </form>
@@ -631,6 +631,6 @@ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."a
631
  <input type="hidden" name="template" value="one" />
632
  <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
633
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
634
- <input type="submit" name="advps_submit" value="Add new option set" class="button-primary" style="font-weight:bold" />
635
  </form>
636
  </div>
14
  <div class="postbox closed">
15
  <div class="handlediv down" title="Click to toggle"> <br>
16
  </div>
17
+ <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
18
+ <?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>
19
  </h3>
20
  <div class="inside">
21
  <fieldset>
22
  <legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
23
  <table class="form-table">
24
  <tr>
25
+ <th scope="row">Label</th>
26
+ <td><input type="text" style="width:px;" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
27
  <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
28
  </tr>
29
  <tr>
614
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
615
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
616
  <p>
617
+ <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
618
  </p>
619
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
620
  </form>
631
  <input type="hidden" name="template" value="one" />
632
  <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
633
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
634
+ <input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
635
  </form>
636
  </div>
templates/template-three.php CHANGED
@@ -15,16 +15,16 @@ foreach( $res3 as $dset){
15
  <div class="postbox closed">
16
  <div class="handlediv down" title="Click to toggle"> <br>
17
  </div>
18
- <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new option set' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
19
- <?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>
20
  </h3>
21
  <div class="inside">
22
  <fieldset>
23
  <legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
24
  <table class="form-table">
25
  <tr>
26
- <th scope="row">Option set label</th>
27
- <td><input type="text" style="width:px;" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
28
  <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
29
  </tr>
30
  <tr>
@@ -586,7 +586,7 @@ foreach( $res3 as $dset){
586
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
587
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
588
  <p>
589
- <input type="submit" name="del-optset" value="Delete this option set" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" />
590
  </p>
591
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
592
  </form>
@@ -603,6 +603,6 @@ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."a
603
  <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
604
  <input type="hidden" name="template" value="three" />
605
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
606
- <input type="submit" name="advps_submit" value="Add new option set" class="button-primary" style="font-weight:bold" />
607
  </form>
608
  </div>
15
  <div class="postbox closed">
16
  <div class="handlediv down" title="Click to toggle"> <br>
17
  </div>
18
+ <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
19
+ <?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>
20
  </h3>
21
  <div class="inside">
22
  <fieldset>
23
  <legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
24
  <table class="form-table">
25
  <tr>
26
+ <th scope="row">Label</th>
27
+ <td><input type="text" style="width:px;" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
28
  <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
29
  </tr>
30
  <tr>
586
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
587
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
588
  <p>
589
+ <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
590
  </p>
591
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
592
  </form>
603
  <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
604
  <input type="hidden" name="template" value="three" />
605
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
606
+ <input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
607
  </form>
608
  </div>
templates/template-two.php CHANGED
@@ -15,16 +15,16 @@ foreach( $res2 as $dset){
15
  <div class="postbox closed">
16
  <div class="handlediv down" title="Click to toggle"> <br>
17
  </div>
18
- <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new option set' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
19
- <?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>
20
  </h3>
21
  <div class="inside">
22
  <fieldset>
23
  <legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
24
  <table class="form-table">
25
  <tr>
26
- <th scope="row">Option set label</th>
27
- <td><input type="text" style="" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Option Set';}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
28
  <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
29
  </tr>
30
  <tr>
@@ -471,7 +471,7 @@ foreach( $res2 as $dset){
471
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
472
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
473
  <p>
474
- <input type="submit" name="del-optset" value="Delete this option set" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" />
475
  </p>
476
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
477
  </form>
@@ -488,6 +488,6 @@ $tcount = $wpdb->get_results("SHOW TABLE STATUS WHERE name = '".$wpdb->prefix."a
488
  <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
489
  <input type="hidden" name="template" value="two" />
490
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
491
- <input type="submit" name="advps_submit" value="Add new option set" class="button-primary" style="font-weight:bold" />
492
  </form>
493
  </div>
15
  <div class="postbox closed">
16
  <div class="handlediv down" title="Click to toggle"> <br>
17
  </div>
18
+ <h3 style="cursor:pointer; text-align:center" class="advps-expand <?php if(isset($_POST['advps_submit']) && $_POST['advps_submit'] == 'Add new slideshow' && $_POST['nextoptid'] == $dset->id){echo 'advps-highlight';}?>" id="lbltxt<?php echo $dset->id;?>">
19
+ <?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>
20
  </h3>
21
  <div class="inside">
22
  <fieldset>
23
  <legend class="advps-legend" style="width:97px;"><strong>Label & Usage</strong></legend>
24
  <table class="form-table">
25
  <tr>
26
+ <th scope="row">Label</th>
27
+ <td><input type="text" style="" value="<?php if(get_option('optset'.$dset->id)){echo get_option('optset'.$dset->id);}else{echo 'Slider '.$dset->id;}?>" name="optset<?php echo $dset->id;?>" class="advps-optset-label" onchange="advpsUpdateLabel(this.name,this.value,<?php echo $dset->id;?>)" />
28
  <span id="lbludtSts<?php echo $dset->id;?>" style="padding-left:10px; display:none;"><img src="<?php echo advps_url;?>/images/ajax-loader.gif" /></span></td>
29
  </tr>
30
  <tr>
471
  <form method="post" id="frmOptDel<?php echo $dset->id;?>" onsubmit="return false">
472
  <input type="hidden" value="<?php echo $dset->id;?>" name="optset-id" />
473
  <p>
474
+ <input type="submit" name="del-optset" value="Delete" class="button-secondary" onclick="deleteOptSet(<?php echo $dset->id;?>)" style="width:12%;" />
475
  </p>
476
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
477
  </form>
488
  <input type="hidden" name="nextoptid" value="<?php echo $tcount[0]->Auto_increment;?>" />
489
  <input type="hidden" name="template" value="two" />
490
  <?php wp_nonce_field('advps-checkauthnonce','advps_wpnonce'); ?>
491
+ <input type="submit" name="advps_submit" value="Add new slideshow" class="button-primary" style="font-weight:bold" />
492
  </form>
493
  </div>