當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smartyTranslate函數代碼示例

本文整理匯總了PHP中smartyTranslate函數的典型用法代碼示例。如果您正苦於以下問題:PHP smartyTranslate函數的具體用法?PHP smartyTranslate怎麽用?PHP smartyTranslate使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了smartyTranslate函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: content_5627a110d9faf0_87003814

    function content_5627a110d9faf0_87003814($_smarty_tpl)
    {
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('stf_secure_key' => $_smarty_tpl->tpl_vars['stf_secure_key']->value), $_smarty_tpl);
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'stf_msg_success'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_success'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Your e-mail has been sent successfully', 'mod' => 'sendtoafriend', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_success'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'stf_msg_error'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_error'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Your e-mail could not be sent. Please check the e-mail address and try again.', 'mod' => 'sendtoafriend', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_error'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'stf_msg_title'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_title'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'Send to a friend', 'mod' => 'sendtoafriend', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_title'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'stf_msg_required'));
        $_block_repeat = true;
        echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_required'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo smartyTranslate(array('s' => 'You did not fill required fields', 'mod' => 'sendtoafriend', 'js' => 1), $_smarty_tpl);
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'stf_msg_required'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
開發者ID:zangles,項目名稱:lennyba,代碼行數:60,代碼來源:41a43543bd80fdf8c069fa52ebd89f3e21a2d77f.file.sendtoafriend-extra.tpl.php

示例2: content_55a513cc48c911_02559945

    function content_55a513cc48c911_02559945($_smarty_tpl)
    {
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['controller']->value) && !empty($_smarty_tpl->tpl_vars['controller']->value) && $_smarty_tpl->tpl_vars['controller']->value != 'adminnotfound') {
            ?>
	<h1><?php 
            echo smartyTranslate(array('s' => 'The controller %s is missing or invalid.', 'sprintf' => $_smarty_tpl->tpl_vars['controller']->value), $_smarty_tpl);
            ?>
</h1>
<?php 
        }
        ?>
<a class="btn btn-default" href="javascript:window.history.back();">
	<i class="icon-arrow-left"></i>
	<?php 
        echo smartyTranslate(array('s' => 'Back to the previous page'), $_smarty_tpl);
        ?>

</a>
<a class="btn btn-default" href="index.php">
	<i class="icon-dashboard"></i>
	<?php 
        echo smartyTranslate(array('s' => 'Go to the dashboard'), $_smarty_tpl);
        ?>

</a><?php 
    }
開發者ID:Zash22,項目名稱:Collivery-Prestashop,代碼行數:29,代碼來源:bed0bb26a7e272a33a6bea41cedea155f2ecce14.file.content.tpl.php

示例3: content_565352394a61c6_58213472

    function content_565352394a61c6_58213472($_smarty_tpl)
    {
        ?>
<a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
" class="delete" title="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
"
	<?php 
        if (in_array($_smarty_tpl->tpl_vars['id_shop']->value, $_smarty_tpl->tpl_vars['shops_having_dependencies']->value)) {
            ?>
		onclick="jAlert('<?php 
            echo smartyTranslate(array('s' => 'You cannot delete this shop\'s (customer and/or order dependency)', 'js' => 1), $_smarty_tpl);
            ?>
'); return false;"
	<?php 
        } elseif (isset($_smarty_tpl->tpl_vars['confirm']->value)) {
            ?>
		onclick="if (confirm('<?php 
            echo $_smarty_tpl->tpl_vars['confirm']->value;
            ?>
')){return true;}else{event.stopPropagation(); event.preventDefault();};"
	<?php 
        }
        ?>
>
	<i class="icon-trash"></i> <?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);
        ?>

</a><?php 
    }
開發者ID:nagyarpad,項目名稱:flowershop,代碼行數:34,代碼來源:2f1c762def961a9e0d3c35c4c34d11914547f5ba.file.list_action_delete.tpl.php

示例4: content_5355649cdbb1a6_08530923

    function content_5355649cdbb1a6_08530923($_smarty_tpl)
    {
        ?>
<div id="container" class="row">
	<div class="sidebar navigation col-md-3">
		<nav class="list-group categorieList">
		<?php 
        if (count($_smarty_tpl->tpl_vars['modules']->value)) {
            ?>
			<?php 
            $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['module']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['modules']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                $_smarty_tpl->tpl_vars['module']->_loop = true;
                ?>
				<?php 
                if ($_smarty_tpl->tpl_vars['module_instance']->value[$_smarty_tpl->tpl_vars['module']->value['name']]) {
                    ?>
					<a class="list-group-item<?php 
                    if ($_smarty_tpl->tpl_vars['current_module_name']->value && $_smarty_tpl->tpl_vars['current_module_name']->value == $_smarty_tpl->tpl_vars['module']->value['name']) {
                        ?>
 active<?php 
                    }
                    ?>
" href="<?php 
                    echo $_smarty_tpl->tpl_vars['current']->value;
                    ?>
&amp;token=<?php 
                    echo $_smarty_tpl->tpl_vars['token']->value;
                    ?>
&amp;module=<?php 
                    echo $_smarty_tpl->tpl_vars['module']->value['name'];
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['module_instance']->value[$_smarty_tpl->tpl_vars['module']->value['name']]->displayName;
                    ?>
</a>
				<?php 
                }
                ?>
			<?php 
            }
            ?>
		<?php 
        } else {
            ?>
			<?php 
            echo smartyTranslate(array('s' => 'No module has been installed.'), $_smarty_tpl);
            ?>

		<?php 
        }
        ?>
		</nav>
	</div><?php 
    }
開發者ID:dev-lav,項目名稱:htdocs,代碼行數:60,代碼來源:af6e996e24b352c07d6b881e2b1f60a3576889f4.file.menu.tpl.php

示例5: content_56520ae05a3796_08859220

    function content_56520ae05a3796_08859220($_smarty_tpl)
    {
        ?>
<div id="contact-link">
	<a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('contact', true), ENT_QUOTES, 'UTF-8', true);
        ?>
" 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:', 'mod' => 'blockcontact'), $_smarty_tpl);
            ?>
 <strong><?php 
            echo $_smarty_tpl->tpl_vars['telnumber']->value;
            ?>
</strong>
	</span>
<?php 
        }
        ?>
</div><?php 
    }
開發者ID:najmeddine,項目名稱:prestashop,代碼行數:32,代碼來源:5d9b34d42285939213ec749f74b8d95fb0f41851.file.nav.tpl.php

示例6: content_56520a4d0c0694_06582194

    function content_56520a4d0c0694_06582194($_smarty_tpl)
    {
        ?>
<div class="panel">
    <h3>
        <i class="icon-picture"></i> <?php 
        echo $_smarty_tpl->tpl_vars['add_new_theme_label']->value;
        ?>
 <?php 
        if ($_smarty_tpl->tpl_vars['context_mode']->value == Context::MODE_HOST) {
            echo smartyTranslate(array('s' => '(Advanced)'), $_smarty_tpl);
        }
        ?>
    </h3>
    <p><?php 
        echo smartyTranslate(array('s' => 'Duplicate an existing theme and edit it; or create a new theme from scratch! Recommended for advanced users only.'), $_smarty_tpl);
        ?>
</p>
    <a class="btn btn-default" href="<?php 
        echo $_smarty_tpl->tpl_vars['add_new_theme_href']->value;
        ?>
"><i class="icon-plus"></i> <?php 
        echo $_smarty_tpl->tpl_vars['add_new_theme_label']->value;
        ?>
</a>
</div>
<?php 
    }
開發者ID:najmeddine,項目名稱:prestashop,代碼行數:28,代碼來源:c7fe277727ec47a86fa625b8ddc9f13779d4f91a.file.importtheme_view.tpl.php

示例7: content_566d92791a03a9_35555749

    function content_566d92791a03a9_35555749($_smarty_tpl)
    {
        ?>

<!-- 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 htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('referralprogram', 'program', array(), true), ENT_QUOTES, 'UTF-8', true);
        ?>
" 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:isshean,項目名稱:prestashop,代碼行數:29,代碼來源:66304a1863a995e7b66eb71a169b426823866ec8.file.shopping-cart.tpl.php

示例8: 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

示例9: content_56671907ab8e49_95694944

    function content_56671907ab8e49_95694944($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['category']->value->id == 1 || $_smarty_tpl->tpl_vars['nb_products']->value == 0) {
            ?>
	<?php 
            echo smartyTranslate(array('s' => 'Žádné produkty'), $_smarty_tpl);
            ?>

<?php 
        } else {
            ?>
	<?php 
            if ($_smarty_tpl->tpl_vars['nb_products']->value == 1) {
                ?>
		<?php 
                echo smartyTranslate(array('s' => '%d', 'sprintf' => $_smarty_tpl->tpl_vars['nb_products']->value), $_smarty_tpl);
                ?>
<span class="w-normal"> <?php 
                echo smartyTranslate(array('s' => 'Produkt'), $_smarty_tpl);
                ?>
</span>
	<?php 
            } else {
                ?>
		<?php 
                echo smartyTranslate(array('s' => '%d', 'sprintf' => $_smarty_tpl->tpl_vars['nb_products']->value), $_smarty_tpl);
                ?>
<span class="w-normal"> <?php 
                echo smartyTranslate(array('s' => 'Produktů'), $_smarty_tpl);
                ?>
</span>
	<?php 
            }
        }
    }
開發者ID:h0n24,項目名稱:leodig,代碼行數:35,代碼來源:418c32221196f077d6151ba1aaba256bc5b10c96.file.category-count.tpl.php

示例10: content_560ec479884433_70046572

    function content_560ec479884433_70046572($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['category']->value->id == 1 || $_smarty_tpl->tpl_vars['nb_products']->value == 0) {
            ?>
	<?php 
            echo smartyTranslate(array('s' => 'There are no products in  this category'), $_smarty_tpl);
            ?>

<?php 
        } else {
            ?>
	<?php 
            if ($_smarty_tpl->tpl_vars['nb_products']->value == 1) {
                ?>
		<?php 
                echo smartyTranslate(array('s' => 'There is %d product.', 'sprintf' => $_smarty_tpl->tpl_vars['nb_products']->value), $_smarty_tpl);
                ?>

	<?php 
            } else {
                ?>
		<?php 
                echo smartyTranslate(array('s' => 'There are %d products.', 'sprintf' => $_smarty_tpl->tpl_vars['nb_products']->value), $_smarty_tpl);
                ?>

	<?php 
            }
        }
    }
開發者ID:jep004,項目名稱:prestashop,代碼行數:29,代碼來源:d8e11efc62e1a36dd442acc7ffe6d1cb186f7586.file.category-count.tpl.php

示例11: content_5667e30200d5f9_27925166

    function content_5667e30200d5f9_27925166($_smarty_tpl)
    {
        ?>
<div class="form-group">
	<label class="control-label col-lg-3">
		<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="<?php 
        echo smartyTranslate(array('s' => 'In the default theme, these images will be displayed in the top horizontal menu; but only if the category is one of the first level (see Top horizontal menu module for more info).', 'mod' => 'blockcategories'), $_smarty_tpl);
        ?>
">
			<?php 
        echo smartyTranslate(array('s' => 'Menu thumbnails', 'mod' => 'blockcategories'), $_smarty_tpl);
        ?>

		</span>
	</label>
	<div class="col-lg-4">
		<?php 
        echo $_smarty_tpl->tpl_vars['helper']->value;
        ?>

	</div>
	<div class="col-lg-6 col-lg-offset-3">
		<div class="help-block"><?php 
        echo smartyTranslate(array('s' => 'Recommended dimensions (for the default theme): %1spx x %2spx', 'sprintf' => array($_smarty_tpl->tpl_vars['format']->value['width'], $_smarty_tpl->tpl_vars['format']->value['height'])), $_smarty_tpl);
        ?>
</div>
	</div>
</div>
<?php 
    }
開發者ID:vuduykhuong1412,項目名稱:GitHub,代碼行數:30,代碼來源:db240254c19219ef0ceb079f9d94693cd9974ecd.file.blockcategories_admin.tpl.php

示例12: 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

示例13: 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

示例14: content_56617b1b4191c3_48739802

    function content_56617b1b4191c3_48739802($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable('<strong><span class="module-name-placeholder"></span></strong>', null, 0);
        ?>

<div class="modal-body">

	<div class="alert alert-warning">
		<h4><?php 
        echo smartyTranslate(array('s' => 'You are about to install "%s", a module that could not be securely identified by PrestaShop.', 'sprintf' => $_smarty_tpl->tpl_vars['module_name']->value), $_smarty_tpl);
        ?>
</h4>

		<p><?php 
        echo smartyTranslate(array('s' => 'This generally happens when the module is not distributed through our official marketplace, PrestaShop Addons - or when your server failed to communicate with PrestaShop Addons.'), $_smarty_tpl);
        ?>

		<?php 
        echo smartyTranslate(array('s' => 'Since you did not download the module from PrestaShop Addons, we cannot assert that the module is safe (i.e. that it is not adding some undisclosed functionality like backdoors, ads, hidden links, spam, etc.).'), $_smarty_tpl);
        ?>

		<strong><?php 
        echo smartyTranslate(array('s' => 'Use at your own risk.'), $_smarty_tpl);
        ?>
</strong></p>
	</div>

	<h3><?php 
        echo smartyTranslate(array('s' => 'What Should I Do?'), $_smarty_tpl);
        ?>
</h3>
	<p><?php 
        echo smartyTranslate(array('s' => 'If you understand what this module does and you are certain that it is safe, you can proceed with the installation.'), $_smarty_tpl);
        ?>
</p>

	<p><?php 
        echo smartyTranslate(array('s' => 'If you are unsure about the safety of this module, you can look for similar modules on the official marketplace.'), $_smarty_tpl);
        ?>
 <a class="catalog-link" target="_blank" href="#"><?php 
        echo smartyTranslate(array('s' => 'Click here to browse PrestaShop Addons.'), $_smarty_tpl);
        ?>
</a></p>
</div>

<div class="modal-footer">
	<button type="button" class="btn btn-default" data-dismiss="modal"><?php 
        echo smartyTranslate(array('s' => 'Back to safety'), $_smarty_tpl);
        ?>
</button>
	<a id="proceed-install-anyway" href="#" class="btn btn-warning"><?php 
        echo smartyTranslate(array('s' => 'Proceed with the installation'), $_smarty_tpl);
        ?>
</a>
</div>
<?php 
    }
開發者ID:carloslastresDev,項目名稱:HealthyTaiwan_UsingPrestaShop,代碼行數:60,代碼來源:0dffdf6c0c1f4bfec49d3f05f57d1159db343483.file.modal_not_trusted.tpl.php

示例15: content_5590d8871e5d27_85207274

    function content_5590d8871e5d27_85207274($_smarty_tpl)
    {
        ?>
<div class="row">
	<div class="col-xs-12">
        <p class="payment_module">
            <a class="cash" href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('cashondelivery', 'validation', array(), true), ENT_QUOTES, 'UTF-8', true);
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Pay with cash on delivery (COD)', 'mod' => 'cashondelivery'), $_smarty_tpl);
        ?>
" rel="nofollow">
            	<?php 
        echo smartyTranslate(array('s' => 'Pay with cash on delivery (COD)', 'mod' => 'cashondelivery'), $_smarty_tpl);
        ?>

            	<span>(<?php 
        echo smartyTranslate(array('s' => 'You pay for the merchandise upon delivery', 'mod' => 'cashondelivery'), $_smarty_tpl);
        ?>
)</span>
            </a>
        </p>
    </div>
</div>
<?php 
    }
開發者ID:prayasjain,項目名稱:MyCollegeStore,代碼行數:27,代碼來源:49c3be15b78263ec99ac396f23401ed1e0aeff61.file.payment.tpl.php


注:本文中的smartyTranslate函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。