Version Description
- Added option to ignore sticky posts.
- Added support to get post by post ID directly.
- Added Polish language support. (Props: @Invens)
- Added a few filters:
dpe_fpw_args
to filter the query vars before submitting the query and'dpe_fpw_template_' . [$template_name]
to filter the selected template.
Download this release
Release Info
Developer | dpe415 |
Plugin | Flexible Posts Widget |
Version | 3.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.2 to 3.2
- css/admin.css +5 -1
- flexible-posts-widget.php +97 -63
- languages/flexible-posts-widget-es_ES.mo +0 -0
- languages/flexible-posts-widget-es_ES.po +76 -55
- languages/flexible-posts-widget-pl_PL.mo +0 -0
- languages/flexible-posts-widget-pl_PL.po +186 -0
- languages/flexible-posts-widget.pot +57 -36
- readme.txt +29 -11
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- views/admin.php +17 -4
css/admin.css
CHANGED
@@ -21,6 +21,7 @@
|
|
21 |
.dpe-fp-widget .section.getemby {padding-bottom:1.333em;}
|
22 |
|
23 |
.dpe-fp-widget .tabs-panel.tt {padding:1.333em 1em;}
|
|
|
24 |
.dpe-fp-widget .tabs-panel .terms {max-height:110px; overflow:auto; border:1px solid #DFDFDF;}
|
25 |
.dpe-fp-widget .tabs-panel .terms ul {margin-left:1em;}
|
26 |
.dpe-fp-widget .tabs-panel .terms p {margin:1em;}
|
@@ -31,4 +32,7 @@
|
|
31 |
.dpe-fp-widget .display input {float:right; width:60px; text-align:right;}
|
32 |
.dpe-fp-widget .display select {float:right; width:120px;}
|
33 |
|
34 |
-
.dpe-fp-widget .
|
|
|
|
|
|
21 |
.dpe-fp-widget .section.getemby {padding-bottom:1.333em;}
|
22 |
|
23 |
.dpe-fp-widget .tabs-panel.tt {padding:1.333em 1em;}
|
24 |
+
.dpe-fp-widget .tabs-panel.id {padding:1.333em 1em 0;}
|
25 |
.dpe-fp-widget .tabs-panel .terms {max-height:110px; overflow:auto; border:1px solid #DFDFDF;}
|
26 |
.dpe-fp-widget .tabs-panel .terms ul {margin-left:1em;}
|
27 |
.dpe-fp-widget .tabs-panel .terms p {margin:1em;}
|
32 |
.dpe-fp-widget .display input {float:right; width:60px; text-align:right;}
|
33 |
.dpe-fp-widget .display select {float:right; width:120px;}
|
34 |
|
35 |
+
.dpe-fp-widget .check input {float:none; width:auto;}
|
36 |
+
.dpe-fp-widget .check label {float:none; padding-top:0.2em;}
|
37 |
+
|
38 |
+
.dpe-fp-widget .description {display:inline-block; padding-top:5px; font-size:80%;}
|
flexible-posts-widget.php
CHANGED
@@ -2,10 +2,11 @@
|
|
2 |
/*
|
3 |
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 |
-
|
8 |
-
Description: An advanced posts display widget with many options: get posts by post type
|
9 |
License: GPL2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
@@ -27,12 +28,12 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
27 |
*/
|
28 |
|
29 |
// Block direct requests
|
30 |
-
if( !defined('ABSPATH') )
|
31 |
-
die('-1');
|
32 |
|
33 |
// Define our version number
|
34 |
-
if( !defined('DPE_FP_Version') )
|
35 |
-
define( 'DPE_FP_Version', '3.
|
36 |
|
37 |
/**
|
38 |
* Plugin Initialization
|
@@ -48,7 +49,7 @@ add_action('plugins_loaded', 'dpe_flexible_posts_widget_init');
|
|
48 |
* Initialize the widget on widgets_init
|
49 |
*/
|
50 |
function dpe_load_flexible_posts_widget() {
|
51 |
-
register_widget('DPE_Flexible_Posts_Widget');
|
52 |
}
|
53 |
add_action('widgets_init', 'dpe_load_flexible_posts_widget' );
|
54 |
|
@@ -77,7 +78,7 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
77 |
$this->register_sns( $this->directory ); // Register styles & scripts
|
78 |
|
79 |
// Enqueue admin scripts
|
80 |
-
if ( defined(
|
81 |
if ( 'widgets.php' == $pagenow ) {
|
82 |
wp_enqueue_script( 'flexible-posts-widget' );
|
83 |
wp_enqueue_style( 'flexible-posts-widget' );
|
@@ -100,36 +101,58 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
100 |
* @param array $args Widget arguments.
|
101 |
* @param array $instance Saved values from database.
|
102 |
*/
|
103 |
-
function widget($args, $instance) {
|
104 |
extract( $args );
|
105 |
extract( $instance );
|
106 |
|
107 |
$title = apply_filters( 'widget_title', empty( $title ) ? '' : $title );
|
108 |
|
109 |
-
if ( empty($template) )
|
110 |
$template = 'widget.php';
|
111 |
|
112 |
-
// Setup the query
|
113 |
-
$args = array(
|
114 |
-
'post_type' => $posttype,
|
115 |
-
'post_status' => array('publish', 'inherit'),
|
116 |
-
'posts_per_page' => $number,
|
117 |
-
'offset' => $offset,
|
118 |
-
'orderby' => $orderby,
|
119 |
-
'order' => $order,
|
120 |
-
);
|
121 |
|
122 |
-
// Setup the
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
// Get the posts for this instance
|
134 |
$flexible_posts = new WP_Query( $args );
|
135 |
|
@@ -154,26 +177,26 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
154 |
function update( $new_instance, $old_instance ) {
|
155 |
|
156 |
// Get our defaults to test against
|
157 |
-
$this->posttypes = get_post_types( array('public' => true ), 'objects' );
|
158 |
-
$this->taxonomies = get_taxonomies( array('public' => true ), 'objects' );
|
159 |
$this->thumbsizes = get_intermediate_image_sizes();
|
160 |
$this->orderbys = array(
|
161 |
-
'date' => __('Publish Date', 'flexible-posts-widget'),
|
162 |
-
'title' => __('Title', 'flexible-posts-widget'),
|
163 |
-
'menu_order' => __('Menu Order', 'flexible-posts-widget'),
|
164 |
-
'ID' => __('Post ID', 'flexible-posts-widget'),
|
165 |
-
'author' => __('Author', 'flexible-posts-widget'),
|
166 |
-
'name' => __('Post Slug', 'flexible-posts-widget'),
|
167 |
-
'comment_count' => __('Comment Count', 'flexible-posts-widget'),
|
168 |
-
'rand' => __('Random', 'flexible-posts-widget'),
|
169 |
);
|
170 |
$this->orders = array(
|
171 |
-
'ASC' => __('Ascending', 'flexible-posts-widget'),
|
172 |
-
'DESC' => __('Descending', 'flexible-posts-widget'),
|
173 |
);
|
174 |
|
175 |
-
$pt_names = get_post_types( array('public' => true ), 'names' );
|
176 |
-
$tax_names = get_taxonomies( array('public' => true ), 'names' );
|
177 |
$tax_names[] = 'none';
|
178 |
|
179 |
// Validate posttype submissions
|
@@ -182,7 +205,7 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
182 |
if( in_array( $pt, $pt_names ) )
|
183 |
$posttypes[] = $pt;
|
184 |
}
|
185 |
-
if( empty($posttypes) )
|
186 |
$posttypes[] = 'post';
|
187 |
|
188 |
// Validate taxonomy & term submissions
|
@@ -205,15 +228,26 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
205 |
$terms = array();
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
$instance = $old_instance;
|
209 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
210 |
$instance['posttype'] = $posttypes;
|
211 |
$instance['taxonomy'] = $taxonomy;
|
212 |
$instance['term'] = $terms;
|
|
|
213 |
$instance['number'] = (int) $new_instance['number'];
|
214 |
$instance['offset'] = (int) $new_instance['offset'];
|
215 |
$instance['orderby'] = ( array_key_exists( $new_instance['orderby'], $this->orderbys ) ? $new_instance['orderby'] : 'date' );
|
216 |
$instance['order'] = ( array_key_exists( $new_instance['order'], $this->orders ) ? $new_instance['order'] : 'DESC' );
|
|
|
217 |
$instance['thumbnail'] = ( isset( $new_instance['thumbnail'] ) ? (int) $new_instance['thumbnail'] : '0' );
|
218 |
$instance['thumbsize'] = ( in_array ( $new_instance['thumbsize'], $this->thumbsizes ) ? $new_instance['thumbsize'] : '' );
|
219 |
$instance['template'] = strip_tags( $new_instance['template'] );
|
@@ -232,33 +266,35 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
232 |
*/
|
233 |
function form( $instance ) {
|
234 |
|
235 |
-
$this->posttypes = get_post_types( array('public' => true ), 'objects' );
|
236 |
-
$this->taxonomies = get_taxonomies( array('public' => true ), 'objects' );
|
237 |
$this->thumbsizes = get_intermediate_image_sizes();
|
238 |
$this->orderbys = array(
|
239 |
-
'date' => __('Publish Date', 'flexible-posts-widget'),
|
240 |
-
'title' => __('Title', 'flexible-posts-widget'),
|
241 |
-
'menu_order' => __('Menu Order', 'flexible-posts-widget'),
|
242 |
-
'ID' => __('Post ID', 'flexible-posts-widget'),
|
243 |
-
'author' => __('Author', 'flexible-posts-widget'),
|
244 |
-
'name' => __('Post Slug', 'flexible-posts-widget'),
|
245 |
-
'comment_count' => __('Comment Count', 'flexible-posts-widget'),
|
246 |
-
'rand' => __('Random', 'flexible-posts-widget'),
|
247 |
);
|
248 |
$this->orders = array(
|
249 |
-
'ASC' => __('Ascending', 'flexible-posts-widget'),
|
250 |
-
'DESC' => __('Descending', 'flexible-posts-widget'),
|
251 |
);
|
252 |
|
253 |
$instance = wp_parse_args( (array) $instance, array(
|
254 |
'title' => '',
|
255 |
-
'posttype' => array('post'),
|
256 |
'taxonomy' => 'none',
|
257 |
'term' => array(),
|
|
|
258 |
'number' => '3',
|
259 |
'offset' => '0',
|
260 |
'orderby' => 'date',
|
261 |
'order' => 'DESC',
|
|
|
262 |
'thumbnail' => '0',
|
263 |
'thumbsize' => '',
|
264 |
'template' => 'widget.php',
|
@@ -295,9 +331,7 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
295 |
$file = 'views/' . $template;
|
296 |
}
|
297 |
|
298 |
-
|
299 |
-
|
300 |
-
return $file;
|
301 |
|
302 |
}
|
303 |
|
@@ -323,10 +357,10 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
323 |
|
324 |
$taxonomy = esc_attr( $_POST['taxonomy'] );
|
325 |
|
326 |
-
if ( !isset( $term ) )
|
327 |
$term = esc_attr( $_POST['term'] );
|
328 |
|
329 |
-
if ( empty($taxonomy) || 'none' == $taxonomy ) {
|
330 |
echo false;
|
331 |
die();
|
332 |
}
|
@@ -359,11 +393,11 @@ class DPE_Flexible_Posts_Widget extends WP_Widget {
|
|
359 |
public function posttype_checklist( $posttype ) {
|
360 |
|
361 |
//Get pubic post type objects
|
362 |
-
$posttypes = get_post_types( array('public' => true ), 'objects' );
|
363 |
|
364 |
$output = '<ul class="categorychecklist posttypechecklist form-no-clear">';
|
365 |
foreach ( $posttypes as $type ) {
|
366 |
-
$output .= "\n<li>" . '<label class="selectit"><input value="' . esc_attr( $type->name ) . '" type="checkbox" name="' . $this->get_field_name('posttype') . '[]"' . checked( in_array( $type->name, (array)$posttype ), true, false ) . ' /> ' . esc_html( $type->labels->name ) . "</label></li>\n";
|
367 |
}
|
368 |
$output .= "</ul>\n";
|
369 |
|
2 |
/*
|
3 |
Plugin Name: Flexible Posts Widget
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/flexible-posts-widget/
|
5 |
+
Version: 3.2
|
6 |
Author: dpe415
|
7 |
Author URI: http://dpedesign.com
|
8 |
+
Text Domain: flexible-posts-widget
|
9 |
+
Description: An advanced posts display widget with many options: get posts by post type and taxonomy & term or by post ID; sorting & ordering; feature images; custom templates and more.
|
10 |
License: GPL2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
28 |
*/
|
29 |
|
30 |
// Block direct requests
|
31 |
+
if( ! defined( 'ABSPATH' ) )
|
32 |
+
die( '-1' );
|
33 |
|
34 |
// Define our version number
|
35 |
+
if( ! defined( 'DPE_FP_Version' ) )
|
36 |
+
define( 'DPE_FP_Version', '3.2' );
|
37 |
|
38 |
/**
|
39 |
* Plugin Initialization
|
49 |
* Initialize the widget on widgets_init
|
50 |
*/
|
51 |
function dpe_load_flexible_posts_widget() {
|
52 |
+
register_widget( 'DPE_Flexible_Posts_Widget' );
|
53 |
}
|
54 |
add_action('widgets_init', 'dpe_load_flexible_posts_widget' );
|
55 |
|
78 |
$this->register_sns( $this->directory ); // Register styles & scripts
|
79 |
|
80 |
// Enqueue admin scripts
|
81 |
+
if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) {
|
82 |
if ( 'widgets.php' == $pagenow ) {
|
83 |
wp_enqueue_script( 'flexible-posts-widget' );
|
84 |
wp_enqueue_style( 'flexible-posts-widget' );
|
101 |
* @param array $args Widget arguments.
|
102 |
* @param array $instance Saved values from database.
|
103 |
*/
|
104 |
+
function widget( $args, $instance ) {
|
105 |
extract( $args );
|
106 |
extract( $instance );
|
107 |
|
108 |
$title = apply_filters( 'widget_title', empty( $title ) ? '' : $title );
|
109 |
|
110 |
+
if ( empty( $template ) )
|
111 |
$template = 'widget.php';
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
|
114 |
+
// Setup the query arguments array
|
115 |
+
$args = array();
|
116 |
+
|
117 |
+
// Get posts by post_ids specifically (ignore post type & tax/term values).
|
118 |
+
if ( !empty( $pids ) ) {
|
119 |
+
|
120 |
+
// Setup the query
|
121 |
+
$args['post__in'] = $pids;
|
122 |
+
$args['post_type'] = get_post_types( array( 'public' => true ) );
|
123 |
+
|
124 |
+
|
125 |
+
// Else get posts by post type and tax/term
|
126 |
+
} else {
|
127 |
+
|
128 |
+
// Setup the post types
|
129 |
+
$args['post_type'] = $posttype;
|
130 |
+
|
131 |
+
// Setup the tax & term query based on the user's selection
|
132 |
+
if ( $taxonomy != 'none' && !empty( $term ) ) {
|
133 |
+
$args['tax_query'] = array(
|
134 |
+
array(
|
135 |
+
'taxonomy' => $taxonomy,
|
136 |
+
'field' => 'slug',
|
137 |
+
'terms' => $term,
|
138 |
+
)
|
139 |
+
);
|
140 |
+
}
|
141 |
+
|
142 |
}
|
143 |
|
144 |
+
// Finish the query
|
145 |
+
$args['post_status'] = array( 'publish', 'inherit' );
|
146 |
+
$args['posts_per_page'] = $number;
|
147 |
+
$args['offset'] = $offset;
|
148 |
+
$args['orderby'] = $orderby;
|
149 |
+
$args['order'] = $order;
|
150 |
+
$args['ignore_sticky_posts'] = $sticky;
|
151 |
+
|
152 |
+
|
153 |
+
// Allow filtering of the query arguments
|
154 |
+
$args = apply_filters( 'dpe_fpw_args', $args );
|
155 |
+
|
156 |
// Get the posts for this instance
|
157 |
$flexible_posts = new WP_Query( $args );
|
158 |
|
177 |
function update( $new_instance, $old_instance ) {
|
178 |
|
179 |
// Get our defaults to test against
|
180 |
+
$this->posttypes = get_post_types( array( 'public' => true ), 'objects' );
|
181 |
+
$this->taxonomies = get_taxonomies( array( 'public' => true ), 'objects' );
|
182 |
$this->thumbsizes = get_intermediate_image_sizes();
|
183 |
$this->orderbys = array(
|
184 |
+
'date' => __( 'Publish Date', 'flexible-posts-widget' ),
|
185 |
+
'title' => __( 'Title', 'flexible-posts-widget' ),
|
186 |
+
'menu_order' => __( 'Menu Order', 'flexible-posts-widget' ),
|
187 |
+
'ID' => __( 'Post ID', 'flexible-posts-widget' ),
|
188 |
+
'author' => __( 'Author', 'flexible-posts-widget' ),
|
189 |
+
'name' => __( 'Post Slug', 'flexible-posts-widget' ),
|
190 |
+
'comment_count' => __( 'Comment Count', 'flexible-posts-widget' ),
|
191 |
+
'rand' => __( 'Random', 'flexible-posts-widget' ),
|
192 |
);
|
193 |
$this->orders = array(
|
194 |
+
'ASC' => __( 'Ascending', 'flexible-posts-widget' ),
|
195 |
+
'DESC' => __( 'Descending', 'flexible-posts-widget' ),
|
196 |
);
|
197 |
|
198 |
+
$pt_names = get_post_types( array( 'public' => true ), 'names' );
|
199 |
+
$tax_names = get_taxonomies( array( 'public' => true ), 'names' );
|
200 |
$tax_names[] = 'none';
|
201 |
|
202 |
// Validate posttype submissions
|
205 |
if( in_array( $pt, $pt_names ) )
|
206 |
$posttypes[] = $pt;
|
207 |
}
|
208 |
+
if( empty( $posttypes ) )
|
209 |
$posttypes[] = 'post';
|
210 |
|
211 |
// Validate taxonomy & term submissions
|
228 |
$terms = array();
|
229 |
}
|
230 |
|
231 |
+
// Validate Post ID submissions
|
232 |
+
$pids = array();
|
233 |
+
if( !empty( $new_instance['pids'] ) ) {
|
234 |
+
$pids_array = explode( ',', $new_instance['pids'] );
|
235 |
+
foreach ( $pids_array as $id ) {
|
236 |
+
$pids[] = absint( $id );
|
237 |
+
}
|
238 |
+
}
|
239 |
+
|
240 |
$instance = $old_instance;
|
241 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
242 |
$instance['posttype'] = $posttypes;
|
243 |
$instance['taxonomy'] = $taxonomy;
|
244 |
$instance['term'] = $terms;
|
245 |
+
$instance['pids'] = $pids;
|
246 |
$instance['number'] = (int) $new_instance['number'];
|
247 |
$instance['offset'] = (int) $new_instance['offset'];
|
248 |
$instance['orderby'] = ( array_key_exists( $new_instance['orderby'], $this->orderbys ) ? $new_instance['orderby'] : 'date' );
|
249 |
$instance['order'] = ( array_key_exists( $new_instance['order'], $this->orders ) ? $new_instance['order'] : 'DESC' );
|
250 |
+
$instance['sticky'] = ( isset( $new_instance['sticky'] ) ? (int) $new_instance['sticky'] : '0' );
|
251 |
$instance['thumbnail'] = ( isset( $new_instance['thumbnail'] ) ? (int) $new_instance['thumbnail'] : '0' );
|
252 |
$instance['thumbsize'] = ( in_array ( $new_instance['thumbsize'], $this->thumbsizes ) ? $new_instance['thumbsize'] : '' );
|
253 |
$instance['template'] = strip_tags( $new_instance['template'] );
|
266 |
*/
|
267 |
function form( $instance ) {
|
268 |
|
269 |
+
$this->posttypes = get_post_types( array( 'public' => true ), 'objects' );
|
270 |
+
$this->taxonomies = get_taxonomies( array( 'public' => true ), 'objects' );
|
271 |
$this->thumbsizes = get_intermediate_image_sizes();
|
272 |
$this->orderbys = array(
|
273 |
+
'date' => __( 'Publish Date', 'flexible-posts-widget' ),
|
274 |
+
'title' => __( 'Title', 'flexible-posts-widget' ),
|
275 |
+
'menu_order' => __( 'Menu Order', 'flexible-posts-widget' ),
|
276 |
+
'ID' => __( 'Post ID', 'flexible-posts-widget' ),
|
277 |
+
'author' => __( 'Author', 'flexible-posts-widget' ),
|
278 |
+
'name' => __( 'Post Slug', 'flexible-posts-widget' ),
|
279 |
+
'comment_count' => __( 'Comment Count', 'flexible-posts-widget' ),
|
280 |
+
'rand' => __( 'Random', 'flexible-posts-widget' ),
|
281 |
);
|
282 |
$this->orders = array(
|
283 |
+
'ASC' => __( 'Ascending', 'flexible-posts-widget' ),
|
284 |
+
'DESC' => __( 'Descending', 'flexible-posts-widget' ),
|
285 |
);
|
286 |
|
287 |
$instance = wp_parse_args( (array) $instance, array(
|
288 |
'title' => '',
|
289 |
+
'posttype' => array( 'post' ),
|
290 |
'taxonomy' => 'none',
|
291 |
'term' => array(),
|
292 |
+
'pids' => '',
|
293 |
'number' => '3',
|
294 |
'offset' => '0',
|
295 |
'orderby' => 'date',
|
296 |
'order' => 'DESC',
|
297 |
+
'sticky' => '0',
|
298 |
'thumbnail' => '0',
|
299 |
'thumbsize' => '',
|
300 |
'template' => 'widget.php',
|
331 |
$file = 'views/' . $template;
|
332 |
}
|
333 |
|
334 |
+
return apply_filters( 'dpe_fpw_template_' . $template, $file );
|
|
|
|
|
335 |
|
336 |
}
|
337 |
|
357 |
|
358 |
$taxonomy = esc_attr( $_POST['taxonomy'] );
|
359 |
|
360 |
+
if ( ! isset( $term ) )
|
361 |
$term = esc_attr( $_POST['term'] );
|
362 |
|
363 |
+
if ( empty( $taxonomy ) || 'none' == $taxonomy ) {
|
364 |
echo false;
|
365 |
die();
|
366 |
}
|
393 |
public function posttype_checklist( $posttype ) {
|
394 |
|
395 |
//Get pubic post type objects
|
396 |
+
$posttypes = get_post_types( array( 'public' => true ), 'objects' );
|
397 |
|
398 |
$output = '<ul class="categorychecklist posttypechecklist form-no-clear">';
|
399 |
foreach ( $posttypes as $type ) {
|
400 |
+
$output .= "\n<li>" . '<label class="selectit"><input value="' . esc_attr( $type->name ) . '" type="checkbox" name="' . $this->get_field_name( 'posttype' ) . '[]"' . checked( in_array( $type->name, (array)$posttype ), true, false ) . ' /> ' . esc_html( $type->labels->name ) . "</label></li>\n";
|
401 |
}
|
402 |
$output .= "</ul>\n";
|
403 |
|
languages/flexible-posts-widget-es_ES.mo
CHANGED
Binary file
|
languages/flexible-posts-widget-es_ES.po
CHANGED
@@ -2,86 +2,78 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Flexible Posts Widget en español\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/flexible-posts-widget\n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
|
8 |
"Language-Team: PNTE <blogs@educacion.navarra.es>\n"
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_n:1,2;_c;esc_html__;esc_html_e;esc_attr__;esc_attr_e\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"X-Poedit-Language: Spanish\n"
|
15 |
-
"X-Poedit-Country: Spain\n"
|
16 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: flexible-posts-widget.php:
|
20 |
msgid "Display posts as widget items"
|
21 |
msgstr "Muestra las entradas como elementos de un widget"
|
22 |
|
23 |
-
#: flexible-posts-widget.php:
|
24 |
msgid "Getting terms..."
|
25 |
msgstr "Obteniendo términos..."
|
26 |
|
27 |
-
#: flexible-posts-widget.php:
|
28 |
-
#: views/admin.php:49
|
29 |
msgid "Select terms:"
|
30 |
msgstr "Seleccionar términos:"
|
31 |
|
32 |
-
#: flexible-posts-widget.php:
|
33 |
-
#:
|
34 |
-
#: views/admin.php:67
|
35 |
msgid "No terms found."
|
36 |
msgstr "No se ha encontrado ningún término."
|
37 |
|
38 |
-
#: flexible-posts-widget.php:
|
39 |
-
#: flexible-posts-widget.php:239
|
40 |
msgid "Publish Date"
|
41 |
msgstr "Fecha de publicación"
|
42 |
|
43 |
-
#: flexible-posts-widget.php:
|
44 |
-
#: flexible-posts-widget.php:240
|
45 |
msgid "Title"
|
46 |
msgstr "Título"
|
47 |
|
48 |
-
#: flexible-posts-widget.php:
|
49 |
-
#: flexible-posts-widget.php:241
|
50 |
msgid "Menu Order"
|
51 |
msgstr "Orden de menú"
|
52 |
|
53 |
-
#: flexible-posts-widget.php:
|
54 |
-
#:
|
55 |
msgid "Post ID"
|
56 |
msgstr "ID de entrada"
|
57 |
|
58 |
-
#: flexible-posts-widget.php:
|
59 |
-
#: flexible-posts-widget.php:243
|
60 |
msgid "Author"
|
61 |
msgstr "Autor"
|
62 |
|
63 |
-
#: flexible-posts-widget.php:
|
64 |
-
#: flexible-posts-widget.php:244
|
65 |
msgid "Post Slug"
|
66 |
msgstr "Nombre de la entrada (slug)"
|
67 |
|
68 |
-
#: flexible-posts-widget.php:
|
69 |
-
#: flexible-posts-widget.php:245
|
70 |
msgid "Comment Count"
|
71 |
msgstr "Total de comentarios"
|
72 |
|
73 |
-
#: flexible-posts-widget.php:
|
74 |
-
#: flexible-posts-widget.php:246
|
75 |
msgid "Random"
|
76 |
msgstr "Al azar"
|
77 |
|
78 |
-
#: flexible-posts-widget.php:
|
79 |
-
#: flexible-posts-widget.php:249
|
80 |
msgid "Ascending"
|
81 |
msgstr "Ascendente"
|
82 |
|
83 |
-
#: flexible-posts-widget.php:
|
84 |
-
#: flexible-posts-widget.php:250
|
85 |
msgid "Descending"
|
86 |
msgstr "Descendente"
|
87 |
|
@@ -91,63 +83,84 @@ msgstr "Título del widget:"
|
|
91 |
|
92 |
#: views/admin.php:21
|
93 |
msgid "Get posts by"
|
94 |
-
msgstr "Obtener entradas por"
|
95 |
|
96 |
#: views/admin.php:29
|
97 |
msgid "Post Type"
|
98 |
-
msgstr "
|
99 |
|
100 |
#: views/admin.php:30
|
101 |
msgid "Taxonomy & Term"
|
102 |
msgstr "Taxonomías y términos"
|
103 |
|
104 |
-
#: views/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
msgid "Select a taxonomy:"
|
106 |
msgstr "Seleccionar una taxonomía:"
|
107 |
|
108 |
-
#: views/admin.php:
|
109 |
msgid "Ignore Taxonomy & Term"
|
110 |
msgstr "Ignorar taxonomías y términos"
|
111 |
|
112 |
-
#: views/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
msgid "Display options"
|
114 |
msgstr "Opciones de visualización"
|
115 |
|
116 |
-
#: views/admin.php:
|
|
|
|
|
|
|
|
|
117 |
msgid "Number of posts to show:"
|
118 |
msgstr "Número de entradas que mostrar:"
|
119 |
|
120 |
-
#: views/admin.php:
|
121 |
msgid "Number of posts to skip:"
|
122 |
msgstr "Número de entradas que saltar:"
|
123 |
|
124 |
-
#: views/admin.php:
|
125 |
msgid "Order posts by:"
|
126 |
msgstr "Ordenar entradas por:"
|
127 |
|
128 |
-
#: views/admin.php:
|
129 |
msgid "Order:"
|
130 |
msgstr "Orden:"
|
131 |
|
132 |
-
#: views/admin.php:
|
133 |
msgid "Display thumbnails?"
|
134 |
-
msgstr "¿
|
135 |
|
136 |
-
#: views/admin.php:
|
137 |
msgid "Select a thumbnail size to show:"
|
138 |
msgstr "Selecciona el tamaño de miniatura que se mostrará:"
|
139 |
|
140 |
-
#: views/admin.php:
|
141 |
msgid "Template filename:"
|
142 |
msgstr "Nombre del fichero de plantilla:"
|
143 |
|
144 |
-
#: views/admin.php:
|
145 |
-
msgid "See documentation"
|
146 |
-
msgstr "
|
147 |
-
|
148 |
-
#: views/admin.php:136
|
149 |
-
msgid "for details."
|
150 |
-
msgstr "para saber más sobre la plantilla personalizada para el widget."
|
151 |
|
152 |
#: views/widget.php:39
|
153 |
msgid "No post found"
|
@@ -162,8 +175,14 @@ msgid "http://wordpress.org/extend/plugins/flexible-posts-widget/"
|
|
162 |
msgstr "http://wordpress.org/extend/plugins/flexible-posts-widget/"
|
163 |
|
164 |
#. Description of the plugin/theme
|
165 |
-
msgid "
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
|
168 |
#. Author of the plugin/theme
|
169 |
msgid "dpe415"
|
@@ -173,3 +192,5 @@ msgstr "dpe415"
|
|
173 |
msgid "http://dpedesign.com"
|
174 |
msgstr "http://dpedesign.com"
|
175 |
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Flexible Posts Widget en español\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/flexible-posts-widget\n"
|
5 |
+
"POT-Creation-Date: 2013-10-21 14:34:24+00:00\n"
|
6 |
+
"PO-Revision-Date: 2013-10-21 22:39+0100\n"
|
7 |
"Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
|
8 |
"Language-Team: PNTE <blogs@educacion.navarra.es>\n"
|
9 |
+
"Language: Spanish\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
+
"X-Generator: Poedit 1.5.7\n"
|
15 |
+
"X-Poedit-Basepath: ..\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
|
18 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
19 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
+
#: flexible-posts-widget.php:72
|
23 |
msgid "Display posts as widget items"
|
24 |
msgstr "Muestra las entradas como elementos de un widget"
|
25 |
|
26 |
+
#: flexible-posts-widget.php:86
|
27 |
msgid "Getting terms..."
|
28 |
msgstr "Obteniendo términos..."
|
29 |
|
30 |
+
#: flexible-posts-widget.php:87 views/admin.php:50
|
|
|
31 |
msgid "Select terms:"
|
32 |
msgstr "Seleccionar términos:"
|
33 |
|
34 |
+
#: flexible-posts-widget.php:88 flexible-posts-widget.php:375
|
35 |
+
#: views/admin.php:68
|
|
|
36 |
msgid "No terms found."
|
37 |
msgstr "No se ha encontrado ningún término."
|
38 |
|
39 |
+
#: flexible-posts-widget.php:184 flexible-posts-widget.php:273
|
|
|
40 |
msgid "Publish Date"
|
41 |
msgstr "Fecha de publicación"
|
42 |
|
43 |
+
#: flexible-posts-widget.php:185 flexible-posts-widget.php:274
|
|
|
44 |
msgid "Title"
|
45 |
msgstr "Título"
|
46 |
|
47 |
+
#: flexible-posts-widget.php:186 flexible-posts-widget.php:275
|
|
|
48 |
msgid "Menu Order"
|
49 |
msgstr "Orden de menú"
|
50 |
|
51 |
+
#: flexible-posts-widget.php:187 flexible-posts-widget.php:276
|
52 |
+
#: views/admin.php:31
|
53 |
msgid "Post ID"
|
54 |
msgstr "ID de entrada"
|
55 |
|
56 |
+
#: flexible-posts-widget.php:188 flexible-posts-widget.php:277
|
|
|
57 |
msgid "Author"
|
58 |
msgstr "Autor"
|
59 |
|
60 |
+
#: flexible-posts-widget.php:189 flexible-posts-widget.php:278
|
|
|
61 |
msgid "Post Slug"
|
62 |
msgstr "Nombre de la entrada (slug)"
|
63 |
|
64 |
+
#: flexible-posts-widget.php:190 flexible-posts-widget.php:279
|
|
|
65 |
msgid "Comment Count"
|
66 |
msgstr "Total de comentarios"
|
67 |
|
68 |
+
#: flexible-posts-widget.php:191 flexible-posts-widget.php:280
|
|
|
69 |
msgid "Random"
|
70 |
msgstr "Al azar"
|
71 |
|
72 |
+
#: flexible-posts-widget.php:194 flexible-posts-widget.php:283
|
|
|
73 |
msgid "Ascending"
|
74 |
msgstr "Ascendente"
|
75 |
|
76 |
+
#: flexible-posts-widget.php:195 flexible-posts-widget.php:284
|
|
|
77 |
msgid "Descending"
|
78 |
msgstr "Descendente"
|
79 |
|
83 |
|
84 |
#: views/admin.php:21
|
85 |
msgid "Get posts by"
|
86 |
+
msgstr "Obtener entradas por:"
|
87 |
|
88 |
#: views/admin.php:29
|
89 |
msgid "Post Type"
|
90 |
+
msgstr "Tipos de contenido"
|
91 |
|
92 |
#: views/admin.php:30
|
93 |
msgid "Taxonomy & Term"
|
94 |
msgstr "Taxonomías y términos"
|
95 |
|
96 |
+
#: views/admin.php:30
|
97 |
+
msgid "Tax & Term"
|
98 |
+
msgstr "Taxonomías y términos"
|
99 |
+
|
100 |
+
#: views/admin.php:31
|
101 |
+
msgid "ID"
|
102 |
+
msgstr "IDs"
|
103 |
+
|
104 |
+
#: views/admin.php:40
|
105 |
msgid "Select a taxonomy:"
|
106 |
msgstr "Seleccionar una taxonomía:"
|
107 |
|
108 |
+
#: views/admin.php:42
|
109 |
msgid "Ignore Taxonomy & Term"
|
110 |
msgstr "Ignorar taxonomías y términos"
|
111 |
|
112 |
+
#: views/admin.php:79
|
113 |
+
msgid "Comma-separated list of post IDs:"
|
114 |
+
msgstr "Lista de IDs de entradas, separado por comas:"
|
115 |
+
|
116 |
+
#: views/admin.php:81
|
117 |
+
msgid "Will override settings on the Post Type and Taxonomy & Term tabs."
|
118 |
+
msgstr ""
|
119 |
+
"Anulará la configuración de tipos de contenido y de términos de taxonomía"
|
120 |
+
|
121 |
+
#: views/admin.php:81
|
122 |
+
msgid "See documentation."
|
123 |
+
msgstr "Consultar la documentación"
|
124 |
+
|
125 |
+
#: views/admin.php:92
|
126 |
msgid "Display options"
|
127 |
msgstr "Opciones de visualización"
|
128 |
|
129 |
+
#: views/admin.php:95
|
130 |
+
msgid "Ignore sticky posts?"
|
131 |
+
msgstr "¿Quieres ignorar las entradas fijas?"
|
132 |
+
|
133 |
+
#: views/admin.php:98
|
134 |
msgid "Number of posts to show:"
|
135 |
msgstr "Número de entradas que mostrar:"
|
136 |
|
137 |
+
#: views/admin.php:102
|
138 |
msgid "Number of posts to skip:"
|
139 |
msgstr "Número de entradas que saltar:"
|
140 |
|
141 |
+
#: views/admin.php:106
|
142 |
msgid "Order posts by:"
|
143 |
msgstr "Ordenar entradas por:"
|
144 |
|
145 |
+
#: views/admin.php:116
|
146 |
msgid "Order:"
|
147 |
msgstr "Orden:"
|
148 |
|
149 |
+
#: views/admin.php:130
|
150 |
msgid "Display thumbnails?"
|
151 |
+
msgstr "¿Quieres mostrar las miniaturas?"
|
152 |
|
153 |
+
#: views/admin.php:133
|
154 |
msgid "Select a thumbnail size to show:"
|
155 |
msgstr "Selecciona el tamaño de miniatura que se mostrará:"
|
156 |
|
157 |
+
#: views/admin.php:146
|
158 |
msgid "Template filename:"
|
159 |
msgstr "Nombre del fichero de plantilla:"
|
160 |
|
161 |
+
#: views/admin.php:149
|
162 |
+
msgid "See documentation for details."
|
163 |
+
msgstr "Consultar la documentación para los detalles"
|
|
|
|
|
|
|
|
|
164 |
|
165 |
#: views/widget.php:39
|
166 |
msgid "No post found"
|
175 |
msgstr "http://wordpress.org/extend/plugins/flexible-posts-widget/"
|
176 |
|
177 |
#. Description of the plugin/theme
|
178 |
+
msgid ""
|
179 |
+
"An advanced posts display widget with many options: get posts by post type "
|
180 |
+
"and taxonomy & term or by post ID; sorting & ordering; feature images; "
|
181 |
+
"custom templates and more."
|
182 |
+
msgstr ""
|
183 |
+
"Un widget avanzado para mostrar entradas, con muchas opciones: obtener "
|
184 |
+
"entradas por tipo de contenido, taxonomía y términos; clasificación y "
|
185 |
+
"ordenación; imágenes destacadas; plantillas personalizadas, etc."
|
186 |
|
187 |
#. Author of the plugin/theme
|
188 |
msgid "dpe415"
|
192 |
msgid "http://dpedesign.com"
|
193 |
msgstr "http://dpedesign.com"
|
194 |
|
195 |
+
#~ msgid "for details."
|
196 |
+
#~ msgstr "para saber más sobre la plantilla personalizada para el widget."
|
languages/flexible-posts-widget-pl_PL.mo
ADDED
Binary file
|
languages/flexible-posts-widget-pl_PL.po
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2013 Flexible Posts Widget
|
2 |
+
# This file is distributed under the same license as the Flexible Posts Widget package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Flexible Posts Widget 3.2\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/flexible-posts-widget\n"
|
7 |
+
"POT-Creation-Date: 2013-10-21 14:34:24+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: 2013-10-21 22:05+0100\n"
|
12 |
+
"Last-Translator: Invens.pl <info@invens.pl>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
"X-Generator: Poedit 1.5.7\n"
|
15 |
+
|
16 |
+
#: flexible-posts-widget.php:72
|
17 |
+
msgid "Display posts as widget items"
|
18 |
+
msgstr "Wyświetlaj wpisy jako objekty widgetu"
|
19 |
+
|
20 |
+
#: flexible-posts-widget.php:86
|
21 |
+
msgid "Getting terms..."
|
22 |
+
msgstr "Pobieranie kategorii"
|
23 |
+
|
24 |
+
#: flexible-posts-widget.php:87 views/admin.php:50
|
25 |
+
msgid "Select terms:"
|
26 |
+
msgstr "Wybierz kategorię"
|
27 |
+
|
28 |
+
#: flexible-posts-widget.php:88 flexible-posts-widget.php:375
|
29 |
+
#: views/admin.php:68
|
30 |
+
msgid "No terms found."
|
31 |
+
msgstr "Nie znaleziono kategorii."
|
32 |
+
|
33 |
+
#: flexible-posts-widget.php:184 flexible-posts-widget.php:273
|
34 |
+
msgid "Publish Date"
|
35 |
+
msgstr "Data publikacji"
|
36 |
+
|
37 |
+
#: flexible-posts-widget.php:185 flexible-posts-widget.php:274
|
38 |
+
msgid "Title"
|
39 |
+
msgstr "Tytuł"
|
40 |
+
|
41 |
+
#: flexible-posts-widget.php:186 flexible-posts-widget.php:275
|
42 |
+
msgid "Menu Order"
|
43 |
+
msgstr "Kolejność menu"
|
44 |
+
|
45 |
+
#: flexible-posts-widget.php:187 flexible-posts-widget.php:276
|
46 |
+
#: views/admin.php:31
|
47 |
+
msgid "Post ID"
|
48 |
+
msgstr "ID wpisu"
|
49 |
+
|
50 |
+
#: flexible-posts-widget.php:188 flexible-posts-widget.php:277
|
51 |
+
msgid "Author"
|
52 |
+
msgstr "Autor"
|
53 |
+
|
54 |
+
#: flexible-posts-widget.php:189 flexible-posts-widget.php:278
|
55 |
+
msgid "Post Slug"
|
56 |
+
msgstr "Slug wpisu"
|
57 |
+
|
58 |
+
#: flexible-posts-widget.php:190 flexible-posts-widget.php:279
|
59 |
+
msgid "Comment Count"
|
60 |
+
msgstr "Ilość komentarzy"
|
61 |
+
|
62 |
+
#: flexible-posts-widget.php:191 flexible-posts-widget.php:280
|
63 |
+
msgid "Random"
|
64 |
+
msgstr "Losowo"
|
65 |
+
|
66 |
+
#: flexible-posts-widget.php:194 flexible-posts-widget.php:283
|
67 |
+
msgid "Ascending"
|
68 |
+
msgstr "Rosnąco"
|
69 |
+
|
70 |
+
#: flexible-posts-widget.php:195 flexible-posts-widget.php:284
|
71 |
+
msgid "Descending"
|
72 |
+
msgstr "Malejąco"
|
73 |
+
|
74 |
+
#: views/admin.php:15
|
75 |
+
msgid "Widget title:"
|
76 |
+
msgstr "Tytuł widgetu:"
|
77 |
+
|
78 |
+
#: views/admin.php:21
|
79 |
+
msgid "Get posts by"
|
80 |
+
msgstr "Pobież wpisy według"
|
81 |
+
|
82 |
+
#: views/admin.php:29
|
83 |
+
msgid "Post Type"
|
84 |
+
msgstr "Typ wpisu"
|
85 |
+
|
86 |
+
#: views/admin.php:30
|
87 |
+
msgid "Taxonomy & Term"
|
88 |
+
msgstr "Taksonomie i kategorie"
|
89 |
+
|
90 |
+
#: views/admin.php:30
|
91 |
+
msgid "Tax & Term"
|
92 |
+
msgstr "Taksonomia i kategoria"
|
93 |
+
|
94 |
+
#: views/admin.php:31
|
95 |
+
msgid "ID"
|
96 |
+
msgstr "ID"
|
97 |
+
|
98 |
+
#: views/admin.php:40
|
99 |
+
msgid "Select a taxonomy:"
|
100 |
+
msgstr "Wybierz taksonomię"
|
101 |
+
|
102 |
+
#: views/admin.php:42
|
103 |
+
msgid "Ignore Taxonomy & Term"
|
104 |
+
msgstr "Ignoruj taksonomię i kategorię"
|
105 |
+
|
106 |
+
#: views/admin.php:79
|
107 |
+
msgid "Comma-separated list of post IDs:"
|
108 |
+
msgstr "LIsta ID wpisów oddzielonych przecinkiem:"
|
109 |
+
|
110 |
+
#: views/admin.php:81
|
111 |
+
msgid "Will override settings on the Post Type and Taxonomy & Term tabs."
|
112 |
+
msgstr "Nadpisze ustawienia typu wpisu i taksonomii oraz kategorii"
|
113 |
+
|
114 |
+
#: views/admin.php:81
|
115 |
+
msgid "See documentation."
|
116 |
+
msgstr "Zobacz dokumentację."
|
117 |
+
|
118 |
+
#: views/admin.php:92
|
119 |
+
msgid "Display options"
|
120 |
+
msgstr "Opcje wyświetlania"
|
121 |
+
|
122 |
+
#: views/admin.php:95
|
123 |
+
msgid "Ignore sticky posts?"
|
124 |
+
msgstr "Ignorować przyklejone wpisy?"
|
125 |
+
|
126 |
+
#: views/admin.php:98
|
127 |
+
msgid "Number of posts to show:"
|
128 |
+
msgstr "Ilość wpisów do wyświetlenia:"
|
129 |
+
|
130 |
+
#: views/admin.php:102
|
131 |
+
msgid "Number of posts to skip:"
|
132 |
+
msgstr "Ilość wpisów do pominięcia:"
|
133 |
+
|
134 |
+
#: views/admin.php:106
|
135 |
+
msgid "Order posts by:"
|
136 |
+
msgstr "Uporządkuj wpisy według:"
|
137 |
+
|
138 |
+
#: views/admin.php:116
|
139 |
+
msgid "Order:"
|
140 |
+
msgstr "Kolejność:"
|
141 |
+
|
142 |
+
#: views/admin.php:130
|
143 |
+
msgid "Display thumbnails?"
|
144 |
+
msgstr "Wyświetlać miniaturki?"
|
145 |
+
|
146 |
+
#: views/admin.php:133
|
147 |
+
msgid "Select a thumbnail size to show:"
|
148 |
+
msgstr "Wyświetl wielkość miniatury do wyświetlenia:"
|
149 |
+
|
150 |
+
#: views/admin.php:146
|
151 |
+
msgid "Template filename:"
|
152 |
+
msgstr "Nazwa pliku szablonu:"
|
153 |
+
|
154 |
+
#: views/admin.php:149
|
155 |
+
msgid "See documentation for details."
|
156 |
+
msgstr "Więcej szczegółów w dokumentacji."
|
157 |
+
|
158 |
+
#: views/widget.php:39
|
159 |
+
msgid "No post found"
|
160 |
+
msgstr "Nie znaleziono wpisów."
|
161 |
+
|
162 |
+
#. Plugin Name of the plugin/theme
|
163 |
+
msgid "Flexible Posts Widget"
|
164 |
+
msgstr "Flexible Posts Widget"
|
165 |
+
|
166 |
+
#. Plugin URI of the plugin/theme
|
167 |
+
msgid "http://wordpress.org/extend/plugins/flexible-posts-widget/"
|
168 |
+
msgstr "http://wordpress.org/extend/plugins/flexible-posts-widget/"
|
169 |
+
|
170 |
+
#. Description of the plugin/theme
|
171 |
+
msgid ""
|
172 |
+
"An advanced posts display widget with many options: get posts by post type "
|
173 |
+
"and taxonomy & term or by post ID; sorting & ordering; feature images; "
|
174 |
+
"custom templates and more."
|
175 |
+
msgstr ""
|
176 |
+
"Zaawansowane wyświetlanie widgetów z wieloma opcjami: wyświetlanie wpisów "
|
177 |
+
"według typu, taksonomii i kategorii lub ID wpisu; sortowanie i kolejność; "
|
178 |
+
"wyróżnione obrazy; własne szablonu i wiele więcej..."
|
179 |
+
|
180 |
+
#. Author of the plugin/theme
|
181 |
+
msgid "dpe415"
|
182 |
+
msgstr "dpe415"
|
183 |
+
|
184 |
+
#. Author URI of the plugin/theme
|
185 |
+
msgid "http://dpedesign.com"
|
186 |
+
msgstr "http://dpedesign.com"
|
languages/flexible-posts-widget.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Flexible Posts Widget package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Flexible Posts Widget 3.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/flexible-posts-widget\n"
|
7 |
-
"POT-Creation-Date: 2013-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -12,60 +12,61 @@ msgstr ""
|
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
-
#: flexible-posts-widget.php:
|
16 |
msgid "Display posts as widget items"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: flexible-posts-widget.php:
|
20 |
msgid "Getting terms..."
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: flexible-posts-widget.php:
|
24 |
msgid "Select terms:"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: flexible-posts-widget.php:
|
28 |
-
#: views/admin.php:
|
29 |
msgid "No terms found."
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: flexible-posts-widget.php:
|
33 |
msgid "Publish Date"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: flexible-posts-widget.php:
|
37 |
msgid "Title"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: flexible-posts-widget.php:
|
41 |
msgid "Menu Order"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: flexible-posts-widget.php:
|
|
|
45 |
msgid "Post ID"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: flexible-posts-widget.php:
|
49 |
msgid "Author"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: flexible-posts-widget.php:
|
53 |
msgid "Post Slug"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: flexible-posts-widget.php:
|
57 |
msgid "Comment Count"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: flexible-posts-widget.php:
|
61 |
msgid "Random"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: flexible-posts-widget.php:
|
65 |
msgid "Ascending"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: flexible-posts-widget.php:
|
69 |
msgid "Descending"
|
70 |
msgstr ""
|
71 |
|
@@ -85,52 +86,72 @@ msgstr ""
|
|
85 |
msgid "Taxonomy & Term"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: views/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
msgid "Select a taxonomy:"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: views/admin.php:
|
93 |
msgid "Ignore Taxonomy & Term"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: views/admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
msgid "Display options"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: views/admin.php:
|
|
|
|
|
|
|
|
|
101 |
msgid "Number of posts to show:"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: views/admin.php:
|
105 |
msgid "Number of posts to skip:"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: views/admin.php:
|
109 |
msgid "Order posts by:"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: views/admin.php:
|
113 |
msgid "Order:"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: views/admin.php:
|
117 |
msgid "Display thumbnails?"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: views/admin.php:
|
121 |
msgid "Select a thumbnail size to show:"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: views/admin.php:
|
125 |
msgid "Template filename:"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: views/admin.php:
|
129 |
-
msgid "See documentation"
|
130 |
-
msgstr ""
|
131 |
-
|
132 |
-
#: views/admin.php:136
|
133 |
-
msgid "for details."
|
134 |
msgstr ""
|
135 |
|
136 |
#: views/widget.php:39
|
@@ -147,9 +168,9 @@ msgstr ""
|
|
147 |
|
148 |
#. Description of the plugin/theme
|
149 |
msgid ""
|
150 |
-
"An advanced posts display widget with many options: get posts by post type
|
151 |
-
"taxonomy & term; sorting & ordering; feature images;
|
152 |
-
"more."
|
153 |
msgstr ""
|
154 |
|
155 |
#. Author of the plugin/theme
|
2 |
# This file is distributed under the same license as the Flexible Posts Widget package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Flexible Posts Widget 3.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/flexible-posts-widget\n"
|
7 |
+
"POT-Creation-Date: 2013-10-21 14:34:24+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: flexible-posts-widget.php:72
|
16 |
msgid "Display posts as widget items"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: flexible-posts-widget.php:86
|
20 |
msgid "Getting terms..."
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: flexible-posts-widget.php:87 views/admin.php:50
|
24 |
msgid "Select terms:"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: flexible-posts-widget.php:88 flexible-posts-widget.php:375
|
28 |
+
#: views/admin.php:68
|
29 |
msgid "No terms found."
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: flexible-posts-widget.php:184 flexible-posts-widget.php:273
|
33 |
msgid "Publish Date"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: flexible-posts-widget.php:185 flexible-posts-widget.php:274
|
37 |
msgid "Title"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: flexible-posts-widget.php:186 flexible-posts-widget.php:275
|
41 |
msgid "Menu Order"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: flexible-posts-widget.php:187 flexible-posts-widget.php:276
|
45 |
+
#: views/admin.php:31
|
46 |
msgid "Post ID"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: flexible-posts-widget.php:188 flexible-posts-widget.php:277
|
50 |
msgid "Author"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: flexible-posts-widget.php:189 flexible-posts-widget.php:278
|
54 |
msgid "Post Slug"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: flexible-posts-widget.php:190 flexible-posts-widget.php:279
|
58 |
msgid "Comment Count"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: flexible-posts-widget.php:191 flexible-posts-widget.php:280
|
62 |
msgid "Random"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: flexible-posts-widget.php:194 flexible-posts-widget.php:283
|
66 |
msgid "Ascending"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: flexible-posts-widget.php:195 flexible-posts-widget.php:284
|
70 |
msgid "Descending"
|
71 |
msgstr ""
|
72 |
|
86 |
msgid "Taxonomy & Term"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: views/admin.php:30
|
90 |
+
msgid "Tax & Term"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: views/admin.php:31
|
94 |
+
msgid "ID"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: views/admin.php:40
|
98 |
msgid "Select a taxonomy:"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: views/admin.php:42
|
102 |
msgid "Ignore Taxonomy & Term"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: views/admin.php:79
|
106 |
+
msgid "Comma-separated list of post IDs:"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: views/admin.php:81
|
110 |
+
msgid "Will override settings on the Post Type and Taxonomy & Term tabs."
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: views/admin.php:81
|
114 |
+
msgid "See documentation."
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: views/admin.php:92
|
118 |
msgid "Display options"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: views/admin.php:95
|
122 |
+
msgid "Ignore sticky posts?"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: views/admin.php:98
|
126 |
msgid "Number of posts to show:"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: views/admin.php:102
|
130 |
msgid "Number of posts to skip:"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: views/admin.php:106
|
134 |
msgid "Order posts by:"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: views/admin.php:116
|
138 |
msgid "Order:"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: views/admin.php:130
|
142 |
msgid "Display thumbnails?"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: views/admin.php:133
|
146 |
msgid "Select a thumbnail size to show:"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: views/admin.php:146
|
150 |
msgid "Template filename:"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: views/admin.php:149
|
154 |
+
msgid "See documentation for details."
|
|
|
|
|
|
|
|
|
155 |
msgstr ""
|
156 |
|
157 |
#: views/widget.php:39
|
168 |
|
169 |
#. Description of the plugin/theme
|
170 |
msgid ""
|
171 |
+
"An advanced posts display widget with many options: get posts by post type "
|
172 |
+
"and taxonomy & term or by post ID; sorting & ordering; feature images; "
|
173 |
+
"custom templates and more."
|
174 |
msgstr ""
|
175 |
|
176 |
#. Author of the plugin/theme
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dpe415
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DJKSKHJWYAWDU
|
4 |
Tags: widget, widgets, posts, categories, tags, recent posts, thumbnails, custom post types, custom taxonomies, feature image
|
5 |
Requires at least: 3.2
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 3.
|
8 |
License: GPL2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -15,11 +15,11 @@ The default Recent Posts widget is exceptionally basic. I always find myself in
|
|
15 |
|
16 |
Flexible Posts Widget (FPW) is more than just a simple alternative to the default Recent Posts widget. With many per-instance options it is highly customizable and allows advanced users to display the resulting posts virtually any way imaginable.
|
17 |
|
18 |
-
Version 3.0 is a major enhancement as widgets can now get posts by *
|
19 |
|
20 |
= Features & options =
|
21 |
* Customizable widget title
|
22 |
-
* Get posts
|
23 |
* Control the number of posts displayed and the number of posts to offset.
|
24 |
* Option to display the post feature image.
|
25 |
* Select the post feature image size to display from existing image sizes: thumbnail, medium, large, post-thumbnail or any size defined by the current theme.
|
@@ -29,6 +29,7 @@ Version 3.0 is a major enhancement as widgets can now get posts by *BOTH* post t
|
|
29 |
= Supported Languages =
|
30 |
* English
|
31 |
* Spanish
|
|
|
32 |
|
33 |
|
34 |
== Installation ==
|
@@ -45,6 +46,19 @@ Version 3.0 is a major enhancement as widgets can now get posts by *BOTH* post t
|
|
45 |
|
46 |
|
47 |
== Frequently Asked Questions ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
= How can I display custom fields (custom meta values) with FPW? =
|
49 |
You'll want to create a custom HTML template by following [the instructions](http://wordpress.org/extend/plugins/flexible-posts-widget/installation/ "View instructions for creating custom FPW templates") and then you can use the standard WordPress [Custom Field](http://codex.wordpress.org/Custom_Fields "View custom field functions on the WordPress Codex") functions the same way you would if you were editing your theme's other template files.
|
50 |
|
@@ -59,16 +73,17 @@ FPW intentionally does NOT add any styling of it's own. To adjust the font size
|
|
59 |
FPW does not add styles or scripts to your public theme. The plugin is intentionally designed to work within your existing theme. FPW does add one stylesheet and one JavaScript to the Widgets page in wp-admin to help with the administration of any FPWs in use.
|
60 |
|
61 |
= Want to add support for another language? =
|
62 |
-
I'd love to support more languages. Feel free to post PO & MO files for your language to a [new forum thread](http://wordpress.org/tags/flexible-posts-widget/) and I'll get them added to the plugin.
|
63 |
|
64 |
= Questions, Support & Bug Reports =
|
65 |
To get answers to your questions, request help or submit a bug report, please start a [new forum thread](http://wordpress.org/tags/flexible-posts-widget/).
|
66 |
|
67 |
|
68 |
== Screenshots ==
|
69 |
-
1. Configuring a
|
70 |
-
1. Configuring a
|
71 |
-
1.
|
|
|
72 |
1. In the Wild: FPW displaying a selection of featured beers (Post Type: Brew) over at http://canalparkbrewery.com. This example uses slightly customized output and some theme-specific styles.
|
73 |
1. In the wild: FPW displaying a selection media attachments, with custom thumbnails. This example uses highly customized HTML output and very theme-specific styles.
|
74 |
1. In the wild: FPW displaying several posts over at http://chnl7700.mnsu.edu. Also highly customized output and theme styles.
|
@@ -87,15 +102,18 @@ FPW comes with a default template for the widget output. If you would like to al
|
|
87 |
Edit the new file in your theme to your desired HTML layout. Please do not edit the one in the plugin folder as that will cause conflicts when you update the plugin to the latest release.
|
88 |
|
89 |
= Future updates & feature requests list =
|
90 |
-
* Add a CSS class field to be applied to each widget in a (non-existant) Advanced section.
|
91 |
* Dynamically populate the "Template Filename" field based on the templates available.
|
92 |
-
* Add filters & hooks for other plugins.
|
93 |
* Add shortcode functionality.
|
94 |
-
* Allow shortcode output to dynamically load more posts (AJAX-ified).
|
95 |
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
= 3.1.2 =
|
100 |
* Fixed several pesky PHP notices. (Props: @eeb1)
|
101 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DJKSKHJWYAWDU
|
4 |
Tags: widget, widgets, posts, categories, tags, recent posts, thumbnails, custom post types, custom taxonomies, feature image
|
5 |
Requires at least: 3.2
|
6 |
+
Tested up to: 3.7
|
7 |
+
Stable tag: 3.2
|
8 |
License: GPL2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
15 |
|
16 |
Flexible Posts Widget (FPW) is more than just a simple alternative to the default Recent Posts widget. With many per-instance options it is highly customizable and allows advanced users to display the resulting posts virtually any way imaginable.
|
17 |
|
18 |
+
Version 3.0 is a major enhancement as widgets can now get posts by *both* post type and/or taxonomy & term as well as select *multiple* post types and terms. Previous versions of the plugin only allowed post type *or* taxonomy & term queries, not both.
|
19 |
|
20 |
= Features & options =
|
21 |
* Customizable widget title
|
22 |
+
* Get posts by post type(s) and/or taxonomy & term(s) or directly by a list of post IDs.
|
23 |
* Control the number of posts displayed and the number of posts to offset.
|
24 |
* Option to display the post feature image.
|
25 |
* Select the post feature image size to display from existing image sizes: thumbnail, medium, large, post-thumbnail or any size defined by the current theme.
|
29 |
= Supported Languages =
|
30 |
* English
|
31 |
* Spanish
|
32 |
+
* Polish
|
33 |
|
34 |
|
35 |
== Installation ==
|
46 |
|
47 |
|
48 |
== Frequently Asked Questions ==
|
49 |
+
|
50 |
+
= How does the "Comma-separated list of post IDs" work? =
|
51 |
+
The third option (tab) available for getting posts is directly with a list of post IDs. If there is a value in this field, any settings in the "Post Type" or "Taxonomy & Term" tabs will be ignored and all public post types will be queried for the specific post IDs provided. All the other widget options (Display, Thumbnails and Template settings) will still be applied.
|
52 |
+
|
53 |
+
= How do I find a post's ID? =
|
54 |
+
Per a [WordPress support thread](http://wordpress.org/support/topic/where-can-find-the-post-id):
|
55 |
+
|
56 |
+
Go to Posts in your WordPress admin, and click the post you need the ID of. Then, if you look in the address bar of your browser, you'll see something like this:
|
57 |
+
|
58 |
+
`http://example.com/wp-admin/post.php?post=1280&action=edit`
|
59 |
+
|
60 |
+
The number, in this case 1280, is the post ID.
|
61 |
+
|
62 |
= How can I display custom fields (custom meta values) with FPW? =
|
63 |
You'll want to create a custom HTML template by following [the instructions](http://wordpress.org/extend/plugins/flexible-posts-widget/installation/ "View instructions for creating custom FPW templates") and then you can use the standard WordPress [Custom Field](http://codex.wordpress.org/Custom_Fields "View custom field functions on the WordPress Codex") functions the same way you would if you were editing your theme's other template files.
|
64 |
|
73 |
FPW does not add styles or scripts to your public theme. The plugin is intentionally designed to work within your existing theme. FPW does add one stylesheet and one JavaScript to the Widgets page in wp-admin to help with the administration of any FPWs in use.
|
74 |
|
75 |
= Want to add support for another language? =
|
76 |
+
I'd love to support more languages. The plugin's POT file is available with the download. Feel free to post PO & MO files for your language to a [new forum thread](http://wordpress.org/tags/flexible-posts-widget/) and I'll get them added to the plugin.
|
77 |
|
78 |
= Questions, Support & Bug Reports =
|
79 |
To get answers to your questions, request help or submit a bug report, please start a [new forum thread](http://wordpress.org/tags/flexible-posts-widget/).
|
80 |
|
81 |
|
82 |
== Screenshots ==
|
83 |
+
1. Configuring a FPW in wp-admin with the Post Type tab displayed.
|
84 |
+
1. Configuring a FPW in wp-admin with the Taxonomy & Term tab displayed.
|
85 |
+
1. Configuring a FPW in wp-admin with the ID tab displayed.
|
86 |
+
1. An example FPW displayed using WordPress's TwentyTwelve theme and the default Feature Image (post-thumbnail) size. This demonstrates how the plugin looks out-of-the-box with no user-customized styling or output in a default theme.
|
87 |
1. In the Wild: FPW displaying a selection of featured beers (Post Type: Brew) over at http://canalparkbrewery.com. This example uses slightly customized output and some theme-specific styles.
|
88 |
1. In the wild: FPW displaying a selection media attachments, with custom thumbnails. This example uses highly customized HTML output and very theme-specific styles.
|
89 |
1. In the wild: FPW displaying several posts over at http://chnl7700.mnsu.edu. Also highly customized output and theme styles.
|
102 |
Edit the new file in your theme to your desired HTML layout. Please do not edit the one in the plugin folder as that will cause conflicts when you update the plugin to the latest release.
|
103 |
|
104 |
= Future updates & feature requests list =
|
|
|
105 |
* Dynamically populate the "Template Filename" field based on the templates available.
|
|
|
106 |
* Add shortcode functionality.
|
|
|
107 |
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 3.2 =
|
112 |
+
* Added option to ignore sticky posts.
|
113 |
+
* Added support to get post by post ID directly.
|
114 |
+
* Added Polish language support. (Props: @Invens)
|
115 |
+
* Added a few filters: `dpe_fpw_args` to filter the query vars before submitting the query and `'dpe_fpw_template_' . [$template_name]` to filter the selected template.
|
116 |
+
|
117 |
= 3.1.2 =
|
118 |
* Fixed several pesky PHP notices. (Props: @eeb1)
|
119 |
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
screenshot-5.png
CHANGED
Binary file
|
screenshot-6.png
CHANGED
Binary file
|
screenshot-7.png
ADDED
Binary file
|
views/admin.php
CHANGED
@@ -26,8 +26,9 @@ if ( !defined('ABSPATH') )
|
|
26 |
<input id="<?php echo $this->get_field_id('cur_tab'); ?>" class="cur_tab" name="<?php echo $this->get_field_name('cur_tab'); ?>" type="hidden" value="<?php echo $cur_tab; ?>" />
|
27 |
|
28 |
<ul id="<?php echo $this->get_field_id('getemby-tabs'); ?>" class="category-tabs">
|
29 |
-
<li><a href="#<?php echo $this->get_field_id('getemby-pt'); ?>"><?php _e('Post Type', 'flexible-posts-widget'); ?></a></li>
|
30 |
-
<li><a href="#<?php echo $this->get_field_id('getemby-tt'); ?>"><?php _e('Taxonomy & Term', 'flexible-posts-widget'); ?></a></li>
|
|
|
31 |
</ul>
|
32 |
|
33 |
<div id="<?php echo $this->get_field_id('getemby-pt'); ?>" class="tabs-panel pt">
|
@@ -72,6 +73,14 @@ if ( !defined('ABSPATH') )
|
|
72 |
?>
|
73 |
</div>
|
74 |
</div><!-- .tt.getemby -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
</div><!-- #<?php echo $this->get_field_id('getemby'); ?> -->
|
77 |
|
@@ -81,6 +90,10 @@ if ( !defined('ABSPATH') )
|
|
81 |
|
82 |
<div class="section display">
|
83 |
<h4><?php _e('Display options', 'flexible-posts-widget'); ?></h4>
|
|
|
|
|
|
|
|
|
84 |
<p class="cf">
|
85 |
<label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Number of posts to show:', 'flexible-posts-widget'); ?></label>
|
86 |
<input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" />
|
@@ -112,7 +125,7 @@ if ( !defined('ABSPATH') )
|
|
112 |
</div>
|
113 |
|
114 |
<div class="section thumbnails">
|
115 |
-
<p
|
116 |
<input class="dpe-fp-thumbnail" id="<?php echo $this->get_field_id('thumbnail'); ?>" name="<?php echo $this->get_field_name('thumbnail'); ?>" type="checkbox" value="1" <?php checked( '1', $thumbnail ); ?>/>
|
117 |
<label style="font-weight:bold;" for="<?php echo $this->get_field_id('thumbnail'); ?>"><?php _e('Display thumbnails?', 'flexible-posts-widget'); ?></label>
|
118 |
</p>
|
@@ -133,7 +146,7 @@ if ( !defined('ABSPATH') )
|
|
133 |
<label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template filename:', 'flexible-posts-widget'); ?></label>
|
134 |
<input id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" type="text" value="<?php echo $template; ?>" />
|
135 |
<br />
|
136 |
-
<span style="padding-top:3px;" class="description"><a target="_blank" href="http://wordpress.org/extend/plugins/flexible-posts-widget/other_notes/"><?php _e('See documentation
|
137 |
</p>
|
138 |
</div>
|
139 |
|
26 |
<input id="<?php echo $this->get_field_id('cur_tab'); ?>" class="cur_tab" name="<?php echo $this->get_field_name('cur_tab'); ?>" type="hidden" value="<?php echo $cur_tab; ?>" />
|
27 |
|
28 |
<ul id="<?php echo $this->get_field_id('getemby-tabs'); ?>" class="category-tabs">
|
29 |
+
<li><a title="<?php _e('Post Type', 'flexible-posts-widget'); ?>" href="#<?php echo $this->get_field_id('getemby-pt'); ?>"><?php _e('Post Type', 'flexible-posts-widget'); ?></a></li>
|
30 |
+
<li><a title="<?php _e('Taxonomy & Term', 'flexible-posts-widget'); ?>" href="#<?php echo $this->get_field_id('getemby-tt'); ?>"><?php _e('Taxonomy & Term', 'flexible-posts-widget'); ?></a></li>
|
31 |
+
<li><a title="<?php _e('Post ID', 'flexible-posts-widget'); ?>" href="#<?php echo $this->get_field_id('getemby-id'); ?>"><?php _e('ID', 'flexible-posts-widget'); ?></a></li>
|
32 |
</ul>
|
33 |
|
34 |
<div id="<?php echo $this->get_field_id('getemby-pt'); ?>" class="tabs-panel pt">
|
73 |
?>
|
74 |
</div>
|
75 |
</div><!-- .tt.getemby -->
|
76 |
+
|
77 |
+
<div id="<?php echo $this->get_field_id('getemby-id'); ?>" class="tabs-panel id" style="display:none;">
|
78 |
+
<p>
|
79 |
+
<label for="<?php echo $this->get_field_id('pids'); ?>"><?php _e('Comma-separated list of post IDs:', 'flexible-posts-widget'); ?></label><br />
|
80 |
+
<input id="<?php echo $this->get_field_id('pids'); ?>" name="<?php echo $this->get_field_name('pids'); ?>" class="widefat" type="text" value="<?php echo ( empty( $pids ) ? '' : implode( ',', $pids ) ); ?>" /><br />
|
81 |
+
<span class="description"><?php _e( 'Will override settings on the Post Type and Taxonomy & Term tabs.', 'flexible-posts-widget' ); ?> <a target="_blank" href="http://wordpress.org/extend/plugins/flexible-posts-widget/faq/"><?php _e('See documentation.', 'flexible-posts-widget'); ?></a></span>
|
82 |
+
</p>
|
83 |
+
</div><!-- .id.getemby -->
|
84 |
|
85 |
</div><!-- #<?php echo $this->get_field_id('getemby'); ?> -->
|
86 |
|
90 |
|
91 |
<div class="section display">
|
92 |
<h4><?php _e('Display options', 'flexible-posts-widget'); ?></h4>
|
93 |
+
<p class="check cf">
|
94 |
+
<input class="dpe-fp-sticky" id="<?php echo $this->get_field_id('sticky'); ?>" name="<?php echo $this->get_field_name('sticky'); ?>" type="checkbox" value="1" <?php checked( '1', $sticky ); ?>/>
|
95 |
+
<label for="<?php echo $this->get_field_id('sticky'); ?>"><?php _e('Ignore sticky posts?', 'flexible-posts-widget'); ?></label>
|
96 |
+
</p>
|
97 |
<p class="cf">
|
98 |
<label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Number of posts to show:', 'flexible-posts-widget'); ?></label>
|
99 |
<input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" />
|
125 |
</div>
|
126 |
|
127 |
<div class="section thumbnails">
|
128 |
+
<p class="check">
|
129 |
<input class="dpe-fp-thumbnail" id="<?php echo $this->get_field_id('thumbnail'); ?>" name="<?php echo $this->get_field_name('thumbnail'); ?>" type="checkbox" value="1" <?php checked( '1', $thumbnail ); ?>/>
|
130 |
<label style="font-weight:bold;" for="<?php echo $this->get_field_id('thumbnail'); ?>"><?php _e('Display thumbnails?', 'flexible-posts-widget'); ?></label>
|
131 |
</p>
|
146 |
<label for="<?php echo $this->get_field_id('template'); ?>"><?php _e('Template filename:', 'flexible-posts-widget'); ?></label>
|
147 |
<input id="<?php echo $this->get_field_id('template'); ?>" name="<?php echo $this->get_field_name('template'); ?>" type="text" value="<?php echo $template; ?>" />
|
148 |
<br />
|
149 |
+
<span style="padding-top:3px;" class="description"><a target="_blank" href="http://wordpress.org/extend/plugins/flexible-posts-widget/other_notes/"><?php _e('See documentation for details.', 'flexible-posts-widget'); ?></a></span>
|
150 |
</p>
|
151 |
</div>
|
152 |
|