Flexible Posts Widget - Version 2.1.1

Version Description

  • Fixed a source order bug in the widget.php template file. (Props: Carsten Bach).
Download this release

Release Info

Developer dpe415
Plugin Icon wp plugin Flexible Posts Widget
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1 to 2.1.1

Files changed (3) hide show
  1. flexible-posts-widget.php +2 -2
  2. readme.txt +4 -1
  3. views/widget.php +22 -22
flexible-posts-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Flexible Posts Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/flexible-posts-widget/
5
  Author: dpe415
6
  Author URI: http://dpedesign.com
7
- Version: 2.1
8
  Description: An advanced posts display widget with many options: post by taxonomy & term or post type, thumbnails, order & order by, customizable templates
9
  License: GPL2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -31,7 +31,7 @@ if( !defined('ABSPATH') )
31
  die('-1');
32
 
33
  if( !defined('DPE_FP_Version') )
34
- define( 'DPE_FP_Version', '2.0' );
35
 
36
 
37
  // Load the widget on widgets_init
4
  Plugin URI: http://wordpress.org/extend/plugins/flexible-posts-widget/
5
  Author: dpe415
6
  Author URI: http://dpedesign.com
7
+ Version: 2.1.1
8
  Description: An advanced posts display widget with many options: post by taxonomy & term or post type, thumbnails, order & order by, customizable templates
9
  License: GPL2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
31
  die('-1');
32
 
33
  if( !defined('DPE_FP_Version') )
34
+ define( 'DPE_FP_Version', '2.1.1' );
35
 
36
 
37
  // Load the widget on widgets_init
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: widget, widgets, posts, recent posts, thumbnails, custom post types, custom taxonomies
5
  Requires at least: 3.2
6
  Tested up to: 3.4
7
- Stable tag: 2.1
8
  License: GPL2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,6 +82,9 @@ Edit the new file in your theme to your desired HTML layout. Please do not edit
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 2.1 =
86
  * Added offset parameter to display options.
87
 
4
  Tags: widget, widgets, posts, recent posts, thumbnails, custom post types, custom taxonomies
5
  Requires at least: 3.2
6
  Tested up to: 3.4
7
+ Stable tag: 2.1.1
8
  License: GPL2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
 
83
  == Changelog ==
84
 
85
+ = 2.1.1 =
86
+ * Fixed a source order bug in the widget.php template file. (Props: Carsten Bach).
87
+
88
  = 2.1 =
89
  * Added offset parameter to display options.
90
 
views/widget.php CHANGED
@@ -11,29 +11,29 @@ echo $before_widget;
11
 
12
  if ( !empty($title) )
13
  echo $before_title . $title . $after_title;
14
-
15
- if( $flexible_posts->have_posts() ):
16
- ?>
17
- <ul class="dpe-flexible-posts">
18
- <?php while ( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); ?>
19
- <li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
20
- <a href="<?php echo the_permalink(); ?>">
21
- <?php
22
- if( $thumbnail == true )
23
- the_post_thumbnail( $thumbsize );
24
- ?>
25
- <h4 class="title"><?php the_title(); ?></h4>
26
- </a>
27
- </li>
28
- <?php endwhile; ?>
29
- </ul><!-- .dpe-flexible-posts -->
30
- <?php
31
- echo $after_widget;
32
 
33
- else: ?>
34
- <div class="no-posts dpe-flexible-posts">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  <p>No post found</p>
36
  </div>
37
- <?php
38
- endif; // End have_posts()
 
 
39
  ?>
11
 
12
  if ( !empty($title) )
13
  echo $before_title . $title . $after_title;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
+ if( $flexible_posts->have_posts() ):
16
+
17
+ ?>
18
+ <ul class="dpe-flexible-posts">
19
+ <?php while ( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); ?>
20
+ <li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
21
+ <a href="<?php echo the_permalink(); ?>">
22
+ <?php
23
+ if( $thumbnail == true )
24
+ the_post_thumbnail( $thumbsize );
25
+ ?>
26
+ <h4 class="title"><?php the_title(); ?></h4>
27
+ </a>
28
+ </li>
29
+ <?php endwhile; ?>
30
+ </ul><!-- .dpe-flexible-posts -->
31
+ <?php else: // We have no posts ?>
32
+ <div class="dpe-flexible-posts no-posts">
33
  <p>No post found</p>
34
  </div>
35
+ <?php
36
+ endif; // End have_posts()
37
+
38
+ echo $after_widget;
39
  ?>