=== Default Theme Pages === Contributors: Carlos Sanz GarcĂ­a Tags: theme, templating, pages, block Requires at least: 3.0 Tested up to: 3.4 Version: 0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Adds unremovable default pages for templating themes == Description == Adds unremovable default pages for templating themes. = How to use = Add this code in your *functions.php*. `global $default_theme_pages; $default_theme_pages = array( array( 'name' => 'home', // slug page 'title' => 'Homepage', // page title 'option' => 'page_on_front', // option name 'description' => 'homepage' // description ), array( 'name' => 'blog', 'title' => 'Blog', 'option' => 'page_for_posts', 'description' => 'blog' ), array( 'name' => 'contact', 'title' => 'Contact me!', 'option' => 'mytheme_contact_page', 'description' => 'Contact form page' ) );` **Trick** If you use `page_on_front` and `page_for_posts` option names, you will block the *home-page* and the *blog-page* on your site. = Templating = For templating theese pages, the best way is use the **ID**, something like `page-131.php`. For detect if you're in that page, do something like `is_page(get_option('mytheme_contact_page'))`. == Screenshots == 1. Admin pages list == Changelog == = 0.2 = * blocked status modifications * blocked move to trash = 0.1 = * Initial release