v1.0.3
git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@35327 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
9abb02427d
commit
8ac73e4119
|
@ -3,7 +3,7 @@ Contributors: JoelStarnes
|
||||||
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
|
Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide,
|
||||||
Requires at least: 2.0
|
Requires at least: 2.0
|
||||||
Tested up to: 2.4-bleeding
|
Tested up to: 2.4-bleeding
|
||||||
Stable tag: 1.0.2
|
Stable tag: 1.0.3
|
||||||
|
|
||||||
Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
|
Organise page order and manage page structure with this simple drag-and-drop Ajax interface.
|
||||||
|
|
||||||
|
@ -37,6 +37,9 @@ The code here is very simple and flexible, for more information look up `wp_list
|
||||||
|
|
||||||
If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
|
If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
|
||||||
|
|
||||||
|
= Do I need any special code in my template =
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
== Screenshots ==
|
== Screenshots ==
|
||||||
|
|
||||||
|
|
17
pagemash.php
17
pagemash.php
|
@ -4,7 +4,7 @@ Plugin Name: pageMash
|
||||||
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
||||||
Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
|
Description: pageMash > pageManagement [WP_Admin > Manage > pageMash]
|
||||||
Author: Joel Starnes
|
Author: Joel Starnes
|
||||||
Version: 1.0.2
|
Version: 1.0.3
|
||||||
Author URI: http://joelstarnes.co.uk/
|
Author URI: http://joelstarnes.co.uk/
|
||||||
|
|
||||||
CHANGELOG:
|
CHANGELOG:
|
||||||
|
@ -14,8 +14,9 @@ Release: Date: Description:
|
||||||
0.1.2 15 Feb 2008 Minor fixes > Fixed CSS&JS headers to only display on pagemash
|
0.1.2 15 Feb 2008 Minor fixes > Fixed CSS&JS headers to only display on pagemash
|
||||||
1.0.0 beta 19 Feb 2008 Major update > Recusive page handles unlimited nested children,
|
1.0.0 beta 19 Feb 2008 Major update > Recusive page handles unlimited nested children,
|
||||||
collapsable list items, interface makeover...
|
collapsable list items, interface makeover...
|
||||||
1.0.1 beta 14 Mar 2008 fixed IE > drag selects text
|
1.0.1 beta 14 Mar 2008 Fixed IE > drag selects text
|
||||||
1.0.2 16 Mar 2008 Major code rewrite for exclude pages
|
1.0.2 16 Mar 2008 Major code rewrite for exclude pages, funct hooks onto wp_list_pages
|
||||||
|
1.0.3 18 Mar 2008 Fixed datatype bug causing array problems
|
||||||
|
|
||||||
FIXME:
|
FIXME:
|
||||||
@fixme with instantUpdateFeature hide will not send the update
|
@fixme with instantUpdateFeature hide will not send the update
|
||||||
|
@ -76,9 +77,9 @@ function pageMash_getPages($post_parent){
|
||||||
echo '<ul ';
|
echo '<ul ';
|
||||||
if($post_parent==0) echo 'id="pageMash_pages" '; //add this ID only to root 'ul' element
|
if($post_parent==0) echo 'id="pageMash_pages" '; //add this ID only to root 'ul' element
|
||||||
echo '>';
|
echo '>';
|
||||||
|
|
||||||
foreach ($pageposts as $page): //list pages, [the 'li' ID must be the page ID] ?>
|
foreach ($pageposts as $page): //list pages, [the 'li' ID must be the page ID] ?>
|
||||||
<li id="pm_<?=$page->ID;?>" <?php if(in_array($page->ID, $excludePagesList)) echo 'class="remove"';//if page is in exclude list, add class remove ?>>
|
<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 ?>>
|
||||||
<span class="title"><?=$page->post_title;?></span>
|
<span class="title"><?=$page->post_title;?></span>
|
||||||
<span class="pageMash_pageFunctions">
|
<span class="pageMash_pageFunctions">
|
||||||
id:<?=$page->ID;?>
|
id:<?=$page->ID;?>
|
||||||
|
@ -104,7 +105,7 @@ function pageMash_main(){
|
||||||
<div id="debug_list"></div>
|
<div id="debug_list"></div>
|
||||||
<div id="pageMash" class="wrap">
|
<div id="pageMash" class="wrap">
|
||||||
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
|
<div id="pageMash_checkVersion" style="float:right; font-size:.7em; margin-top:5px;">
|
||||||
version [1.0.2]
|
version [1.0.3]
|
||||||
</div>
|
</div>
|
||||||
<h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
|
<h2 style="margin-bottom:0; clear:none;">pageMash - pageManagement</h2>
|
||||||
<p style="margin-top:4px;">
|
<p style="margin-top:4px;">
|
||||||
|
@ -352,7 +353,9 @@ endif; //main function only display head if jmash admin page
|
||||||
|
|
||||||
function pageMash_add_excludes($excludes) {
|
function pageMash_add_excludes($excludes) {
|
||||||
//merge array of hardcoded exclude pages with pageMash ones
|
//merge array of hardcoded exclude pages with pageMash ones
|
||||||
$excludes = array_merge( get_option('exclude_pages'), $excludes );
|
if(is_array(get_option('exclude_pages'))){
|
||||||
|
$excludes = array_merge( get_option('exclude_pages'), $excludes );
|
||||||
|
}
|
||||||
sort($excludes);
|
sort($excludes);
|
||||||
return $excludes;
|
return $excludes;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ require('myjson.php'); //JSON decode lib
|
||||||
require('./../../../wp-config.php'); //config to connect to database
|
require('./../../../wp-config.php'); //config to connect to database
|
||||||
|
|
||||||
global $wpdb, $excludePages;
|
global $wpdb, $excludePages;
|
||||||
|
$excludePages = array();
|
||||||
|
|
||||||
// fetch JSON object from $_POST['m']
|
// fetch JSON object from $_POST['m']
|
||||||
$json = new Services_JSON();
|
$json = new Services_JSON();
|
||||||
|
|
Loading…
Reference in New Issue