本文整理汇总了PHP中smarty_block_hook函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_block_hook函数的具体用法?PHP smarty_block_hook怎么用?PHP smarty_block_hook使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_block_hook函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_55d2f402ecd844_39235354
function content_55d2f402ecd844_39235354($_smarty_tpl)
{
if (!is_callable('smarty_block_hook')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
}
fn_preload_lang_vars(array('dear', 'update_profile_notification_header'));
echo $_smarty_tpl->getSubTemplate("common/letter_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
echo $_smarty_tpl->__("dear");
?>
<?php
if ($_smarty_tpl->tpl_vars['user_data']->value['firstname']) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['firstname'], ENT_QUOTES, 'UTF-8');
} else {
echo htmlspecialchars(mb_strtolower(fn_get_user_type_description($_smarty_tpl->tpl_vars['user_data']->value['user_type']), 'UTF-8'), ENT_QUOTES, 'UTF-8');
}
?>
,<br><br>
<?php
echo $_smarty_tpl->__("update_profile_notification_header");
?>
<br><br>
<?php
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:update_profile"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "profiles:update_profile"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<?php
$_block_content = ob_get_clean();
$_block_repeat = false;
echo smarty_block_hook(array('name' => "profiles:update_profile"), $_block_content, $_smarty_tpl, $_block_repeat);
}
array_pop($_smarty_tpl->smarty->_tag_stack);
?>
<?php
echo $_smarty_tpl->getSubTemplate("profiles/profiles_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/letter_footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:52,代码来源:c71b14b37d90cd8e073b12145302b431f63205f6.tygh.update_profile.tpl.php
示例2: content_55e61f9b7722c4_18014718
function content_55e61f9b7722c4_18014718($_smarty_tpl)
{
if (!is_callable('smarty_function_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
}
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
fn_preload_lang_vars(array('add_post', 'add_post', 'no_data', 'text_enabled_testimonials_notice'));
if ($_smarty_tpl->tpl_vars['discussion']->value && $_smarty_tpl->tpl_vars['discussion']->value['object_type'] && !$_smarty_tpl->tpl_vars['discussion']->value['is_empty']) {
?>
<?php
$_smarty_tpl->tpl_vars['allow_save'] = new Smarty_variable(($_smarty_tpl->tpl_vars['discussion']->value['object_type'] != "M" || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) && fn_check_view_permissions("discussion.update"), null, 0);
?>
<div id="content_discussion">
<div class="clearfix">
<div class="buttons-container buttons-bg pull-right">
<?php
if (fn_check_view_permissions("discussion.add") && !(fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['object_company_id']->value || $_smarty_tpl->tpl_vars['discussion']->value['object_type'] == 'M'))) {
?>
<?php
if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") {
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null);
ob_start();
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'title' => __("add_post"), 'icon' => "icon-plus", 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 0);
?>
<?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();
}
?>
<?php
} else {
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'link_text' => __("add_post"), 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 0);
?>
<?php
}
?>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['discussion']->value['posts'] && fn_check_view_permissions("discussion_manager")) {
?>
<?php
$_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable(true, null, 2);
$_ptr = $_smarty_tpl->parent;
while ($_ptr != null) {
$_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn'];
$_ptr = $_ptr->parent;
}
?>
<?php
if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") {
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("buttons_insert", null, null);
ob_start();
?>
<?php
}
?>
<?php
if (fn_check_view_permissions("discussion.m_delete")) {
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null);
ob_start();
?>
<li><?php
smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[discussion.m_delete]", 'form' => "update_posts_form"));
?>
</li>
<?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());
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:f32ec0ae1c49f934b66e0ce0de2654d56f300a59.tygh.discussion.tpl.php
示例3: content_55dc7db6ede751_81542503
function content_55dc7db6ede751_81542503($_smarty_tpl)
{
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
fn_preload_lang_vars(array('general', 'language_code', 'name', 'country', 'tt_views_languages_update_country', 'clone_from', 'install'));
if ($_smarty_tpl->tpl_vars['lang_data']->value) {
?>
<?php
$_smarty_tpl->tpl_vars['id'] = new Smarty_variable($_smarty_tpl->tpl_vars['lang_data']->value['lang_id'], null, 0);
} else {
?>
<?php
$_smarty_tpl->tpl_vars['id'] = new Smarty_variable("0", null, 0);
}
?>
<?php
$_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(!fn_allow_save_object('', "languages"), null, 0);
?>
<div id="content_group<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
">
<?php
if ($_smarty_tpl->tpl_vars['id']->value) {
?>
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post" name="add_language_form" class="form-horizontal<?php
if (!fn_allow_save_object('', "languages")) {
?>
cm-hide-inputs<?php
}
?>
">
<input type="hidden" name="selected_section" value="languages" />
<input type="hidden" name="lang_id" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" />
<div class="tabs cm-j-tabs">
<ul class="nav nav-tabs">
<li id="tab_general_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="cm-js active"><a><?php
echo $_smarty_tpl->__("general");
?>
</a></li>
<?php
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "languages:tabs_list"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "languages:tabs_list"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
$_block_content = ob_get_clean();
$_block_repeat = false;
echo smarty_block_hook(array('name' => "languages:tabs_list"), $_block_content, $_smarty_tpl, $_block_repeat);
}
array_pop($_smarty_tpl->smarty->_tag_stack);
?>
</ul>
</div>
<div class="cm-tabs-content">
<div id="content_tab_general_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
">
<fieldset>
<div class="control-group">
<label for="elm_to_lang_code_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="control-label cm-required"><?php
echo $_smarty_tpl->__("language_code");
?>
:</label>
<div class="controls">
<input id="elm_to_lang_code_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" type="text" name="language_data[lang_code]" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_data']->value['lang_code'], ENT_QUOTES, 'UTF-8');
?>
" size="6" maxlength="2">
</div>
</div>
<div class="control-group">
<label for="elm_lang_name_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="control-label cm-required"><?php
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:64e681c12a98f8718a821d65999d162a7868d4a0.tygh.update.tpl.php
示例4: content_55dc759dc9f7e7_02041036
function content_55dc759dc9f7e7_02041036($_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_set_id')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
}
fn_preload_lang_vars(array('search', 'search_products', 'search', 'search', 'search', 'search_products', 'search', 'search'));
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();
?>
<div class="ty-search-block">
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" name="search_form" method="get">
<input type="hidden" name="subcats" value="Y" />
<input type="hidden" name="pcode_from_q" value="Y" />
<input type="hidden" name="pshort" value="Y" />
<input type="hidden" name="pfull" value="Y" />
<input type="hidden" name="pname" value="Y" />
<input type="hidden" name="pkeywords" value="Y" />
<input type="hidden" name="search_performed" value="Y" />
<?php
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "search:additional_fields"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "search:additional_fields"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
$_block_content = ob_get_clean();
$_block_repeat = false;
echo smarty_block_hook(array('name' => "search:additional_fields"), $_block_content, $_smarty_tpl, $_block_repeat);
}
array_pop($_smarty_tpl->smarty->_tag_stack);
?>
<?php
if ($_smarty_tpl->tpl_vars['settings']->value['General']['search_objects']) {
$_smarty_tpl->tpl_vars["search_title"] = new Smarty_variable($_smarty_tpl->__("search"), null, 0);
} else {
$_smarty_tpl->tpl_vars["search_title"] = new Smarty_variable($_smarty_tpl->__("search_products"), null, 0);
}
?>
<input type="text" name="q" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q'], ENT_QUOTES, 'UTF-8');
?>
" id="search_input<?php
echo htmlspecialchars(Smarty::$_smarty_vars['capture']['search_input_id'], ENT_QUOTES, 'UTF-8');
?>
" title="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['search_title']->value, ENT_QUOTES, 'UTF-8');
?>
" class="ty-search-block__input cm-hint" /><?php
if ($_smarty_tpl->tpl_vars['settings']->value['General']['search_objects']) {
echo $_smarty_tpl->getSubTemplate("buttons/magnifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "search.results", 'alt' => __("search")), 0);
} else {
echo $_smarty_tpl->getSubTemplate("buttons/magnifier.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "products.search", 'alt' => __("search")), 0);
}
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("search_input_id", null, null);
ob_start();
echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['snapping_id'], ENT_QUOTES, 'UTF-8');
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();
}
?>
</form>
</div>
<?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();
}
if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
?>
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:6496f1c2b71549a14f26ad5e30577350e3f9c485.tygh.search.tpl.php
示例5: content_55db8bdb79d546_98717403
function content_55db8bdb79d546_98717403($_smarty_tpl)
{
if (!is_callable('smarty_block_scripts')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.scripts.php';
}
if (!is_callable('smarty_function_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
}
if (!is_callable('smarty_block_inline_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
}
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
fn_preload_lang_vars(array('cannot_buy', 'no_products_selected', 'error_no_items_selected', 'delete_confirmation', 'text_out_of_stock', 'items', 'text_required_group_product', 'save', 'close', 'loading', 'notice', 'warning', 'error', 'text_are_you_sure_to_proceed', 'text_invalid_url', 'error_validator_email', 'error_validator_phone', 'error_validator_integer', 'error_validator_multiple', 'error_validator_password', 'error_validator_required', 'error_validator_zipcode', 'error_validator_message', 'error_validator_color', 'text_page_loading', 'error_ajax', 'text_changes_not_saved', 'text_data_changed', 'text_block_trial_notice', 'text_expired_license', 'file_browser', 'editing_block', 'editing_grid', 'editing_container', 'adding_grid', 'adding_block_to_grid', 'manage_blocks', 'editing_block', 'add_block', 'text_position_updating', 'more', 'browse', 'enter_new_lang_code', 'no_image'));
$_smarty_tpl->smarty->_tag_stack[] = array('scripts', array());
$_block_repeat = true;
echo smarty_block_scripts(array(), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<?php
echo smarty_function_script(array('src' => "js/lib/jquery/jquery.min.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/core.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/history.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/lib/twitterbootstrap/bootstrap.min.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/lib/jqueryui/jquery-ui.custom.min.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/lib/autonumeric/autoNumeric.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/lib/appear/jquery.appear-1.1.1.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/lib/tools/tooltip.min.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/editors/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_wysiwyg_editor'] . ".editor.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/ajax.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/quick_menu.js"), $_smarty_tpl);
?>
<?php
if ($_smarty_tpl->tpl_vars['settings']->value['General']['feedback_type'] == "auto") {
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/analytics.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
}
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("promo_data", null, null);
ob_start();
?>
<div class="commercial-promotion-text">
<p><?php
echo $_smarty_tpl->tpl_vars['addon_permissions_text']->value['text'];
?>
</p>
<div>
<?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)) {
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:a5e194af6a66f800e58dc2238c249cbddc38fb07.tygh.scripts.tpl.php
示例6: content_55d2f3b104f8b0_98025960
function content_55d2f3b104f8b0_98025960($_smarty_tpl)
{
if (!is_callable('smarty_block_hook')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_modifier_date_format')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php';
}
fn_preload_lang_vars(array('id', 'username', 'person_name', 'email', 'registered', 'type', 'status', 'view', 'administrator', 'vendor_administrator', 'customer', 'affiliate', 'view_all_orders', 'act_on_behalf', 'edit', 'delete', 'notify_user', 'no_data', 'export_selected', 'users', 'add_user'));
if (fn_allowed_for("MULTIVENDOR")) {
?>
<?php
$_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0);
}
?>
<?php
echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
ob_start();
?>
<?php
$_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0);
$_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0);
?>
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post" name="userlist_form" id="userlist_form" class="<?php
if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !fn_allowed_for("ULTIMATE")) {
?>
cm-hide-inputs<?php
}
?>
">
<input type="hidden" name="fake" value="1" />
<input type="hidden" name="user_type" value="<?php
echo htmlspecialchars($_REQUEST['user_type'], ENT_QUOTES, 'UTF-8');
?>
" />
<?php
echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0);
?>
<?php
$_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0);
?>
<?php
if ($_smarty_tpl->tpl_vars['users']->value) {
?>
<table width="100%" class="table table-middle">
<thead>
<tr>
<th width="1%" class="center <?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8');
?>
">
<?php
echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
</th>
<th width="3%" class="nowrap"><a class="cm-ajax" href="<?php
echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8');
?>
" data-ca-target-id=<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8');
?>
><?php
echo $_smarty_tpl->__("id");
if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "id") {
echo $_smarty_tpl->tpl_vars['c_icon']->value;
} else {
echo $_smarty_tpl->tpl_vars['c_dummy']->value;
}
?>
</a></th>
<?php
if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") {
?>
<th width="18%"><a class="cm-ajax" href="<?php
echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=username&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8');
?>
" data-ca-target-id=<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8');
?>
><?php
echo $_smarty_tpl->__("username");
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:da4abdcb6c9d0ca689a3b9c248882f715adf2ebe.tygh.manage.tpl.php
示例7: content_55e61f9bbf8558_38066348
function content_55e61f9bbf8558_38066348($_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';
}
fn_preload_lang_vars(array('general', 'variants', 'name', 'position', 'inventory', 'tt_views_product_options_update_inventory', 'type', 'description', 'comment', 'comment_hint', 'required', 'missing_variants_handling', 'display_message', 'hide_option_completely', 'regexp', 'tt_views_product_options_update_regexp', 'regexp_hint', 'inner_hint', 'tt_views_product_options_update_inner_hint', 'incorrect_filling_message', 'tt_views_product_options_update_incorrect_filling_message', 'allowed_extensions', 'allowed_extensions_hint', 'max_uploading_file_size', 'max_uploading_file_size_hint', 'multiupload', 'position_short', 'name', 'modifier', 'type', 'weight_modifier', 'type', 'status', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'extra', 'icon'));
if ($_smarty_tpl->tpl_vars['option_data']->value['option_id']) {
?>
<?php
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['option_data']->value['option_id'], null, 0);
} else {
?>
<?php
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0);
}
?>
<?php
if (fn_allowed_for("ULTIMATE")) {
?>
<?php
if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") {
?>
<?php
$_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0);
?>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['shared_product']->value == "Y") {
?>
<?php
$_smarty_tpl->tpl_vars["cm_no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0);
?>
<?php
}
}
?>
<?php
$_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['option_data']->value, "product_options"), null, 0);
?>
<div id="content_group_product_option_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
">
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post" name="option_form_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="form-horizontal form-edit form-highlight cm-disable-empty-files <?php
if (!$_smarty_tpl->tpl_vars['allow_save']->value) {
?>
cm-hide-inputs<?php
}
?>
" enctype="multipart/form-data">
<input type="hidden" name="option_id" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['cm_no_hide_input']->value, ENT_QUOTES, 'UTF-8');
?>
" />
<?php
if (fn_allowed_for("MULTIVENDOR")) {
?>
<?php
if (!$_smarty_tpl->tpl_vars['allow_save']->value) {
?>
<?php
$_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0);
?>
<?php
}
}
?>
<?php
if ($_REQUEST['product_id']) {
?>
<input class="cm-no-hide-input" type="hidden" name="option_data[product_id]" value="<?php
echo htmlspecialchars($_REQUEST['product_id'], ENT_QUOTES, 'UTF-8');
?>
" />
<?php
if (fn_allowed_for("ULTIMATE")) {
?>
<?php
$_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0);
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:b18e58132897d8ffb8a5e26da02dd426f38d32db.tygh.update.tpl.php
示例8: content_55dc7cc5c1a670_13636549
function content_55dc7cc5c1a670_13636549($_smarty_tpl)
{
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_block_inline_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
}
fn_preload_lang_vars(array('information', 'name', 'description', 'edit_content_on_site', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'availability', 'usergroups', 'creation_date', 'use_avail_period', 'avail_from', 'avail_till', 'preview', 'clone_this_page', 'delete_this_page', 'pages'));
if ($_smarty_tpl->tpl_vars['page_data']->value['page_id']) {
?>
<?php
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['page_data']->value['page_id'], null, 0);
} else {
?>
<?php
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0);
}
?>
<?php
if ($_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK') && (!fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) {
?>
<?php
$_smarty_tpl->tpl_vars['view_uri'] = new Smarty_variable(fn_get_preview_url("pages.view?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, $_smarty_tpl->tpl_vars['page_data']->value, $_smarty_tpl->tpl_vars['auth']->value['user_id']), null, 0);
}
?>
<?php
$_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0);
if (fn_allowed_for("ULTIMATE")) {
?>
<?php
$_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages"), null, 0);
}
$_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['allow_save']->value, null, 2);
$_ptr = $_smarty_tpl->parent;
while ($_ptr != null) {
$_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn'];
$_ptr = $_ptr->parent;
}
$_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
ob_start();
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null);
ob_start();
?>
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post" name="page_update_form" class="form-horizontal form-edit <?php
if (!$_smarty_tpl->tpl_vars['allow_save']->value) {
?>
cm-hide-inputs<?php
}
?>
" enctype="multipart/form-data">
<div id="update_page_form_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8');
?>
">
<input type="hidden" class="cm-no-hide-input" id="selected_section" name="selected_section" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8');
?>
"/>
<input type="hidden" class="cm-no-hide-input" id="page_id" name="page_id" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" />
<input type="hidden" class="cm-no-hide-input" name="page_data[page_type]" id="page_type" size="55" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['page_type']->value, ENT_QUOTES, 'UTF-8');
?>
"/>
<input type="hidden" class="cm-no-hide-input" name="come_from" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['come_from']->value, ENT_QUOTES, 'UTF-8');
?>
" />
<input type="hidden" class="cm-no-hide-input" name="result_ids" value="update_page_form_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8');
?>
"/>
<div id="content_basic">
<?php
echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#pages_information_setting"), 0);
?>
<div id="pages_information_setting" class="in collapse">
<fieldset>
<?php
echo $_smarty_tpl->getSubTemplate("views/pages/components/parent_page_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
<div class="control-group">
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:dab77b80ab83f7167b86ad16ef0a9d7b0aa2c900.tygh.update.tpl.php
示例9: content_55e61f9b376600_35466875
function content_55e61f9b376600_35466875($_smarty_tpl)
{
if (!is_callable('smarty_modifier_truncate')) {
include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.php';
}
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
fn_preload_lang_vars(array('seo.rich_snippets', 'in_stock'));
if ($_smarty_tpl->tpl_vars['view_uri']->value && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("ULTIMATE") || fn_allowed_for("MULTIVENDOR")) {
echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo.rich_snippets"), 'target' => "#acc_addon_seo_richsnippets"), 0);
?>
<div id="acc_addon_seo_richsnippets" class="collapsed in">
<div class="seo-rich-snippet">
<h3>
<a class="srs-title cm-seo-srs-title" href="<?php
echo htmlspecialchars(fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product_data']->value['product_id'], "C"), ENT_QUOTES, 'UTF-8');
?>
" target="_blank"><?php
echo htmlspecialchars(smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['product_data']->value['product']), 60, "..."), ENT_QUOTES, 'UTF-8');
?>
</a>
</h3>
<div>
<div>
<cite class="srs-url"><?php
echo htmlspecialchars(fn_url('', "C"), ENT_QUOTES, 'UTF-8');
?>
</cite>
</div>
<div class="srs-price"><?php
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:seo_snippet_attributes"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "products:seo_snippet_attributes"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product_data']->value['price'], 'span_id' => "elm_seo_srs_price"), 0);
?>
- <?php
echo $_smarty_tpl->__("in_stock");
$_block_content = ob_get_clean();
$_block_repeat = false;
echo smarty_block_hook(array('name' => "products:seo_snippet_attributes"), $_block_content, $_smarty_tpl, $_block_repeat);
}
array_pop($_smarty_tpl->smarty->_tag_stack);
?>
</div>
<?php
$_smarty_tpl->tpl_vars['description'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['full_description']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['product_data']->value['short_description'] : $tmp, null, 0);
?>
<span class="srs-description cm-seo-srs-description"><?php
echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['description']->value), 145, "...");
?>
</span>
</div>
</div>
</div>
<?php
}
}
开发者ID:AlanIsrael0,项目名称:market,代码行数:66,代码来源:ed1798c073aafa1a1d8ad2eef8b0f26daa7bf267.tygh.update_seo.post.tpl.php
示例10: 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
示例11: content_55d2f3631b4907_82550440
function content_55d2f3631b4907_82550440($_smarty_tpl)
{
if (!is_callable('smarty_block_hook')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_function_set_id')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
}
fn_preload_lang_vars(array('returning_customer', 'email', 'username', 'password', 'forgot_password_question', 'remember_me', 'sign_in', 'returning_customer', 'email', 'username', 'password', 'forgot_password_question', 'remember_me', 'sign_in'));
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();
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id']->value) === null || $tmp === '' ? "main_login" : $tmp, null, 0);
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("login", null, null);
ob_start();
?>
<form name="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
_form" action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post">
<input type="hidden" name="return_url" value="<?php
echo htmlspecialchars(($tmp = @$_REQUEST['return_url']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, ENT_QUOTES, 'UTF-8');
?>
" />
<input type="hidden" name="redirect_url" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
?>
" />
<?php
if ($_smarty_tpl->tpl_vars['style']->value == "checkout") {
?>
<div class="checkout-login-form"><?php
echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("returning_customer")), 0);
?>
<?php
}
?>
<div class="ty-control-group">
<label for="login_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="ty-login__filed-label ty-control-group__label cm-required cm-trim<?php
if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") {
?>
cm-email<?php
}
?>
"><?php
if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") {
echo $_smarty_tpl->__("email");
} else {
echo $_smarty_tpl->__("username");
}
?>
</label>
<input type="text" id="login_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" name="user_login" size="30" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_username'], ENT_QUOTES, 'UTF-8');
?>
" class="ty-login__input testlogin" />
</div>
<div class="ty-control-group password-forgot">
<label for="psw_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="ty-login__filed-label ty-control-group__label ty-password-forgot__label cm-required"><?php
echo $_smarty_tpl->__("password");
?>
</label><a href="<?php
echo htmlspecialchars(fn_url("auth.recover_password"), ENT_QUOTES, 'UTF-8');
?>
" class="ty-password-forgot__a" tabindex="5"><?php
echo $_smarty_tpl->__("forgot_password_question");
?>
</a>
<input type="password" id="psw_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
?>
" name="password" size="30" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_password'], ENT_QUOTES, 'UTF-8');
?>
" class="ty-login__input" maxlength="32" />
</div>
<?php
echo $_smarty_tpl->getSubTemplate("common/image_verification.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option' => "use_for_login", 'align' => "left"), 0);
?>
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:7ece75e3df39cfc798e6b6c230313fb74786b763.tygh.login_form.tpl.php
示例12: content_55ccf2eab791e0_87754991
function content_55ccf2eab791e0_87754991($_smarty_tpl)
{
if (!is_callable('smarty_function_script')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
}
if (!is_callable('smarty_function_split')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php';
}
if (!is_callable('smarty_function_math')) {
include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php';
}
if (!is_callable('smarty_block_hook')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_function_set_id')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
}
fn_preload_lang_vars(array('enter_your_price', 'contact_us_for_price', 'empty', 'enter_your_price', 'contact_us_for_price', '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/pagination2.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
}
?>
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:1406409c3aa6750f0be410feed752b0c7a260086.tygh.grid_list.tpl.php
示例13: content_55dc759df31203_27161610
function content_55dc759df31203_27161610($_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_set_id')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
}
fn_preload_lang_vars(array('items', 'for', 'cart_is_empty', 'cart_is_empty', 'view_cart', 'checkout', 'items', 'for', 'cart_is_empty', 'cart_is_empty', 'view_cart', 'checkout'));
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();
$_smarty_tpl->tpl_vars["dropdown_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['block']->value['snapping_id'], null, 0);
$_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:cart_content"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "checkout:cart_content"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<div class="ty-dropdown-box" id="cart_status_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8');
?>
">
<div id="sw_dropdown_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="ty-dropdown-box__title cm-combination">
<a href="<?php
echo htmlspecialchars(fn_url("checkout.cart"), ENT_QUOTES, 'UTF-8');
?>
">
<?php
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:dropdown_title"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "checkout:dropdown_title"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<?php
if ($_SESSION['cart']['amount']) {
?>
<i class="ty-minicart__icon ty-icon-basket filled"></i>
<span class="ty-minicart-title ty-hand"><?php
echo htmlspecialchars($_SESSION['cart']['amount'], ENT_QUOTES, 'UTF-8');
?>
<?php
echo $_smarty_tpl->__("items");
?>
<?php
echo $_smarty_tpl->__("for");
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_SESSION['cart']['display_subtotal']), 0);
?>
</span>
<i class="ty-icon-down-micro"></i>
<?php
} else {
?>
<i class="ty-minicart__icon ty-icon-basket empty"></i>
<span class="ty-minicart-title empty-cart ty-hand"><?php
echo $_smarty_tpl->__("cart_is_empty");
?>
</span>
<i class="ty-icon-down-micro"></i>
<?php
}
?>
<?php
$_block_content = ob_get_clean();
$_block_repeat = false;
echo smarty_block_hook(array('name' => "checkout:dropdown_title"), $_block_content, $_smarty_tpl, $_block_repeat);
}
array_pop($_smarty_tpl->smarty->_tag_stack);
?>
</a>
</div>
<div id="dropdown_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['dropdown_id']->value, ENT_QUOTES, 'UTF-8');
?>
" class="cm-popup-box ty-dropdown-box__content hidden">
<?php
$_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "checkout:minicart"));
$_block_repeat = true;
echo smarty_block_hook(array('name' => "checkout:minicart"), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<div class="cm-cart-content <?php
if ($_smarty_tpl->tpl_vars['block']->value['properties']['products_links_type'] == "thumb") {
?>
cm-cart-content-thumb<?php
}
?>
<?php
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:2f5feee11b24b4da90e53495546e1efb944e5f3e.tygh.cart_content.tpl.php
示例14: content_55d31250106d44_89089488
function content_55d31250106d44_89089488($_smarty_tpl)
{
if (!is_callable('smarty_modifier_truncate')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.truncate.php';
}
if (!is_callable('smarty_block_hook')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
}
if (!is_callable('smarty_function_set_id')) {
include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
}
fn_preload_lang_vars(array('edit', 'gift_certificate', 'remove', 'gift_certificate', 'gift_cert_to', 'gift_cert_from', 'amount', 'send_via', 'email', 'postal_mail', 'free_products', 'remove', 'price', 'qty', 'discount', 'tax', 'subtotal', 'price_summary', 'free', 'free', 'free', 'edit', 'gift_certificate', 'remove', 'gift_certificate', 'gift_cert_to', 'gift_cert_from', 'amount', 'send_via', 'email', 'postal_mail', 'free_products', 'remove', 'price', 'qty', 'discount', 'tax', 'subtotal', 'price_summary', 'free', 'free', 'free'));
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['cart']->value['gift_certificates']) {
?>
<?php
$_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["gift"] = new Smarty_Variable();
$_smarty_tpl->tpl_vars["gift"]->_loop = false;
$_smarty_tpl->tpl_vars["gift_key"] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['cart']->value['gift_certificates'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars["gift"]->key => $_smarty_tpl->tpl_vars["gift"]->value) {
$_smarty_tpl->tpl_vars["gift"]->_loop = true;
$_smarty_tpl->tpl_vars["gift_key"]->value = $_smarty_tpl->tpl_vars["gift"]->key;
$_smarty_tpl->tpl_vars["obj_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['gift']->value['object_id']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['gift_key']->value : $tmp, null, 0);
if (!Smarty::$_smarty_vars['capture']['prods']) {
?>
<?php
$_smarty_tpl->_capture_stack[0][] = array("prods", null, null);
ob_start();
?>
Y<?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();
}
}
?>
<tr>
<td class="ty-cart-content__product-elem ty-cart-content__image-block">
<?php
if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "cart" || $_smarty_tpl->tpl_vars['show_images']->value) {
?>
<div class="ty-cart-content__image cm-reload-<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
?>
" id="product_image_update_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
?>
">
<?php
if (!$_smarty_tpl->tpl_vars['gift']->value['extra']['exclude_from_calculate']) {
?>
<a href="<?php
echo htmlspecialchars(fn_url("gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value), ENT_QUOTES, 'UTF-8');
?>
">
<?php
echo $_smarty_tpl->getSubTemplate("addons/gift_certificates/views/gift_certificates/components/gift_certificates_cart_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0);
?>
</a>
<div class="ty-mtb-xs ty-center"><?php
echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['gift_key']->value, 'but_role' => "text"), 0);
?>
</div>
<?php
} else {
?>
<?php
echo $_smarty_tpl->getSubTemplate("addons/gift_certificates/views/gift_certificates/components/gift_certificates_cart_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('width' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_width'], 'height' => $_smarty_tpl->tpl_vars['settings']->value['Thumbnails']['product_cart_thumbnail_height']), 0);
?>
<?php
}
?>
<!--product_image_update_<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['obj_id']->value, ENT_QUOTES, 'UTF-8');
?>
--></div>
<?php
}
?>
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:a96091ca678122b9eba0cd489acd578889471464.tygh.extra_list.post.tpl.php
示例15: content_55db8c5b6b8106_59561402
function content_55db8c5b6b8106_59561402($_smarty_tpl)
{
if (!is_callable('smarty_block_inline_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
}
if (!is_callable('smarty_function_script')) {
include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
}
if (!is_callable('smarty_block_hook')) {
include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
}
fn_preload_lang_vars(array('file_is_too_large', 'remove_this_item', 'remove_this_item', 'remove_this_item', 'remove_this_item', 'text_select_file', 'upload_another_file', 'local', 'server', 'url', 'text_allowed_to_upload_file_extension'));
$_smarty_tpl->tpl_vars['post_max_size'] = new Smarty_variable(ini_get("post_max_size"), null, 0);
$_smarty_tpl->tpl_vars['post_max_size'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['post_max_size']->value) === null || $tmp === '' ? ini_get("hhvm.server.max_post_size") : $tmp, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['upload_max_filesize'] = new Smarty_variable(ini_get("upload_max_filesize"), null, 0);
$_smarty_tpl->tpl_vars['upload_max_filesize'] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['upload_max_filesize']->value) === null || $tmp === '' ? ini_get("hhvm.server.upload.upload_max_file_size") : $tmp, null, 0);
?>
<?php
$_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array());
$_block_repeat = true;
echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat);
while ($_block_repeat) {
ob_start();
echo '<script';
?>
type="text/javascript">
(function(_, $) {
$.extend(_, {
post_max_size_bytes: '<?php
echo htmlspecialchars(fn_return_bytes($_smarty_tpl->tpl_vars['post_max_size']->value), ENT_QUOTES, 'UTF-8');
?>
',
files_upload_max_size_bytes: '<?php
echo htmlspecialchars(fn_return_bytes($_smarty_tpl->tpl_vars['upload_max_filesize']->value), ENT_QUOTES, 'UTF-8');
?>
',
post_max_size_mbytes: '<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['post_max_size']->value, ENT_QUOTES, 'UTF-8');
?>
',
files_upload_max_size_mbytes: '<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['upload_max_filesize']->value, ENT_QUOTES, 'UTF-8');
?>
',
allowed_file_path: '<?php
echo htmlspecialchars(fn_get_http_files_dir_path(), ENT_QUOTES, 'UTF-8');
?>
'
});
_.tr({
file_is_too_large: '<?php
echo strtr($_smarty_tpl->__("file_is_too_large"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
?>
'
});
}(Tygh, Tygh.$));
<?php
echo '</script';
?>
><?php
$_block_content = ob_get_clean();
$_block_repeat = false;
echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
}
array_pop($_smarty_tpl->smarty->_tag_stack);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/fileuploader_scripts.js"), $_smarty_tpl);
?>
<?php
echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl);
?>
<?php
ob_start();
echo htmlspecialchars(md5($_smarty_tpl->tpl_vars['var_name']->value), ENT_QUOTES, 'UTF-8');
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars["id_var_name"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . $_tmp1, null, 0);
?>
<div class="fileuploader cm-field-container">
<input type="hidden" id="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8');
?>
" value="<?php
if ($_smarty_tpl->tpl_vars['images']->value) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8');
}
?>
" />
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:70f275d7e716467404ae22c2c15b9597d378b0c3.tygh.fileuploader.tpl.php