本文整理汇总了PHP中tpl_function_counter函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_function_counter函数的具体用法?PHP tpl_function_counter怎么用?PHP tpl_function_counter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_function_counter函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: is_numeric
?>
</td> </tr> <?php
} else {
?>
<td><a href="<?php
echo "gallery-{$this->_vars['childId']}", is_numeric($this->_vars['childId']) && 'index' == $this->_vars['setting']['view'] || !$this->_vars['setting']['view'] ? '' : '-' . $this->_vars['setting']['view'], '.html';
?>
"><?php
echo $this->_vars['child']['label'];
?>
</a> <?php
echo $this->_vars['setting']['page_devide'];
?>
</td> <?php
}
echo tpl_function_counter(array('assign' => "result", 'print' => false), $this);
}
}
?>
</tbody> </table> <?php
}
?>
</li> <?php
} else {
?>
<li class="c-cat-depth-1"><a href="<?php
echo "gallery-{$this->_vars['parentId']}", is_numeric($this->_vars['parentId']) && 'index' == $this->_vars['setting']['view'] || !$this->_vars['setting']['view'] ? '' : '-' . $this->_vars['setting']['view'], '.html';
?>
"><?php
echo $this->_vars['parent']['label'];
?>
示例2: l
?>
</th>
<th class=""><?php
echo l('field_name', 'uploads', '', 'text', array());
?>
</th>
<th class="w70"><?php
echo l('field_wm_type', 'uploads', '', 'text', array());
?>
</th>
<th class="w70"> </th>
</tr>
<?php
if (is_array($this->_vars['watermarks']) and count((array) $this->_vars['watermarks'])) {
foreach ((array) $this->_vars['watermarks'] as $this->_vars['item']) {
echo tpl_function_counter(array('print' => false, 'assign' => counter), $this);
?>
<tr<?php
if (!($this->_vars['counter'] % 2)) {
?>
class="zebra"<?php
}
?>
>
<td class="first"><b><?php
echo $this->_vars['item']['gid'];
?>
</b></td>
<td><?php
echo $this->_vars['item']['name'];
?>
示例3: tpl_function_counter
<?php
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.seolink.php';
$this->register_function("seolink", "tpl_function_seolink");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.counter.php';
$this->register_function("counter", "tpl_function_counter");
/* V2.10 Template Lite 4 January 2007 (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-11-08 22:34:55 Pacific Standard Time */
?>
<ul>
<?php
echo tpl_function_counter(array('start' => 0, 'print' => false), $this);
if (is_array($this->_vars['content_tree']) and count((array) $this->_vars['content_tree'])) {
foreach ((array) $this->_vars['content_tree'] as $this->_vars['key'] => $this->_vars['item']) {
?>
<li<?php
if ($this->_vars['item']['active']) {
?>
class="active"<?php
}
?>
><a href="<?php
echo tpl_function_seolink(array('module' => 'content', 'method' => 'view', 'data' => $this->_vars['item']), $this);
?>
"><?php
echo $this->_vars['item']['title'];
?>
</a></li>
<?php
}
}