Changeset 2662


Ignore:
Timestamp:
Oct 5, 2008, 12:52:48 AM (16 years ago)
Author:
vdigital
Message:

1 - selected_admin_menu function is externalized.
2 - Plugin can force accordion to be stable by adding &plgmenu in their plugin url

Location:
trunk/admin
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/theme/roma/themeconf.inc.php

    r2647 r2662  
    11<?php
    2 /**
    3  * Accordion menus need to be stable
    4  */
    5 function selected_admin_menu()
     2if (!function_exists('selected_admin_menu'))
    63{
    7   if (isset($_GET['page']))
    8   {
    9     switch ($_GET['page']) {
    10       case 'configuration':
    11       case 'extend_for_templates':
    12       case 'menubar':
    13         return 1;
    14       case 'site_manager':
    15       case 'site_update':
    16       case 'cat_list':
    17       case 'cat_modify':
    18       case 'cat_move':
    19       case 'cat_options':
    20       case 'cat_perm':
    21       case 'permalinks':
    22         return 2;
    23       case 'element_set':
    24         if (isset($_GET['cat']) and is_numeric($_GET['cat']) ) {
    25           return 2;
    26         }
    27       case 'picture_modify':
    28         return 3;
    29       case 'comments':
    30       case 'upload':
    31       case 'thumbnail':
    32       case 'rating':
    33       case 'tags':
    34         return 3;
    35       case 'user_list':
    36       case 'group_list':
    37       case 'notification_by_mail':
    38         return 4;
    39       case 'stats':
    40       case 'history':
    41       case 'maintenance':
    42       case 'advanced_feature':
    43       case 'plugins_list':
    44       case 'plugins_update':
    45       case 'plugins_new':
    46       case 'plugin':
    47         return 5;
    48     }
    49   }
    50   return 0;
     4  include_once(PHPWG_ROOT_PATH.'admin/include/functions_themes.inc.php');
    515}
    52 
    536$themeconf = array(
    547  'template' => 'goto', /* Goto Admin template */
Note: See TracChangeset for help on using the changeset viewer.