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


PHP smarty_modifier_escape函数代码示例

本文整理汇总了PHP中smarty_modifier_escape函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_modifier_escape函数的具体用法?PHP smarty_modifier_escape怎么用?PHP smarty_modifier_escape使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了smarty_modifier_escape函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: content_56b45dfbc8f6b1_17603250

    function content_56b45dfbc8f6b1_17603250($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
开发者ID:evgrishin,项目名称:se1614,代码行数:28,代码来源:3a6fa13482b0b4150f214d85a40bb8d6210d78d2.file.shop_tree_node_folder.tpl.php

示例2: __toString

 function __toString()
 {
     global $prefs;
     TikiLib::lib('smarty')->loadPlugin('smarty_modifier_escape');
     if ($prefs['ajax_inline_edit'] != 'y') {
         return $this->inner === null ? '' : $this->inner;
     }
     // block = dialog goes to span as well
     $tag = $this->layout == 'block' ? 'div' : 'span';
     $fieldFetch = smarty_modifier_escape(json_encode($this->fieldFetchUrl));
     $objectStore = smarty_modifier_escape(json_encode($this->objectStoreUrl));
     $label = smarty_modifier_escape($this->label);
     $value = $this->inner;
     if (trim(strip_tags($value)) == '') {
         // When the value is empty, make sure it becomes visible/clickable
         $value .= '&nbsp;';
     }
     $class = "editable-inline";
     if ($this->layout == 'dialog') {
         $class = "editable-dialog";
     }
     if (!$this->fieldFetchUrl) {
         $class .= ' loaded';
     }
     $group = smarty_modifier_escape($this->group);
     return "<{$tag} class=\"{$class}\" data-field-fetch-url=\"{$fieldFetch}\" data-object-store-url=\"{$objectStore}\" data-group=\"{$group}\" data-label=\"{$label}\">{$value}</{$tag}>";
 }
开发者ID:rjsmelo,项目名称:tiki,代码行数:27,代码来源:Editable.php

示例3: content_530ff8ee5f1870_09504325

    function content_530ff8ee5f1870_09504325($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<div class="row">
	<div class="col-xs-12 col-md-6">
        <p class="payment_module">
            <a class="cheque" href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getModuleLink('cheque', 'payment', array(), true), 'html', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Pay by check.', 'mod' => 'cheque'), $_smarty_tpl);
        ?>
">
                <?php 
        echo smartyTranslate(array('s' => 'Pay by check', 'mod' => 'cheque'), $_smarty_tpl);
        ?>
 <span><?php 
        echo smartyTranslate(array('s' => '(order processing will be longer)', 'mod' => 'cheque'), $_smarty_tpl);
        ?>
</span>
            </a>
        </p>
    </div>
</div>
<?php 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:29,代码来源:c841783ca749f15e5d7a208350b1b3ea5881d82d.file.payment.tpl.php

示例4: content_563b564fc04e35_58744030

    function content_563b564fc04e35_58744030($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/home/sumit/public_html/html/ps-hotel-reservation-system/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
开发者ID:Rohit-jn,项目名称:hotelcommerce,代码行数:28,代码来源:8f3ac2b5989975a65f5f5151aa7d8c15f7cf83db.file.shop_tree_node_folder.tpl.php

示例5: content_530ff8ef5965c8_84751672

    function content_530ff8ef5965c8_84751672($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE ReferralProgram -->
<fieldset class="account_creation">
	<h3 class="page-subheading"><?php 
        echo smartyTranslate(array('s' => 'Referral program', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
</h3>
	<p class="form-group">
		<label for="referralprogram"><?php 
        echo smartyTranslate(array('s' => 'E-mail address of your sponsor', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
</label>
		<input class="form-control" type="text" size="52" maxlength="128" id="referralprogram" name="referralprogram" value="<?php 
        if (isset($_POST['referralprogram'])) {
            echo smarty_modifier_escape($_POST['referralprogram'], 'html', 'UTF-8');
        }
        ?>
" />
	</p>
</fieldset>
<!-- END : MODULE ReferralProgram --><?php 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:28,代码来源:db75869580b30ea56400def78696b24dfa28abbf.file.authentication.tpl.php

示例6: content_56fb07c49d1440_88414919

    function content_56fb07c49d1440_88414919($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'E:\\www\\etec\\terceiro-modulo\\MKT\\Aula05\\prestashop\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
开发者ID:edilsonribeiro,项目名称:ETEC,代码行数:28,代码来源:e4320f22b7c286174bee6d9cd00f59aaa0acf2e0.file.shop_tree_node_folder.tpl.php

示例7: content_530ff8ed4e11a4_68124514

    function content_530ff8ed4e11a4_68124514($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<!-- Block search module TOP -->
<div id="search_block_top" class="col-sm-4 clearfix">
	<form id="searchbox" method="get" action="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('search'), 'html', 'UTF-8');
        ?>
" >
		<input type="hidden" name="controller" value="search" />
		<input type="hidden" name="orderby" value="position" />
		<input type="hidden" name="orderway" value="desc" />
		<input class="search_query form-control" type="text" id="search_query_top" name="search_query" placeholder="<?php 
        echo smartyTranslate(array('s' => 'Search', 'mod' => 'blocksearch'), $_smarty_tpl);
        ?>
" value="<?php 
        echo stripslashes(smarty_modifier_escape($_smarty_tpl->tpl_vars['search_query']->value, 'htmlall', 'UTF-8'));
        ?>
" />
		<button type="submit" name="submit_search" class="btn btn-default button-search">
			<span><?php 
        echo smartyTranslate(array('s' => 'Search', 'mod' => 'blocksearch'), $_smarty_tpl);
        ?>
</span>
		</button>
	</form>
</div>
<!-- /Block search module TOP --><?php 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:32,代码来源:995e565b8c578d339536550c8a97d2ac6215ed6e.file.blocksearch-top.tpl.php

示例8: content_53ae6fda240e81_16756736

    function content_53ae6fda240e81_16756736($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vipinsg/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<li class="favoriteproducts">
	<a href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getModuleLink('favoriteproducts', 'account'), 'htmlall', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'My favorite products.', 'mod' => 'favoriteproducts'), $_smarty_tpl);
        ?>
">
		<?php 
        if (!$_smarty_tpl->tpl_vars['in_footer']->value) {
            ?>
<i class="icon-heart"></i><?php 
        }
        ?>
		<?php 
        echo smartyTranslate(array('s' => 'My favorite products.', 'mod' => 'favoriteproducts'), $_smarty_tpl);
        ?>

	</a>
</li>
<?php 
    }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:29,代码来源:849d67d83c43228932f8313faaceedcddb4e663c.file.my-account.tpl.php

示例9: content_55a5138833f5d9_83377830

    function content_55a5138833f5d9_83377830($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/html/Collivery-Prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
开发者ID:Zash22,项目名称:Collivery-Prestashop,代码行数:28,代码来源:14b9aef53104fe7cbb543ab3eff4a0a819ecaac5.file.shop_tree_node_folder.tpl.php

示例10: content_530ff8ef5fdf64_66891113

    function content_530ff8ef5fdf64_66891113($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE ReferralProgram -->
<p id="referralprogram">
	<i class="icon-flag"></i>
	<?php 
        echo smartyTranslate(array('s' => 'You have earned a voucher worth %s thanks to your sponsor!', 'sprintf' => $_smarty_tpl->tpl_vars['discount_display']->value, 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>

	<?php 
        echo smartyTranslate(array('s' => 'Enter voucher name %s to receive the reduction on this order.', 'sprintf' => $_smarty_tpl->tpl_vars['discount']->value->name, 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>

	<a href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getModuleLink('referralprogram', 'program', array(), true), 'html', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Referral program', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
" rel="nofollow"><?php 
        echo smartyTranslate(array('s' => 'View your referral program.', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
</a>
</p>
<br />
<!-- END : MODULE ReferralProgram --><?php 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:32,代码来源:66304a1863a995e7b66eb71a169b426823866ec8.file.shopping-cart.tpl.php

示例11: content_530ffd72566d03_57090784

    function content_530ffd72566d03_57090784($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<div id="contact-link">
	<a href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('contact', true), 'html', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontact'), $_smarty_tpl);
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontact'), $_smarty_tpl);
        ?>
</a>
</div>
<?php 
        if ($_smarty_tpl->tpl_vars['telnumber']->value) {
            ?>
	<span class="shop-phone">
		<i class="icon-phone"></i><?php 
            echo smartyTranslate(array('s' => 'Call us now toll free:', 'mod' => 'blockcontact'), $_smarty_tpl);
            ?>
 <strong><?php 
            echo $_smarty_tpl->tpl_vars['telnumber']->value;
            ?>
</strong>
	</span>
<?php 
        }
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:33,代码来源:2411abe37def60be6c65ffc55921d051da2502b5.file.nav.tpl.cache.php

示例12: content_568bfed219ca72_87821085

    function content_568bfed219ca72_87821085($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'C:\\wamp\\www\\prestashop_1.6.1.3_fr\\prestashop\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
开发者ID:EquipeK,项目名称:Test,代码行数:28,代码来源:de46e1929b232d0c3bae75c18009d710c41313f7.file.shop_tree_node_folder.tpl.php

示例13: smarty_function_favorite

function smarty_function_favorite($params, $smarty)
{
    global $prefs, $user;
    // Disabled, do nothing
    if (empty($user) || $prefs['user_favorites'] != 'y') {
        return;
    }
    $servicelib = TikiLib::lib('service');
    $smarty = TikiLib::lib('smarty');
    $smarty->loadPlugin('smarty_modifier_escape');
    $url = $servicelib->getUrl(array('controller' => 'favorite', 'action' => 'toggle', 'type' => $params['type'], 'object' => $params['object']));
    $url = smarty_modifier_escape($url, 'url');
    $e_user = smarty_modifier_escape($user);
    if (isset($params['label'])) {
        $label = $params['label'];
    } else {
        $label = tr('Favorite');
    }
    if (isset($params['button_classes'])) {
        $button_classes = $params['button_classes'];
    } else {
        $button_classes = "btn btn-default";
    }
    return '<a class="' . $button_classes . ' favorite-toggle" href="' . $url . '" data-key="favorite_' . $e_user . '"> ' . $label . '</a>';
}
开发者ID:rjsmelo,项目名称:tiki,代码行数:25,代码来源:function.favorite.php

示例14: content_530ff8edae3cc5_64390621

    function content_530ff8edae3cc5_64390621($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE WishList -->
<li class="lnk_wishlist">
	<a 
	href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['wishlist_link']->value, 'html', 'UTF-8');
        ?>
" 
	title="<?php 
        echo smartyTranslate(array('s' => 'My wishlists', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>
">
		<i class="icon-heart"></i>
		<span><?php 
        echo smartyTranslate(array('s' => 'My wishlists', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>
</span>
	</a>
</li>
<!-- END : MODULE WishList --><?php 
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:27,代码来源:614a845038ee923ffbbe80f4fe18f805bb65e127.file.my-account.tpl.php

示例15: smarty_block_accordion_group

function smarty_block_accordion_group($params, $content, $smarty, $repeat)
{
    if ($repeat) {
        return;
    }
    global $accordion_current_group, $accordion_position;
    if (empty($accordion_current_group)) {
        $accordion_current_group = uniqid();
        $accordion_position = 0;
    }
    $smarty->loadPlugin('smarty_modifier_escape');
    $title = smarty_modifier_escape($params['title']);
    $id = $accordion_current_group . '-' . ++$accordion_position;
    $first = $accordion_position == 1 ? 'in' : '';
    return <<<CONTENT
<div class="panel panel-default panel-accordian">
\t<div class="panel-heading">
\t\t<h4 class="panel-title">
\t\t\t<a class="accordion-toggle" data-toggle="collapse" data-parent="#{$accordion_current_group}" href="#{$id}">
\t\t\t\t{$title}
\t\t\t</a>
\t\t</h4>
\t</div>
\t<div id="{$id}" class="panel-collapse collapse {$first}">
\t\t<div class="panel-body">
\t\t\t{$content}
\t\t</div>
\t</div>
</div>
CONTENT;
}
开发者ID:linuxwhy,项目名称:tiki-1,代码行数:31,代码来源:block.accordion_group.php


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