Version Description
Download this release
Release Info
Developer | jmash |
Plugin | pageMash > Page Management |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- README.txt +7 -2
- pagemash.php +10 -7
- saveList.php +1 -0
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: JoelStarnes
|
|
3 |
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
|
4 |
Requires at least: 2.0
|
5 |
Tested up to: 2.4-bleeding
|
6 |
-
Stable tag: 1.0.
|
7 |
|
8 |
Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
|
9 |
|
@@ -11,7 +11,7 @@ Organise page order and manage page structure with this simple drag-and-drop Aja
|
|
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 admin page: http://joelstarnes.co.uk/pagemash/
|
15 |
|
16 |
Feedback is greatly appreciated: http://joelstarnes.co.uk/contact
|
17 |
|
@@ -37,6 +37,9 @@ The code here is very simple and flexible, for more information look up `wp_list
|
|
37 |
|
38 |
If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
|
39 |
|
|
|
|
|
|
|
40 |
|
41 |
== Screenshots ==
|
42 |
|
@@ -61,6 +64,8 @@ If you have any questions or comments, please drop me an email: http://joelstarn
|
|
61 |
|
62 |
1.0.2 > Major code rewrite for exclude pages
|
63 |
|
|
|
|
|
64 |
|
65 |
== Localization ==
|
66 |
|
3 |
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
|
4 |
Requires at least: 2.0
|
5 |
Tested up to: 2.4-bleeding
|
6 |
+
Stable tag: 1.0.3
|
7 |
|
8 |
Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
|
9 |
|
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 admin page: http://joelstarnes.co.uk/pagemash/example
|
15 |
|
16 |
Feedback is greatly appreciated: http://joelstarnes.co.uk/contact
|
17 |
|
37 |
|
38 |
If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
|
39 |
|
40 |
+
= Do I need any special code in my template =
|
41 |
+
No. You no longer need to add the pageMash parameter as you did with the previous versions [<1.0.2]. You can leave the code in as it will do no harm, but it's good to keep your template clean of unnecessary code.
|
42 |
+
|
43 |
|
44 |
== Screenshots ==
|
45 |
|
64 |
|
65 |
1.0.2 > Major code rewrite for exclude pages
|
66 |
|
67 |
+
1.0.3 > Fixed datatype bug causing array problems
|
68 |
+
|
69 |
|
70 |
== Localization ==
|
71 |
|
pagemash.php
CHANGED
@@ -4,7 +4,7 @@ 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.0.
|
8 |
Author URI: http://joelstarnes.co.uk/
|
9 |
|
10 |
CHANGELOG:
|
@@ -14,8 +14,9 @@ Release: Date: Description:
|
|
14 |
0.1.2 15 Feb 2008 Minor fixes > Fixed CSS&JS headers to only display on pagemash
|
15 |
1.0.0 beta 19 Feb 2008 Major update > Recusive page handles unlimited nested children,
|
16 |
collapsable list items, interface makeover...
|
17 |
-
1.0.1 beta 14 Mar 2008
|
18 |
-
1.0.2 16 Mar 2008 Major code rewrite for exclude pages
|
|
|
19 |
|
20 |
FIXME:
|
21 |
@fixme with instantUpdateFeature hide will not send the update
|
@@ -76,9 +77,9 @@ function pageMash_getPages($post_parent){
|
|
76 |
echo '<ul ';
|
77 |
if($post_parent==0) echo 'id="pageMash_pages" '; //add this ID only to root 'ul' element
|
78 |
echo '>';
|
79 |
-
|
80 |
foreach ($pageposts as $page): //list pages, [the 'li' ID must be the page ID] ?>
|
81 |
-
<li id="pm_<?=$page->ID;?>" <?php if(in_array($page->ID, $excludePagesList)) echo 'class="remove"'
|
82 |
<span class="title"><?=$page->post_title;?></span>
|
83 |
<span class="pageMash_pageFunctions">
|
84 |
id:<?=$page->ID;?>
|
@@ -104,7 +105,7 @@ function pageMash_main(){
|
|
104 |
<div id="debug_list"></div>
|
105 |
<div id="pageMash" class="wrap">
|
106 |
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
|
107 |
-
version [1.0.
|
108 |
</div>
|
109 |
<h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
|
110 |
<p style="margin-top:4px;">
|
@@ -352,7 +353,9 @@ endif; //main function only display head if jmash admin page
|
|
352 |
|
353 |
function pageMash_add_excludes($excludes) {
|
354 |
//merge array of hardcoded exclude pages with pageMash ones
|
355 |
-
|
|
|
|
|
356 |
sort($excludes);
|
357 |
return $excludes;
|
358 |
}
|
4 |
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
5 |
Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
|
6 |
Author: Joel Starnes
|
7 |
+
Version: 1.0.3
|
8 |
Author URI: http://joelstarnes.co.uk/
|
9 |
|
10 |
CHANGELOG:
|
14 |
0.1.2 15 Feb 2008 Minor fixes > Fixed CSS&JS headers to only display on pagemash
|
15 |
1.0.0 beta 19 Feb 2008 Major update > Recusive page handles unlimited nested children,
|
16 |
collapsable list items, interface makeover...
|
17 |
+
1.0.1 beta 14 Mar 2008 Fixed IE > drag selects text
|
18 |
+
1.0.2 16 Mar 2008 Major code rewrite for exclude pages, funct hooks onto wp_list_pages
|
19 |
+
1.0.3 18 Mar 2008 Fixed datatype bug causing array problems
|
20 |
|
21 |
FIXME:
|
22 |
@fixme with instantUpdateFeature hide will not send the update
|
77 |
echo '<ul ';
|
78 |
if($post_parent==0) echo 'id="pageMash_pages" '; //add this ID only to root 'ul' element
|
79 |
echo '>';
|
80 |
+
|
81 |
foreach ($pageposts as $page): //list pages, [the 'li' ID must be the page ID] ?>
|
82 |
+
<li id="pm_<?=$page->ID;?>" <?php if(get_option('exclude_pages')){ if(in_array($page->ID, $excludePagesList)) echo 'class="remove"'; }//if page is in exclude list, add class remove ?>>
|
83 |
<span class="title"><?=$page->post_title;?></span>
|
84 |
<span class="pageMash_pageFunctions">
|
85 |
id:<?=$page->ID;?>
|
105 |
<div id="debug_list"></div>
|
106 |
<div id="pageMash" class="wrap">
|
107 |
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
|
108 |
+
version [1.0.3]
|
109 |
</div>
|
110 |
<h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
|
111 |
<p style="margin-top:4px;">
|
353 |
|
354 |
function pageMash_add_excludes($excludes) {
|
355 |
//merge array of hardcoded exclude pages with pageMash ones
|
356 |
+
if(is_array(get_option('exclude_pages'))){
|
357 |
+
$excludes = array_merge( get_option('exclude_pages'), $excludes );
|
358 |
+
}
|
359 |
sort($excludes);
|
360 |
return $excludes;
|
361 |
}
|
saveList.php
CHANGED
@@ -5,6 +5,7 @@ require('myjson.php'); //JSON decode lib
|
|
5 |
require('./../../../wp-config.php'); //config to connect to database
|
6 |
|
7 |
global $wpdb, $excludePages;
|
|
|
8 |
|
9 |
// fetch JSON object from $_POST['m']
|
10 |
$json = new Services_JSON();
|
5 |
require('./../../../wp-config.php'); //config to connect to database
|
6 |
|
7 |
global $wpdb, $excludePages;
|
8 |
+
$excludePages = array();
|
9 |
|
10 |
// fetch JSON object from $_POST['m']
|
11 |
$json = new Services_JSON();
|