Ignore:
Timestamp:
Feb 28, 2008, 3:41:48 AM (17 years ago)
Author:
rvelices
Message:
  • migrate many templates to smarty
Location:
trunk/plugins/admin_multi_view
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/admin_multi_view/controller.php

    r2127 r2223  
    1111  pwg_unset_session_var( 'multiview_show_queries' );
    1212  pwg_unset_session_var( 'multiview_debug_l10n' );
     13  pwg_unset_session_var( 'multiview_debug_template' );
    1314?>
    1415
     
    6970}
    7071
     72
     73if ( isset($_GET['debug_template']) )
     74{
     75  if ( $_GET['debug_template']>0 )
     76    pwg_set_session_var( 'multiview_debug_template', 1 );
     77  else
     78    pwg_unset_session_var( 'multiview_debug_template' );
     79  $refresh_main = true;
     80}
     81
    7182$my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__FILE__);
    7283$my_template = '';
     
    110121
    111122$debug_l10n_html='';
    112 if (!$conf['show_queries'])
     123if (!$conf['debug_l10n'])
    113124{
    114125  $debug_l10n_html = '<br/>';
     
    118129    $debug_l10n_html.='<a href="'.$my_url.'?debug_l10n=0">Revert debug language</a>';
    119130}
     131
     132$debug_template_html='';
     133if (!$conf['debug_template'])
     134{
     135  $debug_template_html = '<br/>';
     136  if ( !pwg_get_session_var( 'multiview_debug_template', 0 ) )
     137    $debug_template_html.='<a href="'.$my_url.'?debug_template=1">Debug template</a>';
     138  else
     139    $debug_template_html.='<a href="'.$my_url.'?debug_template=0">Revert debug template</a>';
     140}
     141
    120142?>
    121143<html>
     
    157179<?php echo $show_queries_html; ?>
    158180<?php echo $debug_l10n_html; ?>
     181<?php echo $debug_template_html; ?>
    159182
    160183<script type="text/javascript">
  • trunk/plugins/admin_multi_view/is_admin.inc.php

    r2108 r2223  
    2424  if (pwg_get_session_var( 'multiview_debug_l10n', 0 ))
    2525    $conf['debug_l10n'] = true;
     26  if (pwg_get_session_var( 'multiview_debug_template', 0 ))
     27    $conf['debug_template'] = true;
    2628}
    2729
Note: See TracChangeset for help on using the changeset viewer.