Changeset 5128 for trunk/plugins/admin_multi_view
- Timestamp:
- Mar 13, 2010, 1:39:25 PM (15 years ago)
- Location:
- trunk/plugins/admin_multi_view
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_multi_view/controller.php
r4208 r5128 129 129 // +-----------------------------------------------------------------------+ 130 130 // | templates | 131 $my_t emplate = '';131 $my_theme = ''; 132 132 $themes_html='<select onchange="document.location = this.options[this.selectedIndex].value;">'; 133 foreach (get_pwg_themes() as $pwg_t emplate)134 { 135 $selected = $pwg_t emplate == pwg_get_session_var( 'multiview_theme', $view_as_user['template'].'/'.$view_as_user['theme'] ) ? 'selected="selected"' : '';136 $my_t emplate = $selected == '' ? $my_template : $view_as_user['template'].'/theme/'.$view_as_user['theme'];133 foreach (get_pwg_themes() as $pwg_theme) 134 { 135 $selected = $pwg_theme == pwg_get_session_var( 'multiview_theme', $view_as_user['theme'] ) ? 'selected="selected"' : ''; 136 $my_theme = $selected == '' ? $my_theme : 'themes/'.$view_as_user['theme']; 137 137 $themes_html .= 138 138 '<option value="' 139 .$my_url.'?theme='.$pwg_t emplate139 .$my_url.'?theme='.$pwg_theme 140 140 .'" '.$selected.'>' 141 .$pwg_t emplate141 .$pwg_theme 142 142 .'</option>'; 143 143 } … … 207 207 <?php 208 208 // Controller will be displayed with the **real admin template** (without Any if it has been removed) 209 if ( $my_t emplate !== '') {210 $my_t emplate = get_root_url().'template/'.$my_template.'/theme.css';211 echo '<link rel="stylesheet" type="text/css" href="' . $my_t emplate .'">';209 if ( $my_theme !== '') { 210 $my_theme = get_root_url().$my_theme.'/theme.css'; 211 echo '<link rel="stylesheet" type="text/css" href="' . $my_theme .'">'; 212 212 } 213 213 ?> -
trunk/plugins/admin_multi_view/is_admin.inc.php
r4208 r5128 11 11 if ( !empty($theme) ) 12 12 { 13 list($user['template'], $user['theme']) = explode('/', $theme);14 unset( $user['admin_template'],$user['admin_theme']);13 $user['theme'] = $theme; 14 unset($user['admin_theme']); 15 15 } 16 16 $lang = pwg_get_session_var( 'multiview_lang', '' );
Note: See TracChangeset
for help on using the changeset viewer.