File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 128
128
129
129
// +-----------------------------------------------------------------------+
130
130
// | templates |
131
- $ my_template = '' ;
131
+ $ my_theme = '' ;
132
132
$ themes_html ='<select onchange="document.location = this.options[this.selectedIndex].value;"> ' ;
133
- foreach (get_pwg_themes () as $ pwg_template )
133
+ foreach (get_pwg_themes () as $ pwg_theme )
134
134
{
135
- $ selected = $ pwg_template == pwg_get_session_var ( 'multiview_theme ' , $ view_as_user [ ' template ' ]. ' / ' . $ view_as_user ['theme ' ] ) ? 'selected="selected" ' : '' ;
136
- $ my_template = $ selected == '' ? $ my_template : $ view_as_user [ ' template ' ]. ' /theme / ' .$ view_as_user ['theme ' ];
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_template
139
+ .$ my_url .'?theme= ' .$ pwg_theme
140
140
.'" ' .$ selected .'> '
141
- .$ pwg_template
141
+ .$ pwg_theme
142
142
.'</option> ' ;
143
143
}
144
144
$ themes_html .= '</select> ' ;
206
206
<title>Controller</title>
207
207
<?php
208
208
// Controller will be displayed with the **real admin template** (without Any if it has been removed)
209
- if ( $ my_template !== '' ) {
210
- $ my_template = get_root_url ().' template/ ' . $ my_template .'/theme.css ' ;
211
- echo '<link rel="stylesheet" type="text/css" href=" ' . $ my_template .'"> ' ;
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
?>
214
214
Original file line number Diff line number Diff line change 10
10
$ theme = pwg_get_session_var ( 'multiview_theme ' , '' );
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 ' , '' );
17
17
if ( !empty ($ lang ) )
You can’t perform that action at this time.
0 commit comments