1 {capture name='_smarty_debug' assign=debug_output}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5 <title>Smarty Debug Console</title>
6 <style type="text/css">
8 body, h1, h2, h3, td, th, p {
9 font-family: sans-serif;
20 background-color: #f0c040;
27 background-color: #9B410E;
32 border-top: 1px solid black;
61 font-family: monospace;
71 background-color: #eeeeee;
75 background-color: #fafafa;
94 #table_assigned_vars th {
99 #table_config_vars th {
108 <h1>Smarty {Smarty::SMARTY_VERSION} Debug Console
109 - {if isset($template_name)}{$template_name|debug_print_var nofilter} {/if}{if !empty($template_data)}Total Time {$execution_time|string_format:"%.5f"}{/if}</h1>
111 {if !empty($template_data)}
112 <h2>included templates & config files (load time in seconds)</h2>
114 {foreach $template_data as $template}
115 <font color=brown>{$template.name}</font>
116 <br> <span class="exectime">
117 (compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"})
124 <h2>assigned template variables</h2>
126 <table id="table_assigned_vars">
127 {foreach $assigned_vars as $vars}
128 <tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
129 <td><h3><font color=blue>${$vars@key}</font></h3>
130 {if isset($vars['nocache'])}<b>Nocache</b></br>{/if}
131 {if isset($vars['scope'])}<b>Origin:</b> {$vars['scope']|debug_print_var nofilter}{/if}
133 <td><h3>Value</h3>{$vars['value']|debug_print_var:10:80 nofilter}</td>
134 <td>{if isset($vars['attributes'])}<h3>Attributes</h3>{$vars['attributes']|debug_print_var nofilter} {/if}</td>
138 <h2>assigned config file variables</h2>
140 <table id="table_config_vars">
141 {foreach $config_vars as $vars}
142 <tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
143 <td><h3><font color=blue>#{$vars@key}#</font></h3>
144 {if isset($vars['scope'])}<b>Origin:</b> {$vars['scope']|debug_print_var nofilter}{/if}
146 <td>{$vars['value']|debug_print_var:10:80 nofilter}</td>
154 <script type="text/javascript">
156 {if $display_mode}{$id = "$offset$template_name"|md5}{/if}
157 _smarty_console = window.open("", "console{$id}", "width=1024,height=600,left={$offset},top={$offset},resizable,scrollbars=yes");
158 _smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}");
159 _smarty_console.document.close();