当前位置: 首页>>代码示例>>PHP>>正文


PHP smarty_function_counter函数代码示例

本文整理汇总了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 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:19,代码来源:c63d80a4f883867fd007ec4a931c0d3c8f6f4f58.file.tab.tpl.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 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:19,代码来源:35e09147918ff06dae894d40108c59e6ed0341b0.file.tab.tpl.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


注:本文中的smarty_function_counter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。