diff --git a/README.txt b/README.txt index f85cb7e..191b8c2 100644 --- a/README.txt +++ b/README.txt @@ -3,13 +3,13 @@ Contributors: JoelStarnes Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide, Requires at least: 2.1 Tested up to: 2.7 -Stable tag: 1.1.6 +Stable tag: 1.2.0 -Organise page order and manage page structure with this simple drag-and-drop Ajax interface. +Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows for quick sorting, hiding and organising of page parenting structure in a simple intuative manner. == Description == -Customise the order your pages are listed in and manage the parent structure with this simple Ajax drag-and-drop administrative interface with an option to toggle the page to be hidden from output. Great tool to quickly re-arrange your page menus. +Customise the order your pages are listed in and manage the parent structure with this simple ajax drag-and-drop administrative interface with an option to toggle the page to be hidden from output. Great tool to quickly re-arrange your page menus. Checkout the example page: http://joelstarnes.co.uk/pagemash/example Feedback is greatly appreciated: http://joelstarnes.co.uk/contact @@ -21,7 +21,7 @@ Feedback is greatly appreciated: http://joelstarnes.co.uk/contact 1. Activate in 'Plugins' admin menu 1. Then have fun.. -pageMash works with the `wp_list_pages` function. The easiest way to use it is to put the pages widget in your sidebar [WP admin page > Presentation > Widgets]. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done. +pageMash works with the `wp_list_pages` function. The easiest way to use it is to put the pages widget in your sidebar. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done. You can also use the function anywhere in your theme code. e.g. in your sidebar.php file (but the code in here will not run if you're using any widgets) or your header.php file (somewhere under the body tag, you may want to use the depth=1 parameter to only show top levle pages). The code should look something like the following: @@ -49,12 +49,18 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and == Screenshots == -1. Admin Interface +1. Admin Interface. -2. Setting up the page widget. [WP-Admin > Presentation > Widgets] +2. Setting up the page widget in the old WP admin. ==Change Log== += 1.2.0 = + - Introduces multi-lingual support. + - Adds German translation + - Moves pageMash into the Pages menu for WP2.7 + - All thanks to Tom [www.outsourcetoasia.de] + = 1.1.6 = - Corrected filename case. @@ -116,4 +122,8 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and == Localization == -Currently only available in english. \ No newline at end of file += pageMash is available in: = + - English + - German :: courtesy of Tom [www.outsourcetoasia.de] + +If you'd like to translate pageMash into your own language get in touch and I'll be happy to add it in. diff --git a/pagemash.php b/pagemash.php index 0e5b254..214d856 100644 --- a/pagemash.php +++ b/pagemash.php @@ -2,9 +2,9 @@ /* Plugin Name: pageMash Plugin URI: http://joelstarnes.co.uk/pagemash/ -Description: pageMash > pageManagement [WP_Admin > Manage > pageMash] +Description: Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows for quick sorting, hiding and organising of page parenting structure in a simple intuative manner. Author: Joel Starnes -Version: 1.1.6 +Version: 1.2.0 Author URI: http://joelstarnes.co.uk/ */ @@ -23,7 +23,6 @@ $CollapsePagesOnLoad = false; /*[deafult=true]*/ $ShowDegubInfo = false; /*[deafult=false]*/ /* Show server response debug info */ - ################################################################### /* INSPIRATIONS/CREDITS: @@ -57,9 +56,12 @@ if ( !defined('WP_CONTENT_URL') ) if ( !defined('WP_CONTENT_DIR') ) define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // Guess the location -$codeWord_path = WP_CONTENT_DIR.'/plugins/'.plugin_basename(dirname(__FILE__)); +$pageMash_path = WP_CONTENT_DIR.'/plugins/'.plugin_basename(dirname(__FILE__)); $pageMash_url = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)); +// load localisation files +load_plugin_textdomain('pmash','wp-content/plugins/pagemash/'); + function pageMash_getPages($post_parent){ //this is a recurrsive function which calls itself to produce a nested list of elements //$post_parent should be 0 for root pages, or contain a pageID to return it's sub-pages @@ -79,12 +81,12 @@ function pageMash_getPages($post_parent){ » id:ID;?> - [edit] + [] - [hide] + [] - [Rename] + [] @@ -105,35 +107,35 @@ function pageMash_main(){
- Just drag the pages up or down to change the page order and left or right to change the page's parent, then hit 'update'.
- The icon to the left of each page shows if it has child pages, double click on that item to toggle expand|collapse of it's children.
+ up or down to change the page order and left or right to change the page`s parent, then hit "update". ','pmash');?>
+ double click on that item to toggle expand|collapse of it`s children. ','pmash');?>
- + name="submit"/>
pageMash works with the wp_list_pages function. The easiest way to use it is to put the pages widget in your sidebar [WP admin page > Presentation > Widgets]. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done.
-You can also use the function anywhere in your theme code. e.g. in your sidebar.php file (but the code in here will not run if you're using any widgets) or your header.php file (somewhere under the body tag, you may want to use the depth=1 parameter to only show top level pages). The code should look something like the following:
+ +Presentation \> Widgets\'. Click the configure button on the widget and ensure that \'sort by\' is set to \'page order\'. Hey presto, you\'re done. ','pmash');?>
+Code:
<?php wp_list_pages('title_li=<h2>Pages</h2>&depth=0'); ?>
- You can also hard-code pages to exclude and these will be merged with the pages you set to exclude in your pageMash admin.
-The code here is very simple and flexible, for more information look up wp_list_pages() in the Wordpress Codex as it is very well documented and if you have any further questions or feedback I like getting messages, so drop me an email.
+ +wp_list_pages() in the Wordpress Codex as it is very well documented and if you have any further questions or feedback I like getting messages, so drop me an email.','pmash');?>