List category posts - Version 0.27.1

Version Description

  • Sets minimum version to WordPress 3.3, since wp_trim_words was introduced in that version. Adds workaround for people using WordPress < 3.3.
    • Adds Slovak translation by Branco from WebHostingGeeks.com.
    • Removes Debug PHP warnings.
    • Checkboxes on Widget save state, i18n for widget.
    • Adds excerpt size to widget.
Download this release

Release Info

Developer fernandobt
Plugin Icon 128x128 List category posts
Version 0.27.1
Comparing to
See all releases

Code changes from version 0.27 to 0.27.1

include/CatList.php CHANGED
@@ -277,7 +277,12 @@ class CatList{
277
  endif;
278
 
279
  $excerpt_length = intval($this->params['excerpt_size']);
280
- return wp_trim_words($lcp_excerpt, $excerpt_length);
 
 
 
 
 
281
  else:
282
  return null;
283
  endif;
277
  endif;
278
 
279
  $excerpt_length = intval($this->params['excerpt_size']);
280
+ if (function_exists('wp_trim_words')):
281
+ return wp_trim_words($lcp_excerpt, $excerpt_length);
282
+ else:
283
+ $exc_lim = intval($excerpt_length);
284
+ return mb_substr($lcp_excerpt, 0, $exc_lim) . '...';
285
+ endif;
286
  else:
287
  return null;
288
  endif;
include/CatListDisplayer.php CHANGED
@@ -88,7 +88,7 @@ class CatListDisplayer {
88
  }
89
 
90
  /**
91
- * This function should be overriden for template system.
92
  * @param post $single
93
  * @param HTML tag to display $tag
94
  * @return string
@@ -100,22 +100,60 @@ class CatListDisplayer {
100
  $class = " class = current ";
101
  endif;
102
  $lcp_display_output = '<'. $tag . $class . '>';
103
- $lcp_display_output .=
104
- $this->get_post_title($single, $this->params['title_tag'],
105
- $this->params['title_class']);
106
- $lcp_display_output .=
107
- $this->get_comments($single, $this->params['comments_tag'],
108
- $this->params['comments_class']) . ' ';
109
-
110
- $lcp_display_output .=
111
- $this->get_date($single, $this->params['date_tag'],
112
- $this->params['date_class']) . ' ';
113
-
114
- $lcp_display_output .=
115
- $this->get_author($single, $this->params['author_tag'],
116
- $this->params['author_class']) . ' ';
117
-
118
- if (isset($this->params['customfield_display'])) :
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  $lcp_display_output .=
120
  $this->get_custom_fields($this->params['customfield_display'],
121
  $single->ID);
@@ -123,9 +161,29 @@ class CatListDisplayer {
123
 
124
  $lcp_display_output .= $this->get_thumbnail($single);
125
 
126
- $lcp_display_output .= $this->get_content($single, $this->params['content_tag'], $this->params['content_class']);
 
 
 
 
 
 
 
 
 
 
127
 
128
- $lcp_display_output .= $this->get_excerpt($single, $this->params['excerpt_tag'], $this->params['excerpt_class']);;
 
 
 
 
 
 
 
 
 
 
129
 
130
  $lcp_display_output .= '</' . $tag . '>';
131
 
@@ -167,8 +225,7 @@ class CatListDisplayer {
167
  }
168
 
169
  private function get_thumbnail($single, $tag = null){
170
- if ( isset($this->params['thumbnail_class']) &&
171
- $this->params['thumbnail_class'] != '' ) :
172
  $lcp_thumb_class = $this->params['thumbnail_class'];
173
  $info = $this->catlist->get_thumbnail($single, $lcp_thumb_class);
174
  else:
88
  }
89
 
90
  /**
91
+ * This function should be overriden for template system.
92
  * @param post $single
93
  * @param HTML tag to display $tag
94
  * @return string
100
  $class = " class = current ";
101
  endif;
102
  $lcp_display_output = '<'. $tag . $class . '>';
103
+
104
+ if (!empty($this->params['title_tag'])):
105
+ if (!empty($this->params['title_class'])):
106
+ $lcp_display_output .= $this->get_post_title($single,
107
+ $this->params['title_tag'],
108
+ $this->params['title_class']);
109
+ else:
110
+ $lcp_display_output .= $this->get_post_title($single, $this->params['title_tag']);
111
+ endif;
112
+ else:
113
+ $lcp_display_output .= $this->get_post_title($single) . ' ';
114
+ endif;
115
+
116
+ // Coments count
117
+ if (!empty($this->params['comments_tag'])):
118
+ if (!empty($this->params['comments_class'])):
119
+ $lcp_display_output .= $this->get_comments($single,
120
+ $this->params['comments_tag'],
121
+ $this->params['comments_class']);
122
+ else:
123
+ $lcp_display_output .= $this->get_comments($single, $this->params['comments_tag']);
124
+ endif;
125
+ else:
126
+ $lcp_display_output .= $this->get_comments($single);
127
+ endif;
128
+
129
+ // Date
130
+ if (!empty($this->params['date_tag'])):
131
+ if (!empty($this->params['date_class'])):
132
+ $lcp_display_output .= $this->get_date($single,
133
+ $this->params['date_tag'],
134
+ $this->params['date_class']);
135
+ else:
136
+ $lcp_display_output .= $this->get_date($single, $this->params['date_tag']);
137
+ endif;
138
+ else:
139
+ $lcp_display_output .= $this->get_date($single);
140
+ endif;
141
+
142
+ // Author
143
+ if (!empty($this->params['author_tag'])):
144
+ if (!empty($this->params['author_class'])):
145
+ $lcp_display_output .= $this->get_author($single,
146
+ $this->params['author_tag'],
147
+ $this->params['author_class']);
148
+ else:
149
+ $lcp_display_output .= $this->get_author($single, $this->params['author_tag']);
150
+ endif;
151
+ else:
152
+ $lcp_display_output .= $this->get_author($single);
153
+ endif;
154
+
155
+
156
+ if (!empty($this->params['customfield_display'])) :
157
  $lcp_display_output .=
158
  $this->get_custom_fields($this->params['customfield_display'],
159
  $single->ID);
161
 
162
  $lcp_display_output .= $this->get_thumbnail($single);
163
 
164
+ if (!empty($this->params['content_tag'])):
165
+ if (!empty($this->params['content_class'])):
166
+ $lcp_display_output .= $this->get_content($single,
167
+ $this->params['content_tag'],
168
+ $this->params['content_class']);
169
+ else:
170
+ $lcp_display_output .= $this->get_content($single, $this->params['content_tag']);
171
+ endif;
172
+ else:
173
+ $lcp_display_output .= $this->get_content($single);
174
+ endif;
175
 
176
+ if (!empty($this->params['excerpt_tag'])):
177
+ if (!empty($this->params['excerpt_class'])):
178
+ $lcp_display_output .= $this->get_excerpt($single,
179
+ $this->params['excerpt_tag'],
180
+ $this->params['excerpt_class']);
181
+ else:
182
+ $lcp_display_output .= $this->get_excerpt($single, $this->params['excerpt_tag']);
183
+ endif;
184
+ else:
185
+ $lcp_display_output .= $this->get_excerpt($single);
186
+ endif;
187
 
188
  $lcp_display_output .= '</' . $tag . '>';
189
 
225
  }
226
 
227
  private function get_thumbnail($single, $tag = null){
228
+ if ( !empty($this->params['thumbnail_class']) ) :
 
229
  $lcp_thumb_class = $this->params['thumbnail_class'];
230
  $info = $this->catlist->get_thumbnail($single, $lcp_thumb_class);
231
  else:
include/ListCategoryPostsWidget.php CHANGED
@@ -25,6 +25,7 @@ class ListCategoryPostsWidget extends WP_Widget{
25
  $dateformat = ($instance['dateformat']) ? $instance['dateformat'] : get_option('date_format');
26
  $showdate = ($instance['show_date'] == 'on') ? 'yes' : 'no';
27
  $showexcerpt = ($instance['show_excerpt'] == 'on') ? 'yes' : 'no';
 
28
  $showauthor = ($instance['show_author'] == 'on') ? 'yes' : 'no';
29
  $showcatlink = ($instance['show_catlink'] == 'on') ? 'yes' : 'no';
30
  $thumbnail = ($instance['thumbnail'] == 'on') ? 'yes' : 'no';
@@ -44,6 +45,7 @@ class ListCategoryPostsWidget extends WP_Widget{
44
  'dateformat' => $dateformat,
45
  'template' => 'default',
46
  'excerpt' => $showexcerpt,
 
47
  'exclude' => $exclude,
48
  'excludeposts' => $excludeposts,
49
  'offset' => $offset,
@@ -72,6 +74,7 @@ class ListCategoryPostsWidget extends WP_Widget{
72
  $instance['dateformat'] = strip_tags($new_instance['dateformat']);
73
  $instance['show_date'] = strip_tags($new_instance['show_date']);
74
  $instance['show_excerpt'] = strip_tags($new_instance['show_excerpt']);
 
75
  $instance['show_author'] = strip_tags($new_instance['show_author']);
76
  $instance['show_catlink'] = strip_tags($new_instance['show_catlink']);
77
  $instance['show_catlink'] = strip_tags($new_instance['show_catlink']);
25
  $dateformat = ($instance['dateformat']) ? $instance['dateformat'] : get_option('date_format');
26
  $showdate = ($instance['show_date'] == 'on') ? 'yes' : 'no';
27
  $showexcerpt = ($instance['show_excerpt'] == 'on') ? 'yes' : 'no';
28
+ $excerptsize = (empty($instance['excerpt_size']) ? 55 : $instance['excerpt_size']);
29
  $showauthor = ($instance['show_author'] == 'on') ? 'yes' : 'no';
30
  $showcatlink = ($instance['show_catlink'] == 'on') ? 'yes' : 'no';
31
  $thumbnail = ($instance['thumbnail'] == 'on') ? 'yes' : 'no';
45
  'dateformat' => $dateformat,
46
  'template' => 'default',
47
  'excerpt' => $showexcerpt,
48
+ 'excerpt_size' => $excerptsize,
49
  'exclude' => $exclude,
50
  'excludeposts' => $excludeposts,
51
  'offset' => $offset,
74
  $instance['dateformat'] = strip_tags($new_instance['dateformat']);
75
  $instance['show_date'] = strip_tags($new_instance['show_date']);
76
  $instance['show_excerpt'] = strip_tags($new_instance['show_excerpt']);
77
+ $instance['excerpt_size'] = strip_tags($new_instance['excerpt_size']);
78
  $instance['show_author'] = strip_tags($new_instance['show_author']);
79
  $instance['show_catlink'] = strip_tags($new_instance['show_catlink']);
80
  $instance['show_catlink'] = strip_tags($new_instance['show_catlink']);
include/lcp_widget_form.php CHANGED
@@ -12,6 +12,7 @@
12
  'show_date'=>'',
13
  'show_author'=>'',
14
  'show_excerpt'=>'',
 
15
  'exclude'=>'',
16
  'excludeposts'=>'',
17
  'thumbnail' =>'',
@@ -20,6 +21,7 @@
20
  'morelink' =>''
21
  );
22
  $instance = wp_parse_args( (array) $instance, $default);
 
23
  $title = strip_tags($instance['title']);
24
  $limit = strip_tags($instance['limit']);
25
  $orderby = strip_tags($instance['orderby']);
@@ -32,9 +34,11 @@
32
  $showcatlink = strip_tags($instance['show_catlink']);
33
  $categoryid = strip_tags($instance['categoryid']);
34
  $showexcerpt = strip_tags($instance['show_excerpt']);
 
35
  $thumbnail = strip_tags($instance['thumbnail']);
36
  $thumbnail_size = strip_tags($instance['thumbnail_size']);
37
  $morelink = strip_tags($instance['morelink']);
 
38
  ?>
39
 
40
  <p>
@@ -94,10 +98,10 @@
94
  </label> <br/>
95
  <select id="<?php echo $this->get_field_id('orderby'); ?>"
96
  name="<?php echo $this->get_field_name('orderby'); ?>" type="text" >
97
- <?php $lcp_orders = array("date" => "Date",
98
- "title" => "Post title",
99
- "author" => "Author",
100
- "rand" => "Random");
101
  foreach ($lcp_orders as $key=>$value):
102
  $option = '<option value="' . $key . '" ';
103
  if ($orderby == $key):
@@ -162,28 +166,44 @@
162
  </p>
163
 
164
  <p>
165
- <input class="checkbox" type="checkbox" <?php checked($instance['show_date'], true ); ?>
166
- name="<?php echo $this->get_field_name( 'show_date' ); ?>" /> <?php _e("Date", 'list-category-posts')?>
 
 
 
 
 
 
 
 
167
  </p>
168
  <p>
169
- <input class="checkbox" input type="checkbox" <?php checked($instance['show_author'], true ); ?>
170
- name="<?php echo $this->get_field_name( 'show_author' ); ?>" /> <?php _e("Author", 'list-category-posts')?>
 
 
171
  </p>
172
  <p>
173
- <input class="checkbox" input type="checkbox" <?php checked($instance['show_catlink'], true ); ?>
174
- name="<?php echo $this->get_field_name( 'show_catlink' ); ?>" /> <?php _e("Link to category", 'list-category-posts')?>
 
 
175
  </p>
176
  <p>
177
- <input class="checkbox" input type="checkbox" <?php checked($instance['show_excerpt'], true ); ?>
178
- name="<?php echo $this->get_field_name( 'show_excerpt' ); ?>" /> <?php _e("Excerpt", 'list-category-posts')?>
 
 
 
 
 
179
  </p>
180
  <p>
181
  <label for="<?php echo $this->get_field_id('morelink'); ?>">
182
- <?php _e("More link", 'list-category-posts')?>:
183
  </label>
184
  <br/>
185
- <input class="widefat" id="<?php echo $this->get_field_id('morelink'); ?>"
186
- name="<?php echo $this->get_field_name('morelink'); ?>" type="text"
187
  value="<?php echo esc_attr($morelink); ?>" />
188
- </p>
189
-
12
  'show_date'=>'',
13
  'show_author'=>'',
14
  'show_excerpt'=>'',
15
+ 'excerpt_size' =>'',
16
  'exclude'=>'',
17
  'excludeposts'=>'',
18
  'thumbnail' =>'',
21
  'morelink' =>''
22
  );
23
  $instance = wp_parse_args( (array) $instance, $default);
24
+
25
  $title = strip_tags($instance['title']);
26
  $limit = strip_tags($instance['limit']);
27
  $orderby = strip_tags($instance['orderby']);
34
  $showcatlink = strip_tags($instance['show_catlink']);
35
  $categoryid = strip_tags($instance['categoryid']);
36
  $showexcerpt = strip_tags($instance['show_excerpt']);
37
+ $excerptsize = strip_tags($instance['excerpt_size']);
38
  $thumbnail = strip_tags($instance['thumbnail']);
39
  $thumbnail_size = strip_tags($instance['thumbnail_size']);
40
  $morelink = strip_tags($instance['morelink']);
41
+
42
  ?>
43
 
44
  <p>
98
  </label> <br/>
99
  <select id="<?php echo $this->get_field_id('orderby'); ?>"
100
  name="<?php echo $this->get_field_name('orderby'); ?>" type="text" >
101
+ <?php $lcp_orders = array("date" => __("Date", "list-category-posts"),
102
+ "title" => __("Post title", "list-category-posts"),
103
+ "author" => __("Author", "list-category-posts"),
104
+ "rand" => __("Random", "list-category-posts"));
105
  foreach ($lcp_orders as $key=>$value):
106
  $option = '<option value="' . $key . '" ';
107
  if ($orderby == $key):
166
  </p>
167
 
168
  <p>
169
+ <input class="checkbox" type="checkbox"
170
+ <?php checked( (bool) $instance['show_date'], true ); ?>
171
+ name="<?php echo $this->get_field_name( 'show_date' ); ?>" />
172
+ <?php _e("Date", 'list-category-posts')?>
173
+ </p>
174
+ <p>
175
+ <input class="checkbox" input type="checkbox"
176
+ <?php checked( (bool) $instance['show_author'], true ); ?>
177
+ name="<?php echo $this->get_field_name( 'show_author' ); ?>" />
178
+ <?php _e("Author", 'list-category-posts')?>
179
  </p>
180
  <p>
181
+ <input class="checkbox" input type="checkbox"
182
+ <?php checked( (bool) $instance['show_catlink'], true ); ?>
183
+ name="<?php echo $this->get_field_name( 'show_catlink' ); ?>" />
184
+ <?php _e("Link to category", 'list-category-posts')?>
185
  </p>
186
  <p>
187
+ <input class="checkbox" input type="checkbox"
188
+ <?php checked( (bool) $instance['show_excerpt'], true ); ?>
189
+ name="<?php echo $this->get_field_name( 'show_excerpt' ); ?>" />
190
+ <?php _e("Excerpt", 'list-category-posts')?>
191
  </p>
192
  <p>
193
+ <label for="<?php echo $this->get_field_id('excerpt_size'); ?>">
194
+ <?php _e("Excerpt size", 'list-category-posts')?>:
195
+ </label>
196
+ <br/>
197
+ <input class="widefat" id="<?php echo $this->get_field_id('excerpt_size'); ?>"
198
+ name="<?php echo $this->get_field_name('excerpt_size'); ?>" type="text"
199
+ value="<?php echo esc_attr($excerptsize); ?>" />
200
  </p>
201
  <p>
202
  <label for="<?php echo $this->get_field_id('morelink'); ?>">
203
+ <?php _e("More link", 'list-category-posts')?>:
204
  </label>
205
  <br/>
206
+ <input class="widefat" id="<?php echo $this->get_field_id('morelink'); ?>"
207
+ name="<?php echo $this->get_field_name('morelink'); ?>" type="text"
208
  value="<?php echo esc_attr($morelink); ?>" />
209
+ </p>
 
languages/list-category-posts_sk_SK.mo ADDED
Binary file
languages/list-category-posts_sk_SK.po ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: \n"
6
+ "POT-Creation-Date: \n"
7
+ "PO-Revision-Date: \n"
8
+ "Last-Translator: \n"
9
+ "Language-Team: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=iso-8859-1\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.5.4\n"
14
+
15
+ #: include/ListCategoryPostsWidget.php:5
16
+ msgid ""
17
+ "List Category Posts allows you to list posts from a category into a post/"
18
+ "page using the [catlist] shortcode. This shortcode accepts a category name "
19
+ "or id, the order in which you want the posts to display, and the number of "
20
+ "posts to display. You can use [catlist] as many times as needed with "
21
+ "different arguments. Usage: [catlist argument1=value1 argument2=value2]."
22
+ msgstr ""
23
+ "Prispevky zoznam Kategorie umoznuje na zoznam prispevky od kategoriu do "
24
+ "prispevku / stranke pomocou tlacidiel [] catlist shortcode. To shortcode "
25
+ "akceptuje nazov kategorie alebo ID, poradie, v ktorom chcete prispevky na "
26
+ "zobrazenie, a poctu pracovnych miest . zobrazit Mozete pouzit [catlist] "
27
+ "tolkokrat, kolkokrat je to potrebne s roznymi argumentmi Pouzitie: .. "
28
+ "[catlist argument1 = hodnota1 argument2 = hodnota2] "
29
+
30
+ #: include/ListCategoryPostsWidget.php:11
31
+ msgid "List posts from a specified category"
32
+ msgstr "Zoznam prispevky z urcitej kategorie"
33
+
34
+ #: include/ListCategoryPostsWidget.php:12
35
+ msgid "List Category Posts"
36
+ msgstr "Prispevky zoznam Kategoria"
37
+
38
+ #: include/lcp_widget_form.php:40
39
+ msgid "Title"
40
+ msgstr "Nazov"
41
+
42
+ #: include/lcp_widget_form.php:47
43
+ msgid "Category"
44
+ msgstr "Kategoria"
45
+
46
+ #: include/lcp_widget_form.php:65
47
+ msgid "Number of posts"
48
+ msgstr "Pocet prispevkov"
49
+
50
+ #: include/lcp_widget_form.php:72
51
+ msgid "Offset"
52
+ msgstr "Offset"
53
+
54
+ #: include/lcp_widget_form.php:78
55
+ msgid "Order by"
56
+ msgstr "Zoradit podla"
57
+
58
+ #: include/lcp_widget_form.php:81 include/lcp_widget_form.php:123
59
+ msgid "Date"
60
+ msgstr "Datum"
61
+
62
+ #: include/lcp_widget_form.php:82
63
+ msgid "Post title"
64
+ msgstr "Nazov prispevku"
65
+
66
+ #: include/lcp_widget_form.php:83 include/lcp_widget_form.php:127
67
+ msgid "Author"
68
+ msgstr "Autor"
69
+
70
+ #: include/lcp_widget_form.php:84
71
+ msgid "Random"
72
+ msgstr "Random"
73
+
74
+ #: include/lcp_widget_form.php:88
75
+ msgid "Order"
76
+ msgstr "Objednavka"
77
+
78
+ #: include/lcp_widget_form.php:91
79
+ msgid "Descending"
80
+ msgstr "Zostupne"
81
+
82
+ #: include/lcp_widget_form.php:92
83
+ msgid "Ascending"
84
+ msgstr "Vzostupne"
85
+
86
+ #: include/lcp_widget_form.php:96
87
+ msgid "Exclude categories (id's)"
88
+ msgstr "Vylucit kategorie (id je)"
89
+
90
+ #: include/lcp_widget_form.php:102
91
+ msgid "Exclude posts (id's)"
92
+ msgstr "Vylucit prispevkov (id je)"
93
+
94
+ #: include/lcp_widget_form.php:109
95
+ msgid "Show"
96
+ msgstr "Zobrazit"
97
+
98
+ #: include/lcp_widget_form.php:112
99
+ msgid "Thumbnail - size"
100
+ msgstr "Nahlad - velkost"
101
+
102
+ #: include/lcp_widget_form.php:131
103
+ msgid "Link to category"
104
+ msgstr "Odkaz na kategoriu"
105
+
106
+ #: include/lcp_widget_form.php:135
107
+ msgid "Excerpt"
108
+ msgstr "Vypis"
109
+
110
+ #: include/lcp_widget_form.php:138
111
+ msgid "More link"
112
+ msgstr "Dalsi odkaz"
113
+
114
+ #: list_cat_posts.php:102
115
+ msgid "How to use"
116
+ msgstr "Ako pouzivat"
117
+
118
+ #: list_cat_posts.php:103
119
+ msgid "Donate"
120
+ msgstr "Donate"
121
+
122
+ #: list_cat_posts.php:104
123
+ msgid "Fork on Github"
124
+ msgstr "Vidlica na GitHub"
list_cat_posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
5
  Description: List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
- Version: 0.27
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
5
  Description: List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
+ Version: 0.27.1
7
  Author: Fernando Briano
8
  Author URI: http://picandocodigo.net/
9
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: fernandobt
3
  Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
4
  Tags: list, categories, posts, cms
5
- Requires at least: 2.8
6
  Tested up to: 3.5
7
- Stable tag: 0.27
8
 
9
  == Description ==
10
  List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
@@ -99,7 +99,9 @@ You can use the *categorypage* parameter to make it detect the category id of th
99
 
100
  * **excerpt** - Display the post's excerpt. Default is 'no', use excerpt=yes to activate it. If you don't have an excerpt in your post, the plugin will fetch this text from the content, striping its html tags and shortcodes. The limit is set by the *excerpt_size* parameter (55 words by default).
101
 
102
- * **excerpt_size** - Set the number of *words* to display from the excerpt. Default is 55. Eg: `excerpt_size = 30`
 
 
103
 
104
  * **excludeposts** - IDs of posts to exclude from the list. Use 'this' to exclude the current post. Ex: [catlist excludeposts=this,12,52,37]
105
 
@@ -213,6 +215,14 @@ Template system has changed. Custom templates should be stored in WordPress them
213
 
214
  == Changelog ==
215
 
 
 
 
 
 
 
 
 
216
  = 0.27 =
217
 
218
  * Fixes to widget.
2
  Contributors: fernandobt
3
  Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/#support
4
  Tags: list, categories, posts, cms
5
+ Requires at least: 3.3
6
  Tested up to: 3.5
7
+ Stable tag: 0.27.1
8
 
9
  == Description ==
10
  List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
99
 
100
  * **excerpt** - Display the post's excerpt. Default is 'no', use excerpt=yes to activate it. If you don't have an excerpt in your post, the plugin will fetch this text from the content, striping its html tags and shortcodes. The limit is set by the *excerpt_size* parameter (55 words by default).
101
 
102
+ * **excerpt_size**
103
+ * If you are using WordPress >= 3.3: Set the number of *words* to display from the excerpt. Default is 55. Eg: `excerpt_size = 30`
104
+ * If for some reason you can't update your WordPress and are still using WordPress < 3.3, this will use a fallback function instead of `wp_trim_words` where you'll have to set the number of *characters* insted of words with this parameter.
105
 
106
  * **excludeposts** - IDs of posts to exclude from the list. Use 'this' to exclude the current post. Ex: [catlist excludeposts=this,12,52,37]
107
 
215
 
216
  == Changelog ==
217
 
218
+ = 0.27.1 =
219
+
220
+ * Sets minimum version to WordPress 3.3, since wp_trim_words was introduced in that version. Adds workaround for people using WordPress < 3.3.
221
+ * Adds Slovak translation by Branco from [WebHostingGeeks.com](http://webhostinggeeks.com/blog/).
222
+ * Removes Debug PHP warnings.
223
+ * Checkboxes on Widget save state, i18n for widget.
224
+ * Adds excerpt size to widget.
225
+
226
  = 0.27 =
227
 
228
  * Fixes to widget.