27/11/2012, 04:04:52
Malheureusement je n'y comprends pas grand chose. J'ai beau cherché sur google, je ne trouve pas de cas semblables.
Code :
[== Indéfini ==]
<?php $_smarty_tpl->_capture_stack[0][] = array('default', "testvar", null); ob_start(); ?><?php echo smarty_cms_function_menu(array('template'=>'cssmenu','collapse'=>'1','start_level'=>"3",'excludeprefix'=>'intranet_'),$_smarty_tpl);?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<?php if (isset($_smarty_tpl->tpl_vars['testvar']->value)&&$_smarty_tpl->tpl_vars['testvar']->value!=''){?>
<aside class='sidebar grid_3'><?php echo $_smarty_tpl->tpl_vars['testvar']->value;?>
</aside>
<?php }?>