File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 128128
129129// +-----------------------------------------------------------------------+
130130// | templates |
131- $ my_template = '' ;
131+ $ my_theme = '' ;
132132$ 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 )
134134{
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 ' ];
137137 $ themes_html .=
138138 '<option value=" '
139- .$ my_url .'?theme= ' .$ pwg_template
139+ .$ my_url .'?theme= ' .$ pwg_theme
140140 .'" ' .$ selected .'> '
141- .$ pwg_template
141+ .$ pwg_theme
142142 .'</option> ' ;
143143}
144144$ themes_html .= '</select> ' ;
206206<title>Controller</title>
207207<?php
208208// 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 .'"> ' ;
212212}
213213?>
214214
Original file line number Diff line number Diff line change 1010 $ theme = pwg_get_session_var ( 'multiview_theme ' , '' );
1111 if ( !empty ($ theme ) )
1212 {
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 ' ]);
1515 }
1616 $ lang = pwg_get_session_var ( 'multiview_lang ' , '' );
1717 if ( !empty ($ lang ) )
You can’t perform that action at this time.
0 commit comments