function content_5662ae98c8dd79_28923777($_smarty_tpl) { if (!is_callable('smarty_modifier_spacify')) { require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.spacify.php'; } $_smarty_tpl->properties['nocache_hash'] = '54335662ae98bfd4d5_19176415'; ?> <?php echo $_smarty_tpl->tpl_vars['articleTitle']->value; ?> <?php echo smarty_modifier_spacify($_smarty_tpl->tpl_vars['articleTitle']->value); ?> <?php echo smarty_modifier_spacify($_smarty_tpl->tpl_vars['articleTitle']->value, "^^"); }
function content_55891b578f7861_97145642($_smarty_tpl) { if (!is_callable('smarty_modifier_spacify')) { include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.spacify.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/modifier.date_format.php'; } ?> <?php if (count($_smarty_tpl->tpl_vars['list']->value) > 0) { ?> <ul id="Comcon" scrollpagination="enabled"> <?php $_smarty_tpl->tpl_vars['items'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['items']->_loop = false; $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) { $_smarty_tpl->tpl_vars['items']->_loop = true; ?> <li id="Com_203"> <div class="COBLeft"><a href="#"><img src="<?php echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['logo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['userlogo']->value : $tmp; ?> " width="50" height="50"></a></div> <div class="COBRight"> <div class="COTitle"><a href="#"><?php echo smarty_modifier_truncate(smarty_modifier_spacify(mb_strtolower($_smarty_tpl->tpl_vars['items']->value['username'], 'UTF-8')), 30, ". . ."); ?> </a> <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['items']->value['addtime'], "%Y-%m-%d %H:%M:%S"); ?> </div> <div class="COLevel"><span class="Level8"></span>评分: <i><?php echo $_smarty_tpl->tpl_vars['items']->value['point']; ?> </i><?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['name'] = 'loop'; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['items']->value['point']) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['loop']['total']; ?> <div class="star_div" style="float:left;width:15px;"><img src="<?php echo $_smarty_tpl->tpl_vars['siteurl']->value; ?> /templates/<?php echo $_smarty_tpl->tpl_vars['tempdir']->value; ?> /public/images/xinxin01.png" width="13" height="13"></div> <?php } } ?> </div> <div class="COLevel"><span class="Level8"></span>菜品:<em><?php echo $_smarty_tpl->tpl_vars['items']->value['name']; ?> </em></div> <div class="COInfo"><?php echo $_smarty_tpl->tpl_vars['items']->value['content']; ?> </div> </div><div style="clear:both;"></div> </li> <?php } ?> </ul> <div class="ajaxpage"> <?php echo $_smarty_tpl->tpl_vars['pagecontent']->value; ?> </div> <?php } else { ?> 暂无评价 <?php } }
echo is_array($_tmp = $this->_tpl_vars['bb']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp); ?> <h1>nl2br 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['art']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp); ?> <h1>regex_replace 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['cc']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(\\d\\d\\d\\d)/", "这里有四个数") : smarty_modifier_regex_replace($_tmp, "/(\\d\\d\\d\\d)/", "这里有四个数"); ?> <h1>spacify 使用</h1> <?php echo is_array($_tmp = 'abcd') ? $this->_run_mod_handler('spacify', true, $_tmp, "^_^") : smarty_modifier_spacify($_tmp, "^_^"); ?> <h1>strip 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['dd']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp); ?> <h1>truncate 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['ee']) ? $this->_run_mod_handler('truncate', true, $_tmp, 10) : smarty_modifier_truncate($_tmp, 10); ?> <h1>truncateutf8 使用</h1>