Version Description
- Corrected filename case.
Download this release
Release Info
Developer | jmash |
Plugin | pageMash > Page Management |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.1.6
- README.txt +8 -21
- pagemash.php +21 -27
- pmash-de_DE.mo +0 -0
- pmash-de_DE.po +0 -66
README.txt
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
Contributors: JoelStarnes
|
3 |
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
|
4 |
Requires at least: 2.1
|
5 |
-
Tested up to: 2.
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
-
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
Customise the order your pages are listed in and manage the parent structure with this simple
|
13 |
|
14 |
Checkout the example page: http://joelstarnes.co.uk/pagemash/example
|
15 |
Feedback is greatly appreciated: http://joelstarnes.co.uk/contact
|
@@ -21,7 +21,7 @@ Feedback is greatly appreciated: http://joelstarnes.co.uk/contact
|
|
21 |
1. Activate in 'Plugins' admin menu
|
22 |
1. Then have fun..
|
23 |
|
24 |
-
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.
|
25 |
|
26 |
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:
|
27 |
|
@@ -49,21 +49,12 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and
|
|
49 |
|
50 |
== Screenshots ==
|
51 |
|
52 |
-
1. Admin Interface
|
53 |
|
54 |
-
2. Setting up the page widget
|
55 |
|
56 |
|
57 |
==Change Log==
|
58 |
-
= 1.2.1 =
|
59 |
-
- fix for menu position in WP2.7
|
60 |
-
|
61 |
-
= 1.2.0 =
|
62 |
-
- Introduces multi-lingual support.
|
63 |
-
- Adds German translation
|
64 |
-
- Moves pageMash into the Pages menu for WP2.7
|
65 |
-
- All thanks to Tom [www.outsourcetoasia.de]
|
66 |
-
|
67 |
= 1.1.6 =
|
68 |
- Corrected filename case.
|
69 |
|
@@ -125,8 +116,4 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and
|
|
125 |
|
126 |
== Localization ==
|
127 |
|
128 |
-
|
129 |
-
- English
|
130 |
-
- German :: courtesy of Tom [www.outsourcetoasia.de]
|
131 |
-
|
132 |
-
If you'd like to translate pageMash into your own language get in touch and I'll be happy to add it in.
|
2 |
Contributors: JoelStarnes
|
3 |
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
|
4 |
Requires at least: 2.1
|
5 |
+
Tested up to: 2.6
|
6 |
+
Stable tag: 1.1.6
|
7 |
|
8 |
+
Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
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.
|
13 |
|
14 |
Checkout the example page: http://joelstarnes.co.uk/pagemash/example
|
15 |
Feedback is greatly appreciated: http://joelstarnes.co.uk/contact
|
21 |
1. Activate in 'Plugins' admin menu
|
22 |
1. Then have fun..
|
23 |
|
24 |
+
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.
|
25 |
|
26 |
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:
|
27 |
|
49 |
|
50 |
== Screenshots ==
|
51 |
|
52 |
+
1. Admin Interface
|
53 |
|
54 |
+
2. Setting up the page widget. [WP-Admin > Presentation > Widgets]
|
55 |
|
56 |
|
57 |
==Change Log==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
= 1.1.6 =
|
59 |
- Corrected filename case.
|
60 |
|
116 |
|
117 |
== Localization ==
|
118 |
|
119 |
+
Currently only available in english.
|
|
|
|
|
|
|
|
pagemash.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
/*
|
3 |
Plugin Name: pageMash
|
4 |
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
5 |
-
Description:
|
6 |
Author: Joel Starnes
|
7 |
-
Version: 1.
|
8 |
Author URI: http://joelstarnes.co.uk/
|
9 |
|
10 |
*/
|
@@ -23,6 +23,7 @@ $CollapsePagesOnLoad = false; /*[deafult=true]*/
|
|
23 |
|
24 |
$ShowDegubInfo = false; /*[deafult=false]*/
|
25 |
/* Show server response debug info */
|
|
|
26 |
###################################################################
|
27 |
/*
|
28 |
INSPIRATIONS/CREDITS:
|
@@ -56,12 +57,9 @@ if ( !defined('WP_CONTENT_URL') )
|
|
56 |
if ( !defined('WP_CONTENT_DIR') )
|
57 |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
58 |
// Guess the location
|
59 |
-
$
|
60 |
$pageMash_url = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__));
|
61 |
|
62 |
-
// load localisation files
|
63 |
-
load_plugin_textdomain('pmash','wp-content/plugins/pagemash/');
|
64 |
-
|
65 |
function pageMash_getPages($post_parent){
|
66 |
//this is a recurrsive function which calls itself to produce a nested list of elements
|
67 |
//$post_parent should be 0 for root pages, or contain a pageID to return it's sub-pages
|
@@ -81,12 +79,12 @@ function pageMash_getPages($post_parent){
|
|
81 |
<span class="pageMash_more">»</span>
|
82 |
<span class="pageMash_pageFunctions">
|
83 |
id:<?php echo $page->ID;?>
|
84 |
-
[<a href="<?php echo get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.$page->ID; ?>" title="
|
85 |
<?php if($excludePagesFeature): ?>
|
86 |
-
[<a href="#" title="
|
87 |
<?php endif; ?>
|
88 |
<?php if($renamePagesFeature): ?>
|
89 |
-
[<a href="#" title="
|
90 |
<?php endif; ?>
|
91 |
</span>
|
92 |
</span>
|
@@ -107,35 +105,35 @@ function pageMash_main(){
|
|
107 |
<div id="debug_list"<?php if(false==$ShowDegubInfo) echo' style="display:none;"'; ?>></div>
|
108 |
<div id="pageMash" class="wrap">
|
109 |
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
|
110 |
-
version [1.
|
111 |
</div>
|
112 |
-
<h2 style="margin-bottom:0; clear:none;"
|
113 |
<p style="margin-top:4px;">
|
114 |
-
|
115 |
-
|
116 |
</p>
|
117 |
-
<p><a href="#" id="expand_all"
|
118 |
|
119 |
<?php pageMash_getPages(0); //pass 0, as initial parent ?>
|
120 |
|
121 |
<p class="submit">
|
122 |
<div id="update_status" style="float:left; margin-left:40px; opacity:0;"></div>
|
123 |
-
<input type="submit" id="pageMash_submit" tabindex="2" style="font-weight: bold; float:right;" value
|
124 |
</p>
|
125 |
<br style="margin-bottom: .8em;" />
|
126 |
</div>
|
127 |
|
128 |
<div class="wrap" style="width:160px; margin-bottom:0; padding:0;"><p><a href="#" id="pageMashInfo_toggle">Show|Hide Further Info</a></p></div>
|
129 |
<div class="wrap" id="pageMashInfo" style="margin-top:-1px;">
|
130 |
-
<h2
|
131 |
-
<p
|
132 |
-
<p
|
133 |
<p style="margin-bottom:0; font-weight:bold;">Code:</p>
|
134 |
<code id="pageMash_code">
|
135 |
<span class="white"><?php</span> <span class="blue">wp_list_pages(</span><span class="orange">'title_li=<h2>Pages</h2>&depth=0'</span><span class="blue">);</span> <span class="white">?></span>
|
136 |
</code>
|
137 |
-
<p
|
138 |
-
<p
|
139 |
<br />
|
140 |
</div>
|
141 |
<?php
|
@@ -198,13 +196,9 @@ function pageMash_add_excludes($excludes){
|
|
198 |
}
|
199 |
|
200 |
function pageMash_add_pages(){
|
201 |
-
//add
|
202 |
-
global $minlevel
|
203 |
-
|
204 |
-
$page = add_submenu_page('edit-pages.php', 'pageMash page order', __('pageMash ','pmash'), $minlevel, __FILE__, 'pageMash_main');
|
205 |
-
}else{
|
206 |
-
$page = add_management_page('pageMash page order', 'pageMash', $minlevel, __FILE__, 'pageMash_main');
|
207 |
-
}
|
208 |
add_action("admin_print_scripts-$page", 'pageMash_head'); //add css styles and JS code to head
|
209 |
}
|
210 |
|
2 |
/*
|
3 |
Plugin Name: pageMash
|
4 |
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
5 |
+
Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
|
6 |
Author: Joel Starnes
|
7 |
+
Version: 1.1.6
|
8 |
Author URI: http://joelstarnes.co.uk/
|
9 |
|
10 |
*/
|
23 |
|
24 |
$ShowDegubInfo = false; /*[deafult=false]*/
|
25 |
/* Show server response debug info */
|
26 |
+
|
27 |
###################################################################
|
28 |
/*
|
29 |
INSPIRATIONS/CREDITS:
|
57 |
if ( !defined('WP_CONTENT_DIR') )
|
58 |
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
59 |
// Guess the location
|
60 |
+
$codeWord_path = WP_CONTENT_DIR.'/plugins/'.plugin_basename(dirname(__FILE__));
|
61 |
$pageMash_url = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__));
|
62 |
|
|
|
|
|
|
|
63 |
function pageMash_getPages($post_parent){
|
64 |
//this is a recurrsive function which calls itself to produce a nested list of elements
|
65 |
//$post_parent should be 0 for root pages, or contain a pageID to return it's sub-pages
|
79 |
<span class="pageMash_more">»</span>
|
80 |
<span class="pageMash_pageFunctions">
|
81 |
id:<?php echo $page->ID;?>
|
82 |
+
[<a href="<?php echo get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.$page->ID; ?>" title="Edit This Page">edit</a>]
|
83 |
<?php if($excludePagesFeature): ?>
|
84 |
+
[<a href="#" title="Show|Hide" class="excludeLink" onclick="toggleRemove(this); return false">hide</a>]
|
85 |
<?php endif; ?>
|
86 |
<?php if($renamePagesFeature): ?>
|
87 |
+
[<a href="#" title="Rename Page" class="rename">Rename</a>]
|
88 |
<?php endif; ?>
|
89 |
</span>
|
90 |
</span>
|
105 |
<div id="debug_list"<?php if(false==$ShowDegubInfo) echo' style="display:none;"'; ?>></div>
|
106 |
<div id="pageMash" class="wrap">
|
107 |
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
|
108 |
+
version [1.1.5]
|
109 |
</div>
|
110 |
+
<h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
|
111 |
<p style="margin-top:4px;">
|
112 |
+
Just drag the pages <strong>up</strong> or <strong>down</strong> to change the page order and <strong>left</strong> or <strong>right</strong> to change the page's parent, then hit 'update'.<br />
|
113 |
+
The icon to the left of each page shows if it has child pages, <strong>double click</strong> on that item to toggle <strong>expand|collapse</strong> of it's children.
|
114 |
</p>
|
115 |
+
<p><a href="#" id="expand_all">Expand All</a> | <a href="#" id="collapse_all">Collapse All</a></p>
|
116 |
|
117 |
<?php pageMash_getPages(0); //pass 0, as initial parent ?>
|
118 |
|
119 |
<p class="submit">
|
120 |
<div id="update_status" style="float:left; margin-left:40px; opacity:0;"></div>
|
121 |
+
<input type="submit" id="pageMash_submit" tabindex="2" style="font-weight: bold; float:right;" value="Update" name="submit"/>
|
122 |
</p>
|
123 |
<br style="margin-bottom: .8em;" />
|
124 |
</div>
|
125 |
|
126 |
<div class="wrap" style="width:160px; margin-bottom:0; padding:0;"><p><a href="#" id="pageMashInfo_toggle">Show|Hide Further Info</a></p></div>
|
127 |
<div class="wrap" id="pageMashInfo" style="margin-top:-1px;">
|
128 |
+
<h2>How to Use</h2>
|
129 |
+
<p>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.</p>
|
130 |
+
<p>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:</p>
|
131 |
<p style="margin-bottom:0; font-weight:bold;">Code:</p>
|
132 |
<code id="pageMash_code">
|
133 |
<span class="white"><?php</span> <span class="blue">wp_list_pages(</span><span class="orange">'title_li=<h2>Pages</h2>&depth=0'</span><span class="blue">);</span> <span class="white">?></span>
|
134 |
</code>
|
135 |
+
<p>You can also hard-code pages to exclude and these will be merged with the pages you set to exclude in your pageMash admin.</p>
|
136 |
+
<p>The code here is very simple and flexible, for more information look up <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages" title="wp_list_pages Documentation">wp_list_pages() in the Wordpress Codex</a> as it is very well documented and if you have any further questions or feedback I like getting messages, so <a href="http://joelstarnes.co.uk/contact/" title="email Joel Starnes">drop me an email</a>.</p>
|
137 |
<br />
|
138 |
</div>
|
139 |
<?php
|
196 |
}
|
197 |
|
198 |
function pageMash_add_pages(){
|
199 |
+
//add link in the management tab
|
200 |
+
global $minlevel;
|
201 |
+
$page = add_management_page('pageMash page order', 'pageMash', $minlevel, __FILE__, 'pageMash_main');
|
|
|
|
|
|
|
|
|
202 |
add_action("admin_print_scripts-$page", 'pageMash_head'); //add css styles and JS code to head
|
203 |
}
|
204 |
|
pmash-de_DE.mo
DELETED
Binary file
|
pmash-de_DE.po
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: pmash\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2008-12-14 10:21+0800\n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Thomas Steinczhorn <tom@outsourcetoasia.de>\n"
|
8 |
-
"Language-Team: Outsource to Asia <tom@outsourcetoasia.de>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-Language: German\n"
|
13 |
-
"X-Poedit-Country: GERMANY\n"
|
14 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
-
"X-Poedit-KeywordsList: _e;__\n"
|
16 |
-
"X-Poedit-Basepath: .\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: pagemash.php:113
|
20 |
-
msgid "pageMash - pageManagement "
|
21 |
-
msgstr "pageMash - Seiten Verwaltung"
|
22 |
-
|
23 |
-
#: pagemash.php:115
|
24 |
-
msgid "Just drag the pages <strong>up</strong> or <strong>down</strong> to change the page order and <strong>left</strong> or <strong>right</strong> to change the page`s parent, then hit \"update\". "
|
25 |
-
msgstr "Einfach die Seiten <strong>rauf</strong> oder <strong>runter</strong> schieben um die Reihenfolge zu ändern. Nach <strong>links</strong> oder <strong>rechts</strong> um diese als Unterseite einer anderen zu machen."
|
26 |
-
|
27 |
-
#: pagemash.php:116
|
28 |
-
msgid "The icon to the left of each page shows if it has child pages, <strong>double click</strong> on that item to toggle <strong>expand|collapse</strong> of it`s children. "
|
29 |
-
msgstr "Das Symbol links an jeder Seite zeigt an, ob Unterseiten vorhanden sind. Mit einem <strong>Doppel Klick</strong> können diese <strong>ein- oder ausgeklappen</strong>. Am Ende auf \"Aktualisieren\". klicken."
|
30 |
-
|
31 |
-
#: pagemash.php:118
|
32 |
-
msgid "Expand All "
|
33 |
-
msgstr "Alle aufklappen"
|
34 |
-
|
35 |
-
#: pagemash.php:118
|
36 |
-
msgid "Collapse All "
|
37 |
-
msgstr "Alle einklappen"
|
38 |
-
|
39 |
-
#: pagemash.php:124
|
40 |
-
msgid "Update "
|
41 |
-
msgstr "Aktualisieren"
|
42 |
-
|
43 |
-
#: pagemash.php:131
|
44 |
-
msgid "How to Use "
|
45 |
-
msgstr "Anleitung"
|
46 |
-
|
47 |
-
#: pagemash.php:132
|
48 |
-
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. "
|
49 |
-
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!"
|
50 |
-
|
51 |
-
#: pagemash.php:133
|
52 |
-
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:"
|
53 |
-
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:"
|
54 |
-
|
55 |
-
#: pagemash.php:138
|
56 |
-
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."
|
57 |
-
msgstr "Du kannst aber auch Seiten direkt ausschließen. Diese werden dann verknüpft mit den ausgeschlossenen Seiten im pageMash Admin."
|
58 |
-
|
59 |
-
#: pagemash.php:139
|
60 |
-
msgid "The code here is very simple and flexible, for more information look up <a href=\"http://codex.wordpress.org/Template_Tags/wp_list_pages\" title=\"wp_list_pages Documentation\">wp_list_pages() in the Wordpress Codex</a> as it is very well documented and if you have any further questions or feedback I like getting messages, so <a href=\"http://joelstarnes.co.uk/contact/\" title=\"email Joel Starnes\">drop me an email</a>."
|
61 |
-
msgstr "Der Code ist sehr einfach und flexibel. Weitere Informationen gibt es unter <a href=\"http://codex.wordpress.org/Template_Tags/wp_list_pages\" title=\"wp_list_pages Dokumentation\"> wp_list_pages() in the Wordpress Codex</a>. Sollten noch Fragen bzw. Anregungen vorhanden sein <a href=\"http://joelstarnes.co.uk/contact/\" title=\"email Joel Starnes\">sendet mir einfach eine Email</a>."
|
62 |
-
|
63 |
-
#: pagemash.php:204
|
64 |
-
msgid "pageMash "
|
65 |
-
msgstr "Verwaltung"
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|