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(){
- version [1.1.6] + version [1.2.0]
-

pageMash - pageManagement

+

- 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');?>

-

Expand All | Collapse All

+

|

- + name="submit"/>


Show|Hide Further Info

-

How to Use

-

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');?>


= 2.7){ + $page = add_submenu_page('edit-pages.php', 'pageMash page order', __('pageMash ','pmash'), $minlevel, __FILE__, 'pageMash_main'); + }else{ + $page = add_management_page('pageMash page order', 'pageMash', $minlevel, __FILE__, 'pageMash_main'); + } add_action("admin_print_scripts-$page", 'pageMash_head'); //add css styles and JS code to head } diff --git a/pmash-de_DE.mo b/pmash-de_DE.mo new file mode 100644 index 0000000..0200832 Binary files /dev/null and b/pmash-de_DE.mo differ diff --git a/pmash-de_DE.po b/pmash-de_DE.po new file mode 100644 index 0000000..fa3e501 --- /dev/null +++ b/pmash-de_DE.po @@ -0,0 +1,66 @@ +msgid "" +msgstr "" +"Project-Id-Version: pmash\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-12-14 10:21+0800\n" +"PO-Revision-Date: \n" +"Last-Translator: Thomas Steinczhorn \n" +"Language-Team: Outsource to Asia \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: German\n" +"X-Poedit-Country: GERMANY\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Poedit-KeywordsList: _e;__\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: .\n" + +#: pagemash.php:113 +msgid "pageMash - pageManagement " +msgstr "pageMash - Seiten Verwaltung" + +#: pagemash.php:115 +msgid "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\". " +msgstr "Einfach die Seiten rauf oder runter schieben um die Reihenfolge zu ändern. Nach links oder rechts um diese als Unterseite einer anderen zu machen." + +#: pagemash.php:116 +msgid "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. " +msgstr "Das Symbol links an jeder Seite zeigt an, ob Unterseiten vorhanden sind. Mit einem Doppel Klick können diese ein- oder ausgeklappen. Am Ende auf \"Aktualisieren\". klicken." + +#: pagemash.php:118 +msgid "Expand All " +msgstr "Alle aufklappen" + +#: pagemash.php:118 +msgid "Collapse All " +msgstr "Alle einklappen" + +#: pagemash.php:124 +msgid "Update " +msgstr "Aktualisieren" + +#: pagemash.php:131 +msgid "How to Use " +msgstr "Anleitung" + +#: pagemash.php:132 +msgid "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. " +msgstr "pageMash arbeitet mit der wp_list_pages Funktion. Die einfachste Methode ist, den Seiten Widget in der Sidebar zu aktivieren. [WP Admin > Darstellung > Widgets]. Klicke Konfiguration und stell sicher, dass die Sortierung auf \"Seiten Sortierung\" steht. Fertig!" + +#: pagemash.php:133 +msgid "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:" +msgstr "Du kannst die Funktion überall in deinem Theme Code verwenden. Zum Beispiel in der sidebar.php ( sollte jedoch ein Widget aktive sein, wird es nicht funktionieren) oder in der header.php ( Irgendwo innerhalb des Body tag. Vielleicht möchtest du nur die Top-Level Seiten anzeigen, nutze hierzu depth=1 Parameter). Der Code sollte in etwa wie folgt aussehen:" + +#: pagemash.php:138 +msgid "You can also hard-code pages to exclude and these will be merged with the pages you set to exclude in your pageMash admin." +msgstr "Du kannst aber auch Seiten direkt ausschließen. Diese werden dann verknüpft mit den ausgeschlossenen Seiten im pageMash Admin." + +#: pagemash.php:139 +msgid "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." +msgstr "Der Code ist sehr einfach und flexibel. Weitere Informationen gibt es unter wp_list_pages() in the Wordpress Codex. Sollten noch Fragen bzw. Anregungen vorhanden sein sendet mir einfach eine Email." + +#: pagemash.php:204 +msgid "pageMash " +msgstr "Verwaltung" +