本文整理汇总了PHP中fn_preload_lang_vars函数的典型用法代码示例。如果您正苦于以下问题:PHP fn_preload_lang_vars函数的具体用法?PHP fn_preload_lang_vars怎么用?PHP fn_preload_lang_vars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fn_preload_lang_vars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_55dc7cc64036d7_14162086
function content_55dc7cc64036d7_14162086($_smarty_tpl)
{
fn_preload_lang_vars(array('switch_layout'));
?>
<div id="content_blocks">
<?php
if (count($_smarty_tpl->tpl_vars['layouts']->value) > 1) {
?>
<div class="form-horizontal form-edit">
<div class="control-group">
<label class="control-label"><?php
echo $_smarty_tpl->__("switch_layout");
?>
</label>
<div class="controls">
<?php
echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "graphic", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "s_layout="), 'items' => $_smarty_tpl->tpl_vars['layouts']->value, 'selected_id' => $_smarty_tpl->tpl_vars['runtime']->value['layout']['layout_id'], 'key_name' => "name", 'display_icons' => false, 'target_id' => "content_blocks"), 0);
?>
</div>
</div>
</div>
<?php
}
?>
<?php
echo $_smarty_tpl->getSubTemplate("views/block_manager/manage.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
?>
</div><?php
}
开发者ID:AlanIsrael0,项目名称:market,代码行数:31,代码来源:baed4232531541007dcc288b4096a4141cb164e7.tygh.manage_in_tab.tpl.php
示例2: content_55db8bdb7d5a56_01074186
function content_55db8bdb7d5a56_01074186($_smarty_tpl)
{
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('addons.tags.add_a_tag'));
$_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(_, $) {
_.tr({
addons_tags_add_a_tag: '<?php
echo strtr($_smarty_tpl->__("addons.tags.add_a_tag"), 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);
}
开发者ID:AlanIsrael0,项目名称:market,代码行数:32,代码来源:e172a9969bb5f4d0423f67eb972cbec79013987c.tygh.scripts.post.tpl.php
示例3: content_55dc7cc5ddc669_92196486
function content_55dc7cc5ddc669_92196486($_smarty_tpl)
{
fn_preload_lang_vars(array('blog', 'image'));
if ($_smarty_tpl->tpl_vars['page_type']->value == @constant('PAGE_TYPE_BLOG')) {
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("blog"), 'target' => "#blog_image"), 0);
?>
<div id="blog_image" class="in collapse">
<fieldset>
<div class="control-group">
<label class="control-label"><?php
echo $_smarty_tpl->__("image");
?>
:</label>
<div class="controls">
<?php
echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "blog_image", 'image_object_type' => "blog", 'image_pair' => $_smarty_tpl->tpl_vars['page_data']->value['main_pair'], 'no_detailed' => true, 'hide_titles' => true), 0);
?>
</div>
</div>
</fieldset>
</div>
<?php
}
}
开发者ID:AlanIsrael0,项目名称:market,代码行数:30,代码来源:13722cb4aec7af7e2c68ac7a87eb08dfa848a178.tygh.detailed_content.post.tpl.php
示例4: content_55ccecdc1c5410_56810922
function content_55ccecdc1c5410_56810922($_smarty_tpl)
{
fn_preload_lang_vars(array('comments_and_reviews', 'discussion_title_product'));
if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("ULTIMATE") || fn_allowed_for("MULTIVENDOR")) {
?>
<?php
echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("comments_and_reviews"), 'target' => "#discussion_product_setting"), 0);
?>
<div id="discussion_product_setting" class="in collapse">
<fieldset>
<?php
$_smarty_tpl->tpl_vars['no_hide_input'] = new Smarty_variable(false, null, 0);
?>
<?php
if (fn_allowed_for("ULTIMATE")) {
?>
<?php
$_smarty_tpl->tpl_vars['no_hide_input'] = new Smarty_variable(true, null, 0);
?>
<?php
}
?>
<?php
echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion_manager/components/allow_discussion.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prefix' => "product_data", 'object_id' => $_smarty_tpl->tpl_vars['product_data']->value['product_id'], 'object_type' => "P", 'title' => __("discussion_title_product"), 'no_hide_input' => $_smarty_tpl->tpl_vars['no_hide_input']->value), 0);
?>
</fieldset>
</div>
<?php
}
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:33,代码来源:be8f093c8db2988ee1f4adf0a4b3297dbf6e8b75.tygh.detailed_content.post.tpl.php
示例5: content_55cced68223040_79856152
function content_55cced68223040_79856152($_smarty_tpl)
{
fn_preload_lang_vars(array('cancel'));
?>
<a class="cm-dialog-closer cm-cancel tool-link btn"><?php
echo $_smarty_tpl->__("cancel");
?>
</a>
<?php
if ($_smarty_tpl->tpl_vars['is_js']->value == true) {
?>
<?php
echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "submit", 'but_text' => $_smarty_tpl->tpl_vars['but_close_text']->value, 'but_onclick' => $_smarty_tpl->tpl_vars['but_close_onclick']->value, 'but_role' => "button_main", 'but_meta' => "cm-process-items cm-dialog-closer btn-primary"), 0);
?>
<?php
if ($_smarty_tpl->tpl_vars['but_text']->value) {
?>
<?php
echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => '', 'but_text' => $_smarty_tpl->tpl_vars['but_text']->value, 'but_onclick' => $_smarty_tpl->tpl_vars['but_onclick']->value, 'but_role' => "submit", 'but_meta' => "cm-process-items btn-primary"), 0);
?>
<?php
}
} else {
?>
<?php
echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "submit", 'but_text' => $_smarty_tpl->tpl_vars['but_close_text']->value, 'but_role' => "button_main", 'but_meta' => "cm-process-items btn-primary"), 0);
?>
<?php
}
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:33,代码来源:32bb05f0d26ddf9325c62144de41c7e6114f9c2e.tygh.add_close.tpl.php
示例6: content_55e6204ede7d19_44315962
function content_55e6204ede7d19_44315962($_smarty_tpl)
{
fn_preload_lang_vars(array('install_theme_text', 'upload'));
?>
<div id="upload_upgrade_package_container" class="install-addon">
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" method="post" name="upgrade_package_upload_form" class="form-horizontal" enctype="multipart/form-data">
<div class="install-addon-wrapper">
<img class="install-addon-banner" src="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8');
?>
/addon_box.png" width="151px" height="141px" />
<p class="install-addon-text"><?php
echo $_smarty_tpl->__("install_theme_text", array('[exts]' => implode(',', $_smarty_tpl->tpl_vars['config']->value['allowed_pack_exts'])));
?>
</p>
<?php
echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "upgrade_pack[0]"), 0);
?>
</div>
<div class="buttons-container">
<?php
echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[upgrade_center.upload]", 'cancel_action' => "close", 'but_text' => __("upload")), 0);
?>
</div>
</form>
<!--upload_upgrade_package_container--></div>
<?php
}
开发者ID:AlanIsrael0,项目名称:market,代码行数:35,代码来源:88af1f8389fbe64633f89b7f2176733bd101a671.tygh.upload_upgrade_package.tpl.php
示例7: generate
/**
* Generates menu items from scheme
* @param array $request request params
* @return array menu items
*/
public function generate($request)
{
$menu = fn_get_schema('menu', 'menu', 'php');
$this->_request = $request;
$actions = array();
foreach ($menu as $group => &$menu_data) {
// Get static section
foreach ($menu_data as $root => &$items) {
$items['items'] = $this->_processItems($items['items'], $root, '');
if (empty($items['items'])) {
unset($menu[$group][$root]);
continue;
}
}
}
unset($items, $menu_data);
$menu['top'] = $this->_sort($menu['top']);
$menu['central'] = $this->_sort($menu['central']);
$menu = $this->_getSettingsSections($menu);
fn_preload_lang_vars($this->_lang_cache);
$selected = $this->_selected;
/**
* Changes generated menu items
*
* @param array $request request params
* @param array $menu items
* @param array $actions items Action value, if exists. See: fn_get_route
* @param array $this->selected Menu item, selected by the dispatch
*/
fn_set_hook('backend_menu_generate_post', $request, $menu, $actions, $this->_selected);
return array($menu, $actions, $this->_selected);
}
示例8: content_55d80a94112f14_93561957
function content_55d80a94112f14_93561957($_smarty_tpl)
{
fn_preload_lang_vars(array('search', 'search_for_pattern'));
?>
<div class="sidebar-row">
<h6><?php
echo $_smarty_tpl->__("search");
?>
</h6>
<form action="<?php
echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
?>
" name="langvars_search_form" method="get">
<div class="sidebar-field">
<label><?php
echo $_smarty_tpl->__("search_for_pattern");
?>
</label>
<input type="text" name="q" size="20" value="<?php
echo htmlspecialchars($_REQUEST['q'], ENT_QUOTES, 'UTF-8');
?>
" class="search-input-text" />
</div>
<?php
echo $_smarty_tpl->getSubTemplate("buttons/search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[languages.translations]"), 0);
?>
</form>
</div><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:33,代码来源:9cfc36348b164efbb965cf182e80f9496dc1a4e4.tygh.langvars_search_form.tpl.php
示例9: content_55e01fce31b685_14697256
function content_55e01fce31b685_14697256($_smarty_tpl)
{
fn_preload_lang_vars(array('gift_certificate'));
if ($_smarty_tpl->tpl_vars['order_info']->value['use_gift_certificates']) {
$_smarty_tpl->tpl_vars["certificate"] = new Smarty_Variable();
$_smarty_tpl->tpl_vars["certificate"]->_loop = false;
$_smarty_tpl->tpl_vars["code"] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['order_info']->value['use_gift_certificates'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars["certificate"]->key => $_smarty_tpl->tpl_vars["certificate"]->value) {
$_smarty_tpl->tpl_vars["certificate"]->_loop = true;
$_smarty_tpl->tpl_vars["code"]->value = $_smarty_tpl->tpl_vars["certificate"]->key;
?>
<tr>
<td colspan="2" style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">
<b><?php
echo $_smarty_tpl->__("gift_certificate");
?>
</b> <?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8');
?>
(<?php
echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['certificate']->value['cost']), 0);
?>
)</td>
</tr>
<?php
}
}
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:32,代码来源:e74f365a29253f6c255b1936dcd9e460e750e467.tygh.totals.post.tpl.php
示例10: content_55d2f403073fe8_22549633
function content_55d2f403073fe8_22549633($_smarty_tpl)
{
fn_preload_lang_vars(array('affiliate_text_letter_footer', 'customer_text_letter_footer'));
?>
<p>
<?php
if ($_smarty_tpl->tpl_vars['user_type']->value == 'P' || $_smarty_tpl->tpl_vars['user_data']->value['user_type'] == 'P') {
?>
<?php
echo $_smarty_tpl->__("affiliate_text_letter_footer");
?>
<?php
} else {
?>
<?php
echo $_smarty_tpl->__("customer_text_letter_footer");
?>
<?php
}
?>
</p>
</body>
</html><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:26,代码来源:dff028172256912b79289284328b5766cebbee8c.tygh.letter_footer.tpl.php
示例11: content_55dde9285caa99_90380445
function content_55dde9285caa99_90380445($_smarty_tpl)
{
fn_preload_lang_vars(array('cart', 'wishlist'));
?>
<label for="cb_product_type_c"><input type="checkbox" value="Y" <?php
if ($_smarty_tpl->tpl_vars['search']->value['product_type_c'] == "Y" || $_smarty_tpl->tpl_vars['check_all']->value) {
?>
checked="checked"<?php
}
?>
name="product_type_c" id="cb_product_type_c" onclick="if (!this.checked) document.getElementById('cb_product_type_w').checked = true;"/>
<?php
echo $_smarty_tpl->__("cart");
?>
</label>
<label for="cb_product_type_w"><input type="checkbox" value="Y" <?php
if ($_smarty_tpl->tpl_vars['search']->value['product_type_w'] == "Y" || $_smarty_tpl->tpl_vars['check_all']->value) {
?>
checked="checked"<?php
}
?>
name="product_type_w" id="cb_product_type_w" onclick="if (!this.checked) document.getElementById('cb_product_type_c').checked = true;" />
<?php
echo $_smarty_tpl->__("wishlist");
?>
</label><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:28,代码来源:5dfaa5d73e943966ccfe54d95c14081833e7d449.tygh.search_form.override.tpl.php
示例12: content_55ccecdc09a4c6_77321508
function content_55ccecdc09a4c6_77321508($_smarty_tpl)
{
fn_preload_lang_vars(array('no_items'));
?>
<div id="content_features" class="hidden">
<?php
if ($_smarty_tpl->tpl_vars['product_data']->value['product_features']) {
?>
<fieldset>
<?php
echo $_smarty_tpl->getSubTemplate("views/products/components/product_assign_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_features' => $_smarty_tpl->tpl_vars['product_data']->value['product_features']), 0);
?>
</fieldset>
<?php
} else {
?>
<p class="no-items"><?php
echo $_smarty_tpl->__("no_items");
?>
</p>
<?php
}
?>
</div><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:27,代码来源:e7ccf5b7138d3453140c26c3a919a8205aa59f5f.tygh.products_update_features.tpl.php
示例13: content_55e352f7a127b4_58317879
function content_55e352f7a127b4_58317879($_smarty_tpl)
{
fn_preload_lang_vars(array('page_link', 'open_in_new_window'));
?>
<div class="control-group">
<label for="page_link" class="control-label cm-required"><?php
echo $_smarty_tpl->__("page_link");
?>
:</label>
<div class="controls">
<input type="text" name="page_data[link]" id="page_link" size="55" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['link'], ENT_QUOTES, 'UTF-8');
?>
" class="input-large" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="page_link_new_window"><?php
echo $_smarty_tpl->__("open_in_new_window");
?>
:</label>
<div class="controls">
<input type="hidden" name="page_data[new_window]" value="0" />
<input <?php
if ($_smarty_tpl->tpl_vars['page_data']->value['new_window'] != "0") {
?>
checked="checked"<?php
}
?>
type="checkbox" name="page_data[new_window]" id="page_link_new_window" size="55" value="1" />
</div>
</div><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:34,代码来源:872dc39aeb6d746d6f8772e003632d7658d73fba.tygh.pages_link.tpl.php
示例14: content_55cdc94f8245e5_53824640
function content_55cdc94f8245e5_53824640($_smarty_tpl)
{
fn_preload_lang_vars(array('close'));
?>
<div class='topmenu_wrapper ls_menu_resize'>
<div class='ls_upper_despre'>
<div class='ls_upper_left_despre'>
<span class='ls_upper_title'>
ABOUT US
</span>
<ul class='ls_despre_text'>
<li><a href='#'>CORIOLAN BRAND</a></li>
<li><a href='#'>TIMELINE</a></li>
<li><a href='#'>VIRTUAL TOUR</a></li>
<li><a href='#'>SOCIAL RESPONSABILITY</a></li>
</ul>
</div>
<div class='ls_upper_mid_despre'>
<span class='ls_upper_title'>
PRESS
</span>
<ul class='ls_despre_text'>
<li><a href='#'>PRESS KIT</a></li>
<li><a href='#'>COMUNICATION</a></li>
<li><a href='#'>PHOTO/VIDEO GALLERY</a></li>
</ul>
</div>
<div class='ls_upper_right_despre'>
<span class='ls_upper_title'>
RESELLERS
</span>
<ul class='ls_despre_text'>
<li><a href='#'>GASESTE MAGAZIN COLABORATOR</a></li>
<li><a href='#'>BECOME A PARTNER</a></li>
</ul>
</div>
</div>
<div class='ls_despre_mid'>
<ul class='ls_top_info'>
<li><a href='#'>@Coriolan 2014</a></li>
<li><a href='#'>SiteMap</a></li>
<li><a href='#'>Terms and conditions</a></li>
<li><a href='#'>Privacy</a></li>
<li><a href='#'>Online pays and security</a></li>
<li><a href='#'>Cookies Policy</a></li>
</ul>
</div>
<div class='ls_despre_bot'>
<span class='ls_dropdown_bot'>
Do you have a jewelry store and you want to propose your customers
Coriolan jewelry ? Become a partner
</span>
<div class='ls_close_window'><a href='#'><?php
echo $_smarty_tpl->__("close");
?>
</a></div>
</div>
</div><?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:59,代码来源:33bdd45b7b68c229d5fd2a7c4c62609dd8833f31.string.php
示例15: content_55cdb2ac6f8f90_64065608
function content_55cdb2ac6f8f90_64065608($_smarty_tpl)
{
fn_preload_lang_vars(array('seo', 'seo_name', 'seo.create_redirect'));
if (!$_smarty_tpl->tpl_vars['hide_title']->value) {
echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo"), 'target' => "#acc_addon_seo"), 0);
?>
<?php
}
?>
<div id="acc_addon_seo" class="collapsed in">
<div class="control-group <?php
if ($_smarty_tpl->tpl_vars['share_dont_hide']->value) {
?>
cm-no-hide-input<?php
}
?>
">
<label class="control-label" for="elm_seo_name"><?php
echo $_smarty_tpl->__("seo_name");
?>
:</label>
<div class="controls">
<?php
$_smarty_tpl->tpl_vars['parent_uri'] = new Smarty_variable(fn_get_seo_parent_uri($_smarty_tpl->tpl_vars['object_id']->value, $_smarty_tpl->tpl_vars['object_type']->value, @constant('DESCR_SL')), null, 0);
?>
<span class="cm-field-prefix"><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_uri']->value['prefix'], ENT_QUOTES, 'UTF-8');
?>
</span><input type="text" name="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['object_name']->value, ENT_QUOTES, 'UTF-8');
?>
[seo_name]" id="elm_seo_name" size="10" value="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['object_data']->value['seo_name'], ENT_QUOTES, 'UTF-8');
?>
" class="input-long cm-seo-check-changed" /><span class="cm-field-suffix"><?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_uri']->value['suffix'], ENT_QUOTES, 'UTF-8');
?>
</span>
<div class="hidden cm-seo-check-changed-block">
<input type="hidden" name="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['object_name']->value, ENT_QUOTES, 'UTF-8');
?>
[seo_create_redirect]" disabled="disabled" value="0" />
<label class="checkbox inline"><input type="checkbox" name="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['object_name']->value, ENT_QUOTES, 'UTF-8');
?>
[seo_create_redirect]" value="1" checked="checked" disabled="disabled" /><?php
echo $_smarty_tpl->__("seo.create_redirect");
?>
</label>
</div>
</div>
</div>
</div>
<?php
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:59,代码来源:4563dbfbc399e7ff3eb468b3b031dda725c62faf.tygh.seo_name_field.tpl.php