Changeset 5173 for trunk/admin/themes


Ignore:
Timestamp:
Mar 18, 2010, 12:50:53 AM (14 years ago)
Author:
plg
Message:

feature 1515: the new admin menu organization implies to tell the accordion
menu which section to open on page load.

I've moved the single function in functions_themes.inc.php to function.php to
avoid misunderstanding with theme manager.

Ability to preset the active menu (in the future, a plugin may add its admin
page anywhere in the menu, this features needs other change to be possible)

Location:
trunk/admin/themes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/clear/themeconf.inc.php

    r5123 r5173  
    11<?php
    2 if (!function_exists('selected_admin_menu'))
    3 {
    4   include_once(PHPWG_ROOT_PATH.'admin/include/functions_themes.inc.php');
    5 }
    62$themeconf = array(
    73  'theme'    => 'clear',
    84  'parent'   => 'default',
    95  'admin_icon_dir' => 'admin/themes/clear/icon',
    10   'selected_admin_menu' => selected_admin_menu(),
    116);
    127?>
  • trunk/admin/themes/default/template/admin.tpl

    r5170 r5173  
    88    header: "dt.rdion",
    99    event: "click",
    10     active: {$U_ACTIVE_MENU|default:$themeconf.selected_admin_menu}
     10    active: {$ACTIVE_MENU}
    1111  });
    1212});
  • trunk/admin/themes/roma/themeconf.inc.php

    r5123 r5173  
    11<?php
    2 if (!function_exists('selected_admin_menu'))
    3 {
    4   include_once(PHPWG_ROOT_PATH.'admin/include/functions_themes.inc.php');
    5 }
    62$themeconf = array(
    73  'theme'  => 'roma',
    84  'parent' => 'default',
    9   'selected_admin_menu' => selected_admin_menu(),
    105);
    116?>
Note: See TracChangeset for help on using the changeset viewer.