Plugin Directory

Changeset 466274


Ignore:
Timestamp:
11/23/2011 03:37:37 AM (13 years ago)
Author:
tristanbotly
Message:
 
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  
    55Description: Display a folder tree of your pages that is easy to expand and contract on your Dashboard.
    66Author: Tristan Botly
    7 Version: 1.01
     7Version: 1.02
    88Author URI: http://www.tristanbotly.com
    99*/
     
    7676                $out .= "<li>";
    7777            }
    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           
    7990            if ($public) {
    8091                // Create our own link to edit page for this ID
    8192                //$out .= "<a class=\"$pageStatus\" href=\"$pageURL\">" . $pageTitle . "</a>";
    82                 $out .= "<a href=\"#\" class=\"expand\">&nbsp;</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\">&nbsp;</a><a class=\"$pageStatus pagelink\" href=\"" . get_bloginfo('wpurl') . $editlink . $pageID . "\">" . $pageTitle . "</a>";
    8394                //$out .= "<a class=\"$pageStatus\" href=\"#\">" . $pageTitle . "</a>";
    8495            }
    8596            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>";
    8798            }
    8899
  • easily-navigate-pages-on-your-dashboard/trunk/readme.txt

    r210006 r466274  
    33Tags: admin, administration, cms, client, pages, folder, structure, content management, plugin, jquery, page management
    44Requires at least: 2.5
    5 Tested up to: 2.8
     5Tested up to: 3.2
    66Stable tag: 1
    77
Note: See TracChangeset for help on using the changeset viewer.