Flexi Pages Widget - Version 1.5.10

Version Description

Download this release

Release Info

Developer SriniG
Plugin Icon wp plugin Flexi Pages Widget
Version 1.5.10
Comparing to
See all releases

Code changes from version 1.4.1 to 1.5.10

flexi-pages-widget.php CHANGED
@@ -3,9 +3,9 @@
3
Plugin Name: Flexi Pages Widget
4
Plugin URI: http://srinig.com/wordpress/plugins/flexi-pages/
5
Description: A highly configurable WordPress sidebar widget to list pages and sub-pages. User friendly widget control comes with various options.
6
- Version: 1.4.1
7
Author: Srini G
8
- Author URI: http://srinig.com/
9
*/
10
11
/* Copyright 2007 Srini G (email : srinig.com@gmail.com)
@@ -27,7 +27,20 @@ Author URI: http://srinig.com/
27
28
function flexipages_options_default()
29
{
30
- return array('title' => __('Pages'), 'sort_column' => 'menu_order', 'sort_order' => 'ASC', 'exinclude' => 'exclude', 'exinclude_values' => '', 'depth' => -2, 'depth_value' => 2, 'home_link' => __('Home'));
31
}
32
33
function flexipages_wp_head()
@@ -41,14 +54,21 @@ add_action('wp_head', 'flexipages_wp_head');
41
42
function flexipages_currpage_hierarchy()
43
{
44
- if( !is_page() )
45
return array();
46
-
47
- global $flexipages_post;
48
- $curr_page = $flexipages_post;
49
50
// get parents, grandparents of the current page
51
$hierarchy[] = $curr_page->ID;
52
while($curr_page->post_parent) {
53
$curr_page = &get_post($curr_page->post_parent);
54
$hierarchy[] = $curr_page->ID;
@@ -62,7 +82,7 @@ function flexipages_get_subpages()
62
$sql = "SELECT ID, post_title, post_parent FROM ".$wpdb->posts;
63
$sql .= " WHERE
64
post_type = 'page'
65
- AND post_status = 'publish'
66
AND post_parent <> 0 ";
67
68
if($subpages = $wpdb->get_results($sql, ARRAY_A))
@@ -71,6 +91,8 @@ function flexipages_get_subpages()
71
else return array();
72
}
73
74
function flexipages_pageids()
75
{
76
global $wpdb;
@@ -105,24 +127,27 @@ function flexipages_exinclude_options(
105
}
106
}
107
108
- function flexipages($options = '')
109
{
110
- $key_value = explode('&', $options);
111
$options = array();
112
foreach($key_value as $value) {
113
$x = explode('=', $value);
114
$options[$x[0]] = $x[1]; // $options['key'] = 'value';
115
}
116
-
117
if($options['exclude'])
118
$exclude = explode(',',$options['exclude']);
119
else
120
$exclude = array();
121
122
123
- if( $options['depth'] == -2 || !isset($options['depth'])) { // display subpages only in related pages
124
125
$hierarchy = flexipages_currpage_hierarchy();
126
127
$subpages = flexipages_get_subpages();
128
@@ -132,9 +157,8 @@ function flexipages($options = '')
132
if ( !in_array ($subpage['post_parent'], $hierarchy) )
133
$exclude[] = $subpage['ID'];
134
}
135
- $options['depth'] = 0;
136
}
137
- else if( $options['depth'] == -3 ) { // display subpages only in related pages
138
// depth = -3 gets rid of parents' siblings
139
140
$hierarchy = flexipages_currpage_hierarchy();
@@ -150,11 +174,12 @@ function flexipages($options = '')
150
$exclude[] = $subpage['ID'];
151
}
152
}
153
- $options['depth'] = 0;
154
}
155
156
157
-
158
if($options['include']) {
159
$include = explode(',', $options['include']);
160
$page_ids = flexipages_pageids();
@@ -168,19 +193,23 @@ function flexipages($options = '')
168
if($exclude)
169
$options['exclude'] = implode(',', $exclude);
170
171
if($options['title_li']) {
172
$title_li = $options['title_li'];
173
$options['title_li'] = "";
174
}
175
-
176
- if($options['home_link']) {
177
$display .="<li class=\"page_item";
178
if(is_home()) $display .= " current_page_item";
179
- $display .= "\"><a href=\"".get_bloginfo('home')."\" title=\"".wp_specialchars(get_bloginfo('name'), 1) ."\">".$options['home_link']."</a></li>";
180
}
181
182
foreach($options as $key => $value) {
183
- if($key == 'home_link' || $key == 'echo')
184
continue;
185
if($opts) $opts .= '&';
186
$opts .= $key.'='.$value;
@@ -189,203 +218,265 @@ function flexipages($options = '')
189
$display .= wp_list_pages('echo=0&'.$opts);
190
191
if($title_li && $display)
192
- $display = "<li class=\"pagenav\">".$title_li."<ul>\n".$display."</ul></li>";
193
if(isset($options['echo']) && $options['echo'] == 0)
194
return $display;
195
else
196
echo $display;
197
}
198
199
function flexipages_init()
200
{
201
if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') )
202
return;
203
- function flexipages_widget($args, $number = 1)
204
{
205
$options = get_option('flexipages_widget');
206
- if(!$options[$number]) {
207
$options[$number] = flexipages_options_default();
208
- }
209
-
210
extract($options[$number]);
211
if($exinclude == 'include')
212
$include = $exinclude_values;
213
else
214
$exclude = $exinclude_values;
215
- if(!$home_link || $home_link == 'off')
216
- $home_link = "";
217
- else if($home_link == 'on')
218
- $home_link = $home_link_text?$home_link_text:__('Home');
219
220
- if($depth == 'custom') {
221
- if(is_numeric($depth_value))
222
- $depth = $depth_value;
223
- else
224
- $depth = 2;
225
}
226
227
- extract($args);
228
-
229
- if($pagelist = flexipages('echo=0&title_li=&sort_column='.$sort_column.'&sort_order='.$sort_order.'&include='.$include.'&exclude='.$exclude.'&depth='.$depth.'&home_link='.$home_link)) {
230
231
echo $before_widget;
232
- if($title)
233
echo $before_title . $title . $after_title;
234
- echo "<ul>\n";
235
-
236
- echo $pagelist;
237
238
- echo "</ul>\n" . $after_widget;
239
}
240
}
241
242
- function flexipages_widget_control($number)
243
{
244
- global $wpdb;
245
-
246
- $options = $newoptions = get_option('flexipages_widget');
247
248
if ( !is_array($options) )
249
- $options = $newoptions = array();
250
- if(!$options[$number]) {
251
- $options[$number] = $newoptions[$number] = flexipages_options_default();
252
- }
253
-
254
255
- if($_REQUEST["flexipages_submit-{$number}"]) {
256
- $newoptions[$number]['title']
257
- = strip_tags(stripslashes($_REQUEST["flexipages_title-{$number}"]));
258
- $newoptions[$number]['sort_column'] = strip_tags(stripslashes($_REQUEST["flexipages_sort_column-{$number}"]));
259
- $newoptions[$number]['sort_order'] = strip_tags(stripslashes($_REQUEST["flexipages_sort_order-{$number}"]));
260
- $newoptions[$number]['exinclude'] = strip_tags(stripslashes($_REQUEST["flexipages_exinclude-{$number}"]));
261
- $newoptions[$number]['exinclude_values'] = isset($_REQUEST["flexipages_exinclude_values-{$number}"])?implode(',', $_REQUEST["flexipages_exinclude_values-{$number}"]):'';
262
- $newoptions[$number]['depth'] = strip_tags(stripslashes($_REQUEST["flexipages_depth-{$number}"]));
263
- $newoptions[$number]['depth_value'] = strip_tags(stripslashes($_REQUEST["flexipages_depth_value-{$number}"]));
264
- if($newoptions[$number]['depth'] != 'custom' || !is_numeric($newoptions[$number]['depth_value']))
265
- $newoptions[$number]['depth_value'] = 2;
266
- $newoptions[$number]['home_link'] = strip_tags( stripslashes($_REQUEST["flexipages_home_link-{$number}"]) );
267
- }
268
- if ( $options != $newoptions ) {
269
- $options = $newoptions;
270
update_option('flexipages_widget', $options);
271
}
272
- $sort_column_select[$options[$number]['sort_column']]
273
- =' selected="selected"';
274
- $sort_order_select[$options[$number]['sort_order']]
275
- =' selected="selected"';
276
- $exinclude_select[$options[$number]['exinclude']]
277
- =' selected="selected"';
278
- $depth_check[$options[$number]['depth']] = ' checked="checked"';
279
- if($options[$number]['home_link'] == 'on')
280
- $options[$number]['home_link'] = $options[$number]['home_link_text']?$options[$number]['home_link_text']:__('Home');
281
- else if($options[$number]['home_link'] == 'off')
282
- $options[$number]['home_link'] = "";
283
- // Display widget options menu
284
- ?>
285
- <table cellpadding="5px">
286
- <tr>
287
- <td valign="top"><label for="flexipages_title-<?php echo $number; ?>">Title</label></td>
288
- <td><input class="widefat" type="text" id="flexipages_title-<?php echo $number; ?>" name="flexipages_title-<?php echo $number; ?>" value="<?php echo htmlspecialchars($options[$number]['title'], ENT_QUOTES) ?>" /></td>
289
- </tr>
290
- <tr>
291
- <td valign="top" width="40%"><label for="flexipages_sort_column-<?php echo $number; ?>">Sort by</label></td>
292
- <td valign="top" width="60%"><select class="widefat" style="display:inline;width:auto;" name="flexipages_sort_column-<?php echo $number; ?>" id="flexipages_sort_column-<?php echo $number; ?>">
293
- <option value="post_title"<?php echo $sort_column_select['post_title']; ?>>Page title</option>
294
- <option value="menu_order"<?php echo $sort_column_select['menu_order']; ?>>Menu order</option>
295
- <option value="post_date"<?php echo $sort_column_select['post_date']; ?>>Date created</option>
296
- <option value="post_modified"<?php echo $sort_column_select['post_modified']; ?>>Date modified</option>
297
- <option value="ID"<?php echo $sort_column_select['ID']; ?>>Page ID</option>
298
- <option value="post_author"<?php echo $sort_column_select['post_author']; ?>>Page author ID</option>
299
- <option value="post_name"<?php echo $sort_column_select['post_name']; ?>>Page slug</option>
300
- </select>
301
- <select class="widefat" style="display:inline;width:auto;" name="flexipages_sort_order-<?php echo $number; ?>" id="flexipages_sort_order-<?php echo $number; ?>">
302
- <option<?php echo $sort_order_select['ASC']; ?>>ASC</option>
303
- <option<?php echo $sort_order_select['DESC']; ?>>DESC</option>
304
- </select>
305
- </td>
306
- </tr>
307
-
308
-
309
- <tr>
310
- <td valign="top">
311
- <select class="widefat" style="display:inline;width:auto;" name="flexipages_exinclude-<?php echo $number; ?>" id="flexipages_exinclude-<?php echo $number; ?>">
312
- <option value="exclude"<?php echo $exinclude_select['exclude']; ?>>Exclude</option>
313
- <option value="include"<?php echo $exinclude_select['include']; ?>>Include</option>
314
- </select> <label for="flexipages_exinclude_values-<?php echo $number; ?>">pages</label>
315
- </td>
316
- <td><select class="widefat" style="height:auto;max-height:6em" name="flexipages_exinclude_values-<?php echo $number; ?>[]" id="flexipages_exinclude_values-<?php echo $number; ?>" multiple="multiple" size="4">
317
- <?php flexipages_exinclude_options($options[$number]['sort_column'], $options[$number]['sort_order'], explode(',', $options[$number]['exinclude_values']),0,0); ?>
318
- </select>
319
- <small>use &lt;Ctrl&gt; key to select multiple pages</small></td>
320
- </tr>
321
-
322
- <tr>
323
- <td valign="top"><label for="flexipages_home_link-<?php echo $number; ?>">Home page link text</label></td>
324
- <td><input class="widefat" type="text" name="flexipages_home_link-<?php echo $number; ?>" id ="flexipages_home_link-<?php echo $number; ?>" value="<?php echo htmlspecialchars($options[$number]['home_link'], ENT_QUOTES); ?>" /><small>leave this blank to hide home page link</small></td>
325
- </tr>
326
-
327
- <tr>
328
- <td colspan="2"><table cellpadding="2px">
329
- <tr><td><input type="radio" name="flexipages_depth-<?php echo $number; ?>" id="flexipages_depth0" value="0"<?php echo $depth_check[0]; ?> /></td><td><label for="flexipages_depth0-<?php echo $number; ?>">List all pages and sub-pages in hierarchical (indented) form.</label></td></tr>
330
- <tr><td><input type="radio" name="flexipages_depth-<?php echo $number; ?>" id="flexipages_depth_1-<?php echo $number; ?>" value="-1"<?php echo $depth_check[-1]; ?> /></td><td><label for="flexipages_depth_1-<?php echo $number; ?>">List all pages and sub-pages in flat (no-indent) form.</label></td></tr>
331
- <tr><td><input type="radio" name="flexipages_depth-<?php echo $number; ?>" id="flexipages_depth1-<?php echo $number; ?>" value="1"<?php echo $depth_check[1]; ?> /></td><td><label for="flexipages_depth1-<?php echo $number; ?>">List top level pages only. Don't list subpages.</label></td></tr>
332
- <tr><td><input type="radio" name="flexipages_depth-<?php echo $number; ?>" id="flexipages_depth_2-<?php echo $number; ?>" value="-2"<?php echo $depth_check[-2]; ?> /></td><td><label for="flexipages_depth_2-<?php echo $number; ?>">List sub-pages only in parent and related pages in hierarchy.</label></td></tr>
333
- <tr><td><input type="radio" name="flexipages_depth-<?php echo $number; ?>" id="flexipages_depth_custom-<?php echo $number; ?>" value="custom"<?php echo $depth_check['custom']; ?> /></td><td><label for="flexipages_depth_custom-<?php echo $number; ?>">Custom depth level</label> (number) <input type="text" name="flexipages_depth_value-<?php echo $number; ?>" id="flexipages_depth_value-<?php echo $number; ?>" value="<?php echo $options[$number]['depth_value'] ?>" size="2" maxlength="2" onclick="document.getElementById('flexipages_depth_custom-<?php echo $number; ?>').checked = true;" /></td></tr>
334
- </table>
335
- </td>
336
- </tr>
337
-
338
-
339
- </table>
340
- <input type="hidden" name="flexipages_submit-<?php echo $number; ?>" value="1" />
341
342
- <?php
343
- }
344
- function flexipages_widget_setup() {
345
- $options = $newoptions = get_option('flexipages_widget');
346
- if ( isset($_POST['flexipages-number-submit']) ) {
347
- $number = (int) $_POST['flexipages-number'];
348
- if ( $number > 9 ) $number = 9;
349
- if ( $number < 1 ) $number = 1;
350
- $newoptions['number'] = $number;
351
- }
352
- if ( $options != $newoptions ) {
353
- $options = $newoptions;
354
- update_option('flexipages_widget', $options);
355
- flexipages_widget_register($options['number']);
356
}
357
- }
358
- function flexipages_widget_page() {
359
- $options = $newoptions = get_option('flexipages_widget');
360
- ?>
361
- <div class="wrap">
362
- <form method="POST">
363
- <h2>Flexi Pages Widgets</h2>
364
- <p style="line-height: 30px;"><?php _e('How many \'Flexi Pages\' widgets would you like?', 'widgets'); ?>
365
- <select id="flexipages-number" name="flexipages-number" value="<?php echo $options['number']; ?>">
366
- <?php for ( $i = 1; $i < 10; ++$i ) echo "<option value='$i' ".($options['number']==$i ? "selected='selected'" : '').">$i</option>"; ?>
367
</select>
368
- <span class="submit"><input type="submit" name="flexipages-number-submit" id="flexipages-number-submit" value="<?php _e('Save'); ?>" /></span></p>
369
- </form>
370
- </div>
371
- <?php
372
}
373
-
374
- function flexipages_widget_register() {
375
- $options = get_option('flexipages_widget');
376
- $number = $options['number'];
377
- if ( $number < 1 ) $number = 1;
378
- if ( $number > 9 ) $number = 9;
379
- for ($i = 1; $i <= 9; $i++) {
380
- $name = array('Flexi Pages %s', 'widgets', $i);
381
- register_sidebar_widget($name, $i <= $number ? 'flexipages_widget' : /* unregister */ '', $i);
382
- register_widget_control($name, $i <= $number ? 'flexipages_widget_control' : /* unregister */ '', 400, 450, $i);
383
}
384
- add_action('sidebar_admin_setup', 'flexipages_widget_setup');
385
- add_action('sidebar_admin_page', 'flexipages_widget_page');
386
}
387
388
- flexipages_widget_register();
389
}
390
391
add_action('plugins_loaded', 'flexipages_init');
3
Plugin Name: Flexi Pages Widget
4
Plugin URI: http://srinig.com/wordpress/plugins/flexi-pages/
5
Description: A highly configurable WordPress sidebar widget to list pages and sub-pages. User friendly widget control comes with various options.
6
+ Version: 1.5.10
7
Author: Srini G
8
+ Author URI: http://srinig.com/wordpress
9
*/
10
11
/* Copyright 2007 Srini G (email : srinig.com@gmail.com)
27
28
function flexipages_options_default()
29
{
30
+ return array(
31
+ 'title' => __('Pages', 'flexipages'),
32
+ 'sort_column' => 'post_title',
33
+ 'sort_order' => 'ASC',
34
+ 'exinclude' => 'exclude',
35
+ 'exinclude_values' => '',
36
+ 'show_subpages_check' => 'on',
37
+ 'show_subpages' => -2,
38
+ 'hierarchy' => 'on',
39
+ 'depth' => 0,
40
+ 'show_home_check' => 'on',
41
+ 'show_home' => __('Home', 'flexipages'),
42
+ 'show_date' => 'off'
43
+ );
44
}
45
46
function flexipages_wp_head()
54
55
function flexipages_currpage_hierarchy()
56
{
57
+ if(is_home() && !is_front_page()) {
58
+ if($curr_page_id = get_option('page_for_posts'))
59
+ $curr_page = &get_post($curr_page_id);
60
+ }
61
+ else if( is_page() ) {
62
+ global $flexipages_post;
63
+ $curr_page = $flexipages_post;
64
+ }
65
+ else
66
return array();
67
+
68
69
// get parents, grandparents of the current page
70
$hierarchy[] = $curr_page->ID;
71
+
72
while($curr_page->post_parent) {
73
$curr_page = &get_post($curr_page->post_parent);
74
$hierarchy[] = $curr_page->ID;
82
$sql = "SELECT ID, post_title, post_parent FROM ".$wpdb->posts;
83
$sql .= " WHERE
84
post_type = 'page'
85
+ AND post_status = 'publish'
86
AND post_parent <> 0 ";
87
88
if($subpages = $wpdb->get_results($sql, ARRAY_A))
91
else return array();
92
}
93
94
+
95
+
96
function flexipages_pageids()
97
{
98
global $wpdb;
127
}
128
}
129
130
+
131
+ function flexipages($args='')
132
{
133
+ $key_value = explode('&', $args);
134
$options = array();
135
foreach($key_value as $value) {
136
$x = explode('=', $value);
137
$options[$x[0]] = $x[1]; // $options['key'] = 'value';
138
}
139
+
140
if($options['exclude'])
141
$exclude = explode(',',$options['exclude']);
142
else
143
$exclude = array();
144
145
146
+ if( $options['depth'] == -2 || $options['show_subpages'] == -2 || !isset($options['depth'])) { // display subpages only in related pages
147
+
148
149
$hierarchy = flexipages_currpage_hierarchy();
150
+
151
152
$subpages = flexipages_get_subpages();
153
157
if ( !in_array ($subpage['post_parent'], $hierarchy) )
158
$exclude[] = $subpage['ID'];
159
}
160
}
161
+ else if( $options['depth'] == -3 || $options['show_subpages'] == -3 ) { // display subpages only in related pages
162
// depth = -3 gets rid of parents' siblings
163
164
$hierarchy = flexipages_currpage_hierarchy();
174
$exclude[] = $subpage['ID'];
175
}
176
}
177
}
178
+
179
+ if($options['depth'] < -1 || !isset($options['depth']))
180
+ $options['depth'] = 0;
181
182
183
if($options['include']) {
184
$include = explode(',', $options['include']);
185
$page_ids = flexipages_pageids();
193
if($exclude)
194
$options['exclude'] = implode(',', $exclude);
195
196
+
197
if($options['title_li']) {
198
$title_li = $options['title_li'];
199
$options['title_li'] = "";
200
}
201
+
202
+ if(!$options['date_format'])
203
+ $options['date_format'] = get_option('date_format');
204
+
205
+ if($options['show_home']) {
206
$display .="<li class=\"page_item";
207
if(is_home()) $display .= " current_page_item";
208
+ $display .= "\"><a href=\"".get_bloginfo('home')."\" title=\"".wp_specialchars(get_bloginfo('name'), 1) ."\">".$options['show_home']."</a></li>\n";
209
}
210
211
foreach($options as $key => $value) {
212
+ if($key == 'home_link' || $key == 'show_home' || $key == 'echo')
213
continue;
214
if($opts) $opts .= '&';
215
$opts .= $key.'='.$value;
218
$display .= wp_list_pages('echo=0&'.$opts);
219
220
if($title_li && $display)
221
+ $display = "<li>".$title_li."<ul>\n".$display."</ul></li>";
222
if(isset($options['echo']) && $options['echo'] == 0)
223
return $display;
224
else
225
echo $display;
226
}
227
228
+
229
function flexipages_init()
230
{
231
+
232
+ if(function_exists('load_plugin_textdomain'))
233
+ load_plugin_textdomain('flexipages', 'wp-content/plugins/flexi-pages-widget/languages/');
234
+
235
if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') )
236
return;
237
+
238
+ function flexipages_widget($args, $widget_args = 1)
239
{
240
+ extract( $args, EXTR_SKIP );
241
+ if ( is_numeric($widget_args) )
242
+ $widget_args = array( 'number' => $widget_args );
243
+ $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) );
244
+ extract( $widget_args, EXTR_SKIP );
245
+
246
$options = get_option('flexipages_widget');
247
+ if ( !isset($options[$number]) )
248
$options[$number] = flexipages_options_default();
249
+
250
extract($options[$number]);
251
+
252
+ $title = apply_filters('widget_title', $options[$number]['title']);
253
+
254
if($exinclude == 'include')
255
$include = $exinclude_values;
256
else
257
$exclude = $exinclude_values;
258
+
259
+ if($hierarchy == 'off' || !$hierarchy)
260
+ $depth = -1;
261
262
+ if($show_subpages_check == 'off' || !$show_subpages_check) {
263
+ $depth = 1;
264
+ $show_subpages = '';
265
}
266
+
267
+ if($home_link)
268
+ $show_home = $home_link;
269
+ else if ($show_home_check != 'on')
270
+ $show_home = '';
271
+ else if ($show_home_check == on && !$show_home)
272
+ $show_home = __('Home');
273
+
274
+
275
276
+ if($pagelist = flexipages('echo=0&title_li=&sort_column='.$sort_column.'&sort_order='.$sort_order.'&include='.$include.'&exclude='.$exclude.'&depth='.$depth.'&show_home='.$show_home.'&show_date='.$show_date.'&date_format='.$date_format.'&show_subpages='.$show_subpages)) {
277
278
echo $before_widget;
279
+
280
+ if($title && $pagelist)
281
echo $before_title . $title . $after_title;
282
283
+ echo $before_pagelist."<ul>\n". $pagelist . "</ul>".$after_pagelist."\n";
284
+ /* $before_pagelist and $after_pagelist are widget arguments that
285
+ can be defined in the functions.php of your theme.
286
+ These arguments can be used, for example, if you want to enclose
287
+ the pagelist within a <div>.
288
+ */
289
+
290
+ echo $after_widget;
291
}
292
}
293
294
+ function flexipages_widget_control($widget_args)
295
{
296
+ global $wp_registered_widgets;
297
+ static $updated = false;
298
+
299
+ if ( is_numeric($widget_args) )
300
+ $widget_args = array( 'number' => $widget_args );
301
+ $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) );
302
+ extract( $widget_args, EXTR_SKIP );
303
304
+ $options = get_option('flexipages_widget');
305
if ( !is_array($options) )
306
+ $options = array();
307
+
308
+ if ( !$updated && !empty($_POST['sidebar']) ) {
309
+ $sidebar = (string) $_POST['sidebar'];
310
+
311
+ $sidebars_widgets = wp_get_sidebars_widgets();
312
+ if ( isset($sidebars_widgets[$sidebar]) )
313
+ $this_sidebar =& $sidebars_widgets[$sidebar];
314
+ else
315
+ $this_sidebar = array();
316
+
317
+ foreach ( (array) $this_sidebar as $_widget_id ) {
318
+ if ( 'flexipages_widget' == $wp_registered_widgets[$_widget_id]['callback'] && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) {
319
+ $widget_number = $wp_registered_widgets[$_widget_id]['params'][0]['number'];
320
+ if ( !in_array( "flexipages-$widget_number", $_POST['widget-id'] ) ) // the widget has been removed.
321
+ unset($options[$widget_number]);
322
+ }
323
+ }
324
+
325
+ foreach ( (array) $_POST['flexipages_widget'] as $widget_number => $flexipages_widget ) {
326
+ if ( !isset($flexipages_widget['title']) && isset($options[$widget_number]) ) // user clicked cancel
327
+ continue;
328
+ $title = strip_tags(stripslashes($flexipages_widget['title']));
329
+ $sort_column = strip_tags(stripslashes($flexipages_widget['sort_column']));
330
+ $sort_order = strip_tags(stripslashes($flexipages_widget['sort_order']));
331
+ $exinclude = strip_tags(stripslashes($flexipages_widget['exinclude']));
332
+ $exinclude_values = $flexipages_widget['exinclude_values']?implode(',', $flexipages_widget['exinclude_values']):'';
333
+ $show_subpages_check = strip_tags(stripslashes($flexipages_widget['show_subpages_check']));
334
+ $show_subpages = strip_tags(stripslashes($flexipages_widget['show_subpages']));
335
+ $hierarchy = strip_tags(stripslashes($flexipages_widget['hierarchy']));
336
+ $depth = strip_tags(stripslashes($flexipages_widget['depth']));
337
+ $show_home_check = strip_tags(stripslashes($flexipages_widget['show_home_check']));
338
+ $show_home = strip_tags(stripslashes($flexipages_widget['show_home']));
339
+ $show_date = strip_tags(stripslashes($flexipages_widget['show_date']));
340
+ $date_format = strip_tags(stripslashes($flexipages_widget['date_format']));
341
+
342
+ $options[$widget_number] = compact('title', 'sort_column', 'sort_order', 'exinclude', 'exinclude_values', 'show_subpages_check', 'show_subpages', 'hierarchy', 'depth', 'show_home_check', 'show_home', 'show_date', 'date_format');
343
+ }
344
345
update_option('flexipages_widget', $options);
346
+ $updated = true;
347
}
348
349
+ if ( -1 == $number ) {
350
+ $number = '%i%';
351
+ $options[$number] = flexipages_options_default();
352
}
353
+
354
+ $title = attribute_escape($options[$number]['title']);
355
+ $sort_column_select[$options[$number]['sort_column']] = " selected=\"selected\"";
356
+ $sort_order_select[$options[$number]['sort_order']] = " selected=\"selected\"";
357
+ $exinclude_select[$options[$number]['exinclude']] = ' selected="selected"';
358
+ $show_subpages_check_check = ($options[$number]['show_subpages_check'] == 'on')?' checked="checked"':'';
359
+ if($options[$number]['depth'] == -2)
360
+ $show_subpages_select[-2] = ' selected="selected"';
361
+ else if($options[$number]['depth'] == -3)
362
+ $show_subpages_select[-3] = ' selected="selected"';
363
+ else
364
+ $show_subpages_select[$options[$number]['show_subpages']] = ' selected="selected"';
365
+ $show_subpages_display = $show_subpages_check_check?'':' style="display:none;"';
366
+ $hierarchy_check = ($options[$number]['hierarchy'] == 'on')?' checked="checked"':'';
367
+ if(in_array($options[$number]['depth'], array(0, 2, 3, 4, 5)))
368
+ $depth_select[$options[$number]['depth']] = ' selected="selected"';
369
+ else
370
+ $depth_select[0] = ' selected="selected"';
371
+ $depth_display = $hierarchy_check?'':' style="display:none;"';
372
+ $show_home_check_check = ($options[$number]['home_link'] || $options[$number]['show_home_check'] == 'on')?' checked="checked"':'';
373
+ $show_home_display = $show_home_check_check?'':' style="display:none;"';
374
+ $show_home = isset($options[$number]['home_link'])?attribute_escape($options[$number]['home_link']):attribute_escape($options[$number]['show_home']);
375
+ $show_date_check = ($options[$number]['show_date'] == 'on')?' checked="checked"':'';
376
+ $date_format_display = $show_date_check?'':' style="display:none;"';
377
+ $date_format_select[$options[$number]['date_format']] = ' selected="selected"';
378
+ $date_format_options = array('j F Y', 'F j, Y', 'Y/m/d', 'd/m/Y', 'm/d/Y');
379
+
380
+ ?>
381
+ <table cellpadding="10px" cellspacing="10px">
382
+ <tr>
383
+ <td><label for="flexipages-title-<?php echo $number; ?>"><?php _e('Title', 'flexipages'); ?></label></td>
384
+ <td><input class="widefat" id="flexipages-title-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][title]" type="text" value="<?php echo $title; ?>" /></td>
385
+ </tr>
386
+
387
+ <tr>
388
+ <td valign="top"><label for="flexipages-sort_column-<?php echo $number; ?>"><?php _e('Sort by', 'flexipages'); ?></label></td>
389
+ <td><select class="widefat" style="display:inline;width:auto;" name="flexipages_widget[<?php echo $number; ?>][sort_column]" id="flexipages-sort_column-<?php echo $number; ?>">
390
+ <option value="post_title"<?php echo $sort_column_select['post_title']; ?>><?php _e('Page title', 'flexipages'); ?></option>
391
+ <option value="menu_order"<?php echo $sort_column_select['menu_order']; ?>><?php _e('Menu order', 'flexipages'); ?></option>
392
+ <option value="post_date"<?php echo $sort_column_select['post_date']; ?>><?php _e('Date created', 'flexipages'); ?></option>
393
+ <option value="post_modified"<?php echo $sort_column_select['post_modified']; ?>><?php _e('Date modified', 'flexipages'); ?></option>
394
+ <option value="ID"<?php echo $sort_column_select['ID']; ?>><?php _e('Page ID', 'flexipages'); ?></option>
395
+ <option value="post_author"<?php echo $sort_column_select['post_author']; ?>><?php _e('Page author ID', 'flexipages'); ?></option>
396
+ <option value="post_name"<?php echo $sort_column_select['post_name']; ?>><?php _e('Page slug', 'flexipages'); ?></option>
397
+ </select>
398
+ <select class="widefat" style="display:inline;width:auto;" name="flexipages_widget[<?php echo $number; ?>][sort_order]" id="flexipages-sort_order-<?php echo $number; ?>">
399
+ <option value="ASC"<?php echo $sort_order_select['ASC']; ?>><?php _e('ASC', 'flexipages'); ?></option>
400
+ <option value="DESC"<?php echo $sort_order_select['DESC']; ?>><?php _e('DESC', 'flexipages'); ?></option>
401
+ </select></td>
402
+ </tr>
403
+ <tr>
404
+ <td valign="top"><select class="widefat" style="display:inline;width:auto;" name="flexipages_widget[<?php echo $number; ?>][exinclude]" id="flexipages-exinclude-<?php echo $number; ?>">
405
+ <option value="exclude"<?php echo $exinclude_select['exclude']; ?>><?php _e('Exclude', 'flexipages'); ?></option>
406
+ <option value="include"<?php echo $exinclude_select['include']; ?>><?php _e('Include', 'flexipages'); ?></option>
407
+ </select><?php _e('pages', 'flexipages'); ?></td>
408
+ <td><select name="flexipages_widget[<?php echo $number; ?>][exinclude_values][]" id="flexipages-exinclude_values-<?php echo $number; ?>" class="widefat" style="height:auto;max-height:6em" multiple="multiple" size="4">
409
+ <?php flexipages_exinclude_options($options[$number]['sort_column'], $options[$number]['sort_order'], explode(',', $options[$number]['exinclude_values']),0,0) ?>
410
+ </select><br />
411
+ <small class="setting-description"><?php _e('use &lt;Ctrl&gt; key to select multiple pages', 'flexipages'); ?></small>
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td style="padding:5px 0;"><label for="flexipages-show_subpages_check-<?php echo $number; ?>"><input type="checkbox" class="checkbox" id="flexipages-show_subpages_check-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][show_subpages_check]" onchange="if(this.checked) { getElementById('flexipages-show_subpages-<?php echo $number; ?>').style.display='block'; } else { getElementById('flexipages-show_subpages-<?php echo $number; ?>').style.display='none'; }"<?php echo $show_subpages_check_check; ?> /> <?php _e('Show sub-pages', 'flexipages'); ?></label></td>
416
+ <td><select<?php echo $show_subpages_display; ?> class="widefat" id="flexipages-show_subpages-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][show_subpages]">
417
+ <option value="0"<?php echo $show_subpages_select[0]; ?>><?php _e('Show all sub-pages', 'flexipages'); ?></option>
418
+ <option value="-2"<?php echo $show_subpages_select[-2]; ?>><?php _e('Only related sub-pages', 'flexipages'); ?></option>
419
+ <option value="-3"<?php echo $show_subpages_select[-3]; ?>><?php _e('Only strictly related sub-pages', 'flexipages'); ?></option>
420
+
421
+ </select>
422
+ </td>
423
+ </tr>
424
+ <tr>
425
+ <td style="padding:5px 0;"><label for="flexipages-hierarchy-<?php echo $number; ?>"><input type="checkbox" class="checkbox" id="flexipages-hierarchy-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][hierarchy]" onchange="if(this.checked) { getElementById('flexipages-depth-<?php echo $number; ?>').style.display='block'; } else { getElementById('flexipages-depth-<?php echo $number; ?>').style.display='none'; }"<?php echo $hierarchy_check; ?> /> <?php _e('Show hierarchy', 'flexipages'); ?></label></td>
426
+ <td>
427
+ <select<?php echo $depth_display; ?> class="widefat" id="flexipages-depth-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][depth]">
428
+ <?php for($i=2;$i<=5;$i++) { ?>
429
+ <option value="<?php echo $i; ?>"<?php echo $depth_select[$i]; ?>><?php printf(__('%d levels deep', 'flexipages'), $i); ?></option>
430
+ <?php } ?>
431
+ <option value="0"<?php echo $depth_select[0]; ?>><?php _e('Unlimited depth', 'flexipages'); ?></option>
432
+ </select>
433
+ </td>
434
+ </tr>
435
+ <tr>
436
+ <td style="padding:5px 0;"><label for="flexipages-show_home_check-<?php echo $number; ?>"><input type="checkbox" class="checkbox" id="flexipages-show_home_check-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][show_home_check]" onchange="if(this.checked) { getElementById('flexipages-show_home-<?php echo $number; ?>').style.display='block'; } else { getElementById('flexipages-show_home-<?php echo $number; ?>').style.display='none'; }"<?php echo $show_home_check_check; ?> /> <?php _e('Show home page', 'flexipages'); ?></label></td>
437
+ <td><input<?php echo $show_home_display; ?> class="widefat" type="text" name="flexipages_widget[<?php echo $number; ?>][show_home]" id ="flexipages-show_home-<?php echo $number; ?>" value="<?php echo htmlspecialchars($show_home, ENT_QUOTES); ?>" /></td>
438
+ </tr>
439
+ <tr>
440
+ <td style="padding:5px 0;"><label for="flexipages-show_date-<?php echo $number; ?>"><input type="checkbox" class="checkbox" id="flexipages-show_date-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][show_date]" onchange="if(this.checked) { getElementById('flexipages-date_format-<?php echo $number; ?>').style.display='block'; } else { getElementById('flexipages-date_format-<?php echo $number; ?>').style.display='none'; }"<?php echo $show_date_check; ?> /> <?php _e('Show date', 'flexipages'); ?></label></td>
441
+ <td><select<?php echo $date_format_display; ?> class="widefat" id="flexipages-date_format-<?php echo $number; ?>" name="flexipages_widget[<?php echo $number; ?>][date_format]" text="Select format">
442
+ <option value=""><?php _e('Choose Format', 'flexipages'); ?></option>
443
+ <?php foreach($date_format_options as $date_format_option) { ?>
444
+ <option value="<?php echo $date_format_option; ?>"<?php echo $date_format_select[$date_format_option]; ?>><?php echo date($date_format_option); ?></option>
445
+ <?php } ?>
446
</select>
447
+ </td>
448
+ </tr>
449
+ </table>
450
+ <p>
451
+ <input type="hidden" name="flexipages_widget[<?php echo $number; ?>][submit]" value="1" />
452
+ </p>
453
+ <?php
454
}
455
+
456
+ function flexipages_widget_register()
457
+ {
458
+ if ( !$options = get_option('flexipages_widget') )
459
+ $options = array();
460
+ $widget_ops = array('classname' => 'flexipages_widget', 'description' => __('A highly configurable widget to list pages and sub-pages.', 'flexipages'));
461
+ $control_ops = array('width' => '380', 'height' => '', 'id_base' => 'flexipages');
462
+ $name = 'Flexi Pages';
463
+
464
+ $id = false;
465
+ foreach ( (array) array_keys($options) as $o ) {
466
+ if ( !isset($options[$o]['title']) )
467
+ continue;
468
+ $id = "flexipages-$o";
469
+ wp_register_sidebar_widget($id, $name, 'flexipages_widget', $widget_ops, array( 'number' => $o ));
470
+ wp_register_widget_control($id, $name, 'flexipages_widget_control', $control_ops, array( 'number' => $o ));
471
}
472
+
473
+ if ( !$id ) {
474
+ wp_register_sidebar_widget( 'flexipages-1', $name, 'flexipages_widget', $widget_ops, array( 'number' => -1 ) );
475
+ wp_register_widget_control( 'flexipages-1', $name, 'flexipages_widget_control', $control_ops, array( 'number' => -1 ) );
476
+ }
477
}
478
479
+ flexipages_widget_register();
480
}
481
482
add_action('plugins_loaded', 'flexipages_init');
languages/flexipages-de_DE.mo ADDED
Binary file
languages/flexipages-de_DE.po ADDED
@@ -0,0 +1,130 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget 1.5.5\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-09-03 12:08+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Frank W. Hempel <info@frank-hempel.de>\n"
8
+ "Language-Team: \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-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: \n"
16
+
17
+ #: /flexi-pages-widget.php:36
18
+ msgid "Pages"
19
+ msgstr "Seiten"
20
+
21
+ #: /flexi-pages-widget.php:46
22
+ #: /flexi-pages-widget.php:279
23
+ msgid "Home"
24
+ msgstr "Home"
25
+
26
+ #: /flexi-pages-widget.php:385
27
+ msgid "Title"
28
+ msgstr "Titel"
29
+
30
+ #: /flexi-pages-widget.php:390
31
+ msgid "Sort by"
32
+ msgstr "Sortieren nach"
33
+
34
+ #: /flexi-pages-widget.php:392
35
+ msgid "Page title"
36
+ msgstr "Seiten-Titel"
37
+
38
+ #: /flexi-pages-widget.php:393
39
+ msgid "Menu order"
40
+ msgstr "Reihenfolge"
41
+
42
+ #: /flexi-pages-widget.php:394
43
+ msgid "Date created"
44
+ msgstr "Erstell-Datum "
45
+
46
+ #: /flexi-pages-widget.php:395
47
+ msgid "Date modified"
48
+ msgstr "&Auml;nderungs-Datum"
49
+
50
+ #: /flexi-pages-widget.php:396
51
+ msgid "Page ID"
52
+ msgstr "Seiten ID"
53
+
54
+ #: /flexi-pages-widget.php:397
55
+ msgid "Page author ID"
56
+ msgstr "Autoren ID"
57
+
58
+ #: /flexi-pages-widget.php:398
59
+ msgid "Page slug"
60
+ msgstr "Seitenform"
61
+
62
+ #: /flexi-pages-widget.php:401
63
+ msgid "ASC"
64
+ msgstr "aufsteigend"
65
+
66
+ #: /flexi-pages-widget.php:402
67
+ msgid "DESC"
68
+ msgstr "absteigend"
69
+
70
+ #: /flexi-pages-widget.php:407
71
+ msgid "Exclude"
72
+ msgstr "auszuschlie&szlig;ende"
73
+
74
+ #: /flexi-pages-widget.php:408
75
+ msgid "Include"
76
+ msgstr "einzuschlie&szlig;ende"
77
+
78
+ #: /flexi-pages-widget.php:409
79
+ msgid "pages"
80
+ msgstr "Seiten"
81
+
82
+ #: /flexi-pages-widget.php:413
83
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
84
+ msgstr " &lt;Strg&gt; Taste f&uuml;r Mehrfachauswahl"
85
+
86
+ #: /flexi-pages-widget.php:417
87
+ msgid "Show sub-pages"
88
+ msgstr "Unterseiten anzeigen"
89
+
90
+ #: /flexi-pages-widget.php:419
91
+ msgid "Show all sub-pages"
92
+ msgstr "Alle"
93
+
94
+ #: /flexi-pages-widget.php:420
95
+ msgid "Only related sub-pages"
96
+ msgstr "Verwandte"
97
+
98
+ #: /flexi-pages-widget.php:421
99
+ msgid "Only strictly related sub-pages"
100
+ msgstr "Nur direkt verwandte"
101
+
102
+ #: /flexi-pages-widget.php:427
103
+ msgid "Show hierarchy"
104
+ msgstr "Hierarchie anzeigen"
105
+
106
+ #: /flexi-pages-widget.php:431
107
+ #, php-format
108
+ msgid "%d levels deep"
109
+ msgstr "%d Ebenen"
110
+
111
+ #: /flexi-pages-widget.php:433
112
+ msgid "Unlimited depth"
113
+ msgstr "Unlimitierte Ebenen"
114
+
115
+ #: /flexi-pages-widget.php:438
116
+ msgid "Show home page"
117
+ msgstr "\"Home\" anzeigen"
118
+
119
+ #: /flexi-pages-widget.php:442
120
+ msgid "Show date"
121
+ msgstr "Datum anzeigen"
122
+
123
+ #: /flexi-pages-widget.php:444
124
+ msgid "Choose Format"
125
+ msgstr "Format wählen"
126
+
127
+ #: /flexi-pages-widget.php:462
128
+ msgid "A highly configurable widget to list pages and sub-pages."
129
+ msgstr "Ein gut konfigurierbares Widget zum Anzeigen von Seiten und Unterseiten."
130
+
languages/flexipages-pt_BR.mo ADDED
Binary file
languages/flexipages-pt_BR.po ADDED
@@ -0,0 +1,130 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget 1.5.5\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-09-03 12:08+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Tzor More <tzor77@hotmail.com>\n"
8
+ "Language-Team: \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-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: \n"
16
+
17
+ #: /flexi-pages-widget.php:36
18
+ msgid "Pages"
19
+ msgstr "Páginas"
20
+
21
+ #: /flexi-pages-widget.php:46
22
+ #: /flexi-pages-widget.php:279
23
+ msgid "Home"
24
+ msgstr "Home"
25
+
26
+ #: /flexi-pages-widget.php:385
27
+ msgid "Title"
28
+ msgstr "Título"
29
+
30
+ #: /flexi-pages-widget.php:390
31
+ msgid "Sort by"
32
+ msgstr "Organizar por"
33
+
34
+ #: /flexi-pages-widget.php:392
35
+ msgid "Page title"
36
+ msgstr "Título da página"
37
+
38
+ #: /flexi-pages-widget.php:393
39
+ msgid "Menu order"
40
+ msgstr "Ordem do menu"
41
+
42
+ #: /flexi-pages-widget.php:394
43
+ msgid "Date created"
44
+ msgstr "Data criada"
45
+
46
+ #: /flexi-pages-widget.php:395
47
+ msgid "Date modified"
48
+ msgstr "Data modificada"
49
+
50
+ #: /flexi-pages-widget.php:396
51
+ msgid "Page ID"
52
+ msgstr "ID da página"
53
+
54
+ #: /flexi-pages-widget.php:397
55
+ msgid "Page author ID"
56
+ msgstr "ID do autor da página"
57
+
58
+ #: /flexi-pages-widget.php:398
59
+ msgid "Page slug"
60
+ msgstr "Resumo da página"
61
+
62
+ #: /flexi-pages-widget.php:401
63
+ msgid "ASC"
64
+ msgstr "ASC"
65
+
66
+ #: /flexi-pages-widget.php:402
67
+ msgid "DESC"
68
+ msgstr "DESC"
69
+
70
+ #: /flexi-pages-widget.php:407
71
+ msgid "Exclude"
72
+ msgstr "Excluir"
73
+
74
+ #: /flexi-pages-widget.php:408
75
+ msgid "Include"
76
+ msgstr "Incluir"
77
+
78
+ #: /flexi-pages-widget.php:409
79
+ msgid "pages"
80
+ msgstr "páginas"
81
+
82
+ #: /flexi-pages-widget.php:413
83
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
84
+ msgstr "use a tecla &lt;Ctrl&gt; para selecionar páginas múltiplas"
85
+
86
+ #: /flexi-pages-widget.php:417
87
+ msgid "Show sub-pages"
88
+ msgstr "Mostras as sub-páginas"
89
+
90
+ #: /flexi-pages-widget.php:419
91
+ msgid "Show all sub-pages"
92
+ msgstr "Mostrar todas as sub-páginas"
93
+
94
+ #: /flexi-pages-widget.php:420
95
+ msgid "Only related sub-pages"
96
+ msgstr "Somente sub-páginas relacionadas"
97
+
98
+ #: /flexi-pages-widget.php:421
99
+ msgid "Only strictly related sub-pages"
100
+ msgstr "Somente sub-páginas estritamente relacionadas"
101
+
102
+ #: /flexi-pages-widget.php:427
103
+ msgid "Show hierarchy"
104
+ msgstr "Mostrar hierarquia"
105
+
106
+ #: /flexi-pages-widget.php:431
107
+ #, php-format
108
+ msgid "%d levels deep"
109
+ msgstr "%d níveis de profundidade"
110
+
111
+ #: /flexi-pages-widget.php:433
112
+ msgid "Unlimited depth"
113
+ msgstr "Profundidade ilimitada"
114
+
115
+ #: /flexi-pages-widget.php:438
116
+ msgid "Show home page"
117
+ msgstr "Mostrar a página inicial"
118
+
119
+ #: /flexi-pages-widget.php:442
120
+ msgid "Show date"
121
+ msgstr "Mostrar a data"
122
+
123
+ #: /flexi-pages-widget.php:444
124
+ msgid "Choose Format"
125
+ msgstr "Escolher o formato"
126
+
127
+ #: /flexi-pages-widget.php:462
128
+ msgid "A highly configurable widget to list pages and sub-pages."
129
+ msgstr "Um widget altamente configurável para listar páginas e sub-páginas"
130
+
languages/flexipages-ru_RU.mo ADDED
Binary file
languages/flexipages-ru_RU.po ADDED
@@ -0,0 +1,132 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget 1.5.3.1\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-09-03 12:08+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Fat Cow <zhr@tut.by>\n"
8
+ "Language-Team: Fat Cow <zhr@tut.by>\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-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-Language: Russian\n"
16
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
17
+ "X-Poedit-SearchPath-0: \n"
18
+
19
+ #: /flexi-pages-widget.php:36
20
+ msgid "Pages"
21
+ msgstr "Страницы"
22
+
23
+ #: /flexi-pages-widget.php:46
24
+ #: /flexi-pages-widget.php:279
25
+ msgid "Home"
26
+ msgstr "Домой"
27
+
28
+ #: /flexi-pages-widget.php:385
29
+ msgid "Title"
30
+ msgstr "Название"
31
+
32
+ #: /flexi-pages-widget.php:390
33
+ msgid "Sort by"
34
+ msgstr "Сортировать по"
35
+
36
+ #: /flexi-pages-widget.php:392
37
+ msgid "Page title"
38
+ msgstr "название страницы"
39
+
40
+ #: /flexi-pages-widget.php:393
41
+ msgid "Menu order"
42
+ msgstr "Порядок меню"
43
+
44
+ #: /flexi-pages-widget.php:394
45
+ msgid "Date created"
46
+ msgstr "Дата создания"
47
+
48
+ #: /flexi-pages-widget.php:395
49
+ msgid "Date modified"
50
+ msgstr "Дата изменения"
51
+
52
+ #: /flexi-pages-widget.php:396
53
+ msgid "Page ID"
54
+ msgstr "ID страницы"
55
+
56
+ #: /flexi-pages-widget.php:397
57
+ msgid "Page author ID"
58
+ msgstr "ID страницы автора"
59
+
60
+ #: /flexi-pages-widget.php:398
61
+ msgid "Page slug"
62
+ msgstr "Слоган страницы"
63
+
64
+ #: /flexi-pages-widget.php:401
65
+ msgid "ASC"
66
+ msgstr "ASC"
67
+
68
+ #: /flexi-pages-widget.php:402
69
+ msgid "DESC"
70
+ msgstr "Описание"
71
+
72
+ #: /flexi-pages-widget.php:407
73
+ msgid "Exclude"
74
+ msgstr "Исключить"
75
+
76
+ #: /flexi-pages-widget.php:408
77
+ msgid "Include"
78
+ msgstr "Включить"
79
+
80
+ #: /flexi-pages-widget.php:409
81
+ msgid "pages"
82
+ msgstr "страницы"
83
+
84
+ #: /flexi-pages-widget.php:413
85
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
86
+ msgstr "используйте клавишу &lt;Ctrl&gt; для выбора нескольких страниц"
87
+
88
+ #: /flexi-pages-widget.php:417
89
+ msgid "Show sub-pages"
90
+ msgstr "Показать подстраницы"
91
+
92
+ #: /flexi-pages-widget.php:419
93
+ msgid "Show all sub-pages"
94
+ msgstr "Показать все подстраницы"
95
+
96
+ #: /flexi-pages-widget.php:420
97
+ msgid "Only related sub-pages"
98
+ msgstr "Только связанные подстраницы"
99
+
100
+ #: /flexi-pages-widget.php:421
101
+ msgid "Only strictly related sub-pages"
102
+ msgstr "Только непосредственно связанные подстраницы"
103
+
104
+ #: /flexi-pages-widget.php:427
105
+ msgid "Show hierarchy"
106
+ msgstr "Показать иерархию"
107
+
108
+ #: /flexi-pages-widget.php:431
109
+ #, php-format
110
+ msgid "%d levels deep"
111
+ msgstr "%d уровень"
112
+
113
+ #: /flexi-pages-widget.php:433
114
+ msgid "Unlimited depth"
115
+ msgstr "Глубина неограничена"
116
+
117
+ #: /flexi-pages-widget.php:438
118
+ msgid "Show home page"
119
+ msgstr "Показать домашнюю страницу"
120
+
121
+ #: /flexi-pages-widget.php:442
122
+ msgid "Show date"
123
+ msgstr "Показать дату"
124
+
125
+ #: /flexi-pages-widget.php:444
126
+ msgid "Choose Format"
127
+ msgstr "Выбрать формат"
128
+
129
+ #: /flexi-pages-widget.php:462
130
+ msgid "A highly configurable widget to list pages and sub-pages."
131
+ msgstr "Полностью настраиваемый виджет списка страниц и подстраниц."
132
+
languages/flexipages-sv_SE.mo ADDED
Binary file
languages/flexipages-sv_SE.po ADDED
@@ -0,0 +1,129 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-09-03 12:08+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Ove Kaufeldt <ove.kaufeldt@shin-ken.se>\n"
8
+ "Language-Team: \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-Language: Swedish\n"
13
+ "X-Poedit-Country: SWEDEN\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+
16
+ #: /flexi-pages-widget.php:36
17
+ msgid "Pages"
18
+ msgstr "Sidor"
19
+
20
+ #: /flexi-pages-widget.php:46
21
+ #: /flexi-pages-widget.php:279
22
+ msgid "Home"
23
+ msgstr "Hem"
24
+
25
+ #: /flexi-pages-widget.php:385
26
+ msgid "Title"
27
+ msgstr "Titel"
28
+
29
+ #: /flexi-pages-widget.php:390
30
+ msgid "Sort by"
31
+ msgstr "Sortera efter"
32
+
33
+ #: /flexi-pages-widget.php:392
34
+ msgid "Page title"
35
+ msgstr "Sidnamn"
36
+
37
+ #: /flexi-pages-widget.php:393
38
+ msgid "Menu order"
39
+ msgstr "Menyordning"
40
+
41
+ #: /flexi-pages-widget.php:394
42
+ msgid "Date created"
43
+ msgstr "Datum skapat"
44
+
45
+ #: /flexi-pages-widget.php:395
46
+ msgid "Date modified"
47
+ msgstr "Datum modifierat"
48
+
49
+ #: /flexi-pages-widget.php:396
50
+ msgid "Page ID"
51
+ msgstr "Sid-ID"
52
+
53
+ #: /flexi-pages-widget.php:397
54
+ msgid "Page author ID"
55
+ msgstr "Sidskaparens ID"
56
+
57
+ #: /flexi-pages-widget.php:398
58
+ msgid "Page slug"
59
+ msgstr "Sidordning"
60
+
61
+ #: /flexi-pages-widget.php:401
62
+ msgid "ASC"
63
+ msgstr "Stigande"
64
+
65
+ #: /flexi-pages-widget.php:402
66
+ msgid "DESC"
67
+ msgstr "Fallande"
68
+
69
+ #: /flexi-pages-widget.php:407
70
+ msgid "Exclude"
71
+ msgstr "Exkludera"
72
+
73
+ #: /flexi-pages-widget.php:408
74
+ msgid "Include"
75
+ msgstr "Inkludera"
76
+
77
+ #: /flexi-pages-widget.php:409
78
+ msgid "pages"
79
+ msgstr "sidor"
80
+
81
+ #: /flexi-pages-widget.php:413
82
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
83
+ msgstr "använd &lt;Ctrl&gt; för att välja flera sidor"
84
+
85
+ #: /flexi-pages-widget.php:417
86
+ msgid "Show sub-pages"
87
+ msgstr "Visa undersidor"
88
+
89
+ #: /flexi-pages-widget.php:419
90
+ msgid "Show all sub-pages"
91
+ msgstr "Visa alla undersidor"
92
+
93
+ #: /flexi-pages-widget.php:420
94
+ msgid "Only related sub-pages"
95
+ msgstr "Bara relaterade undersidor"
96
+
97
+ #: /flexi-pages-widget.php:421
98
+ msgid "Only strictly related sub-pages"
99
+ msgstr "Bara strikt relaterade undersidor"
100
+
101
+ #: /flexi-pages-widget.php:427
102
+ msgid "Show hierarchy"
103
+ msgstr "Visa hierarki"
104
+
105
+ #: /flexi-pages-widget.php:431
106
+ #, php-format
107
+ msgid "%d levels deep"
108
+ msgstr "%d nivåer ner"
109
+
110
+ #: /flexi-pages-widget.php:433
111
+ msgid "Unlimited depth"
112
+ msgstr "Obegränsat antal nivåer"
113
+
114
+ #: /flexi-pages-widget.php:438
115
+ msgid "Show home page"
116
+ msgstr "Visa Hem-sida"
117
+
118
+ #: /flexi-pages-widget.php:442
119
+ msgid "Show date"
120
+ msgstr "Visa datum"
121
+
122
+ #: /flexi-pages-widget.php:444
123
+ msgid "Choose Format"
124
+ msgstr "Välj format"
125
+
126
+ #: /flexi-pages-widget.php:462
127
+ msgid "A highly configurable widget to list pages and sub-pages."
128
+ msgstr "En konfigurerbar widget för att lista sidor och undersidor."
129
+
languages/flexipages-tr_TR.mo ADDED
Binary file
languages/flexipages-tr_TR.po ADDED
@@ -0,0 +1,163 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget v1.5.7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2009-09-28 22:21+0300\n"
7
+ "Last-Translator: Hakan Demiray <hakan@dmry.net>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Turkish\n"
14
+ "X-Poedit-Country: TURKEY\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: flexi-pages-widget.php:31
23
+ #@ flexipages
24
+ msgid "Pages"
25
+ msgstr "Sayfalar"
26
+
27
+ #: flexi-pages-widget.php:41
28
+ #: flexi-pages-widget.php:272
29
+ #@ flexipages
30
+ msgid "Home"
31
+ msgstr "Ana sayfa"
32
+
33
+ #: flexi-pages-widget.php:383
34
+ #@ flexipages
35
+ msgid "Title"
36
+ msgstr "Başlık"
37
+
38
+ #: flexi-pages-widget.php:388
39
+ #@ flexipages
40
+ msgid "Sort by"
41
+ msgstr "Sıralama"
42
+
43
+ #: flexi-pages-widget.php:390
44
+ #@ flexipages
45
+ msgid "Page title"
46
+ msgstr "Sayfa başlığı"
47
+
48
+ #: flexi-pages-widget.php:391
49
+ #@ flexipages
50
+ msgid "Menu order"
51
+ msgstr "Menü sırası"
52
+
53
+ #: flexi-pages-widget.php:392
54
+ #@ flexipages
55
+ msgid "Date created"
56
+ msgstr "Oluşturulma tarihi"
57
+
58
+ #: flexi-pages-widget.php:393
59
+ #@ flexipages
60
+ msgid "Date modified"
61
+ msgstr "Güncelleme tarihi"
62
+
63
+ #: flexi-pages-widget.php:394
64
+ #@ flexipages
65
+ msgid "Page ID"
66
+ msgstr "Sayfa ID"
67
+
68
+ #: flexi-pages-widget.php:395
69
+ #@ flexipages
70
+ msgid "Page author ID"
71
+ msgstr "Sayfa yazarı ID"
72
+
73
+ #: flexi-pages-widget.php:396
74
+ #@ flexipages
75
+ msgid "Page slug"
76
+ msgstr "Sayfa kısa adı"
77
+
78
+ #: flexi-pages-widget.php:399
79
+ #@ flexipages
80
+ msgid "ASC"
81
+ msgstr "ARTAN"
82
+
83
+ #: flexi-pages-widget.php:400
84
+ #@ flexipages
85
+ msgid "DESC"
86
+ msgstr "AZALAN"
87
+
88
+ #: flexi-pages-widget.php:405
89
+ #@ flexipages
90
+ msgid "Exclude"
91
+ msgstr "Çıkar"
92
+
93
+ #: flexi-pages-widget.php:406
94
+ #@ flexipages
95
+ msgid "Include"
96
+ msgstr "Ekle"
97
+
98
+ #: flexi-pages-widget.php:407
99
+ #@ flexipages
100
+ msgid "pages"
101
+ msgstr "sayfalar"
102
+
103
+ #: flexi-pages-widget.php:411
104
+ #@ flexipages
105
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
106
+ msgstr "birden fazla sayfa seçmek için &lt;Ctrl&gt; tuşunu kullanın"
107
+
108
+ #: flexi-pages-widget.php:415
109
+ #@ flexipages
110
+ msgid "Show sub-pages"
111
+ msgstr "Alt sayfaları göster"
112
+
113
+ #: flexi-pages-widget.php:417
114
+ #@ flexipages
115
+ msgid "Show all sub-pages"
116
+ msgstr "Tüm alt sayfaları göster"
117
+
118
+ #: flexi-pages-widget.php:418
119
+ #@ flexipages
120
+ msgid "Only related sub-pages"
121
+ msgstr "Sadece ilgili alt sayfalar"
122
+
123
+ #: flexi-pages-widget.php:419
124
+ #@ flexipages
125
+ msgid "Only strictly related sub-pages"
126
+ msgstr "Sadece yapışkan alt sayfalar"
127
+
128
+ #: flexi-pages-widget.php:425
129
+ #@ flexipages
130
+ msgid "Show hierarchy"
131
+ msgstr "Hiyerarşi göster"
132
+
133
+ #: flexi-pages-widget.php:429
134
+ #, php-format
135
+ #@ flexipages
136
+ msgid "%d levels deep"
137
+ msgstr "%d seviye derinliğinde"
138
+
139
+ #: flexi-pages-widget.php:431
140
+ #@ flexipages
141
+ msgid "Unlimited depth"
142
+ msgstr "Sınırsız derinlikte"
143
+
144
+ #: flexi-pages-widget.php:436
145
+ #@ flexipages
146
+ msgid "Show home page"
147
+ msgstr "Ana sayfayı göster"
148
+
149
+ #: flexi-pages-widget.php:440
150
+ #@ flexipages
151
+ msgid "Show date"
152
+ msgstr "Tarihi göster"
153
+
154
+ #: flexi-pages-widget.php:442
155
+ #@ flexipages
156
+ msgid "Choose Format"
157
+ msgstr "Formatı Seçin"
158
+
159
+ #: flexi-pages-widget.php:460
160
+ #@ flexipages
161
+ msgid "A highly configurable widget to list pages and sub-pages."
162
+ msgstr "Liste sayfaları ve alt sayfalar için birçok yapılandırma ayarları içerir."
163
+
languages/flexipages-uk_UA.mo ADDED
Binary file
languages/flexipages-uk_UA.po ADDED
@@ -0,0 +1,132 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-09-03 12:08+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: wpp.pp.ua <wordpress.ua@gmail.com>\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-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-Language: Ukrainian\n"
16
+ "X-Poedit-Country: UKRAINE\n"
17
+ "X-Poedit-SearchPath-0: \n"
18
+
19
+ #: /flexi-pages-widget.php:36
20
+ msgid "Pages"
21
+ msgstr "Страницы"
22
+
23
+ #: /flexi-pages-widget.php:46
24
+ #: /flexi-pages-widget.php:279
25
+ msgid "Home"
26
+ msgstr "Додому"
27
+
28
+ #: /flexi-pages-widget.php:385
29
+ msgid "Title"
30
+ msgstr "Назва"
31
+
32
+ #: /flexi-pages-widget.php:390
33
+ msgid "Sort by"
34
+ msgstr "Сортувати по"
35
+
36
+ #: /flexi-pages-widget.php:392
37
+ msgid "Page title"
38
+ msgstr "назва сторінки"
39
+
40
+ #: /flexi-pages-widget.php:393
41
+ msgid "Menu order"
42
+ msgstr "Порядок меню"
43
+
44
+ #: /flexi-pages-widget.php:394
45
+ msgid "Date created"
46
+ msgstr "Дата створення"
47
+
48
+ #: /flexi-pages-widget.php:395
49
+ msgid "Date modified"
50
+ msgstr "Дата зміни"
51
+
52
+ #: /flexi-pages-widget.php:396
53
+ msgid "Page ID"
54
+ msgstr "ID страницы"
55
+
56
+ #: /flexi-pages-widget.php:397
57
+ msgid "Page author ID"
58
+ msgstr "ID сторінки автора"
59
+
60
+ #: /flexi-pages-widget.php:398
61
+ msgid "Page slug"
62
+ msgstr "Слоган сторінки"
63
+
64
+ #: /flexi-pages-widget.php:401
65
+ msgid "ASC"
66
+ msgstr "ASC"
67
+
68
+ #: /flexi-pages-widget.php:402
69
+ msgid "DESC"
70
+ msgstr "Опис"
71
+
72
+ #: /flexi-pages-widget.php:407
73
+ msgid "Exclude"
74
+ msgstr "Виключити"
75
+
76
+ #: /flexi-pages-widget.php:408
77
+ msgid "Include"
78
+ msgstr "Включити"
79
+
80
+ #: /flexi-pages-widget.php:409
81
+ msgid "pages"
82
+ msgstr "сторінки"
83
+
84
+ #: /flexi-pages-widget.php:413
85
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
86
+ msgstr "використовуйте клавішу &lt;Ctrl&gt; для вибору декількох сторінок"
87
+
88
+ #: /flexi-pages-widget.php:417
89
+ msgid "Show sub-pages"
90
+ msgstr "Показати підсторінки"
91
+
92
+ #: /flexi-pages-widget.php:419
93
+ msgid "Show all sub-pages"
94
+ msgstr "Показати всі підсторінки"
95
+
96
+ #: /flexi-pages-widget.php:420
97
+ msgid "Only related sub-pages"
98
+ msgstr "Только связанные подстраницы"
99
+
100
+ #: /flexi-pages-widget.php:421
101
+ msgid "Only strictly related sub-pages"
102
+ msgstr "Тільки безпосередньо зв'язані підсторінки"
103
+
104
+ #: /flexi-pages-widget.php:427
105
+ msgid "Show hierarchy"
106
+ msgstr "Показати ієрархію"
107
+
108
+ #: /flexi-pages-widget.php:431
109
+ #, php-format
110
+ msgid "%d levels deep"
111
+ msgstr "%d рівень"
112
+
113
+ #: /flexi-pages-widget.php:433
114
+ msgid "Unlimited depth"
115
+ msgstr "Глибина необмежена"
116
+
117
+ #: /flexi-pages-widget.php:438
118
+ msgid "Show home page"
119
+ msgstr "Показати домашню сторінку"
120
+
121
+ #: /flexi-pages-widget.php:442
122
+ msgid "Show date"
123
+ msgstr "Показати дату"
124
+
125
+ #: /flexi-pages-widget.php:444
126
+ msgid "Choose Format"
127
+ msgstr "Вибрати формат"
128
+
129
+ #: /flexi-pages-widget.php:462
130
+ msgid "A highly configurable widget to list pages and sub-pages."
131
+ msgstr "Віджет списку сторінок і підсторінок, що повністю настроюється."
132
+
languages/flexipages.pot ADDED
@@ -0,0 +1,130 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Flexi Pages Widget 1.5.5\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-09-03 12:08+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Srinivasan G <srinig.com@gmail.com>\n"
8
+ "Language-Team: \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-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: \n"
16
+
17
+ #: /flexi-pages-widget.php:36
18
+ msgid "Pages"
19
+ msgstr ""
20
+
21
+ #: /flexi-pages-widget.php:46
22
+ #: /flexi-pages-widget.php:279
23
+ msgid "Home"
24
+ msgstr ""
25
+
26
+ #: /flexi-pages-widget.php:385
27
+ msgid "Title"
28
+ msgstr ""
29
+
30
+ #: /flexi-pages-widget.php:390
31
+ msgid "Sort by"
32
+ msgstr ""
33
+
34
+ #: /flexi-pages-widget.php:392
35
+ msgid "Page title"
36
+ msgstr ""
37
+
38
+ #: /flexi-pages-widget.php:393
39
+ msgid "Menu order"
40
+ msgstr ""
41
+
42
+ #: /flexi-pages-widget.php:394
43
+ msgid "Date created"
44
+ msgstr ""
45
+
46
+ #: /flexi-pages-widget.php:395
47
+ msgid "Date modified"
48
+ msgstr ""
49
+
50
+ #: /flexi-pages-widget.php:396
51
+ msgid "Page ID"
52
+ msgstr ""
53
+
54
+ #: /flexi-pages-widget.php:397
55
+ msgid "Page author ID"
56
+ msgstr ""
57
+
58
+ #: /flexi-pages-widget.php:398
59
+ msgid "Page slug"
60
+ msgstr ""
61
+
62
+ #: /flexi-pages-widget.php:401
63
+ msgid "ASC"
64
+ msgstr ""
65
+
66
+ #: /flexi-pages-widget.php:402
67
+ msgid "DESC"
68
+ msgstr ""
69
+
70
+ #: /flexi-pages-widget.php:407
71
+ msgid "Exclude"
72
+ msgstr ""
73
+
74
+ #: /flexi-pages-widget.php:408
75
+ msgid "Include"
76
+ msgstr ""
77
+
78
+ #: /flexi-pages-widget.php:409
79
+ msgid "pages"
80
+ msgstr ""
81
+
82
+ #: /flexi-pages-widget.php:413
83
+ msgid "use &lt;Ctrl&gt; key to select multiple pages"
84
+ msgstr ""
85
+
86
+ #: /flexi-pages-widget.php:417
87
+ msgid "Show sub-pages"
88
+ msgstr ""
89
+
90
+ #: /flexi-pages-widget.php:419
91
+ msgid "Show all sub-pages"
92
+ msgstr ""
93
+
94
+ #: /flexi-pages-widget.php:420
95
+ msgid "Only related sub-pages"
96
+ msgstr ""
97
+
98
+ #: /flexi-pages-widget.php:421
99
+ msgid "Only strictly related sub-pages"
100
+ msgstr ""
101
+
102
+ #: /flexi-pages-widget.php:427
103
+ msgid "Show hierarchy"
104
+ msgstr ""
105
+
106
+ #: /flexi-pages-widget.php:431
107
+ #, php-format
108
+ msgid "%d levels deep"
109
+ msgstr ""
110
+
111
+ #: /flexi-pages-widget.php:433
112
+ msgid "Unlimited depth"
113
+ msgstr ""
114
+
115
+ #: /flexi-pages-widget.php:438
116
+ msgid "Show home page"
117
+ msgstr ""
118
+
119
+ #: /flexi-pages-widget.php:442
120
+ msgid "Show date"
121
+ msgstr ""
122
+
123
+ #: /flexi-pages-widget.php:444
124
+ msgid "Choose Format"
125
+ msgstr ""
126
+
127
+ #: /flexi-pages-widget.php:462
128
+ msgid "A highly configurable widget to list pages and sub-pages."
129
+ msgstr ""
130
+
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
=== Flexi Pages Widget ===
2
Contributors: SriniG
3
- Donate link: http://srinig.com/wordpress/plugins/flexi-pages/#donate
4
Tags: pages, subpages, menu, hierarchy, sidebar, widget, navigation
5
- Requires at least: 2.1
6
- Tested up to: 2.5.1
7
Stable tag: trunk
8
9
A highly configurable WordPress sidebar widget to list pages and sub-pages. User friendly widget control comes with various options.
@@ -17,18 +17,16 @@ Features:
17
* Option to display sub-pages only in parent page and related pages.
18
* Option to select and exclude certain pages from getting displayed in the list. Alternatively, only certain pages can be displayed by using the 'include' option.
19
* Option to include a link to the home page.
20
- * Other options include title, sort column/order, display and depth options.
21
- * Multiple instances of the widget. Upto nine instances of the widget can be added to the sidebar.
22
- * Instead of using the widget, the function flexipages() can be called from anywhere in the template (see [other notes](http://wordpress.org/extend/plugins/flexi-pages-widget/other_notes/) for information on parameters that can be passed into this function).
23
-
24
- If you are using WordPress version 2.1 series, you will have to download and activate [Sidebar Widgets plugin](http://wordpress.org/extend/plugins/widgets/), and use a widget compatible theme before you can use the Flexi Pages *Widget*.
25
26
== Installation ==
27
28
1. Unzip the compressed file and upload the `flexi-pages-widget.php` file (or `flexi-pages-widget` directory) to the `/wp-content/plugins/` directory
29
1. Activate the plugin 'Flexi Pages' through the 'Plugins' menu in WordPress admin
30
- 1. Go to WP admin -> Presentation -> Widgets, drag 'Flexi Pages 1' widget into the sidebar and choose your options
31
- 1. An option to select multiple instances of the widget is available in the widgets page. You can have upto 9 instances of the widget
32
33
== Frequently Asked Questions ==
34
@@ -36,68 +34,122 @@ If you are using WordPress version 2.1 series, you will have to download and act
36
37
It is possible to deselect all pages. Hold the 'Ctrl' key in your keyboard and click on the name of the page that's not getting deselected.
38
39
- = When the option "List sub-pages only in parent and related pages in hierarchy" is selected, top level pages, children and siblings of the current page, and siblings of the parent page get listed. Is it possible to get rid of siblings of parent page on a subpage while using this option? =
40
41
- Yes. But you have to select the 'Custom depth level' option to achieve this. Enter the number '-3' for custom depth. This way only top level pages and pages in the hierarchy will show up.
42
43
- = Is there an option to list only sub pages and hide the parent pages? =
44
45
Although such an option does not exist, the 'Include' option can be used to achieve this. Select 'Include' instead of 'Exclude' and select all the pages you want to be listed. Pages left out won't be displayed.
46
47
- = Where do I ask a question about the plugin? =
48
49
- Leave your questions, suggestions, bug reports, etc., as a comment at the [plugin page](http://srinig.com/wordpress-plugins/flexi-pages/ "Flexi Pages Widget") or through [contact form](http://srinig.com/contact/) at the author's website. Questions frequently asked will be incorporated into the FAQ section in future versions of the plugin.
50
51
- == Screenshots ==
52
53
- 1. Controls for the Flexi Pages Widget (in WP 2.5)
54
- 2. Upto nine instances of the Flexi Pages widget can be added to the sidebar
55
56
- == The flexipages() template function ==
57
58
- Instead of using the sidebar widget, the function `flexipages()` can be used as a template function to display the list of pages. All options available for `wp_list_pages()` can also be used for `flexipages()`. Additionally in `flexipages()`, the depth parameter has two more choices (-2 and -3), and there is an extra parameter to display a link to the blog home page.
59
60
- **depth** (*integer*)
61
62
- This parameter controls how many levels in the hierarchy of pages are to be included in the list generated by flexipages. The default value is -2.
63
64
- * 0 - All pages and sub-pages displayed in hierarchical (indented) form.
65
- * -1 - All pages in sub-pages displayed in flat (no indent) form.
66
- * -2 (Default) - List sub-pages only in parent and related pages in hierarchy.
67
- * -3 - Similar to '-2' above, but siblings of parent pages won't be displayed. Only top level pages and pages in the hierarchy will show up.
68
- * 1 - Show only top level Pages
69
- * 2 - Value of 2 (or greater) specifies the depth (or level) to descend in displaying Pages.
70
71
- **home_link** (*string*)
72
73
- If a value is specified for this parameter, a link to the home page of the blog will be displayed on top of the list of pages. The link text will be the value specified. For example, `flexipages('home_link=Home')` will display a link to the home page with link text as 'Home'.
74
75
- In addition to the above two, [all other parameters](http://codex.wordpress.org/wp_list_pages#Parameters) used with `wp_list_pages()` can also be used with flexipages(). Refer [WordPress documentation](http://codex.wordpress.org/wp_list_pages) for more details about the `wp_list_pages()` function and to know about how to pass the parameters into the function.
76
77
== Changelog ==
78
- * 2008-05-21: Version 1.4.1
79
- * Bug fixes (issues regarding include/exclude sub-pages only with 'List sub-pages only in parent and related pages in hierarchy' option selected.)
80
- * 2008-04-06: Version 1.4
81
- * Fixed the odd behaviour when the widget is placed below the recent posts widget.
82
- * Removed the redundant check box for home page link in widget controls
83
- * Tested with WordPress 2.5; widget control box styling compatible with WP 2.5
84
- * 2008-02-19: Version 1.3
85
- * Multiple instances of the widget
86
- * Added 'Include pages' option
87
- * `flexipages()` template function
88
- * Other minor improvements
89
- * 2007-08-31: Version 1.2
90
- * Added option to provide a custom text for the home page link
91
- * Custom depth of '-3' will display only parents, siblings and children along with top level pages. Parents' siblings wont be displayed.
92
- * Few other improvements and some optimization.
93
- * Tested with WordPress 2.3-beta1.
94
- * 2007-08-22: Version 1.1.2
95
- * Fixed the missing `</li>` tag for home link
96
- * Added class name (`page_item`, `current_page_item`) for home link
97
- * 2007-08-17: Version 1.1.1
98
- * bug fix
99
- * tested with WordPress 2.2.2
100
- * 2007-08-12: Version 1.1
101
- * bug fix
102
- * 2007-08-08: Version 1.0
103
- * Initial release
1
=== Flexi Pages Widget ===
2
Contributors: SriniG
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8110402
4
Tags: pages, subpages, menu, hierarchy, sidebar, widget, navigation
5
+ Requires at least: 2.7
6
+ Tested up to: 2.8.5
7
Stable tag: trunk
8
9
A highly configurable WordPress sidebar widget to list pages and sub-pages. User friendly widget control comes with various options.
17
* Option to display sub-pages only in parent page and related pages.
18
* Option to select and exclude certain pages from getting displayed in the list. Alternatively, only certain pages can be displayed by using the 'include' option.
19
* Option to include a link to the home page.
20
+ * Other options include title, sort column/order, hierarchical/flat format, show date.
21
+ * Multiple instances of the widget. Unlimited number of instances of the widget can be added to the sidebar.
22
+ * Instead of using the widget, the function flexipages() can be called from anywhere in the template. All parameters that can be passed on to [`wp_page_menu()`](http://codex.wordpress.org/Template_Tags/wp_page_menu) (except `menu_class`) and [`wp_list_pages()`](http://codex.wordpress.org/Template_Tags/wp_list_pages) can be passed into the flexipages() template function.
23
+ * Widget options menu is internationalized. Please refer [Other Notes](http://wordpress.org/extend/plugins/flexi-pages-widget/other_notes/) for the full list of languages in which the plugin is localized and translation credits.
24
25
== Installation ==
26
27
1. Unzip the compressed file and upload the `flexi-pages-widget.php` file (or `flexi-pages-widget` directory) to the `/wp-content/plugins/` directory
28
1. Activate the plugin 'Flexi Pages' through the 'Plugins' menu in WordPress admin
29
+ 1. Go to WP admin -> Appearance -> Widgets, add the 'Flexi Pages' widget into the sidebar and choose your options. Multiple instances of the widget can be added to the sidebar.
30
31
== Frequently Asked Questions ==
32
34
35
It is possible to deselect all pages. Hold the 'Ctrl' key in your keyboard and click on the name of the page that's not getting deselected.
36
37
+ = What does 'Show only related subpages' and 'Show only strictly related subpages' mean? =
38
+
39
+ When the option 'Show only related subpages' is selected, a subpage is listed only when the user visits the parent and sibling pages of the subpage. Thus, choosing this option will display the top level pages, children and siblings of the current page, and siblings of the parent page.
40
41
+ 'Show only strictly related subpages' is same as the above except that siblings of parent page won't be displayed when on a subpage
42
43
+ = Is there an option to list only subpages and hide the parent pages? =
44
45
Although such an option does not exist, the 'Include' option can be used to achieve this. Select 'Include' instead of 'Exclude' and select all the pages you want to be listed. Pages left out won't be displayed.
46
47
+ = Is it possible to display only the child-pages of a particular page? =
48
+ Yes. In order to achieve this, select the 'Include' option, select just the child-pages to be listed (leave out all other pages), enable the 'Show subpages' option and select 'Show all sub-pages'.
49
50
+ = The widget treats a password protected page as any other page. Is there were a way to restrict the widget from showing password protected items until the password has been entered? =
51
52
+ The built-in WP template functions `wp_page_menu()` and `wp_list_pages()` treat password protected pages as any other page, and don't have an option to hide password protected pages until the password is entered. Flexi Pages Widget plugin depends on these functions, and until these functions provide an option to hide password protected pages, we can't have it either.
53
54
+ = The widget doesn't list private pages at all. Is there a way to show private pages when the admin is logged in? =
55
56
+ The built-in WP template functions `wp_page_menu()` and `wp_list_pages()` doesn't list private pages and doesn't have an option to show private pages. Flexi Pages Widget plugin depends on these functions, and until these functions provide an option to show private pages when the admin is logged in, it's not possible for us to show private pages.
57
58
+ = Where do I ask a question about the plugin? =
59
60
+ Leave your questions, suggestions, bug reports, etc., as a comment at the [plugin page](http://srinig.com/wordpress-plugins/flexi-pages/ "Flexi Pages Widget") or through [contact form](http://srinig.com/contact/) at the author's website. Questions frequently asked will be incorporated into the FAQ section in future versions of the plugin.
61
+
62
+ == Screenshots ==
63
64
+ 1. Controls for the Flexi Pages Widget
65
66
+ == Localization ==
67
68
+ Versions 1.5.5 and above supports localization. The localization template file (flexipages.pot) can be found in the 'languages' folder of the plugin. The resulting PO and MO files should go in the 'flexi-pages-widget/languages/' directory, and should be named in the format `flexipages-xx_YY.po` and `flexipages-xx_YY.mo` files respectively. Where xx refers to the language code and YY to the locale. For example, the German translation files will have the name `flexipages-de_DE.po` and `flexipages-de_DE.mo`. This xx_YY should be the same as the value you define for WPLANG in wp-config.php.
69
70
+ An application like [poEdit](http://www.poedit.net/) can be used to translate the plugin, or just translate the strings in the flexipages.pot file and send it to the plugin author. All translations sent to the author will be bundled with the next version of the plugin.
71
72
+ As of version 1.5.10, Flexi Pages Widget is translated into the following languages:
73
+
74
+ * German (`de_DE`) by [Frank W. Hempel](http://frank-hempel.de/)
75
+ * Brazilian Portugese (`pt_BR`) by Tzor More
76
+ * Russian (`ru_RU`) by [Fat Cow](http://www.fatcow.com)
77
+ * Swedish (`sv_SE`) by Ove Kaufeldt
78
+ * Turkish (`tr_TR`) by [Hakan Demiray](http://www.dmry.net/)
79
+ * Ukrainian (`uk_UA`) by [wpp.pp.ua](http://wpp.pp.ua/)
80
81
== Changelog ==
82
+
83
+ = v1.5.10 (2009-11-03) =
84
+ * Minor fix (closing quote for 'exinclude-values' in line 408)
85
+
86
+ = v1.5.9 (2009-10-01) =
87
+ * Localization in Brazilian Portugese, Swedish and Turkish languages added.
88
+
89
+ = v1.5.7 (2009-09-22) =
90
+ * Ukrainian localization added
91
+ * Support for user defined widget arguments before_pagelist and after_pagelist
92
+
93
+ = v1.5.6 (2009-09-14) =
94
+ * German localization added.
95
+
96
+ = v1.5.5 (2009-09-10) =
97
+ * Support for localization added. Russian localization included.
98
+ * Roll back to `wp_list_pages()` function. Because `wp_page_menu()` seems not to work properly in some themes.
99
+
100
+ = v1.5.3 (2009-08-03) =
101
+ * Bug fix: Fixed the behaviour where the list won't appear in the posts page if it's chosen as a sub page (front page as static page)
102
+
103
+ = v1.5.2 (2009-06-30) =
104
+ * Bug fix (thanks to John J. Camilleri). Must upgrade.
105
+
106
+ = v1.5.1 (2009-04-18) =
107
+ * Bug fix. Title now doesn't show when there is no items in the list.
108
+ * Frequently asked queries about private pages and password protected pages answered in FAQ.
109
+
110
+ = v1.5 (2009-04-07) =
111
+ * *Unlimited* instances of the Flexi Pages Widget can be added to the sidebar.
112
+ * New option to show date. This option, when selected displays creation or last modified date next to each page.
113
+ * The widgets options gets an overhaul. The list of options in the widget control page as of version 1.5.
114
+ * Title
115
+ * Sort column and sort order
116
+ * Exclude/Include a list of pages
117
+ * Show subpages (or list only top level pages). Show all subpages or only related subpages.
118
+ * List the pages in hierarchical or flat format. If hierarchical, choose depth.
119
+ * Show link to the home page
120
+ * Show date, and choose date format.
121
+ * The plugin references `wp_page_menu()` function instead of `wp_list_pages()`. Consequently, version 1.5 will work only with WordPress versions 2.7 and above.
122
+
123
+ = v1.4.1 (2008-05-21) =
124
+ * Bug fixes (issues regarding include/exclude sub-pages only with 'List sub-pages only in parent and related pages in hierarchy' option selected.)
125
+
126
+ = v1.4 (2008-04-06) =
127
+ * Fixed the odd behaviour when the widget is placed below the recent posts widget.
128
+ * Removed the redundant check box for home page link in widget controls
129
+ * Tested with WordPress 2.5; widget control box styling compatible with WP 2.5
130
+
131
+ = v1.3 (2008-02-19) =
132
+ * Multiple instances of the widget
133
+ * Added 'Include pages' option
134
+ * `flexipages()` template function
135
+ * Other minor improvements
136
+
137
+ = v1.2 (2007-08-31) =
138
+ * Added option to provide a custom text for the home page link
139
+ * Custom depth of '-3' will display only parents, siblings and children along with top level pages. Parents' siblings wont be displayed.
140
+ * Few other improvements and some optimization.
141
+ * Tested with WordPress 2.3-beta1.
142
+
143
+ = v1.1.2 (2007-08-22) =
144
+ * Fixed the missing `</li>` tag for home link
145
+ * Added class name (`page_item`, `current_page_item`) for home link
146
+
147
+ = v1.1.1 (2007-08-17) =
148
+ * bug fix
149
+ * tested with WordPress 2.2.2
150
+
151
+ = v1.1 (2007-08-12) =
152
+ * bug fix
153
+
154
+ = v1.0 (2007-08-08) =
155
+ * Initial release
screenshot-1.png CHANGED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file