Make WordPress Core

Changeset 110


Ignore:
Timestamp:
05/28/2003 07:54:49 AM (22 years ago)
Author:
saxmatt
Message:

Admin menu now tells you where you are.

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2.css

    r67 r110  
    1111a:hover {
    1212    color: #069;
    13 }
    14 
    15 a.b2menutop {
    16     background-color: transparent;
    17     color: #06f;
    18     font-weight: lighter;
    19 }
    20 
    21 a.b2menutop:hover {
    22     color: #f90;
    23     font-weight: bold;
    24     text-decoration: none;
    25 }
    26 
    27 a.menutop {
    28     background-color: transparent;
    29     border-width: 0px;
    30     color: #36c;
    31     font-weight: normal;
    32 }
    33 
    34 a.menutop:hover {
    35     color: #f90;
    36     font-weight: normal;
    37     text-decoration: underline;
    3813}
    3914
     
    6944}
    7045
    71 td.menutop {
    72     border-bottom-width: 1px;
    73     border-color: #999;
    74     border-left-width: 0px;
    75     border-right-width: 0px;
    76     border-style: dashed;
    77     border-top-width: 1px;
    78     padding-bottom: 2px;
    79     padding-top: 2px;
    80 }
    81 
    8246textarea, input, select {
    8347    background-color: #f0f0f0;
     
    9054}
    9155
    92 xmp {
    93     font-size: 10pt; /* Just in case */
    94 }
    95 
    96 .b2menutop {
    97     color: #333;
    98     font-size: 10px;
    99 }
    100 
    10156.checkbox {
    10257    background-color: #fff;
     
    10661}
    10762
    108 .menutop {
    109     background-color: #def;
    110     color: #999;
    111     font-size: 10px;
    112 }
    113 
    114 .menutoptitle {
    115     color: #bcd;
    116     font-size: 14px;
    117     font-weight: bold;
    118 }
    11963
    12064.quicktags, .search {
     
    12367    font-family: Georgia, "Times New Roman", Times, serif;
    12468    font-size: 12px;
    125 }
    126 
    127 .table {
    128     color: #000;
    129     font-size: 10pt;
    130 }
    131 
    132 .tabletoprow {
    133     background-color: #fff;
    134     color: #000;
    135     font-size: 12px;
    136     font-style: italic;
    13769}
    13870
     
    16294}
    16395
    164 #adminmenu a:hover {
     96#adminmenu a:hover, #current {
    16597    background-color: #e9e9e9;
    16698    border: 1px solid #808080;
  • trunk/wp-admin/b2menutop.php

    r83 r110  
    11<h1 id="wphead"><a href="http://wordpress.org" rel="external"><span>WordPress</span></a></h1>
    22<ul id="adminmenu">
    3   <li><a href="b2edit.php"><strong>Post / Edit</strong></a></li>
    4   <li><a href="javascript:profile(<?php echo $user_ID ?>)">My Profile</a></li>
    5   <li><a href="b2team.php">Team</a></li>
    6     <?php
    7 
    8 if ($pagenow != "b2profile.php") {
    9 
     3<?php
    104$menu = file("./b2menutop.txt");
    11 $i=0;
    12 $j=$menu[0];
    13 while ($j != "") {
    14     $k = explode("\t",$j);
    15     if ($user_level >= $k[0]) {
    16         echo "\n<li><a href='".$k[1]."'>".trim($k[2]).'</a></li>';
     5$continue = true;
     6foreach ($menu as $item) {
     7    $class = '';
     8    $item = trim($item);
     9    if ('***' == $item) $continue = false;
     10    if ($continue) {
     11        $item = explode("\t", $item);
     12        // 0 = user level, 1 = file, 2 = name
     13        if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' id="current"';
     14        if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
    1715    }
    18     $i=$i+1;
    19     $j=$menu[$i];
    20     if (trim($j) == "***")
    21         $j="";
    2216}
    2317
    24 }
    2518?>
    26 <li><a href="<?php echo $siteurl."/".$blogfilename; ?>">View site</a></li>
    27 <li id="last"><a href="<?php echo $siteurl ?>/b2login.php?action=logout">Logout</a></li>
     19
     20    <li><a href="javascript:profile(<?php echo $user_ID ?>)">My Profile</a></li>
     21    <li><a href="<?php echo "$siteurl/$blogfilename"; ?>">View site</a></li>
     22    <li id="last"><a href="<?php echo $siteurl ?>/b2login.php?action=logout">Logout</a></li>
    2823</ul>
    2924<br clear="all" />
  • trunk/wp-admin/b2menutop.txt

    r40 r110  
     12   b2edit.php  Post / Edit
     23   b2team.php  Team
    133   b2options.php   Options
    243   b2categories.php    Categories
    353   b2template.php  Template
    4 5   linkmanager.php Manage&nbsp;Links
     65   linkmanager.php Manage Links
    57***
    68(Everything after the '***' is a comment.)
Note: See TracChangeset for help on using the changeset viewer.