46 $attrs = $comp->_parse_attrs($tag_args);
49 if (empty($attrs[
'file'])) {
50 $comp->_syntax_error(
"missing 'file' attribute in includeq tag", E_USER_ERROR, __FILE__, __LINE__);
53 foreach ($attrs as $arg_name => $arg_value) {
54 if ($arg_name ==
'file') {
55 $include_file = $arg_value;
57 }
else if ($arg_name ==
'assign') {
58 $assign_var = $arg_value;
61 if (is_bool($arg_value)) {
62 $arg_value = $arg_value ?
'true' :
'false';
64 $arg_list[] =
"'$arg_name' => $arg_value";
69 if (isset($assign_var)) {
70 $output .=
"ob_start();\n";
74 $_params =
"array('smarty_include_tpl_file' => " . $include_file .
", 'smarty_include_vars' => array(" . implode(
',', (array)$arg_list) .
"))";
75 $output .=
"\$this->_smarty_include($_params);\n";
79 if (isset($assign_var)) {
80 $output .=
"\$this->assign(" . $assign_var .
", ob_get_contents()); ob_end_clean();\n";