本文整理匯總了PHP中smarty_function_counter函數的典型用法代碼示例。如果您正苦於以下問題:PHP smarty_function_counter函數的具體用法?PHP smarty_function_counter怎麽用?PHP smarty_function_counter使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了smarty_function_counter函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: content_56520ad532fd90_45041140
function content_56520ad532fd90_45041140($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\data\\localweb\\projects\\Prestashop\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
if (isset($_smarty_tpl->tpl_vars['new_products']->value) && $_smarty_tpl->tpl_vars['new_products']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('products' => $_smarty_tpl->tpl_vars['new_products']->value, 'class' => 'blocknewproducts tab-pane', 'id' => 'blocknewproducts', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
?>
<?php
} else {
?>
<ul id="blocknewproducts" class="blocknewproducts tab-pane<?php
if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
?>
active<?php
}
?>
">
<li class="alert alert-info"><?php
echo smartyTranslate(array('s' => 'No new products at this time.', 'mod' => 'blocknewproducts'), $_smarty_tpl);
?>
</li>
</ul>
<?php
}
}
開發者ID:najmeddine,項目名稱:prestashop,代碼行數:33,代碼來源:795a37669239d1085b1b102935d4571874ae6127.file.blocknewproducts_home.tpl.php
示例2: content_56e17f0a963108_81977006
function content_56e17f0a963108_81977006($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
}
if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('class' => 'homefeatured tab-pane', 'id' => 'homefeatured', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
?>
<?php
} else {
?>
<ul id='homefeatured' class="homefeatured tab-pane">
<li class="alert alert-info"><?php
echo smartyTranslate(array('s' => 'No featured products', 'mod' => 'homefeatured'), $_smarty_tpl);
?>
</li>
</ul>
<?php
}
}
開發者ID:evgrishin,項目名稱:se1614,代碼行數:25,代碼來源:200f03e1e0df21a4e8a58e4cd3e302a12085ecf3.file.homefeatured.tpl.cache.php
示例3: content_535564a4c0e6a1_89434722
function content_535564a4c0e6a1_89434722($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include '/Applications/MAMP/htdocs/prestashopPrueba/tools/smarty/plugins/function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
if (isset($_smarty_tpl->tpl_vars['new_products']->value) && $_smarty_tpl->tpl_vars['new_products']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('products' => $_smarty_tpl->tpl_vars['new_products']->value, 'class' => 'blocknewproducts tab-pane', 'id' => 'blocknewproducts', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
?>
<?php
} else {
?>
<ul id="blocknewproducts" class="blocknewproducts tab-pane<?php
if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
?>
active<?php
}
?>
">
<li class="alert alert-info"><?php
echo smartyTranslate(array('s' => 'No new products at this time.', 'mod' => 'blocknewproducts'), $_smarty_tpl);
?>
</li>
</ul>
<?php
}
}
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:33,代碼來源:361d01dc8d1a7ffa69e77408d1ff9a9a06a286f8.file.blocknewproducts_home.tpl.php
示例4: content_569cf3c4a6d6f2_12125080
function content_569cf3c4a6d6f2_12125080($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
require_once 'D:\\www\\demo\\smart_demo\\smarty\\plugins\\function.counter.php';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>counter計數器演示</h1>
<?php
echo smarty_function_counter(array('start' => 0, 'skip' => '2'), $_smarty_tpl);
?>
國內新聞<br>
<?php
echo smarty_function_counter(array(), $_smarty_tpl);
?>
國際新聞<br>
<?php
echo smarty_function_counter(array('print' => false), $_smarty_tpl);
?>
娛樂新聞<br>
<?php
echo smarty_function_counter(array(), $_smarty_tpl);
?>
體育新聞<br>
</body>
</html><?php
}
開發者ID:billywl,項目名稱:demo,代碼行數:33,代碼來源:fafae728d61354903b6726712a39f28ca1800e41_0.file.demo04.html.php
示例5: content_56e73a8e2e8aa8_81135887
function content_56e73a8e2e8aa8_81135887($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
if (isset($_smarty_tpl->tpl_vars['best_sellers']->value) && $_smarty_tpl->tpl_vars['best_sellers']->value) {
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('products' => $_smarty_tpl->tpl_vars['best_sellers']->value, 'class' => 'blockbestsellers tab-pane', 'id' => 'blockbestsellers', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
?>
<?php
} else {
?>
<ul id="blockbestsellers" class="blockbestsellers tab-pane<?php
if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
?>
active<?php
}
?>
">
<li class="alert alert-info"><?php
echo smartyTranslate(array('s' => 'No best sellers at this time.', 'mod' => 'blockbestsellers'), $_smarty_tpl);
?>
</li>
</ul>
<?php
}
}
開發者ID:evgrishin,項目名稱:se1614,代碼行數:31,代碼來源:10dbdac1fd3a1815905daa095e67ed5119a76741.file.blockbestsellers-home.tpl.cache.php
示例6: content_55ab4d05ac6d93_19506326
function content_55ab4d05ac6d93_19506326($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'F:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\modules\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('class' => 'homefeatured tab-pane', 'id' => 'homefeatured', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
?>
<?php
} else {
?>
<ul id="homefeatured" class="homefeatured tab-pane<?php
if (isset($_smarty_tpl->tpl_vars['active_ul']->value) && $_smarty_tpl->tpl_vars['active_ul']->value == 1) {
?>
active<?php
}
?>
">
<li class="alert alert-info"><?php
echo smartyTranslate(array('s' => 'No featured products at this time.', 'mod' => 'homefeatured'), $_smarty_tpl);
?>
</li>
</ul>
<?php
}
}
開發者ID:gks-stage,項目名稱:prestashop,代碼行數:33,代碼來源:0a8d0ba299309db5593b5741a893110b20e776bb.file.homefeatured.tpl.cache.php
示例7: content_530ffd720b2c36_60285950
function content_530ffd720b2c36_60285950($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('products' => $_smarty_tpl->tpl_vars['best_sellers']->value, 'class' => 'blockbestsellers tab-pane', 'id' => 'blockbestsellers', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
}
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:11,代碼來源:ac6e81db4cd571db73e45e41cd9822377a07b620.file.blockbestsellers-home.tpl.cache.php
示例8: content_530ff8ee843e41_36517892
function content_530ff8ee843e41_36517892($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_ul', 'assign' => 'active_ul'), $_smarty_tpl);
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('class' => 'homefeatured tab-pane', 'id' => 'homefeatured', 'active' => $_smarty_tpl->tpl_vars['active_ul']->value), 0);
}
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:11,代碼來源:3c75c409df64f460e0f8d8180c8d1b3e9dca37a4.file.homefeatured.tpl.php
示例9: content_56e73a8c17e819_45079050
function content_56e73a8c17e819_45079050($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php
echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
?>
</a></li><?php
}
開發者ID:evgrishin,項目名稱:se1614,代碼行數:19,代碼來源:f93f971b53cf575cdf99f4e2b558b9e67b0e0081.file.tab.tpl.cache.php
示例10: content_564ed806a6de77_72892687
function content_564ed806a6de77_72892687($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'E:\\Project\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php
echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
?>
</a></li><?php
}
開發者ID:vuduykhuong1412,項目名稱:GitHub,代碼行數:19,代碼來源:20cfc1d669a1d395833ceb8082840abaea2afdba.file.tab.tpl.php
示例11: content_530ff8ee85a436_08280408
function content_530ff8ee85a436_08280408($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#homefeatured" class="homefeatured"><?php
echo smartyTranslate(array('s' => 'Popular', 'mod' => 'homefeatured'), $_smarty_tpl);
?>
</a></li><?php
}
示例12: content_55ab4d059bc9b2_91936733
function content_55ab4d059bc9b2_91936733($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'F:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\modules\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers"><?php
echo smartyTranslate(array('s' => 'Best Sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
?>
</a></li><?php
}
開發者ID:gks-stage,項目名稱:prestashop,代碼行數:19,代碼來源:0306581664a26c191de4518741189c4710bbad2f.file.tab.tpl.cache.php
示例13: content_530ff8ec07e9e2_39568928
function content_530ff8ec07e9e2_39568928($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers"><?php
echo smartyTranslate(array('s' => 'Best Sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
?>
</a></li><?php
}
示例14: content_5652176635df85_83540862
function content_5652176635df85_83540862($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'C:\\Program Files (x86)\\EasyPHP-DevServer-14.1VC9\\data\\localweb\\projects\\Prestashop\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts"><?php
echo smartyTranslate(array('s' => 'New arrivals', 'mod' => 'blocknewproducts'), $_smarty_tpl);
?>
</a></li><?php
}
開發者ID:najmeddine,項目名稱:prestashop,代碼行數:19,代碼來源:c28ba80330e94f1917a4ec7a5bcd2f6575145955.file.tab.tpl.cache.php
示例15: content_56e73cc3efaad1_92375921
function content_56e73cc3efaad1_92375921($_smarty_tpl)
{
if (!is_callable('smarty_function_counter')) {
include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\function.counter.php';
}
echo smarty_function_counter(array('name' => 'active_li', 'assign' => 'active_li'), $_smarty_tpl);
?>
<li<?php
if ($_smarty_tpl->tpl_vars['active_li']->value == 1) {
?>
class="active"<?php
}
?>
><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers"><?php
echo smartyTranslate(array('s' => 'Best Sellers', 'mod' => 'blockbestsellers'), $_smarty_tpl);
?>
</a></li><?php
}
開發者ID:evgrishin,項目名稱:se1614,代碼行數:19,代碼來源:8a4e2cc93b7e60ec4c07effcbb5fccc0b97f4d7d.file.tab.tpl.cache.php