From e50f7513d3eeb77e50f30fcc95c2258a3427ee9e Mon Sep 17 00:00:00 2001 From: jmash Date: Fri, 26 Dec 2008 12:43:37 +0000 Subject: [PATCH] v1.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] git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@82491 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- README.txt | 24 ++++++++++++------ pagemash.php | 46 +++++++++++++++++++--------------- pmash-de_DE.mo | Bin 0 -> 4082 bytes pmash-de_DE.po | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 109 insertions(+), 27 deletions(-) create mode 100644 pmash-de_DE.mo create mode 100644 pmash-de_DE.po 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 0000000000000000000000000000000000000000..0200832d7f5138e5570f181e56dd23f77fa23926 GIT binary patch literal 4082 zcmb_fO>Z1Y8E)9+%Y2EwAtChQL!1bA+m1Lylf=TY9oCz8*NP{bU07slrr+tVOm|gp zRdpsdTtNH*4twGNcm4$+I4{?g_yvdqcO;&-x_f540S<^!+SOej@8|Qr_2jQ_y#7&w z-&gT`3(qg{d;`zl@W^lXGu`(d#;@c1upiGc{vO{`jK9Tm73}Gr56+rmzisaA^si*yayqvQvs!?#X{k)XO99xMvm;SENUC@iR!7!kIbD=% zE3XRsiHA{+P1qLshDsf1vu$z}cr)u<7{lD%A^d^pa++Ly#PO*s>SbyrgZ$oKMtrPA639Ia9$QXj4!PpCsMe zNfB5e@h-4LeIWxmLQOx3H1UyPcc+xw8!f!x)Oo;zyQ9f;7$x z@L(Sa8pzIw)wGO|BVXDDyq$@|CH$V2y2?8=ZZAQU+ZIWrX{D$0H84p472*`QjtXp1 zVAp^=j`;uCv@eXcbD|9BimCvx9!yUov?8$ZCwU*?ox&ScAxNcic^Z+{)d}3;m(!{R z^aSj14OO+!$kT)o1y>+V3mwYnbazD3|+7rqv>Pb z!Jv!fr&B~*&(6B+N0aD-eL6$u8JdTDKkJgPmC>P;L7zr5(?yG9A+Z5vCY1*NdnE!* zHeS|ap=^2U0!=Qrq_y-|+!C|8z75fD@+C>j3pQp=V31n_T*)svbM`q;Lwb^@@3Qk~ zGb3th0C(dFHxQkk`aFnauS)9--3zweDd_<^mygnUbee&i1vp>q~ps5_6L3$c5o4B zb60LZhcMoMI)0emS?v>>XYA5rgPIf&(w&J88}FrOmUA7_!MG9qfN>L<)yko5O>mc3 zIDT?^@b>$wmGkJ~VW)6JZJ0shQsN`Nl*`IL#+5Xp3%+}Cv08kfJU1$oBg$5j=d9ec zJi~OlD+>u|0}~=U2a9Ofbl<9-Ex%30I<%%pj&XxZ`_47fIp%OR4=vZ>z*?V`POw~p zXY5vs9^IEGINR1y(i7IW>+TYf5-phPA~` zHi{8VoSupSUJMpLaSG)D+F(Ro4Gp*mk|RvZHH-oYsF2dh*61zz8g*=ftBjtB7!=3J zicCOIp(laBqN1y>T&&Wd{~x4czD_FWT37n7tRkaxv_(mmv54nGFh9Ict`->`7{>*2 zi|-fKfz#!9L#UA1PcftaksY9u<+%H5y$Y!0fR2SpbX4I;YWuRD*b03dDHbO2oF%&v zWOT*42$$Gde}*72)*~GDjAWuISNq`Y^v?BgPDT1(t!50b)3vQUsQ2 zeZhSREHQ_8)pQJp2ymy(gL!Bb$e11rG|kxD(rS{ZnR=`10GewQCW*d%1P@HXH4{Bb=}`@U={}* zvsf7+)%&nD^GGQ=nJ`O%!655-7e8FLAQrJ6pn4%Wgk3*GRXt$s8;zL8%?^}%#WZe$ zRSM1|djd4b>Mt)+PzS;)$lAsw<#0WDG8#oI_i3~xMiERy65k77V;eW=1l-Ex3yVe6 zaH*;Zto8JuCmR{P3$xIwL}uM(7_V|S=PenKEpdEooAhyH7JaCc5qL4IGHtlR|0iGu z+QL9k&IW=44zg?!y_YbO!$QHG$U6k1$Rnejj1t_E3suFgxnvdTke+|HsN6(4%aB`l zy}XwRi{KbqlSime!GQX\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" +