Changeset 466274
- Timestamp:
- 11/23/2011 03:37:37 AM (13 years ago)
- Location:
- easily-navigate-pages-on-your-dashboard/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
easily-navigate-pages-on-your-dashboard/trunk/easily-navigate-pages-on-dashboard.php
r210006 r466274 5 5 Description: Display a folder tree of your pages that is easy to expand and contract on your Dashboard. 6 6 Author: Tristan Botly 7 Version: 1.0 17 Version: 1.02 8 8 Author URI: http://www.tristanbotly.com 9 9 */ … … 76 76 $out .= "<li>"; 77 77 } 78 78 79 $version = get_bloginfo('version'); 80 81 $version = substr($version, 0,1); 82 83 if ($version >= 3){ 84 $editlink = "/wp-admin/post.php?action=edit&post="; 85 } else { 86 $editlink = "/wp-admin/page.php?action=edit&post="; 87 } 88 89 79 90 if ($public) { 80 91 // Create our own link to edit page for this ID 81 92 //$out .= "<a class=\"$pageStatus\" href=\"$pageURL\">" . $pageTitle . "</a>"; 82 $out .= "<a href=\"#\" class=\"expand\"> </a><a class=\"$pageStatus pagelink\" href=\"" . get_bloginfo('wpurl') . "/wp-admin/page.php?action=edit&post=$pageID\">" . $pageTitle . "</a>";93 $out .= "<a href=\"#\" class=\"expand\"> </a><a class=\"$pageStatus pagelink\" href=\"" . get_bloginfo('wpurl') . $editlink . $pageID . "\">" . $pageTitle . "</a>"; 83 94 //$out .= "<a class=\"$pageStatus\" href=\"#\">" . $pageTitle . "</a>"; 84 95 } 85 96 else { 86 $out .= "<a class=\"$pageStatus\" href=\"" . get_bloginfo('wpurl') . "/wp-admin/page.php?action=edit&post=$pageID\">" . $pageTitle . "</a>";97 $out .= "<a class=\"$pageStatus\" href=\"" . get_bloginfo('wpurl') . $editlink . $pageID . "\">" . $pageTitle . "</a>"; 87 98 } 88 99 -
easily-navigate-pages-on-your-dashboard/trunk/readme.txt
r210006 r466274 3 3 Tags: admin, administration, cms, client, pages, folder, structure, content management, plugin, jquery, page management 4 4 Requires at least: 2.5 5 Tested up to: 2.85 Tested up to: 3.2 6 6 Stable tag: 1 7 7
Note: See TracChangeset
for help on using the changeset viewer.