本文整理汇总了PHP中smarty_function_math函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_math函数的具体用法?PHP smarty_function_math怎么用?PHP smarty_function_math使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_math函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_55ccecdca7e3d0_14419675
function content_55ccecdca7e3d0_14419675($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
}
fn_preload_lang_vars(array('close'));
echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl);
?>
<div class="clear" id="ds_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8');
?>
">
<div class="section-border">
<?php
echo $_smarty_tpl->tpl_vars['section_content']->value;
?>
<?php
if ($_smarty_tpl->tpl_vars['section_state']->value) {
?>
<p align="right">
<a href="<?php
echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "close_section=" . (string) $_smarty_tpl->tpl_vars['key']->value)), ENT_QUOTES, 'UTF-8');
?>
" class="underlined"><?php
echo $_smarty_tpl->__("close");
?>
</a>
</p>
<?php
}
?>
</div>
</div><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:36,代码来源:2d5d4b601786d74545db478ae68d9da06c12ddcd.tygh.section.tpl.php
示例2: content_55e61f9bdb93e2_96432545
function content_55e61f9bdb93e2_96432545($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
}
fn_preload_lang_vars(array('close'));
echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl);
?>
<div class="clear" id="ds_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8');
?>
">
<div class="section-border">
<?php
echo $_smarty_tpl->tpl_vars['section_content']->value;
?>
<?php
if ($_smarty_tpl->tpl_vars['section_state']->value) {
?>
<p align="right">
<a href="<?php
echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "close_section=" . (string) $_smarty_tpl->tpl_vars['key']->value)), ENT_QUOTES, 'UTF-8');
?>
" class="underlined"><?php
echo $_smarty_tpl->__("close");
?>
</a>
</p>
<?php
}
?>
</div>
</div><?php
}
开发者ID:AlanIsrael0,项目名称:market,代码行数:36,代码来源:bf5c2be198dadc1d78ee4d115a91dd773b0521e5.tygh.section.tpl.php
示例3: content_555a2c22033094_64219097
function content_555a2c22033094_64219097($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/home/matej/webapps/webshop/tools/smarty/plugins/function.math.php';
}
if ($_smarty_tpl->tpl_vars['ajax']->value) {
?>
<script type="text/javascript">
$(function () {
$(".ajax_table_link").click(function () {
var link = $(this);
$.post($(this).attr('href'), function (data) {
if (data.success == 1) {
showSuccessMessage(data.text);
if (link.hasClass('action-disabled')){
link.removeClass('action-disabled').addClass('action-enabled');
} else {
link.removeClass('action-enabled').addClass('action-disabled');
}
link.children().each(function () {
if ($(this).hasClass('hidden')) {
$(this).removeClass('hidden');
} else {
$(this).addClass('hidden');
}
});
} else {
showErrorMessage(data.text);
}
}, 'json');
return false;
});
});
</script>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['is_order_position']->value) {
?>
<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script>
<script type="text/javascript">
var come_from = '<?php
echo addslashes($_smarty_tpl->tpl_vars['list_id']->value);
?>
';
var alternate = <?php
if ($_smarty_tpl->tpl_vars['order_way']->value == 'DESC') {
?>
'1'<?php
} else {
?>
'0'<?php
}
?>
;
</script>
<script type="text/javascript" src="../js/admin/dnd.js"></script>
<?php
}
if (!$_smarty_tpl->tpl_vars['simple_header']->value) {
?>
<script type="text/javascript">
$(function() {
$('table.<?php
echo $_smarty_tpl->tpl_vars['list_id']->value;
?>
.filter').keypress(function(e){
var key = (e.keyCode ? e.keyCode : e.which);
if (key == 13)
{
e.preventDefault();
formSubmit(e, 'submitFilterButton<?php
echo $_smarty_tpl->tpl_vars['list_id']->value;
?>
');
}
})
$('#submitFilterButton<?php
echo $_smarty_tpl->tpl_vars['list_id']->value;
?>
').click(function() {
$('#submitFilter<?php
echo $_smarty_tpl->tpl_vars['list_id']->value;
?>
').val(1);
});
if ($("table .datepicker").length > 0) {
$("table .datepicker").datepicker({
prevText: '',
nextText: '',
altFormat: 'yy-mm-dd'
});
}
});
</script>
<?php
}
//.........这里部分代码省略.........
开发者ID:blaz1988,项目名称:presta,代码行数:101,代码来源:0aef42e4ff9c8f665569f178940735aae5a420e6.file.list_header.tpl.php
示例4: content_56d218e757a521_02767541
function content_56d218e757a521_02767541($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/home/miscal5/industrialdelivery.net/public_html/tools/smarty/plugins/function.math.php';
}
if (isset($_smarty_tpl->tpl_vars['products']->value) && $_smarty_tpl->tpl_vars['products']->value) {
?>
<?php
if ($_smarty_tpl->tpl_vars['page_name']->value != 'index' && $_smarty_tpl->tpl_vars['page_name']->value != 'product') {
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(3, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLineMobile'] = new Smarty_variable(3, null, 0);
?>
<?php
} else {
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(3, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLineMobile'] = new Smarty_variable(2, null, 0);
?>
<?php
}
?>
<?php
$_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['products']->value), null, 0);
?>
<?php
echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
?>
<?php
echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
?>
<!-- Products list -->
<ul<?php
if (isset($_smarty_tpl->tpl_vars['id']->value) && $_smarty_tpl->tpl_vars['id']->value) {
?>
id="<?php
echo $_smarty_tpl->tpl_vars['id']->value;
?>
"<?php
}
?>
class="product_list grid row<?php
if (isset($_smarty_tpl->tpl_vars['class']->value) && $_smarty_tpl->tpl_vars['class']->value) {
?>
<?php
echo $_smarty_tpl->tpl_vars['class']->value;
}
?>
">
<?php
$_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['product']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['products']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['product']->total = $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['total'] = $_smarty_tpl->tpl_vars['product']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['iteration'] = 0;
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['iteration']++;
?>
<?php
echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
?>
<?php
echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
?>
<?php
echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value, 'assign' => 'totModuloMobile'), $_smarty_tpl);
?>
<?php
if ($_smarty_tpl->tpl_vars['totModulo']->value == 0) {
$_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);
}
?>
<?php
if ($_smarty_tpl->tpl_vars['totModuloTablet']->value == 0) {
$_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);
}
//.........这里部分代码省略.........
开发者ID:industrialdelivery,项目名称:industrialdelivery,代码行数:101,代码来源:b41792f2ff55005bb7956b33708e6228658c6523.file.product-list.tpl.php
示例5: smarty_modifier_t_escape
<th>メッセージ (任意)</th>
<td>
<textarea name="message" rows="5" cols="40"><?php
echo smarty_modifier_t_escape($this->_tpl_vars['requests']['message']);
?>
</textarea>
</td>
</tr>
<?php
if (@OPENPNE_USE_CAPTCHA) {
?>
<tr>
<th>確認キーワード</th>
<td>
<p><img src="./cap.php?rand=<?php
echo smarty_function_math(array('equation' => "rand(0,99999999)"), $this);
?>
" alt="確認キーワード" /></p>
<p>※上に表示されているキーワードをご記入下さい。</p>
<input type="text" class="input_text" name="captcha" value="" size="30" />
</td>
</tr>
<?php
}
?>
</table>
<div class="operation">
<ul class="moreInfo button">
<li><input type="submit" class="input_submit" value="確認画面" /></li>
</ul>
</div>
示例6: content_561617a650eec8_42585878
function content_561617a650eec8_42585878($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include 'D:\\workspace\\php\\nagoya6\\tools\\smarty\\plugins\\function.math.php';
}
?>
<div id="view_wishlist">
<?php
$_smarty_tpl->_capture_stack[0][] = array('path', null, null);
ob_start();
?>
<a href="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account', true), ENT_QUOTES, 'UTF-8', true);
?>
"><?php
echo smartyTranslate(array('s' => 'My account', 'mod' => 'blockwishlist'), $_smarty_tpl);
?>
</a>
<span class="navigation-pipe"><?php
echo $_smarty_tpl->tpl_vars['navigationPipe']->value;
?>
</span>
<a href="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist', 'mywishlist'), ENT_QUOTES, 'UTF-8', true);
?>
"><?php
echo smartyTranslate(array('s' => 'My wishlists', 'mod' => 'blockwishlist'), $_smarty_tpl);
?>
</a>
<span class="navigation-pipe"><?php
echo $_smarty_tpl->tpl_vars['navigationPipe']->value;
?>
</span>
<?php
echo $_smarty_tpl->tpl_vars['current_wishlist']->value['name'];
?>
<?php
list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) {
$_smarty_tpl->assign($_capture_assign, ob_get_contents());
}
if (isset($_capture_append)) {
$_smarty_tpl->append($_capture_append, ob_get_contents());
}
Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
} else {
$_smarty_tpl->capture_error();
}
?>
<h1 class="page-heading bottom-indent">
<?php
echo smartyTranslate(array('s' => 'Wishlist', 'mod' => 'blockwishlist'), $_smarty_tpl);
?>
</h1>
<?php
if ($_smarty_tpl->tpl_vars['wishlists']->value) {
?>
<p>
<strong class="dark">
<?php
echo smartyTranslate(array('s' => 'Other wishlists of %1s %2s:', 'sprintf' => array($_smarty_tpl->tpl_vars['current_wishlist']->value['firstname'], $_smarty_tpl->tpl_vars['current_wishlist']->value['lastname']), 'mod' => 'blockwishlist'), $_smarty_tpl);
?>
</strong>
<?php
$_smarty_tpl->tpl_vars['wishlist'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['wishlist']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['wishlists']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['wishlist']->total = $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['wishlist']->iteration = 0;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['total'] = $_smarty_tpl->tpl_vars['wishlist']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['iteration'] = 0;
foreach ($_from as $_smarty_tpl->tpl_vars['wishlist']->key => $_smarty_tpl->tpl_vars['wishlist']->value) {
$_smarty_tpl->tpl_vars['wishlist']->_loop = true;
$_smarty_tpl->tpl_vars['wishlist']->iteration++;
$_smarty_tpl->tpl_vars['wishlist']->last = $_smarty_tpl->tpl_vars['wishlist']->iteration === $_smarty_tpl->tpl_vars['wishlist']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['iteration']++;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['last'] = $_smarty_tpl->tpl_vars['wishlist']->last;
?>
<?php
if ($_smarty_tpl->tpl_vars['wishlist']->value['id_wishlist'] != $_smarty_tpl->tpl_vars['current_wishlist']->value['id_wishlist']) {
?>
<a href="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist', 'view', array('token' => $_smarty_tpl->tpl_vars['wishlist']->value['token'])), ENT_QUOTES, 'UTF-8', true);
?>
" rel="nofollow" title="<?php
echo $_smarty_tpl->tpl_vars['wishlist']->value['name'];
?>
">
<?php
echo $_smarty_tpl->tpl_vars['wishlist']->value['name'];
?>
//.........这里部分代码省略.........
开发者ID:usky105,项目名称:nagoya6er,代码行数:101,代码来源:76e707fd03e1ca04b7dcae2e00fba773d59f0e59.file.view.tpl.php
示例7: ob_start
<?php
echo $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->price;
?>
</td>
<td>
<img src="<?php
echo $_smarty_tpl->getVariable('tmp')->value;
echo $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->photoLink;
?>
" width="80" height="90">
</td>
<td>
<?php
ob_start();
echo smarty_function_math(array('equation' => "(x * y)", 'x' => $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->quantity, 'y' => $_smarty_tpl->getVariable('Shopping')->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]->price), $_smarty_tpl);
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars['total'] = new Smarty_variable($_tmp1, null, null);
?>
<?php
echo number_format($_smarty_tpl->getVariable('total')->value, 0, ".", ",");
?>
</td>
</tr>
<?php
}
}
?>
<tr><td align="center" colspan ="6"><p>Số tiền phải trả:  <?php
echo number_format($_smarty_tpl->getVariable('totalAll')->value, 0, ".", ",");
开发者ID:phuongktax,项目名称:sosad,代码行数:31,代码来源:08a42bb2e5faeb32186ee0a81fda7aa71eb3f02f.file.shoppingcart.tpl.php
示例8: content_5669016c7d1356_20702564
function content_5669016c7d1356_20702564($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.math.php';
}
?>
<div class="ptsmaplocator">
<h3 class="page-subheading"><?php
echo smartyTranslate(array('s' => 'Map Locator', 'mod' => 'ptsmaplocator'), $_smarty_tpl);
?>
</h3>
<div class="box-content">
<?php
if (!empty($_smarty_tpl->tpl_vars['pts_description']->value)) {
?>
<div class="description"><?php
echo $_smarty_tpl->tpl_vars['pts_description']->value;
?>
</div>
<?php
}
?>
<div class="maplocator">
<div id="directory-main-bar-<?php
echo $_smarty_tpl->tpl_vars['mod_id']->value;
?>
" class="gmap"></div>
</div>
<div class="box-shop">
<?php
if (isset($_smarty_tpl->tpl_vars['pts_stores']->value)) {
?>
<?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_variable(0, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['location'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['location']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['pts_stores']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['location']->key => $_smarty_tpl->tpl_vars['location']->value) {
$_smarty_tpl->tpl_vars['location']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['location']->key;
?>
<?php
echo smarty_function_math(array('equation' => "x + y", 'x' => $_smarty_tpl->tpl_vars['i']->value, 'y' => 1, 'assign' => 'i'), $_smarty_tpl);
?>
<div class="item-location" id="location-<?php
echo $_smarty_tpl->tpl_vars['location']->value["id_store"];
?>
" data-id="shop<?php
echo $_smarty_tpl->tpl_vars['i']->value;
?>
" data-lat="<?php
echo $_smarty_tpl->tpl_vars['location']->value["latitude"];
?>
" data-lon="<?php
echo $_smarty_tpl->tpl_vars['location']->value["longitude"];
?>
">
<div class="shop-title">
<i class="icon-map-marker"></i><?php
echo $_smarty_tpl->tpl_vars['location']->value['name'];
?>
</div>
<div class="shop-address"><?php
echo $_smarty_tpl->tpl_vars['location']->value['address1'];
?>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
</div>
</div>
<script type="text/javascript">
var mapDiv, map, infobox;
jQuery(document).ready(function($){
mapDiv = $("#directory-main-bar-<?php
echo $_smarty_tpl->tpl_vars['mod_id']->value;
?>
");
mapDiv.height(<?php
echo $_smarty_tpl->tpl_vars['pts_height']->value;
?>
).gmap3({
map: {
options: {
//.........这里部分代码省略.........
开发者ID:vuduykhuong1412,项目名称:GitHub,代码行数:101,代码来源:08a22644d673b5c4660a14454c0d5be23bdd3067.file.hook.tpl.php
示例9: content_564727d8890760_83195767
function content_564727d8890760_83195767($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/home/activeciuk/www/bap/tools/smarty/plugins/function.math.php';
}
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array('path', null, null);
ob_start();
echo smartyTranslate(array('s' => 'Manufacturers:'), $_smarty_tpl);
list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) {
$_smarty_tpl->assign($_capture_assign, ob_get_contents());
}
if (isset($_capture_append)) {
$_smarty_tpl->append($_capture_append, ob_get_contents());
}
Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
} else {
$_smarty_tpl->capture_error();
}
?>
<h1 class="page-heading product-listing">
<?php
echo smartyTranslate(array('s' => 'Brands'), $_smarty_tpl);
?>
<span class="heading-counter"><?php
if ($_smarty_tpl->tpl_vars['nbManufacturers']->value == 0) {
echo smartyTranslate(array('s' => 'There are no manufacturers.'), $_smarty_tpl);
} else {
if ($_smarty_tpl->tpl_vars['nbManufacturers']->value == 1) {
echo smartyTranslate(array('s' => 'There is 1 brand'), $_smarty_tpl);
} else {
echo smartyTranslate(array('s' => 'There are %d brands', 'sprintf' => $_smarty_tpl->tpl_vars['nbManufacturers']->value), $_smarty_tpl);
}
}
?>
</span>
</h1>
<?php
if (isset($_smarty_tpl->tpl_vars['errors']->value) && $_smarty_tpl->tpl_vars['errors']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
} else {
?>
<?php
if ($_smarty_tpl->tpl_vars['nbManufacturers']->value > 0) {
?>
<div class="content_sortPagiBar">
<div class="sortPagiBar clearfix">
<?php
if (isset($_smarty_tpl->tpl_vars['manufacturer']->value) && isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']) && $_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'] > 0) {
?>
<ul class="display hidden-xs">
<li class="display-title">
<?php
echo smartyTranslate(array('s' => 'View:'), $_smarty_tpl);
?>
</li>
<li id="grid">
<a rel="nofollow" href="#" title="<?php
echo smartyTranslate(array('s' => 'Grid'), $_smarty_tpl);
?>
">
<i class="icon-th-large"></i><?php
echo smartyTranslate(array('s' => 'Grid'), $_smarty_tpl);
?>
</a>
</li>
<li id="list">
<a rel="nofollow" href="#" title="<?php
echo smartyTranslate(array('s' => 'List'), $_smarty_tpl);
?>
">
<i class="icon-th-list"></i><?php
echo smartyTranslate(array('s' => 'List'), $_smarty_tpl);
?>
</a>
</li>
</ul>
<?php
}
?>
<?php
echo $_smarty_tpl->getSubTemplate("./nbr-product-page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
</div>
<div class="top-pagination-content clearfix bottom-line">
//.........这里部分代码省略.........
开发者ID:OaSiis,项目名称:LDDP,代码行数:101,代码来源:0f62bd5e5db57a754a19b7e93f3ee74072947a61.file.manufacturer-list.tpl.php
示例10: content_56692eb37dd4d4_45149524
function content_56692eb37dd4d4_45149524($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.math.php';
}
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array('path', null, null);
ob_start();
echo smartyTranslate(array('s' => 'Suppliers:'), $_smarty_tpl);
list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) {
$_smarty_tpl->assign($_capture_assign, ob_get_contents());
}
if (isset($_capture_append)) {
$_smarty_tpl->append($_capture_append, ob_get_contents());
}
Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
} else {
$_smarty_tpl->capture_error();
}
?>
<h1 class="page-heading product-listing"><?php
echo smartyTranslate(array('s' => 'Suppliers:'), $_smarty_tpl);
?>
<span class="heading-counter"><?php
if ($_smarty_tpl->tpl_vars['nbSuppliers']->value == 0) {
echo smartyTranslate(array('s' => 'There are no suppliers.'), $_smarty_tpl);
} else {
if ($_smarty_tpl->tpl_vars['nbSuppliers']->value == 1) {
echo smartyTranslate(array('s' => 'There is %d supplier.', 'sprintf' => $_smarty_tpl->tpl_vars['nbSuppliers']->value), $_smarty_tpl);
} else {
echo smartyTranslate(array('s' => 'There are %d suppliers.', 'sprintf' => $_smarty_tpl->tpl_vars['nbSuppliers']->value), $_smarty_tpl);
}
}
?>
</span>
</h1>
<?php
if (isset($_smarty_tpl->tpl_vars['errors']->value) && $_smarty_tpl->tpl_vars['errors']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
} else {
?>
<?php
if ($_smarty_tpl->tpl_vars['nbSuppliers']->value > 0) {
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['suppliers_list']->value), null, 0);
?>
<?php
echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
?>
<?php
echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLineTablet", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLineTablet' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'nbLinesTablet'), $_smarty_tpl);
?>
<ul id="suppliers_list" class="list-unstyled list row">
<?php
$_smarty_tpl->tpl_vars['supplier'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['supplier']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['suppliers_list']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['supplier']->total = $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['supplier']['total'] = $_smarty_tpl->tpl_vars['supplier']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['supplier']['iteration'] = 0;
foreach ($_from as $_smarty_tpl->tpl_vars['supplier']->key => $_smarty_tpl->tpl_vars['supplier']->value) {
$_smarty_tpl->tpl_vars['supplier']->_loop = true;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['supplier']['iteration']++;
?>
<?php
echo smarty_function_math(array('equation' => "(total%perLine)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['total'], 'perLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'totModulo'), $_smarty_tpl);
?>
<?php
echo smarty_function_math(array('equation' => "(total%perLineT)", 'total' => $_smarty_tpl->getVariable('smarty')->value['foreach']['supplier']['total'], 'perLineT' => $_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, 'assign' => 'totModuloTablet'), $_smarty_tpl);
?>
<?php
//.........这里部分代码省略.........
开发者ID:vuduykhuong1412,项目名称:GitHub,代码行数:101,代码来源:e47f436f29fb36b98acb1ec711a8989a2549082c.file.supplier-list.tpl.php
示例11: content_55e61f9ae0ca45_28054294
function content_55e61f9ae0ca45_28054294($_smarty_tpl)
{
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_function_math')) {
include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
}
if (!is_callable('smarty_modifier_enum')) {
include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php';
}
if (!is_callable('smarty_modifier_in_array')) {
include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php';
}
fn_preload_lang_vars(array('information', 'name', 'text_ult_product_store_field_tooltip', 'categories', 'tt_views_products_update_categories', 'price', 'full_description', 'edit_content_on_site', 'images', 'text_product_thumbnail', 'text_product_detailed_image', 'options_settings', 'options_type', 'simultaneous', 'sequential', 'exceptions_type', 'forbidden', 'allowed', 'pricing_inventory', 'sku', 'list_price', 'tt_views_products_update_list_price', 'in_stock', 'edit', 'zero_price_action', 'zpa_refuse', 'zpa_permit', 'zpa_ask_price', 'inventory', 'tt_views_products_update_inventory', 'track_with_options', 'track_without_options', 'dont_track', 'min_order_qty', 'max_order_qty', 'quantity_step', 'list_quantity_count', 'taxes', 'availability', 'usergroups', 'creation_date', 'available_since', 'out_of_stock_actions', 'tt_views_products_update_out_of_stock_actions', 'none', 'buy_in_advance', 'sign_up_for_notification', 'extra', 'product_details_view', 'feature_comparison', 'downloadable', 'edp_enable_shipping', 'time_unlimited_download', 'short_description', 'popularity', 'ttc_popularity', 'search_words', 'promo_text', 'additional_images', 'sort_images', 'sort', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'preview', 'clone', 'delete', 'editing_product', 'new_product'));
$_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
ob_start();
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null);
ob_start();
?>
<?php
$_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['company_id'], null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "product"), null, 0);
?>
<?php
if (fn_allowed_for("ULTIMATE")) {
?>
<?php
$_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable('', null, 0);
?>
<?php
if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) {
?>
<?php
$_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0);
?>
<?php
}
?>
<?php
if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y") {
?>
<?php
$_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0);
?>
<?php
}
?>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['product_data']->value['product_id']) {
?>
<?php
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['product_id'], null, 0);
?>
<?php
} else {
?>
<?php
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0);
?>
<?php
}
?>
<form id='form' action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post" name="product_update_form" class="form-horizontal form-edit cm-disable-empty-files <?php
if (fn_check_form_permissions('') || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) {
?>
cm-hide-inputs<?php
}
?>
" enctype="multipart/form-data">
<input type="hidden" name="fake" value="1" />
<input type="hidden" class="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
?>
" name="selected_section" id="selected_section" value="<?php
echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8');
?>
" />
<input type="hidden" class="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8');
?>
" name="product_id" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:0c825d323ad2604f08769857c4f6a1c29d61a326.tygh.update.tpl.php
示例12: content_55db8f57aa4f74_91096835
function content_55db8f57aa4f74_91096835($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
}
fn_preload_lang_vars(array('previous', 'next', 'total_items'));
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['div_id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0);
$_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove(($tmp = @$_smarty_tpl->tpl_vars['current_url']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, "page"), null, 0);
$_smarty_tpl->tpl_vars["pagination"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0);
?>
<?php
if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") {
?>
<?php
$_smarty_tpl->tpl_vars["pagination_meta"] = new Smarty_variable(" paginate-top", null, 0);
}
?>
<?php
if (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") {
?>
<div class="cm-pagination-container<?php
if ($_smarty_tpl->tpl_vars['pagination_class']->value) {
?>
<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination_class']->value, ENT_QUOTES, 'UTF-8');
}
?>
" id="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
">
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['pagination']->value) {
?>
<?php
if ($_smarty_tpl->tpl_vars['save_current_page']->value) {
?>
<input type="hidden" name="page" value="<?php
echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['search']->value['page']) === null || $tmp === '' ? $_REQUEST['page'] : $tmp)) === null || $tmp === '' ? 1 : $tmp, ENT_QUOTES, 'UTF-8');
?>
" />
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['save_current_url']->value) {
?>
<input type="hidden" name="redirect_url" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
?>
" />
<?php
}
?>
<?php
if (!$_smarty_tpl->tpl_vars['disable_history']->value) {
?>
<?php
$_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-history", null, 0);
?>
<?php
} else {
?>
<?php
$_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-ajax-cache", null, 0);
?>
<?php
}
?>
<div class="pagination-wrap clearfix">
<?php
if ($_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) {
?>
<div class="pagination pull-left">
<ul>
<?php
if ($_smarty_tpl->tpl_vars['pagination']->value['current_page'] != "full_list" && $_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) {
?>
<li class="<?php
if (!$_smarty_tpl->tpl_vars['pagination']->value['prev_page']) {
?>
disabled<?php
}
echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
?>
"><a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
?>
" <?php
if ($_smarty_tpl->tpl_vars['pagination']->value['prev_page']) {
?>
href="<?php
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:33570f87cf694de759a498258bffac49f0d24354.tygh.pagination.tpl.php
示例13: content_561cd0cde53cc9_57239698
function content_561cd0cde53cc9_57239698($_smarty_tpl)
{
if (!is_callable('smarty_modifier_date_format')) {
include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\modifier.date_format.php';
}
if (!is_callable('smarty_function_math')) {
include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.math.php';
}
if (!is_callable('smarty_function_cycle')) {
include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.cycle.php';
}
if (!is_callable('smarty_function_counter')) {
include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
}
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
if (count($_smarty_tpl->tpl_vars['errors']->value) == 0) {
?>
<?php
if (!isset($_smarty_tpl->tpl_vars['priceDisplayPrecision']->value)) {
?>
<?php
$_smarty_tpl->tpl_vars['priceDisplayPrecision'] = new Smarty_variable(2, null, 0);
?>
<?php
}
?>
<?php
if (!$_smarty_tpl->tpl_vars['priceDisplay']->value || $_smarty_tpl->tpl_vars['priceDisplay']->value == 2) {
?>
<?php
$_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(true, @constant('NULL'), 6), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(false, @constant('NULL')), null, 0);
?>
<?php
} elseif ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) {
?>
<?php
$_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'), 6), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true, @constant('NULL')), null, 0);
?>
<?php
}
?>
<div itemscope itemtype="https://schema.org/Product">
<meta itemprop="url" content="<?php
echo $_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value);
?>
">
<div class="primary_block row">
<?php
if (!$_smarty_tpl->tpl_vars['content_only']->value) {
?>
<div class="container">
<div class="top-hr"></div>
</div>
<?php
}
?>
<?php
if (isset($_smarty_tpl->tpl_vars['adminActionDisplay']->value) && $_smarty_tpl->tpl_vars['adminActionDisplay']->value) {
?>
<div id="admin-action" class="container">
<p class="alert alert-info"><?php
echo smartyTranslate(array('s' => 'This product is not visible to your customers.'), $_smarty_tpl);
?>
<input type="hidden" id="admin-action-product-id" value="<?php
echo $_smarty_tpl->tpl_vars['product']->value->id;
?>
" />
<a id="publish_button" class="btn btn-default button button-small" href="#">
<span><?php
echo smartyTranslate(array('s' => 'Publish'), $_smarty_tpl);
?>
</span>
</a>
<a id="lnk_view" class="btn btn-default button button-small" href="#">
<span><?php
echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl);
?>
</span>
</a>
</p>
<p id="admin-action-result"></p>
</div>
<?php
}
?>
<?php
if (isset($_smarty_tpl->tpl_vars['confirmation']->value) && $_smarty_tpl->tpl_vars['confirmation']->value) {
?>
<p class="confirmation">
<?php
//.........这里部分代码省略.........
开发者ID:baljinderimpinge,项目名称:maestrano_presta,代码行数:101,代码来源:81ece7f98cbb3d96c36f6be28e7c5460db4a767c.file.product.tpl.php
示例14: content_55dc75a003e1f6_47584415
function content_55dc75a003e1f6_47584415($_smarty_tpl)
{
if (!is_callable('smarty_function_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
}
if (!is_callable('smarty_function_split')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.split.php';
}
if (!is_callable('smarty_function_math')) {
include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
}
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_function_set_id')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
}
fn_preload_lang_vars(array('empty', 'empty'));
if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
$_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
ob_start();
if ($_smarty_tpl->tpl_vars['products']->value) {
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
?>
<?php
if (!$_smarty_tpl->tpl_vars['no_pagination']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
}
?>
<?php
if (!$_smarty_tpl->tpl_vars['no_sorting']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate("views/products/components/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
}
?>
<?php
if (!$_smarty_tpl->tpl_vars['show_empty']->value) {
?>
<?php
echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products"), $_smarty_tpl);
?>
<?php
} else {
?>
<?php
echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['products']->value, 'size' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "splitted_products", 'skip_complete' => true), $_smarty_tpl);
?>
<?php
}
?>
<?php
echo smarty_function_math(array('equation' => "100 / x", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['columns']->value) === null || $tmp === '' ? "2" : $tmp, 'assign' => "cell_width"), $_smarty_tpl);
?>
<?php
if ($_smarty_tpl->tpl_vars['item_number']->value == "Y") {
?>
<?php
$_smarty_tpl->tpl_vars["cur_number"] = new Smarty_variable(1, null, 0);
?>
<?php
}
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/product_image_gallery.js"), $_smarty_tpl);
?>
<?php
if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['enable_quick_view'] == 'Y') {
?>
<?php
$_smarty_tpl->tpl_vars['quick_nav_ids'] = new Smarty_variable(fn_fields_from_multi_level($_smarty_tpl->tpl_vars['products']->value, "product_id", "product_id"), null, 0);
?>
<?php
}
?>
<div class="grid-list">
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:8f915555f2be3773b2b3bedbc88e2687c6ca56e5.tygh.grid_list.tpl.php
示例15: content_52a1fccf2d7598_95696382
function content_52a1fccf2d7598_95696382($_smarty_tpl)
{
if (!is_callable('smarty_function_math')) {
include '/var/www/vhosts/www.a3workout.com/httpdocs/shop/tools/smarty/plugins/function.math.php';
}
if (!is_callable('smarty_modifier_escape')) {
include '/var/www/vhosts/www.a3workout.com/httpdocs/shop/tools/smarty/plugins/modifier.escape.php';
}
?>
<?php
$_smarty_tpl->tpl_vars['bslimit'] = new Smarty_variable(4, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['bstabname'] = new Smarty_variable('bestseller', null, 0);
?>
<!-- MODULE Home Block best sellers -->
<div id="leo-best-sellers_block_center" class="block products_block green">
<h4 class="title_block"><?php
echo smartyTranslate(array('s' => 'Best sellers', 'mod' => 'leoblockbestsellers'), $_smarty_tpl);
?>
</h4>
<?php
if (isset($_smarty_tpl->tpl_vars['leo_best_sellers']->value) && $_smarty_tpl->tpl_vars['leo_best_sellers']->value) {
?>
<div class="block_content">
<?php
$_smarty_tpl->tpl_vars['liHeight'] = new Smarty_variable(320, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(4, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable($_smarty_tpl->tpl_vars['bslimit']->value, null, 0);
?>
<?php
echo smarty_function_math(array('equation' => "nbLi/nbItemsPerLine", 'nbLi' => $_smarty_tpl->tpl_vars['nbLi']->value, 'nbItemsPerLine' => $_smarty_tpl->tpl_vars['nbItemsPerLine']->value, 'assign' => 'nbLines'), $_smarty_tpl);
?>
<?php
echo smarty_function_math(array('equation' => "nbLines*liHeight", 'nbLines' => ceil($_smarty_tpl->tpl_vars['nbLines']->value), 'liHeight' => $_smarty_tpl->tpl_vars['liHeight']->value, 'assign' => 'ulHeight'), $_smarty_tpl);
?>
<div style="min-height:<?php
echo $_smarty_tpl->tpl_vars['ulHeight']->value;
?>
px;" class=" carousel slide" id="<?php
echo $_smarty_tpl->tpl_vars['bstabname']->value;
?>
" >
<?php
if (count($_smarty_tpl->tpl_vars['leo_best_sellers']->value) > $_smarty_tpl->tpl_vars['bslimit']->value) {
?>
<a class="carousel-control left" href="#<?php
echo $_smarty_tpl->tpl_vars['bstabname']->value;
?>
" data-slide="prev">‹</a>
<a class="carousel-control right" href="#<?php
echo $_smarty_tpl->tpl_vars['bstabname']->value;
?>
" data-slide="next">›</a>
<?php
}
?>
<div class="carousel-inner"><?php
$_smarty_tpl->tpl_vars['mproducts'] = new Smarty_variable(array_chunk($_smarty_tpl->tpl_vars['leo_best_sellers']->value, $_smarty_tpl->tpl_vars['bslimit']->value), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['bsproducts'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['bsproducts']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['mproducts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['bsproducts']->index = -1;
foreach ($_from as $_smarty_tpl->tpl_vars['bsproducts']->key => $_smarty_tpl->tpl_vars['bsproducts']->value) {
$_smarty_tpl->tpl_vars['bsproducts']->_loop = true;
$_smarty_tpl->tpl_vars['bsproducts']->index++;
$_smarty_tpl->tpl_vars['bsproducts']->first = $_smarty_tpl->tpl_vars['bsproducts']->index === 0;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['mypLoop']['first'] = $_smarty_tpl->tpl_vars['bsproducts']->first;
?>
<div class="item <?php
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['mypLoop']['first']) {
?>
active<?php
}
?>
">
<div class="row-fluid">
<?php
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['item']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['bsproducts']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['item']->total = $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['item']->iteration = 0;
$_smarty_tpl->tpl_vars['item']->index = -1;
//.........这里部分代码省略.........
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:101,代码来源:f66e91dc951a683e37e7aec078c253676bb65018.file.leoblockbestsellers-home.tpl.php