1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 02:00:14 +02:00

ADMIN_ALT_NAV totally rewritten, admin menu sublinks support (new pref added), icon refining, new About admin root menu

This commit is contained in:
secretr
2009-01-09 17:25:50 +00:00
parent 0f0f55a1fa
commit dd162a70c0
35 changed files with 522 additions and 264 deletions

View File

@@ -9,8 +9,8 @@
* Admin template - _blank theme
*
* $Source: /cvs_backup/e107_0.8/e107_themes/_blank/admin_template.php,v $
* $Revision: 1.9 $
* $Date: 2008-12-19 14:01:07 $
* $Revision: 1.10 $
* $Date: 2009-01-09 17:25:50 $
* $Author: secretr $
*
*/
@@ -20,7 +20,7 @@ if (!defined('e107_INIT')) { exit; }
define("ADLINK_COLS",5);
include_lan(THEME."languages/".e_LANGUAGE.".php");
//{FS_ADMIN_ALT_NAV}
$ADMIN_HEADER = "
<div class='admin-wrapper'>
<div class='admin-header'>
@@ -30,10 +30,11 @@ $ADMIN_HEADER = "
{ADMIN_LOGGED}
{ADMIN_SEL_LAN}
{ADMIN_USERLAN}
</div>
<div style='height: 20px;'><!-- --></div>
<div class='admin-navigation'>
{FS_ADMIN_ALT_NAV}
<div id='nav'>{ADMIN_NAVIGATION}</div>
<div class='clear'><!-- --></div>
</div>
</div>
@@ -93,10 +94,8 @@ $ADMIN_FOOTER = "
";
/* NEW ADMIN MENU TEMPLATE
* see function e_admin_menu() in e107_admin/header.php
*/
*/
$E_ADMIN_MENU['start'] = '
<ul class="plugin-navigation">
';
@@ -138,45 +137,50 @@ $E_ADMIN_MENU['end_sub'] = '
$E_ADMIN_MENU['end'] = '
</ul>
';
/*
$BUTTONS_START = '
<ul class="plugin-navigation">
';
$BUTTON = '
<li>
<a class="link" href="{LINK_URL}"{ONCLICK}>&raquo;&nbsp;{LINK_TEXT}</a>
{SUB_LINK}
</li>
';
$BUTTON_OVER = '
<li>
<a class="link-active" href="{LINK_URL}"{ONCLICK}>&raquo;&nbsp;{LINK_TEXT}</a>
</li>
';
$SUB_BUTTONS_START = '
<ul class="plugin-navigation">
<li>
<a class="link" href="{LINK_URL}" onclick="expandit(\'{SUB_HEAD_ID}\');" >&raquo;&nbsp;{SUB_HEAD}</a>
<ul class="plugin-navigation-sub" id="{SUB_HEAD_ID}" style="display: none">
';
$SUB_BUTTON = '
<li>
<a class="link" href="{LINK_URL}">&raquo;&nbsp;{LINK_TEXT}</a>
</li>
';
$SUB_BUTTON_OVER = '
<li>
<a class="link-active" href="{LINK_URL}">&raquo;&nbsp;{LINK_TEXT}</a>
</li>
';
$SUB_BUTTONS_END = '
</ul>
</li>
</ul>
';
$BUTTONS_END = '
</ul>
';
*/
/* NEW ADMIN SLIDE DOWN MENU TEMPLATE
* see function admin_navigation() in e107_files/shortcodes/admin_navigation.php
* TODO move it together with menu.css/menu.js to the theme templates/e107_files folder (default menu render)
*/
$E_ADMIN_NAVIGATION['start'] = '
<ul id="nav-links">
';
$E_ADMIN_NAVIGATION['button'] = '
<li>
<a class="menuButton" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
{SUB_MENU}
</li>
';
$E_ADMIN_NAVIGATION['button_active'] = '
<li>
<a class="menuButton active" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
{SUB_MENU}
</li>
';
$E_ADMIN_NAVIGATION['start_sub'] = '
<ul class="menu"{SUB_ID}>
';
$E_ADMIN_NAVIGATION['button_sub'] = '
<li>
<a class="menuItem{SUB_CLASS}" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
{SUB_MENU}
</li>
';
$E_ADMIN_NAVIGATION['button_active_sub'] = '
<li>
<a class="menuItem{SUB_CLASS}" href="{LINK_URL}"{ONCLICK}>{LINK_IMAGE}{LINK_TEXT}</a>
{SUB_MENU}
</li>
';
$E_ADMIN_NAVIGATION['end_sub'] = '
</ul>
';
$E_ADMIN_NAVIGATION['end'] = '
</ul>
';
?>

View File

@@ -1,10 +1,10 @@
/*
* e107 website system (c) 2001-2008 Steve Dunstan (e107.org)
* $Id: fs_admin_alt_nav.sc,v 1.3 2008-12-10 22:39:43 e107steved Exp $
* $Id: fs_admin_alt_nav.sc,v 1.4 2009-01-09 17:25:50 secretr Exp $
*/
if (ADMIN)
{
if (!ADMIN) return '';
global $sql, $pref, $tp;
parse_str($parm);
require(e_ADMIN.'ad_links.php');
@@ -42,7 +42,7 @@ if (ADMIN)
<tr><td>
<div class='menuBar' style='width: 100%'>";
*/
$text .= '
<div id="nav">
';
@@ -50,8 +50,8 @@ if (ADMIN)
$text .= '<ul style="float: right"><li>'.adnav_cat_fs(ADLAN_53, e_BASE.'index.php', E_16_NAV_LEAV).'</li>';
$text .= '<li>'.adnav_cat_fs(ADLAN_46, e_ADMIN.'admin.php?logout', E_16_NAV_LGOT).'</li></ul>';
}
$text .= '
$text .= '
<ul class="level1" id="nav-links">
';
@@ -88,7 +88,7 @@ if (ADMIN)
}
}
$ad_texti .= '</ul>';
if ($ad_tmpi == 1)
if ($ad_tmpi == 1)
{
$text .= $nav_main;
$text .= $ad_texti;
@@ -131,13 +131,13 @@ if (ADMIN)
}
ksort($plugin_array, SORT_STRING);
$plugs_text = '';
foreach ($plugin_array as $plugin_compile)
foreach ($plugin_array as $plugin_compile)
{
$plugs_text .= $plugin_compile;
}
}
if (getperms('Z'))
if (getperms('Z'))
{
$pclass_extended = $active_plugs ? 'header' : '';
$plugin_text = adnav_main_fs(ADLAN_98, e_ADMIN.'plugin.php', E_16_PLUGMANAGER, FALSE, $pclass_extended);
@@ -145,12 +145,12 @@ if (ADMIN)
}
if ($render_plugins) {
if (defined('FS_ADMIN_LINK_SEPARATOR')) {
$text .= "
<li class='fs-linkSep'>".FS_ADMIN_LINK_SEPARATOR."</li>";
}
$text .= '<li>';
$text .= adnav_cat_fs(ADLAN_CL_7, '', E_16_CAT_PLUG, 'plugMenu');
$text .= "<ul id='plugMenu' class='menu'>";
@@ -167,14 +167,14 @@ if (ADMIN)
$text .= '<li>';
$text .= adnav_cat_fs(ADLAN_CL_8, '', E_16_NAV_DOCS, 'docsMenu');
$text .= "<ul id='docsMenu' class='menu'>";
if (!$handle=opendir(e_DOCS.e_LANGUAGE."/"))
if (!$handle=opendir(e_DOCS.e_LANGUAGE."/"))
{
$handle=opendir(e_DOCS."English/");
}
$i=1;
while ($file = readdir($handle))
while ($file = readdir($handle))
{
if ($file != "." && $file != ".." && $file != "CVS")
if ($file != "." && $file != ".." && $file != "CVS")
{
$text .= '<li>'.adnav_main_fs(str_replace("_", " ", $file), e_ADMIN."docs.php?".$i, E_16_DOCS).'</li>';
$i++;
@@ -191,4 +191,3 @@ if (ADMIN)
';
return $text;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

View File

@@ -1,5 +1,3 @@
#nav li.fs-linkSep { width: 2px; margin: 0px; height: 38px; background: url(../images/a01_bar-Sep.png) 0 0 no-repeat; }
#nav, #nav ul { /* all lists */
padding: 0px;
margin: 0px;
@@ -10,7 +8,7 @@
#nav a {
padding: 0px 15px 0px 36px;
padding: 0px 10px 0px 10px;
vertical-align: middle;
display: block;
font-family: Verdana, Arial, Helvetica, sans-serif;
@@ -36,6 +34,7 @@
#nav li { /* all list items */
float: left;
line-height: 36px;
/* width: 158px; width needed or else Opera goes nuts */
}
ul.sub {border-top: 1px solid #DDDDDD;}
@@ -43,7 +42,7 @@ ul.sub {border-top: 1px solid #DDDDDD;}
#nav li ul { /* second-level lists */
position: absolute;
z-index: 10;
width: 180px;
width: 190px;
left: -9999px; /* using left instead of display to hide menus because display: none isn't read by screen readers */
}
@@ -62,22 +61,24 @@ ul.sub {border-top: 1px solid #DDDDDD;}
border-left: 1px solid #DDDDDD;
border-right: 1px solid #DDDDDD;
border-bottom: 1px solid #DDDDDD;
width: 188px;
w\idth : 188px;
width: 190px;
w\idth : 178px;
text-transform: none;
color: #13394E;
}
#nav .menuItem img { width: 16px; height: 16px; padding: 6px 0px; margin-right: 10px; }
#nav .menuButton img { padding: 10px 0px; margin-right: 10px; }
#nav .menuItem img { padding: 6px 0px; margin-right: 10px; }
#nav li li a.sub,
#nav li:hover li a.sub,
#nav li.sfhover li a.sub {
/* background-image: url(../images/1008-links_sub.gif) !important ; background-repeat: no-repeat; background-position:95% 50%; */
background-image: url(../images/links_sub.gif) !important ; background-repeat: no-repeat; background-position:95% 50%;
}
#nav li li a.sub:hover,
#nav li:hover li a.sub:hover,
#nav li.sfhover li a.sub:hover {
/* background-image: url(../images/0708_link_sub_over.png) !important ; background-repeat: no-repeat; background-position: 100% 50%; */
/*background-image: url(../images/link_sub_over.png) !important ; background-repeat: no-repeat; background-position: 100% 50%;*/
}
@@ -89,7 +90,8 @@ ul.sub {border-top: 1px solid #DDDDDD;}
#nav li ul ul { /* third-and-above-level lists */
margin: -29px 0 0 180px;
margin: -25px 0 0 120px;
border-top: 1px solid #ddd;
}
#nav li:hover ul ul,