本文整理汇总了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'];
?>
开发者ID:noikiy,项目名称:cxe,代码行数:31,代码来源:410e46309334af3339a4a1ca86c9e68bdefault.html-zh_CN.php
示例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'];
?>
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_fef1cc91baec8c8956e5fe7ca0956171.php
示例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
}
}
开发者ID:Calit2-UCI,项目名称:IoT_Map,代码行数:31,代码来源:c_4cd51f78d9049cb84c8f504bd629fe42.php
注:本文中的tpl_function_counter函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论