From ceb77253c30a0d0fb37d883685f0501d588caf78 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 15 Feb 2007 03:03:16 +0000 Subject: - plugins: added new action user_init - put in a new admin_multi_view:allows admins to change on the fly language/theme and view gallery as guest (useful for developers and just to show a 'new' way of using plugins) - removed some warnings from history.php and increased table width to 99% - remove unused admin language strings git-svn-id: http://piwigo.org/svn/trunk@1821 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/admin_multi_view/controller.php | 113 ++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 plugins/admin_multi_view/controller.php (limited to 'plugins/admin_multi_view/controller.php') diff --git a/plugins/admin_multi_view/controller.php b/plugins/admin_multi_view/controller.php new file mode 100644 index 000000000..a4566ed69 --- /dev/null +++ b/plugins/admin_multi_view/controller.php @@ -0,0 +1,113 @@ + + +'; +foreach (get_pwg_themes() as $pwg_template) +{ + $selected = $pwg_template == pwg_get_session_var( 'multiview_theme', $user['template'].'/'.$user['theme'] ) ? 'selected="selected"' : ''; + $themes_html .= + ''; +} +$themes_html .= ''; + +$lang_html='Language: '; +?> + + + +Controller + + + + + + +View as: +admin'; + else + echo 'guest'; +?> + +
+ + +
+ + + + + + + + \ No newline at end of file -- cgit v1.2.3