diff --git a/smarty/libs/debug.tpl b/smarty/libs/debug.tpl index c05ef5d0..2a456ca9 100644 --- a/smarty/libs/debug.tpl +++ b/smarty/libs/debug.tpl @@ -1,14 +1,10 @@ -{* Smarty *} -{* debug.tpl, last updated version 2.1.0 *} -{assign_debug_info} -{capture assign=debug_output} +{capture name='_smarty_debug' assign=debug_output} Smarty Debug Console -{literal} {/literal} + -

Smarty Debug Console

+

Smarty Debug Console - Total Time {$execution_time|string_format:"%.5f"}

included templates & config files (load time in seconds)

-{section name=templates loop=$_debug_tpls} - {section name=indent loop=$_debug_tpls[templates].depth}   {/section} - - {$_debug_tpls[templates].filename|escape:html} - {if isset($_debug_tpls[templates].exec_time)} - - ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}) - {if %templates.index% eq 0}(total){/if} - - {/if} -
-{sectionelse} -

no templates included

-{/section} +{foreach $template_data as $template} + {$template.name} + + (compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"}) + +
+{/foreach}

assigned template variables

- {section name=vars loop=$_debug_keys} - - - - {sectionelse} - - {/section} + {foreach $assigned_vars as $vars} + + + + {/foreach}
{ldelim}${$_debug_keys[vars]|escape:'html'}{rdelim}{$_debug_vals[vars]|@debug_print_var}

no template variables assigned

${$vars@key|escape:'html'}{$vars|debug_print_var}

assigned config file variables (outer template scope)

- {section name=config_vars loop=$_debug_config_keys} - - - - {sectionelse} - - {/section} + {foreach $config_vars as $vars} + + + + {/foreach} +
{ldelim}#{$_debug_config_keys[config_vars]|escape:'html'}#{rdelim}{$_debug_config_vals[config_vars]|@debug_print_var}

no config vars assigned

{$vars@key|escape:'html'}{$vars|debug_print_var}
{/capture} -{if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"} - {$debug_output} -{else} -{/if} \ No newline at end of file