function smarty_template_function_fe_fn_c_text_inline_1774553027562772e371cd06_40569116($_smarty_tpl,$params) { if (!is_callable('smarty_function_wiseMakeSearchUrl')) require_once '/Users/alan/htdocs/air/libs/plugins/function.wiseMakeSearchUrl.php'; if (!is_callable('smarty_modifier_wordtranscode')) require_once '/Users/alan/htdocs/air/libs/plugins/modifier.wordtranscode.php'; if (!is_callable('smarty_modifier_hilight_print')) require_once '/Users/alan/htdocs/air/libs/plugins/modifier.hilight_print.php'; $saved_tpl_vars = $_smarty_tpl->tpl_vars; $params = array_merge(array('query'=>'','sa'=>'','st'=>'','url'=>'','text'=>'','highlight'=>'','l'=>'','pl'=>'','tx'=>'','undecode'=>'','ltj'=>'l','laid'=>'','waplogo'=>'','dict'=>'','vmgdb'=>'','xse'=>''), $params); foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value); }?> <?php if ($_smarty_tpl->tpl_vars['query']->value) {?> <?php ob_start(); echo smarty_function_wiseMakeSearchUrl(array('word'=>$_smarty_tpl->tpl_vars['query']->value,'sa'=>"re_".((string)$_smarty_tpl->tpl_vars['alaData']->value['iteration']),'st'=>$_smarty_tpl->tpl_vars['st']->value),$_smarty_tpl); $_tmp9=ob_get_clean(); $_smarty_tpl->tpl_vars['url'] = new Smarty_Variable($_tmp9, null, 0);?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['url'] = new Smarty_Variable($_smarty_tpl->tpl_vars['url']->value, null, 0);?> <?php }?> <?php if (!$_smarty_tpl->tpl_vars['highlight']->value) {?> <?php $_smarty_tpl->tpl_vars['highlight'] = new Smarty_Variable($_smarty_tpl->tpl_vars['alaData']->value['hilightstr'], null, 0);?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['highlight'] = new Smarty_Variable(iconv('utf-8','gbk',$_smarty_tpl->tpl_vars['highlight']->value), null, 0);?> <?php }?> <?php if ($_smarty_tpl->tpl_vars['highlight']->value) {?> <?php ob_start(); echo htmlspecialchars_decode(smarty_modifier_wordtranscode(smarty_modifier_hilight_print(smarty_modifier_wordtranscode($_smarty_tpl->tpl_vars['text']->value,"UTF-8","GBK"),$_smarty_tpl->tpl_vars['highlight']->value),"GBK","UTF-8")); $_tmp10=ob_get_clean(); $_smarty_tpl->tpl_vars['tmpText'] = new Smarty_Variable($_tmp10, null, 0);?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['tmpText'] = new Smarty_Variable($_smarty_tpl->tpl_vars['text']->value, null, 0);?> <?php }?> <?php if ($_smarty_tpl->tpl_vars['url']->value) {?> <a href="<?php $_smarty_tpl->callTemplateFunction ('alaTcUrl', $_smarty_tpl, array('src'=>$_smarty_tpl->tpl_vars['url']->value,'undecode'=>$_smarty_tpl->tpl_vars['undecode']->value,'tj5'=>$_smarty_tpl->tpl_vars['ltj']->value,'laid'=>$_smarty_tpl->tpl_vars['laid']->value,'waplogo'=>$_smarty_tpl->tpl_vars['waplogo']->value,'dict'=>$_smarty_tpl->tpl_vars['dict']->value), false);?> " <?php if ($_smarty_tpl->tpl_vars['xse']->value) {?>data-xse="<?php echo $_smarty_tpl->tpl_vars['xse']->value;?> "<?php }?>><?php echo $_smarty_tpl->tpl_vars['tmpText']->value;?> </a> <?php } else { ?> <span><?php echo $_smarty_tpl->tpl_vars['tmpText']->value;?> </span> <?php }?> <?php foreach (Smarty::$global_tpl_vars as $key => $value){ if ($_smarty_tpl->tpl_vars[$key] === $value) $saved_tpl_vars[$key] = $value; } $_smarty_tpl->tpl_vars = $saved_tpl_vars; }
function smarty_template_function_fe_fn_c_text_inline_49074763255f3c84c5f78a4_14536676($_smarty_tpl,$params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; $params = array_merge(array('query'=>'','sa'=>'','st'=>'','url'=>'','text'=>'','highlight'=>'','l'=>'','pl'=>'','tx'=>'','undecode'=>'','ltj'=>'l','laid'=>'','waplogo'=>'','dict'=>'','vmgdb'=>'','xse'=>''), $params); foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value); }?> <?php if ($_smarty_tpl->tpl_vars['query']->value) {?> <?php ob_start(); echo smarty_function_wiseMakeSearchUrl(array('word'=>$_smarty_tpl->tpl_vars['query']->value,'sa'=>"re_".((string)$_smarty_tpl->tpl_vars['alaData']->value['iteration']),'st'=>$_smarty_tpl->tpl_vars['st']->value),$_smarty_tpl); $_tmp8=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['url'] = new Smarty_Variable($_tmp8, null, 0);?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['url'] = new Smarty_Variable($_smarty_tpl->tpl_vars['url']->value, null, 0);?> <?php }?> <?php if (!$_smarty_tpl->tpl_vars['highlight']->value) {?> <?php $_smarty_tpl->tpl_vars['highlight'] = new Smarty_Variable($_smarty_tpl->tpl_vars['alaData']->value['hilightstr'], null, 0);?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['highlight'] = new Smarty_Variable(iconv('utf-8','gbk',$_smarty_tpl->tpl_vars['highlight']->value), null, 0);?> <?php }?> <?php if ($_smarty_tpl->tpl_vars['highlight']->value) {?> <?php ob_start(); echo htmlspecialchars_decode(smarty_modifier_wordtranscode(smarty_modifier_hilight_print(smarty_modifier_wordtranscode($_smarty_tpl->tpl_vars['text']->value,"UTF-8","GBK"),$_smarty_tpl->tpl_vars['highlight']->value),"GBK","UTF-8")); $_tmp9=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['tmpText'] = new Smarty_Variable($_tmp9, null, 0);?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['tmpText'] = new Smarty_Variable($_smarty_tpl->tpl_vars['text']->value, null, 0);?> <?php }?> <?php if ($_smarty_tpl->tpl_vars['url']->value) {?> <a href="<?php $_smarty_tpl->_Function->callTemplateFunction('alaTcUrl', $_smarty_tpl, array('src'=>$_smarty_tpl->tpl_vars['url']->value,'undecode'=>$_smarty_tpl->tpl_vars['undecode']->value,'tj5'=>$_smarty_tpl->tpl_vars['ltj']->value,'laid'=>$_smarty_tpl->tpl_vars['laid']->value,'waplogo'=>$_smarty_tpl->tpl_vars['waplogo']->value,'dict'=>$_smarty_tpl->tpl_vars['dict']->value), true);?> " <?php if ($_smarty_tpl->tpl_vars['xse']->value) {?>data-xse="<?php echo $_smarty_tpl->tpl_vars['xse']->value;?> "<?php }?>><?php echo $_smarty_tpl->tpl_vars['tmpText']->value;?> </a> <?php } else { ?> <span><?php echo $_smarty_tpl->tpl_vars['tmpText']->value;?> </span> <?php }?> <?php foreach (Smarty::$global_tpl_vars as $key => $value){ if ($_smarty_tpl->tpl_vars[$key] === $value) $saved_tpl_vars[$key] = $value; } $_smarty_tpl->tpl_vars = $saved_tpl_vars; }