本文整理汇总了PHP中smarty_modifier_replace函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_modifier_replace函数的具体用法?PHP smarty_modifier_replace怎么用?PHP smarty_modifier_replace使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_modifier_replace函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_5590d88e2acc64_41465132
function content_5590d88e2acc64_41465132($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'C:\\wamp\\www\\prestashop2\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:prayasjain,项目名称:MyCollegeStore,代码行数:29,代码来源:e547077cff1fd15619b05fae45f8f750ec38a858.file.rules.tpl.php
示例2: content_568d501e399cc9_13343867
function content_568d501e399cc9_13343867($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:GthrDrllx,项目名称:GMShop,代码行数:29,代码来源:1708bd793a45486f9507e7e75cffd5740be78092.file.rules.tpl.php
示例3: content_561cd0c1b6fba1_79534802
function content_561cd0c1b6fba1_79534802($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:baljinderimpinge,项目名称:maestrano_presta,代码行数:29,代码来源:dc17d562c0db0a39cf392fbce528307651067230.file.rules.tpl.php
示例4: content_569a5316817ba9_93334649
function content_569a5316817ba9_93334649($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:HellbringerOnline,项目名称:prestashop,代码行数:29,代码来源:e29284b1afca55f0dbbf0488d02a70b60e76b7e1.file.rules.tpl.php
示例5: content_55a5132455e062_33163819
function content_55a5132455e062_33163819($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include '/var/www/html/Collivery-Prestashop/prestashop/tools/smarty/plugins/modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:Zash22,项目名称:Collivery-Prestashop,代码行数:29,代码来源:e7ed5002724afb70112258fac277d62d1966e09a.file.rules.tpl.php
示例6: content_56bb0210863ac9_98943493
function content_56bb0210863ac9_98943493($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:TiJester,项目名称:creative,代码行数:29,代码来源:0dc8aae704ec2c863d7e6e944c8158efb8beb8ec.file.rules.tpl.php
示例7: content_566d927903c487_20451193
function content_566d927903c487_20451193($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:isshean,项目名称:prestashop,代码行数:29,代码来源:604de16344a20b354b57513d1eecb020f424fb16.file.rules.tpl.php
示例8: content_56fb07e141ed13_37748776
function content_56fb07e141ed13_37748776($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'E:\\www\\etec\\terceiro-modulo\\MKT\\Aula05\\prestashop\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:edilsonribeiro,项目名称:ETEC,代码行数:29,代码来源:cb8d7bbbb456c690762634c28c12856b8b5a4d7b.file.rules.tpl.php
示例9: content_564727d0d27af8_50942454
function content_564727d0d27af8_50942454($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include '/home/activeciuk/www/bap/tools/smarty/plugins/modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
示例10: content_56a4d3ad6cc890_85613238
function content_56a4d3ad6cc890_85613238($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'C:\\xampp\\htdocs\\kertasmakanan\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:kelvinsugi,项目名称:kertasmakanan,代码行数:29,代码来源:f7749f11e537f75d2724088a217368a26e21be50.file.rules.tpl.php
示例11: smarty_modifier_replace
/**
* Smarty replace modifier plugin
*
* Type: modifier<br>
* Name: replace<br>
* Purpose: simple search/replace
*
* @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual)
* @author Monte Ohrt <monte at ohrt dot com>
* @author Uwe Tews
* @param string $string input string
* @param string $search text to search for
* @param string $replace replacement text
* @return string
*/
function smarty_modifier_replace($subject, $search, $replace)
{
if (!is_array($search) && is_array($replace)) {
return false;
}
if (is_array($subject)) {
// call mb_replace for each single string in $subject
foreach ($subject as &$string) {
$string =& smarty_modifier_replace($string, $search, $replace);
}
} elseif (is_array($search)) {
if (!is_array($replace)) {
foreach ($search as &$string) {
$subject = smarty_modifier_replace($subject, $string, $replace);
}
} else {
$n = max(count($search), count($replace));
while ($n--) {
$subject = smarty_modifier_replace($subject, current($search), current($replace));
next($search);
next($replace);
}
}
} else {
$parts = mb_split(preg_quote($search), $subject);
$subject = implode($replace, $parts);
}
return $subject;
}
示例12: content_561617a7564969_20234583
function content_561617a7564969_20234583($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'D:\\workspace\\php\\nagoya6\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:usky105,项目名称:nagoya6er,代码行数:29,代码来源:8d022ee8d4dab6222435b4c29606090f2ff45224.file.rules.tpl.php
示例13: content_56b45de7aee063_24777417
function content_56b45de7aee063_24777417($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\modifier.replace.php';
}
?>
<h3><?php
echo smartyTranslate(array('s' => 'Referral program rules', 'mod' => 'referralprogram'), $_smarty_tpl);
?>
</h3>
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value)) {
?>
<div id="referralprogram_rules">
<?php
if (isset($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value})) {
?>
<div class="rte"><?php
echo smarty_modifier_replace(smarty_modifier_replace($_smarty_tpl->tpl_vars['xml']->value->body->{$_smarty_tpl->tpl_vars['paragraph']->value}, "\\'", "'"), '\\"', '"');
?>
</div><?php
}
?>
</div>
<?php
}
}
开发者ID:evgrishin,项目名称:se1614,代码行数:29,代码来源:285db184e24ed2ac5a5d9fab5b6c7d92d901c949.file.rules.tpl.php
示例14: content_5662ad85301722_73204782
function content_5662ad85301722_73204782($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\modifier.replace.php';
}
$_smarty_tpl->properties['nocache_hash'] = '227845662ad852b3513_77845370';
echo $_smarty_tpl->tpl_vars['articleTitle']->value;
?>
<?php
echo smarty_modifier_replace($_smarty_tpl->tpl_vars['articleTitle']->value, 'Garden', 'Vineyard');
?>
<?php
echo smarty_modifier_replace($_smarty_tpl->tpl_vars['articleTitle']->value, ' ', ' ');
}
开发者ID:SUDIP2222,项目名称:Smarty-Basic,代码行数:16,代码来源:23b0b1b9324361481e3a324dc6948f7d56eeee34_0.file.index.tpl.php
示例15: content_56bb020a81f023_11835942
function content_56bb020a81f023_11835942($_smarty_tpl)
{
if (!is_callable('smarty_modifier_replace')) {
include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.replace.php';
}
if (!is_callable('smarty_function_counter')) {
include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\function.counter.php';
}
?>
<!-- MODULE Block cart -->
<?php
if (isset($_smarty_tpl->tpl_vars['blockcart_top']->value) && $_smarty_tpl->tpl_vars['blockcart_top']->value) {
?>
<div class="col-sm-4 clearfix<?php
if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {
?>
header_user_catalog<?php
}
?>
">
<?php
}
?>
<div class="shopping_cart">
<a href="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink($_smarty_tpl->tpl_vars['order_process']->value, true), ENT_QUOTES, 'UTF-8', true);
?>
" title="<?php
echo smartyTranslate(array('s' => 'View my shopping cart', 'mod' => 'blockcart'), $_smarty_tpl);
?>
" rel="nofollow">
<b><?php
echo smartyTranslate(array('s' => 'Cart', 'mod' => 'blockcart'), $_smarty_tpl);
?>
</b>
<span class="ajax_cart_quantity<?php
if ($_smarty_tpl->tpl_vars['cart_qties']->value == 0) {
?>
unvisible<?php
}
?>
"><?php
echo $_smarty_tpl->tpl_vars['cart_qties']->value;
?>
</span>
<span class="ajax_cart_product_txt<?php
if ($_smarty_tpl->tpl_vars['cart_qties']->value != 1) {
?>
unvisible<?php
}
?>
"><?php
echo smartyTranslate(array('s' => 'Product', 'mod' => 'blockcart'), $_smarty_tpl);
?>
</span>
<span class="ajax_cart_product_txt_s<?php
if ($_smarty_tpl->tpl_vars['cart_qties']->value < 2) {
?>
unvisible<?php
}
?>
"><?php
echo smartyTranslate(array('s' => 'Products', 'mod' => 'blockcart'), $_smarty_tpl);
?>
</span>
<span class="ajax_cart_total<?php
if ($_smarty_tpl->tpl_vars['cart_qties']->value == 0) {
?>
unvisible<?php
}
?>
">
<?php
if ($_smarty_tpl->tpl_vars['cart_qties']->value > 0) {
?>
<?php
if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
?>
<?php
$_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::BOTH_WITHOUT_SHIPPING'), null, 0);
?>
<?php
echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(false, $_smarty_tpl->tpl_vars['blockcart_cart_flag']->value)), $_smarty_tpl);
?>
<?php
} else {
?>
<?php
$_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::BOTH_WITHOUT_SHIPPING'), null, 0);
?>
<?php
echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['cart']->value->getOrderTotal(true, $_smarty_tpl->tpl_vars['blockcart_cart_flag']->value)), $_smarty_tpl);
?>
<?php
}
?>
<?php
}
//.........这里部分代码省略.........
开发者ID:TiJester,项目名称:creative,代码行数:101,代码来源:6377226f979300ca4f25a19f45a73c0abf136d6b.file.blockcart.tpl.php