aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_multi_view
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/admin_multi_view')
-rw-r--r--plugins/admin_multi_view/controller.php24
-rw-r--r--plugins/admin_multi_view/is_admin.inc.php4
2 files changed, 26 insertions, 2 deletions
diff --git a/plugins/admin_multi_view/controller.php b/plugins/admin_multi_view/controller.php
index 88b22f2e2..d2cd612c2 100644
--- a/plugins/admin_multi_view/controller.php
+++ b/plugins/admin_multi_view/controller.php
@@ -11,6 +11,7 @@ if (!is_admin() or !function_exists('multiview_user_init') )
pwg_unset_session_var( 'multiview_show_queries' );
pwg_unset_session_var( 'multiview_debug_l10n' );
pwg_unset_session_var( 'multiview_debug_template' );
+ pwg_unset_session_var( 'multiview_template_combine_files' );
pwg_unset_session_var( 'multiview_no_history' );
?>
@@ -85,6 +86,16 @@ if ( isset($_GET['debug_template']) )
$refresh_main = true;
}
+if ( isset($_GET['template_combine_files']) )
+{
+ if ( $_GET['template_combine_files']==0 )
+ pwg_set_session_var( 'multiview_template_combine_files', 0 );
+ else
+ pwg_unset_session_var( 'multiview_template_combine_files' );
+ $refresh_main = true;
+}
+
+
if ( isset($_GET['no_history']) )
{
if ( $_GET['no_history']>0 )
@@ -194,6 +205,17 @@ if (!$conf['debug_template'])
}
// +-----------------------------------------------------------------------+
+// | template combine files |
+$template_combine_files_html='';
+if ($conf['template_combine_files'])
+{
+ if ( pwg_get_session_var( 'multiview_template_combine_files', 1 ) )
+ $template_combine_files_html.='<a href="'.$my_url.'?template_combine_files=0">Don\'t combine js&amp;css</a>';
+ else
+ $template_combine_files_html.='<a href="'.$my_url.'?template_combine_files=1">Combine js&amp;css</a>';
+}
+
+// +-----------------------------------------------------------------------+
// | no history |
$no_history_html='';
if ( !pwg_get_session_var( 'multiview_no_history', 0 ) )
@@ -224,7 +246,7 @@ if (window.opener==null) {
<tr><td>Lang</td><td><?php echo $lang_html; ?></td></tr>
</table>
-<?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $no_history_html) ); ?>
+<?php echo implode( "<br/>\n", array($show_queries_html, $debug_l10n_html, $debug_template_html, $template_combine_files_html, $no_history_html) ); ?>
<script type="text/javascript">
<?php
diff --git a/plugins/admin_multi_view/is_admin.inc.php b/plugins/admin_multi_view/is_admin.inc.php
index fbadada3a..df9e91276 100644
--- a/plugins/admin_multi_view/is_admin.inc.php
+++ b/plugins/admin_multi_view/is_admin.inc.php
@@ -25,7 +25,9 @@ if (! defined('MULTIVIEW_CONTROLLER') )
$conf['debug_l10n'] = true;
if (pwg_get_session_var( 'multiview_debug_template', 0 ))
$conf['debug_template'] = true;
- if (pwg_get_session_var( 'multiview_no_history', 0 ))
+ if (!pwg_get_session_var( 'multiview_template_combine_files', 1 ))
+ $conf['template_combine_files'] = false;
+ if (pwg_get_session_var( 'multiview_no_history', 0 ))
{
add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) );
}