Version Description
- 12/07/2015
Download this release
Release Info
Developer | satrya |
Plugin | Recent Posts Widget Extended |
Version | 0.9.9.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.9 to 0.9.9.1
- classes/widget.php +1 -1
- includes/form.php +2 -2
- includes/helpers.php +52 -0
- languages/rpwe.pot +6 -6
- readme.txt +14 -18
- rpwe.php +3 -2
classes/widget.php
CHANGED
@@ -30,7 +30,7 @@ class Recent_Posts_Widget_Extended extends WP_Widget {
|
|
30 |
);
|
31 |
|
32 |
/* Create the widget. */
|
33 |
-
|
34 |
'rpwe_widget', // $this->id_base
|
35 |
__( 'Recent Posts Extended', 'rpwe' ), // $this->name
|
36 |
$widget_options, // $this->widget_options
|
30 |
);
|
31 |
|
32 |
/* Create the widget. */
|
33 |
+
parent::__construct(
|
34 |
'rpwe_widget', // $this->id_base
|
35 |
__( 'Recent Posts Extended', 'rpwe' ), // $this->name
|
36 |
$widget_options, // $this->widget_options
|
includes/form.php
CHANGED
@@ -123,7 +123,7 @@
|
|
123 |
<?php _e( 'Limit to Category', 'rpwe' ); ?>
|
124 |
</label>
|
125 |
<ul>
|
126 |
-
<?php foreach (
|
127 |
<li>
|
128 |
<input type="checkbox" value="<?php echo (int) $category->term_id; ?>" id="<?php echo $this->get_field_id( 'cat' ) . '-' . (int) $category->term_id; ?>" name="<?php echo $this->get_field_name( 'cat' ); ?>[]" <?php checked( is_array( $instance['cat'] ) && in_array( $category->term_id, $instance['cat'] ) ); ?> />
|
129 |
<label for="<?php echo $this->get_field_id( 'cat' ) . '-' . (int) $category->term_id; ?>">
|
@@ -139,7 +139,7 @@
|
|
139 |
<?php _e( 'Limit to Tag', 'rpwe' ); ?>
|
140 |
</label>
|
141 |
<ul>
|
142 |
-
<?php foreach (
|
143 |
<li>
|
144 |
<input type="checkbox" value="<?php echo (int) $post_tag->term_id; ?>" id="<?php echo $this->get_field_id( 'tag' ) . '-' . (int) $post_tag->term_id; ?>" name="<?php echo $this->get_field_name( 'tag' ); ?>[]" <?php checked( is_array( $instance['tag'] ) && in_array( $post_tag->term_id, $instance['tag'] ) ); ?> />
|
145 |
<label for="<?php echo $this->get_field_id( 'tag' ) . '-' . (int) $post_tag->term_id; ?>">
|
123 |
<?php _e( 'Limit to Category', 'rpwe' ); ?>
|
124 |
</label>
|
125 |
<ul>
|
126 |
+
<?php foreach ( rpwe_cats_list() as $category ) : ?>
|
127 |
<li>
|
128 |
<input type="checkbox" value="<?php echo (int) $category->term_id; ?>" id="<?php echo $this->get_field_id( 'cat' ) . '-' . (int) $category->term_id; ?>" name="<?php echo $this->get_field_name( 'cat' ); ?>[]" <?php checked( is_array( $instance['cat'] ) && in_array( $category->term_id, $instance['cat'] ) ); ?> />
|
129 |
<label for="<?php echo $this->get_field_id( 'cat' ) . '-' . (int) $category->term_id; ?>">
|
139 |
<?php _e( 'Limit to Tag', 'rpwe' ); ?>
|
140 |
</label>
|
141 |
<ul>
|
142 |
+
<?php foreach ( rpwe_tags_list() as $post_tag ) : ?>
|
143 |
<li>
|
144 |
<input type="checkbox" value="<?php echo (int) $post_tag->term_id; ?>" id="<?php echo $this->get_field_id( 'tag' ) . '-' . (int) $post_tag->term_id; ?>" name="<?php echo $this->get_field_name( 'tag' ); ?>[]" <?php checked( is_array( $instance['tag'] ) && in_array( $post_tag->term_id, $instance['tag'] ) ); ?> />
|
145 |
<label for="<?php echo $this->get_field_id( 'tag' ) . '-' . (int) $post_tag->term_id; ?>">
|
includes/helpers.php
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Function helper
|
4 |
+
*
|
5 |
+
* @package Recent_Posts_Widget_Extended
|
6 |
+
* @since 0.9.9.1
|
7 |
+
* @author Satrya
|
8 |
+
* @copyright Copyright (c) 2015, Satrya
|
9 |
+
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Display list of tags for widget.
|
14 |
+
*
|
15 |
+
* @since 0.9.9.1
|
16 |
+
*/
|
17 |
+
function rpwe_tags_list() {
|
18 |
+
|
19 |
+
// Arguments
|
20 |
+
$args = array(
|
21 |
+
'number' => 99
|
22 |
+
);
|
23 |
+
|
24 |
+
// Allow dev to filter the arguments
|
25 |
+
$args = apply_filters( 'rpwe_tags_list_args', $args );
|
26 |
+
|
27 |
+
// Get the tags
|
28 |
+
$tags = get_terms( 'post_tag', $args );
|
29 |
+
|
30 |
+
return $tags;
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Display list of categories for widget.
|
35 |
+
*
|
36 |
+
* @since 0.9.9.1
|
37 |
+
*/
|
38 |
+
function rpwe_cats_list() {
|
39 |
+
|
40 |
+
// Arguments
|
41 |
+
$args = array(
|
42 |
+
'number' => 99
|
43 |
+
);
|
44 |
+
|
45 |
+
// Allow dev to filter the arguments
|
46 |
+
$args = apply_filters( 'rpwe_cats_list_args', $args );
|
47 |
+
|
48 |
+
// Get the cats
|
49 |
+
$cats = get_terms( 'category', $args );
|
50 |
+
|
51 |
+
return $cats;
|
52 |
+
}
|
languages/rpwe.pot
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Recent Posts Widget Extended package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Recent Posts Widget Extended 0.9.9\n"
|
6 |
"Report-Msgid-Bugs-To: http://satrya.me/\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: Satrya (satrya@satrya.me)\n"
|
13 |
"Language-Team: Satrya (satrya@satrya.me)\n"
|
14 |
-
"X-Generator: grunt-wp-i18n 0.
|
15 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
"X-Poedit-Basepath: ..\n"
|
17 |
"X-Poedit-Language: English\n"
|
@@ -232,7 +232,7 @@ msgid "Recent Posts Widget Extended"
|
|
232 |
msgstr ""
|
233 |
|
234 |
#. Plugin URI of the plugin/theme
|
235 |
-
msgid "http://satrya.me/
|
236 |
msgstr ""
|
237 |
|
238 |
#. Description of the plugin/theme
|
1 |
+
# Copyright (C) 2015 Satrya
|
2 |
# This file is distributed under the same license as the Recent Posts Widget Extended package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Recent Posts Widget Extended 0.9.9.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://satrya.me/\n"
|
7 |
+
"POT-Creation-Date: 2015-07-12 08:07:59+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: Satrya (satrya@satrya.me)\n"
|
13 |
"Language-Team: Satrya (satrya@satrya.me)\n"
|
14 |
+
"X-Generator: grunt-wp-i18n 0.5.2\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
"X-Poedit-Basepath: ..\n"
|
17 |
"X-Poedit-Language: English\n"
|
232 |
msgstr ""
|
233 |
|
234 |
#. Plugin URI of the plugin/theme
|
235 |
+
msgid "http://satrya.me/projects/recent-posts-widget-extended/"
|
236 |
msgstr ""
|
237 |
|
238 |
#. Description of the plugin/theme
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: satrya, themejunkie
|
3 |
Tags: recent posts, random posts, popular posts, thumbnails, widget, widgets, sidebar, excerpt, category, post tag, taxonomy, post type, post status, shortcode, multiple widgets
|
4 |
Requires at least: 3.7
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 0.9.9
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -13,18 +13,15 @@ Provides flexible and advanced recent posts. Display it via shortcode or widget
|
|
13 |
|
14 |
This plugin will enable a custom, flexible and super advanced recent posts, you can display it via shortcode or widget. Allows you to display a list of the most recent posts with thumbnail, excerpt and post date, also you can display it from all or specific or multiple taxonomy, post type and much more!
|
15 |
|
16 |
-
=
|
17 |
|
18 |
-
* WordPress 4.
|
19 |
* Shortcode feature. Please read [Other Notes](http://wordpress.org/plugins/recent-posts-widget-extended/other_notes)
|
20 |
* Taxonomy support!
|
21 |
* Post status option.
|
22 |
* Custom html or text before and/or after recent posts.
|
23 |
-
*
|
24 |
* Better image cropping.
|
25 |
-
|
26 |
-
= Features Include =
|
27 |
-
|
28 |
* Allow you to set title url.
|
29 |
* Display by date, comment count or random.
|
30 |
* Display thumbnails, with customizable size and alignment.
|
@@ -38,15 +35,10 @@ This plugin will enable a custom, flexible and super advanced recent posts, you
|
|
38 |
* Multiple widgets.
|
39 |
|
40 |
= Language =
|
|
|
41 |
* English
|
42 |
* France
|
43 |
-
* [Contribute to your language](
|
44 |
-
|
45 |
-
= Plugin Support =
|
46 |
-
|
47 |
-
* [Get the Image](http://wordpress.org/plugins/get-the-image/).
|
48 |
-
* [Page Builder by SiteOrigin](http://wordpress.org/plugins/siteorigin-panels/).
|
49 |
-
* [Featured Video Plus](http://wordpress.org/plugins/featured-video-plus/).
|
50 |
|
51 |
= Support =
|
52 |
|
@@ -255,7 +247,11 @@ after=""
|
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
-
= 0.9.9 -
|
|
|
|
|
|
|
|
|
259 |
- **Fix:** for "cssID" attribute in shortcodes. Props [Ikart](https://github.com/lkart)
|
260 |
- **Fix:** Thumbnail fallback uses `get_the_post_thumbnail`
|
261 |
- **Add:** `rpwe-img` to the thumbnail.
|
@@ -263,11 +259,11 @@ after=""
|
|
263 |
- **Improve:** Move `use styles default` option to above the custom css. I'm sorry for the incosistency.
|
264 |
- **Update:** Language
|
265 |
|
266 |
-
= 0.9.8 - 11/
|
267 |
* **Fix:** Compatibility issue with `Get The Image` plugin/extension.
|
268 |
* **Fix:** Issue with `html or text before and after recent posts`, now it allow all HTML tags.
|
269 |
|
270 |
-
= 0.9.7 -
|
271 |
* **Add:** Relative date option `eg: 4 days ago`. Props [George Venios](https://github.com/veniosg)
|
272 |
* **Add:** [Featured Video Plus](http://wordpress.org/plugins/featured-video-plus/) plugin support.
|
273 |
* **Add:** Hide widget if no posts exist.
|
2 |
Contributors: satrya, themejunkie
|
3 |
Tags: recent posts, random posts, popular posts, thumbnails, widget, widgets, sidebar, excerpt, category, post tag, taxonomy, post type, post status, shortcode, multiple widgets
|
4 |
Requires at least: 3.7
|
5 |
+
Tested up to: 4.3
|
6 |
+
Stable tag: 0.9.9.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
13 |
|
14 |
This plugin will enable a custom, flexible and super advanced recent posts, you can display it via shortcode or widget. Allows you to display a list of the most recent posts with thumbnail, excerpt and post date, also you can display it from all or specific or multiple taxonomy, post type and much more!
|
15 |
|
16 |
+
= Features Include =
|
17 |
|
18 |
+
* WordPress 4.3 Support.
|
19 |
* Shortcode feature. Please read [Other Notes](http://wordpress.org/plugins/recent-posts-widget-extended/other_notes)
|
20 |
* Taxonomy support!
|
21 |
* Post status option.
|
22 |
* Custom html or text before and/or after recent posts.
|
23 |
+
* Available filter for dev. Please read [FAQ](http://wordpress.org/plugins/recent-posts-widget-extended/faq).
|
24 |
* Better image cropping.
|
|
|
|
|
|
|
25 |
* Allow you to set title url.
|
26 |
* Display by date, comment count or random.
|
27 |
* Display thumbnails, with customizable size and alignment.
|
35 |
* Multiple widgets.
|
36 |
|
37 |
= Language =
|
38 |
+
|
39 |
* English
|
40 |
* France
|
41 |
+
* [Contribute to your language](http://satrya.me/projects/recent-posts-widget-extended/)
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
= Support =
|
44 |
|
247 |
|
248 |
== Changelog ==
|
249 |
|
250 |
+
= 0.9.9.1 - 12/07/2015 =
|
251 |
+
- Prepare to support WordPress 4.3
|
252 |
+
- **Update:** Limit the number of `tags` and `categories` displayed in the widget
|
253 |
+
|
254 |
+
= 0.9.9 - 29/11/2014 =
|
255 |
- **Fix:** for "cssID" attribute in shortcodes. Props [Ikart](https://github.com/lkart)
|
256 |
- **Fix:** Thumbnail fallback uses `get_the_post_thumbnail`
|
257 |
- **Add:** `rpwe-img` to the thumbnail.
|
259 |
- **Improve:** Move `use styles default` option to above the custom css. I'm sorry for the incosistency.
|
260 |
- **Update:** Language
|
261 |
|
262 |
+
= 0.9.8 - 26/11/2014 =
|
263 |
* **Fix:** Compatibility issue with `Get The Image` plugin/extension.
|
264 |
* **Fix:** Issue with `html or text before and after recent posts`, now it allow all HTML tags.
|
265 |
|
266 |
+
= 0.9.7 - 13/09/2014 =
|
267 |
* **Add:** Relative date option `eg: 4 days ago`. Props [George Venios](https://github.com/veniosg)
|
268 |
* **Add:** [Featured Video Plus](http://wordpress.org/plugins/featured-video-plus/) plugin support.
|
269 |
* **Add:** Hide widget if no posts exist.
|
rpwe.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Recent Posts Widget Extended
|
4 |
-
* Plugin URI: http://satrya.me/
|
5 |
* Description: Enables advanced widget that gives you total control over the output of your site’s most recent Posts.
|
6 |
-
* Version: 0.9.9
|
7 |
* Author: Satrya
|
8 |
* Author URI: http://satrya.me/
|
9 |
* Author Email: satrya@satrya.me
|
@@ -99,6 +99,7 @@ class RPW_Extended {
|
|
99 |
require_once( RPWE_INCLUDES . 'resizer.php' );
|
100 |
require_once( RPWE_INCLUDES . 'functions.php' );
|
101 |
require_once( RPWE_INCLUDES . 'shortcode.php' );
|
|
|
102 |
}
|
103 |
|
104 |
/**
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Recent Posts Widget Extended
|
4 |
+
* Plugin URI: http://satrya.me/projects/recent-posts-widget-extended/
|
5 |
* Description: Enables advanced widget that gives you total control over the output of your site’s most recent Posts.
|
6 |
+
* Version: 0.9.9.1
|
7 |
* Author: Satrya
|
8 |
* Author URI: http://satrya.me/
|
9 |
* Author Email: satrya@satrya.me
|
99 |
require_once( RPWE_INCLUDES . 'resizer.php' );
|
100 |
require_once( RPWE_INCLUDES . 'functions.php' );
|
101 |
require_once( RPWE_INCLUDES . 'shortcode.php' );
|
102 |
+
require_once( RPWE_INCLUDES . 'helpers.php' );
|
103 |
}
|
104 |
|
105 |
/**
|