Exclude Pages - Version 1.6

Version Description

Download this release

Release Info

Developer simonwheatley
Plugin Icon wp plugin Exclude Pages
Version 1.6
Comparing to
See all releases

Code changes from version 1.51 to 1.6

Files changed (2) hide show
  1. exclude_pages.php +13 -1
  2. readme.txt +12 -2
exclude_pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Exclude Pages from Navigation
4
  Plugin URI: http://wordpress.org/extend/plugins/exclude-pages/
5
  Description: Provides a checkbox on the editing page which you can check to exclude pages from the primary navigation. IMPORTANT NOTE: This will remove the pages from any "consumer" side page listings, which may not be limited to your page navigation listings.
6
- Version: 1.51
7
  Author: Simon Wheatley
8
  Author URI: http://simonwheatley.co.uk/wordpress/
9
 
@@ -269,6 +269,18 @@ function ep_hec_show_dbx( $to_show )
269
  return $to_show;
270
  }
271
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  // INIT FUNCTIONS
273
 
274
  function ep_init()
3
  Plugin Name: Exclude Pages from Navigation
4
  Plugin URI: http://wordpress.org/extend/plugins/exclude-pages/
5
  Description: Provides a checkbox on the editing page which you can check to exclude pages from the primary navigation. IMPORTANT NOTE: This will remove the pages from any "consumer" side page listings, which may not be limited to your page navigation listings.
6
+ Version: 1.6
7
  Author: Simon Wheatley
8
  Author URI: http://simonwheatley.co.uk/wordpress/
9
 
269
  return $to_show;
270
  }
271
 
272
+ // PAUSE & RESUME FUNCTIONS
273
+
274
+ function pause_exclude_pages()
275
+ {
276
+ remove_filter('get_pages','ep_exclude_pages');
277
+ }
278
+
279
+ function resume_exclude_pages()
280
+ {
281
+ add_filter('get_pages','ep_exclude_pages');
282
+ }
283
+
284
  // INIT FUNCTIONS
285
 
286
  function ep_init()
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: simonwheatley
3
  Donate link: http://www.simonwheatley.co.uk/wordpress-plugins/
4
  Tags: get_pages, navigation, menu, exclude pages, hide pages
5
  Requires at least: 2.2.3
6
- Tested up to: 2.7.1
7
- Stable tag: 1.51
8
 
9
  This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the
10
  page navigation that users see on your site.
@@ -14,6 +14,12 @@ page navigation that users see on your site.
14
  This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the
15
  page navigation that users see on your site.
16
 
 
 
 
 
 
 
17
  Any issues: [contact me](http://www.simonwheatley.co.uk/contact-me/).
18
 
19
  === Incompatible With ===
@@ -31,6 +37,10 @@ Exclude pages is incompatible with:
31
 
32
  == Change Log ==
33
 
 
 
 
 
34
  = v1.51 2009/4/23 =
35
 
36
  * FIX: Was throwing an error when $pages turned out not to be an array. Thanks to (Sandra)[http://www.vinyltangerine.com/] for reporting this.
3
  Donate link: http://www.simonwheatley.co.uk/wordpress-plugins/
4
  Tags: get_pages, navigation, menu, exclude pages, hide pages
5
  Requires at least: 2.2.3
6
+ Tested up to: 2.8.2
7
+ Stable tag: 1.6
8
 
9
  This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the
10
  page navigation that users see on your site.
14
  This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the
15
  page navigation that users see on your site.
16
 
17
+ It is possible to temporarily pause and resume the effect of Exclude Pages by using the new `<?php pause_exclude_pages(); ?>` and `<?php resume_exclude_pages(); ?>` templates tags. The following code will show a list of all pages in your site, even those normally hidden:
18
+
19
+ `<?php pause_exclude_pages(); ?>
20
+ <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
21
+ <?php resume_exclude_pages(); ?>`
22
+
23
  Any issues: [contact me](http://www.simonwheatley.co.uk/contact-me/).
24
 
25
  === Incompatible With ===
37
 
38
  == Change Log ==
39
 
40
+ = v1.6 2009/6/8 =
41
+
42
+ * ENHANCEMENT: You can now turn the Exclude Pages functionality off before showing navigation which you want to be comprehensive (and show pages you've normally hidden). This is done with the new `<?php pause_exclude_pages(); ?>` and `<?php resume_exclude_pages(); ?>` templates tags.
43
+
44
  = v1.51 2009/4/23 =
45
 
46
  * FIX: Was throwing an error when $pages turned out not to be an array. Thanks to (Sandra)[http://www.vinyltangerine.com/] for reporting this.