/** * Smarty plugin * @package Smarty * @subpackage plugins */ function smarty_function_script($params, &$smarty) { static $scripts = array(); if (!isset($scripts[$params['src']])) { if (strpos($params['src'], '//') === false) { $src = Registry::get('config.current_location') . '/' . fn_link_attach($params['src'], 'ver=' . PRODUCT_VERSION); } else { $src = $params['src']; } $scripts[$params['src']] = '<script type="text/javascript"' . (!empty($params['class']) ? ' class="' . $params['class'] . '" ' : '') . ' src="' . $src . '" ' . (isset($params['charset']) ? 'charset="' . $params['charset'] . '"' : '') . (isset($params['escape']) ? '><\\/script>' : '></script>'); if (defined('AJAX_REQUEST') || Registry::get('runtime.inside_scripts')) { return $scripts[$params['src']]; } else { if (isset($params['no-defer']) && $params['no-defer']) { return $scripts[$params['src']]; } else { $cache_name = $smarty->getTemplateVars('block_cache_name'); if (!empty($cache_name)) { $cached_content = Registry::get($cache_name); if (!isset($cached_content['javascript'])) { $cached_content['javascript'] = ''; } $cached_content['javascript'] .= $scripts[$params['src']]; Registry::set($cache_name, $cached_content, true); } $repeat = false; $smarty->loadPlugin('smarty_block_inline_script'); smarty_block_inline_script(array(), $scripts[$params['src']], $smarty, $repeat); return '<!-- Inline script moved to the bottom of the page -->'; } } } }
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); }
function smarty_helper_inline_scripts($params, $content, &$smarty, &$repeat) { Registry::del('runtime.inside_scripts'); // Get inline scripts $repeat = false; $smarty->loadPlugin('smarty_block_inline_script'); $inline_scripts = "\n\n<!-- Inline scripts -->\n" . smarty_block_inline_script(array('output' => true), '', $smarty, $repeat); // FIXME: Backward compatibility. If {scripts} included at the TOP of the page, do not grab inline scripts. Registry::set('runtime.inside_scripts', 1); return $inline_scripts; }
function content_55db8bdb4fee46_86617825($_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('twgadmin_mobile_app')); if ($_smarty_tpl->tpl_vars['runtime']->value['twigmo']['admin_connection']['access_id']) { ?> <div class="twg-mobile-app-link"> <a href="<?php echo htmlspecialchars(fn_url("twigmo_admin_app.view"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("twgadmin_mobile_app"); ?> </a> </div> <?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(_, $) { $(document).ready(function() { $('div.twg-mobile-app-link').detach().insertBefore('ul.nav.hover-show.nav-pills').show(); }); }(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 } }
function content_55db8bdb228734_82792347($_smarty_tpl) { if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } ?> <div class="help-tutorial-wrapper"><div class="help-tutorial-content clearfix <?php if ($_smarty_tpl->tpl_vars['count']->value == 2) { ?> help-tutorial-content_width_big<?php } ?> " id="help_tutorial_content"><?php if ($_smarty_tpl->tpl_vars['count']->value == 2) { ?> <iframe width="460" height="360" src="//www.youtube.com/embed/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8'); ?> ?wmode=transparent&rel=0&html5=1" frameborder="0" allowfullscreen align="left"></iframe><iframe width="460" height="360" src="//www.youtube.com/embed/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item2']->value, ENT_QUOTES, 'UTF-8'); ?> ?wmode=transparent&rel=0&html5=1" frameborder="0" allowfullscreen align="right"></iframe><?php } else { ?> <iframe width="640" height="360" src="//www.youtube.com/embed/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8'); ?> ?wmode=transparent&rel=0&html5=1" frameborder="0" allowfullscreen></iframe><?php } ?> </div></div><?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(_, $) {$(function() {$('#help_tutorial_link').on('click', function() {var self = $(this);self.toggleClass('open');$('#help_tutorial_content').toggleClass('open');});if($('#elm_sidebar').length == 0) {$('#help_tutorial_link').css('margin-left', 0);}});}(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); }
function content_55db8bdb7ae672_49551146($_smarty_tpl) { if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } ?> <!-- GA code --> <?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"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-40339423-1']); _gaq.push(['_setDomainName', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_host'], ENT_QUOTES, 'UTF-8'); ?> ']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); <?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); ?> <!-- GA code end --> <?php }
public static function outputScript($content, \Smarty_Internal_Template $template) { if (defined('AJAX_REQUEST')) { return $content; } if ($template->smarty->getTemplateVars('block_rendering')) { if (!$template->smarty->getTemplateVars('block_parse_js')) { return $content; } } $pattern = '/\\<script([^>]*)\\>.*?\\<\\/script\\>/s'; if (preg_match_all($pattern, $content, $matches)) { if (Registry::get('runtime.inside_scripts')) { return $content; } $cache_name = $template->smarty->getTemplateVars('block_cache_name'); $m = $matches[0]; $m_attrs = $matches[1]; $javascript = ''; foreach ($m as $index => $match) { if (strpos($m_attrs[$index], 'data-no-defer') === false) { $repeat = false; $template->smarty->loadPlugin('smarty_block_inline_script'); smarty_block_inline_script(array(), $match, $template->smarty, $repeat); $content = str_replace($match, '<!-- Inline script moved to the bottom of the page -->', $content); $javascript .= $match; } } if (!empty($cache_name)) { $cached_content = Registry::get($cache_name); if (!isset($cached_content['javascript'])) { $cached_content['javascript'] = ''; } $cached_content['javascript'] .= $javascript; Registry::set($cache_name, $cached_content, true); } } return $content; }
function content_55dc7cba1ff3d0_79057342($_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_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('period', 'all', 'this_day', 'this_week', 'this_month', 'this_year', 'yesterday', 'previous_week', 'previous_month', 'previous_year', 'last_24hours', 'last_n_days', 'last_n_days', 'custom', 'select_dates')); if ($_smarty_tpl->tpl_vars['display']->value != "form") { ?> <div class="nowrap"> <div class="form-inline"> <?php } else { ?> <div class="sidebar-field"> <?php } ?> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> period_selects"><?php echo $_smarty_tpl->__("period"); ?> :</label> <select name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> period" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> period_selects"> <option value="A" <?php if ($_smarty_tpl->tpl_vars['period']->value == "A" || !$_smarty_tpl->tpl_vars['period']->value) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("all"); ?> </option> <optgroup label="============="> <option value="D" <?php if ($_smarty_tpl->tpl_vars['period']->value == "D") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("this_day"); ?> </option> <option value="W" <?php if ($_smarty_tpl->tpl_vars['period']->value == "W") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("this_week"); ?> </option> <option value="M" <?php if ($_smarty_tpl->tpl_vars['period']->value == "M") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("this_month"); ?> </option> <option value="Y" <?php if ($_smarty_tpl->tpl_vars['period']->value == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("this_year"); ?> </option> </optgroup> <optgroup label="============="> <option value="LD" <?php if ($_smarty_tpl->tpl_vars['period']->value == "LD") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("yesterday"); ?> </option> <option value="LW" <?php if ($_smarty_tpl->tpl_vars['period']->value == "LW") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("previous_week"); ?> </option> <option value="LM" <?php if ($_smarty_tpl->tpl_vars['period']->value == "LM") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("previous_month"); ?> </option> <option value="LY" <?php if ($_smarty_tpl->tpl_vars['period']->value == "LY") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("previous_year"); ?> </option> </optgroup> <optgroup label="============="> <option value="HH" <?php if ($_smarty_tpl->tpl_vars['period']->value == "HH") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("last_24hours"); ?> </option> <option value="HW" <?php if ($_smarty_tpl->tpl_vars['period']->value == "HW") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("last_n_days", array("[N]" => 7)); ?> </option> <option value="HM" <?php if ($_smarty_tpl->tpl_vars['period']->value == "HM") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("last_n_days", array("[N]" => 30)); ?> </option> </optgroup> <optgroup label="============="> <option value="C" <?php if ($_smarty_tpl->tpl_vars['period']->value == "C") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("custom"); ?> </option> </optgroup> </select> <?php if ($_smarty_tpl->tpl_vars['display']->value != "form") { ?> <?php } else { ?> </div> <div class="sidebar-field"> <?php } ?> <label<?php if ($_smarty_tpl->tpl_vars['display']->value != "form") { ?> class="label-html"<?php } ?> ><?php echo $_smarty_tpl->__("select_dates"); ?> :</label> <?php $_smarty_tpl->tpl_vars["time_from"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . "time_from", null, 0); ?> <?php $_smarty_tpl->tpl_vars["time_to"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['prefix']->value . "time_to", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['display']->value == "form") { ?> <?php $_smarty_tpl->tpl_vars["date_meta"] = new Smarty_variable("input-date", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["date_meta"] = new Smarty_variable("input-small", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "f_date", 'date_name' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "time_from", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['time_from']->value], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#" . (string) $_smarty_tpl->tpl_vars['prefix']->value . "period_selects').val('C');\"", 'date_meta' => $_smarty_tpl->tpl_vars['date_meta']->value), 0); ?> <?php if ($_smarty_tpl->tpl_vars['display']->value == "form") { ?> - <?php } else { ?> - <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "t_date", 'date_name' => (string) $_smarty_tpl->tpl_vars['prefix']->value . "time_to", 'date_val' => $_smarty_tpl->tpl_vars['search']->value[$_smarty_tpl->tpl_vars['time_to']->value], 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => "onchange=\"Tygh." . "\$" . "('#" . (string) $_smarty_tpl->tpl_vars['prefix']->value . "period_selects').val('C');\"", 'date_meta' => $_smarty_tpl->tpl_vars['date_meta']->value), 0); ?> <?php if ($_smarty_tpl->tpl_vars['display']->value != "form") { ?> </div> </div> <?php } else { ?> </div> <?php } ?> <?php echo smarty_function_script(array('src' => "js/tygh/period_selector.js"), $_smarty_tpl); ?> <?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"> Tygh.$(document).ready(function() <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> Tygh.$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> period_selects').cePeriodSelector(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> from: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> f_date', to: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8'); ?> t_date' <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); <?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 }
function content_55db8bf449f911_97854368($_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('share.congratulations_first_order', 'share.first_order_tweet', 'share.installation_tweet', 'share.installation_tweet')); if ($_smarty_tpl->tpl_vars['mode']->value == "notification") { ?> <?php echo $_smarty_tpl->__("share.congratulations_first_order"); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['url'] = new Smarty_variable(fn_url('', "C"), null, 0); $_smarty_tpl->tpl_vars['tweet_text'] = new Smarty_variable($_smarty_tpl->__("share.first_order_tweet", array("[product]" => @constant('PRODUCT_NAME'))), null, 0); ?> <ul class="inline social-share"> <li><a href="#" class="uibutton large confirm" onclick=" window.open('https://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8'); ?> &p[images][0]=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['logos']->value['theme']['image']['http_image_path'], ENT_QUOTES, 'UTF-8'); ?> &p[title]=<?php if ($_smarty_tpl->tpl_vars['mode']->value == "notification") { echo htmlspecialchars($_smarty_tpl->tpl_vars['tweet_text']->value, ENT_QUOTES, 'UTF-8'); } else { echo $_smarty_tpl->__("share.installation_tweet", array('[product_name]' => $_smarty_tpl->tpl_vars['product_name']->value)); } ?> ', 'facebook-share-dialog', 'width=626,height=436'); return false;"> Share on Facebook</a></li> <li><a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="<?php if ($_smarty_tpl->tpl_vars['mode']->value == "notification") { echo htmlspecialchars($_smarty_tpl->tpl_vars['tweet_text']->value, ENT_QUOTES, 'UTF-8'); } else { echo $_smarty_tpl->__("share.installation_tweet", array('[product_name]' => $_smarty_tpl->tpl_vars['product_name']->value)); } ?> " data-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8'); ?> " data-via="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['resources']['twitter'], ENT_QUOTES, 'UTF-8'); ?> " data-size="large">Tweet</a> <?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(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");<?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); ?> </li> </ul> <?php }
function content_55db8bf91f2713_98625850($_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('new_administrator_password', 'show', 'generate', 'hide', 'show', 'hide')); ?> <div class="control-group setting-wide"> <label for="password_field" class="control-label"><?php echo $_smarty_tpl->__("new_administrator_password"); ?> :</label> <div class="controls"> <input type="password" value="" id="password_field" name="new_password"><br> <a class="cm-show-password a-pseudo cm-off-password" data-ca-result-id="password_field"><?php echo $_smarty_tpl->__("show"); ?> </a> <a class="cm-generate-password a-pseudo" data-ca-result-id="password_field"><?php echo $_smarty_tpl->__("generate"); ?> </a> </div> </div> <?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($, _) { $('.cm-show-password').on('click', function(e) { _this = $(this); if (_this.hasClass('cm-off-password')) { $('#' + _this.data('caResultId')).prop('type', 'text'); _this.removeClass('cm-off-password').html('<?php echo $_smarty_tpl->__("hide"); ?> '); } else { $('#' + _this.data('caResultId')).prop('type', 'password'); _this.addClass('cm-off-password').html('<?php echo $_smarty_tpl->__("show"); ?> '); } }); $('.cm-generate-password').on('click', function(e) { $('#' + $(this).data('caResultId')).val(Math.random().toString(36).slice(-10)).prop('type', 'text'); if ($('.cm-show-password').hasClass('cm-off-password')) { $('.cm-show-password').removeClass('cm-off-password').html('<?php echo $_smarty_tpl->__("hide"); ?> '); } }); })(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); }
function content_55e62050aa1083_90850588($_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_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('text_restore_question', 'open_file_or_create_new', 'new_file', 'create_file', 'could_not_open_file', 'upload_file', 'upload', 'new_folder', 'name', 'new_file', 'name', 'on_site_template_editing', 'restore_from_repository', 'download', 'rename', 'delete', 'create_file', 'create_folder', 'upload_file', 'create', 'templates')); echo smarty_function_script(array('src' => "js/lib/ace/ace.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/templates.js"), $_smarty_tpl); ?> <?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 (_, $) { _.tr({ text_restore_question : '<?php echo strtr($_smarty_tpl->__("text_restore_question"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_enter_filename : '<?php echo $_smarty_tpl->__(strtr("text_enter_filename", array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"))); ?> ', text_are_you_sure_to_delete_file : '<?php echo $_smarty_tpl->__(strtr("text_are_you_sure_to_delete_file", array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"))); ?> ' }); <?php if ($_smarty_tpl->tpl_vars['selected_path']->value) { ?> _.templates.selected_path = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_path']->value, ENT_QUOTES, 'UTF-8'); ?> '; <?php } ?> _.templates.rel_path = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rel_path']->value, ENT_QUOTES, 'UTF-8'); ?> '; }(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 $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <div id="error_box" class="hidden"> <div align="center" class="notification-e"> <div id="error_status"></div> </div> </div> <div id="status_box" class="hidden"> <div class="notification-n" align="center"> <div id="status"></div> </div> </div> <!--Editor--> <div class="te-content cm-te-content"> <div id="template_text"></div> <div id="template_image" class="te-template-image"></div> </div> <div class="cm-te-messages"> <div class="te-empty-folder empty-text"> <h2><?php echo $_smarty_tpl->__("open_file_or_create_new"); ?> </h2> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_file", 'text' => __("new_file"), 'content' => '', 'link_text' => __("create_file"), 'act' => "general", 'link_class' => "cm-dialog-auto-size btn-primary", 'icon' => "icon-plus icon-white"), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "templates:directory_action")); $_block_repeat = true; echo smarty_block_hook(array('name' => "templates:directory_action"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "templates:directory_action"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div class="te-unknown-file empty-text"> <h2><?php echo $_smarty_tpl->__("could_not_open_file"); ?> </h2> </div> </div> <div class="hidden" id="content_upload_file" title="<?php echo $_smarty_tpl->__("upload_file"); ?> "> <div class="install-addon"> <form name="upload_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" enctype="multipart/form-data" class="form-horizontal"> <input type="hidden" name="path" id="upload_path" /> <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" /> <?php echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "uploaded_data[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[templates.upload_file]", 'but_meta' => "cm-te-upload-file", 'cancel_action' => "close", 'but_text' => __("upload")), 0); ?> </div> </form> </div> </div> <div class="hidden" id="content_add_new_folder" title="<?php echo $_smarty_tpl->__("new_folder"); ?> "> <form name="add_folder_form" class="form-horizontal form-edit"> <div class="control-group"> <label for="elm_new_folder" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" class="span4" name="new_folder" id="elm_new_folder" value="" /> </div> </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('cancel_action' => "close", 'but_meta' => "cm-te-create-folder cm-dialog-closer"), 0); ?> </div> </form> </div> <div class="hidden" id="content_add_new_file" title="<?php echo $_smarty_tpl->__("new_file"); ?> "> <form name="add_file_form" class="form-horizontal form-edit"> <div class="control-group"> <label for="elm_new_file" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" class="span4" name="new_file" id="elm_new_file" value="" /> </div> </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('cancel_action' => "close", 'but_meta' => "cm-dialog-closer cm-te-create-file"), 0); ?> </div> </form> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['current_url'] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "templates:on_site_template_editing")); $_block_repeat = true; echo smarty_block_hook(array('name' => "templates:on_site_template_editing"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li class="cm-te-onsite-editing"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("on_site_template_editing"), 'href' => fn_url("customization.update_mode?type=design&status=enable&return_url=" . (string) $_smarty_tpl->tpl_vars['current_url']->value), 'target' => "_blank", 'class' => "cm-post")); ?> </li> <li class="divider"></li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "templates:on_site_template_editing"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "templates:restore_from_repository")); $_block_repeat = true; echo smarty_block_hook(array('name' => "templates:restore_from_repository"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li class="cm-te-restore"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("restore_from_repository"))); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "templates:restore_from_repository"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <li class="cm-te-getfile"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("download"))); ?> </li> <li class="cm-te-rename"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("rename"))); ?> </li> <li class="cm-te-delete"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"))); ?> </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()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'class' => "ce-te-actions")); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "templates:save_file")); $_block_repeat = true; echo smarty_block_hook(array('name' => "templates:save_file"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_changes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-te-save-file btn-primary disabled", 'but_role' => "submit"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "templates:save_file"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "templates:tree")); $_block_repeat = true; echo smarty_block_hook(array('name' => "templates:tree"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="sidebar-row"> <!--file tree--> <div id="filelist" class="cm-te-file-tree nested-list nested-list-folders"></div> <!--#file tree--> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "templates:tree"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "templates:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "templates:tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li class="cm-te-create-file"><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_file", 'content' => '', 'link_text' => __("create_file"), 'act' => "edit", 'no_icon_link' => "true", 'link_class' => "cm-dialog-auto-size"), 0); ?> </li> <li class="cm-te-create-folder"><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_folder", 'content' => '', 'link_text' => __("create_folder"), 'act' => "edit", 'no_icon_link' => "true", 'link_class' => "cm-dialog-auto-size"), 0); ?> </li> <li><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_file", 'content' => '', 'link_text' => __("upload_file"), 'act' => "edit", 'no_icon_link' => "true", 'link_class' => "cm-dialog-auto-size"), 0); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "templates:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prefix' => "main", 'tool_meta' => "cm-te-create", 'hide_actions' => true, 'tools_list' => Smarty::$_smarty_vars['capture']['tools_list'], 'display' => "inline", 'title' => __("create"), 'icon' => "icon-plus"), 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 $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); echo $_smarty_tpl->__("templates"); ?> <span class="muted f-small cm-te-path te-path"></span> <?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 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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['mainbox'], 'title' => Smarty::$_smarty_vars['capture']['mainbox_title'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'sidebar_position' => "left"), 0); ?> <?php }
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)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?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(_, $) { _.tr({ cannot_buy: '<?php echo strtr($_smarty_tpl->__("cannot_buy"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', no_products_selected: '<?php echo strtr($_smarty_tpl->__("no_products_selected"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_no_items_selected: '<?php echo strtr($_smarty_tpl->__("error_no_items_selected"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', delete_confirmation: '<?php echo strtr($_smarty_tpl->__("delete_confirmation"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_out_of_stock: '<?php echo strtr($_smarty_tpl->__("text_out_of_stock"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', items: '<?php echo strtr($_smarty_tpl->__("items"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_required_group_product: '<?php echo strtr($_smarty_tpl->__("text_required_group_product"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', save: '<?php echo strtr($_smarty_tpl->__("save"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', close: '<?php echo strtr($_smarty_tpl->__("close"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', loading: '<?php echo strtr($_smarty_tpl->__("loading"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', notice: '<?php echo strtr($_smarty_tpl->__("notice"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', warning: '<?php echo strtr($_smarty_tpl->__("warning"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error: '<?php echo strtr($_smarty_tpl->__("error"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_are_you_sure_to_proceed: '<?php echo strtr($_smarty_tpl->__("text_are_you_sure_to_proceed"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_invalid_url: '<?php echo strtr($_smarty_tpl->__("text_invalid_url"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_email: '<?php echo strtr($_smarty_tpl->__("error_validator_email"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_phone: '<?php echo strtr($_smarty_tpl->__("error_validator_phone"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_integer: '<?php echo strtr($_smarty_tpl->__("error_validator_integer"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_multiple: '<?php echo strtr($_smarty_tpl->__("error_validator_multiple"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_password: '******'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_required: '<?php echo strtr($_smarty_tpl->__("error_validator_required"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_zipcode: '<?php echo strtr($_smarty_tpl->__("error_validator_zipcode"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_message: '<?php echo strtr($_smarty_tpl->__("error_validator_message"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_validator_color: '<?php echo strtr($_smarty_tpl->__("error_validator_color"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_page_loading: '<?php echo strtr($_smarty_tpl->__("text_page_loading"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', error_ajax: '<?php echo strtr($_smarty_tpl->__("error_ajax"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_changes_not_saved: '<?php echo strtr($_smarty_tpl->__("text_changes_not_saved"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_data_changed: '<?php echo strtr($_smarty_tpl->__("text_data_changed"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', trial_notice: '<?php echo strtr($_smarty_tpl->__("text_block_trial_notice", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['license_url'])), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', expired_license: '<?php echo strtr($_smarty_tpl->__("text_expired_license", array("[product]" => @constant('PRODUCT_NAME'))), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', file_browser: '<?php echo strtr($_smarty_tpl->__("file_browser"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_block: '<?php echo strtr($_smarty_tpl->__("editing_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_grid: '<?php echo strtr($_smarty_tpl->__("editing_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_container: '<?php echo strtr($_smarty_tpl->__("editing_container"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', adding_grid: '<?php echo strtr($_smarty_tpl->__("adding_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', adding_block_to_grid: '<?php echo strtr($_smarty_tpl->__("adding_block_to_grid"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', manage_blocks: '<?php echo strtr($_smarty_tpl->__("manage_blocks"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', editing_block: '<?php echo strtr($_smarty_tpl->__("editing_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', add_block: '<?php echo strtr($_smarty_tpl->__("add_block"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_position_updating: '<?php echo strtr($_smarty_tpl->__("text_position_updating"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', more: '<?php echo strtr($_smarty_tpl->__("more"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', browse: '<?php echo strtr($_smarty_tpl->__("browse"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', enter_new_lang_code: '<?php echo strtr($_smarty_tpl->__("enter_new_lang_code"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', no_image: '<?php echo strtr($_smarty_tpl->__("no_image"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }); $.extend(_, { index_script: '<?php if ($_smarty_tpl->tpl_vars['user_info']->value['user_type'] == 'V') { echo strtr($_smarty_tpl->tpl_vars['config']->value['vendor_index'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); } else { echo strtr($_smarty_tpl->tpl_vars['config']->value['admin_index'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); } ?> ', changes_warning: '<?php echo strtr($_smarty_tpl->tpl_vars['settings']->value['Appearance']['changes_warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', currencies: { 'primary': { 'decimals_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['decimals_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'thousands_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['thousands_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'decimals': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['decimals'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }, 'secondary': { 'decimals_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['decimals_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'thousands_separator': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['thousands_separator'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'decimals': '<?php echo strtr($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['decimals'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', 'coefficient': '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['secondary_currency']->value]['coefficient'], ENT_QUOTES, 'UTF-8'); ?> ' } }, default_editor: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_wysiwyg_editor'], ENT_QUOTES, 'UTF-8'); ?> ', default_previewer: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'], ENT_QUOTES, 'UTF-8'); ?> ', current_path: '<?php echo strtr($_smarty_tpl->tpl_vars['config']->value['current_path'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', current_location: '<?php echo strtr($_smarty_tpl->tpl_vars['config']->value['current_location'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', images_dir: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> ', notice_displaying_time: <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['notice_displaying_time']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['Appearance']['notice_displaying_time'], ENT_QUOTES, 'UTF-8'); } else { ?> 0<?php } ?> , cart_language: '<?php echo htmlspecialchars(@constant('CART_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> ', default_language: '<?php echo htmlspecialchars(@constant('DEFAULT_LANGUAGE'), ENT_QUOTES, 'UTF-8'); ?> ', cart_prices_w_taxes: <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['cart_prices_w_taxes'] == 'Y') { ?> true<?php } else { ?> false<?php } ?> , theme_name: '<?php echo strtr($_smarty_tpl->tpl_vars['settings']->value['theme_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', current_url: '<?php echo strtr(fn_url($_smarty_tpl->tpl_vars['config']->value['current_url']), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', <?php if ($_smarty_tpl->tpl_vars['config']->value['tweaks']['anti_csrf']) { ?> security_hash: '<?php echo htmlspecialchars(fn_generate_security_hash(''), ENT_QUOTES, 'UTF-8'); ?> ', // CSRF form protection key <?php } ?> promo_data: { title: '<?php echo strtr($_smarty_tpl->tpl_vars['addon_permissions_text']->value['title'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text: '<?php echo strtr(Smarty::$_smarty_vars['capture']['promo_data'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' } }); $(document).ready(function(){ $.runCart('A'); }); }(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 $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:scripts")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:scripts"), 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' => "index:scripts"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_scripts(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php }
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"> <label for="elm_page_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" name="page_data[page]" id="elm_page_name" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['page_data']->value['parent_id'] != 0 && $_smarty_tpl->tpl_vars['page_data']->value['page_id'] != 0) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "page_data[company_id]", 'id' => "elm_page_data_company_id", 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value, 'selected' => $_smarty_tpl->tpl_vars['page_data']->value['company_id'], 'reload_form' => true, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_description")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_description"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <div class="control-group"> <label class="control-label" for="elm_page_descr"><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <textarea id="elm_page_descr" name="page_data[description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php ob_start(); echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); if (fn_allowed_for("ULTIMATE")) { echo "&switch_company_id="; echo (string) $_smarty_tpl->tpl_vars['page_data']->value['company_id']; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0); ?> <?php } ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value == @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:detailed_description"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "page_data[status]", 'id' => "elm_page_status", 'obj' => $_smarty_tpl->tpl_vars['page_data']->value, 'hidden' => true), 0); ?> </fieldset> </div> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#pages_seo_meta_data_setting"), 0); ?> <div id="pages_seo_meta_data_setting" class="in collapse"> <fieldset> <div class="control-group"> <label class="control-label" for="elm_page_title"><?php echo $_smarty_tpl->__("page_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0); ?> :</label> <div class="controls"> <input type="text" name="page_data[page_title]" id="elm_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_description]" id="elm_page_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_keywords]" id="elm_page_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> </fieldset> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#pages_availability_setting"), 0); ?> <div id="pages_availability_setting" class="in collapse"> <fieldset> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "page_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['page_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_page_date"><?php echo $_smarty_tpl->__("creation_date"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_date", 'date_name' => "page_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "page_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['page_data']->value['localization']), 0); ?> <div class="control-group"> <label class="control-label" for="elm_page_use_avail_period"><?php echo $_smarty_tpl->__("use_avail_period"); ?> :</label> <div class="controls"> <input type="hidden" name="page_data[use_avail_period]" value="N"> <span class="checkbox"> <input type="checkbox" name="page_data[use_avail_period]" id="elm_page_use_avail_period" <?php if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] == "Y") { ?> checked="checked"<?php } ?> value="Y" onclick="fn_activate_calendar(this);"> </span> </div> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("calendar_disable", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] != "Y") { ?> disabled="disabled"<?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(); } ?> <div class="control-group"> <label class="control-label" for="elm_page_avail_from"><?php echo $_smarty_tpl->__("avail_from"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_avail_from", 'date_name' => "page_data[avail_from_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_from_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_avail_till"><?php echo $_smarty_tpl->__("avail_till"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_avail_till", 'date_name' => "page_data[avail_till_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_till_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> </fieldset> </div> <?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'; ?> language="javascript"> function fn_activate_calendar(el) { Tygh.$('#elm_page_avail_from').prop('disabled', !el.checked); Tygh.$('#elm_page_avail_till').prop('disabled', !el.checked); } <?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); ?> </div> <div id="content_addons"> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_content"), 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' => "pages:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_content"), 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' => "pages:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['new_name']), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['edit_name']); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['page_data']->value['page'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("preview", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value)); ?> </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()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php } } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_p"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["_p"]->_loop = false; $_smarty_tpl->tpl_vars["_k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['page_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["_p"]->key => $_smarty_tpl->tpl_vars["_p"]->value) { $_smarty_tpl->tpl_vars["_p"]->_loop = true; $_smarty_tpl->tpl_vars["_k"]->value = $_smarty_tpl->tpl_vars["_p"]->key; ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __($_smarty_tpl->tpl_vars['_p']->value['add_name']), 'href' => "pages.add?page_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value . "&parent_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tools_list"), 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' => "pages:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <li class="divider"></li> <?php echo Smarty::$_smarty_vars['capture']['preview']; ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-post", 'text' => __("clone_this_page"), 'href' => "pages.clone?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete_this_page"), 'class' => "cm-confirm cm-post", 'href' => "pages.delete?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?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 } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if (!$_smarty_tpl->tpl_vars['show_save_btn']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_second_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[pages.update]", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'hide_second_button' => $_smarty_tpl->tpl_vars['hide_second_button']->value, 'but_target_form' => "page_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 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(); } ?> <!--update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> --></div> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_extra"), 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' => "pages:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'track' => true), 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 $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['pages_tree']->value) { ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("pages"); ?> </h6> <div class="nested-tree"> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_links_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('show_all' => false, 'pages_tree' => $_smarty_tpl->tpl_vars['pages_tree']->value), 0); ?> </div> </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(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['_title']->value, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'sidebar_position' => "left", 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); ?> <?php }
/** * Renders block content * * @static * * @param array $block Block data for rendering content * @param array $params Parameters of rendering: * * use_cache - Whether to use cache * * parse_js - Whether to move inline JS of the block to the bottom of the page * * @return string HTML code of rendered block content */ public static function renderBlockContent($block, $params = array()) { $default_params = array('use_cache' => true, 'parse_js' => true); $params = array_merge($default_params, $params); // Do not render block if it disabled in the frontend if (isset($block['is_disabled']) && $block['is_disabled']) { return ''; } $smarty = \Tygh::$app['view']; $smarty_original_vars = $smarty->getTemplateVars(); $display_this_block = true; self::_assignBlockSettingsToTemplate($block); // Assign block data from DB $smarty->assign('block', $block); $theme_path = self::getCustomerThemePath(); $block_schema = SchemesManager::getBlockScheme($block['type'], array()); $grid_id = empty($block['grid_id']) ? 0 : $block['grid_id']; $cache_key = "block_content_{$block['block_id']}_{$block['snapping_id']}_{$block['type']}_{$grid_id}"; if (!empty($block['object_id']) && !empty($block['object_type'])) { $cache_key .= "_{$block['object_id']}_{$block['object_type']}"; } $cache_this_block = $params['use_cache'] && self::allowCache(); if ($cache_this_block && isset($block['content']['items']['filling']) && isset($block_schema['content']['items']['fillings'][$block['content']['items']['filling']]['disable_cache'])) { $cache_this_block = !$block_schema['content']['items']['fillings'][$block['content']['items']['filling']]['disable_cache']; } /** * Determines flags for Cache * * @param array $block Block data * @param string $cache_key Generated name of cache * @param array $block_schema Block schema * @param bool $cache_this_block Flag to register cache * @param bool $display_this_block Flag to display block */ fn_set_hook('render_block_register_cache', $block, $cache_key, $block_schema, $cache_this_block, $display_this_block); if ($cache_this_block) { // We need an extra data to cache Inline JavaScript $smarty->assign('block_cache_name', $cache_key); // Check whether cache was registered successfully $cache_this_block = self::registerBlockCacheIfNeeded($cache_key, $block_schema, $block); } else { $smarty->clearAssign('block_cache_name'); } $smarty->assign('block_rendering', true); $smarty->assign('block_parse_js', $params['parse_js']); // We should load only when cache record exists $load_block_from_cache = $cache_this_block && Registry::isExist($cache_key); $block_content = ''; // Block content is found at cache and should be loaded out of there if ($load_block_from_cache) { $cached_content = Registry::get($cache_key); $block_content = $cached_content['content']; if (!empty($cached_content['javascript'])) { $repeat = false; $smarty->loadPlugin('smarty_block_inline_script'); smarty_block_inline_script(array(), $cached_content['javascript'], $smarty, $repeat); } Debugger::blockFoundAtCache($block['block_id']); } else { if ($block['type'] == Block::TYPE_MAIN) { $block_content = self::_renderMainContent(); } else { $title = $block['name']; if (Registry::get('runtime.customization_mode.live_editor')) { $le_block_types = fn_get_schema('customization', 'live_editor_block_types'); if (!empty($le_block_types[$block['type']]) && !empty($le_block_types[$block['type']]['name'])) { $title = sprintf('<span data-ca-live-editor-obj="block:name:%s">%s</span>', $block['block_id'], $title); } } $smarty->assign('title', $title); if (!empty($block_schema['content'])) { $all_values_are_empty = true; foreach ($block_schema['content'] as $template_variable => $field) { /** * Actions before render any variable of block content * * @param string $template_variable name of current block content variable * @param array $field Scheme of this content variable from block scheme content section * @param array $block_schema block scheme * @param array $block Block data */ fn_set_hook('render_block_content_pre', $template_variable, $field, $block_schema, $block); $value = self::getValue($template_variable, $field, $block_schema, $block); if ($all_values_are_empty && !empty($value)) { $all_values_are_empty = false; } $smarty->assign($template_variable, $value); } // We shouldn't display block which content variables are all empty $display_this_block = $display_this_block && !$all_values_are_empty; } // Assign block data from scheme $smarty->assign('block_scheme', $block_schema); if ($display_this_block && file_exists($theme_path . $block['properties']['template'])) { $block_content = $smarty->fetch($block['properties']['template']); } } if (!empty($block['wrapper']) && file_exists($theme_path . $block['wrapper']) && $display_this_block) { $smarty->assign('content', $block_content); if ($block['type'] == Block::TYPE_MAIN) { $smarty->assign('title', !empty(\Smarty::$_smarty_vars['capture']['mainbox_title']) ? \Smarty::$_smarty_vars['capture']['mainbox_title'] : '', false); } $block_content = $smarty->fetch($block['wrapper']); } else { $smarty->assign('content', $block_content); $block_content = $smarty->fetch('views/block_manager/render/block.tpl'); } fn_set_hook('render_block_content_after', $block_schema, $block, $block_content); // Save block contents to cache if ($cache_this_block && $display_this_block) { $cached_content = Registry::get($cache_key); $cached_content['content'] = $block_content; Registry::set($cache_key, $cached_content); } } $wrap_id = $smarty->getTemplateVars('block_wrap'); $smarty->clearAllAssign(); $smarty->assign($smarty_original_vars); // restore original vars \Smarty::$_smarty_vars['capture']['title'] = null; if ($display_this_block == true) { if (!empty($wrap_id)) { $block_content = '<div id="' . $wrap_id . '">' . $block_content . '<!--' . $wrap_id . '--></div>'; } return trim($block_content); } else { return ''; } }
function content_55db8bdb1a42e1_76335672($_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_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_block_notes')) { include '/var/www/html/market/app/functions/smarty_plugins/block.notes.php'; } fn_preload_lang_vars(array('choose_action', 'notes', 'language')); if (defined("THEMES_PANEL")) { ?> <?php $_smarty_tpl->tpl_vars['sticky_scroll'] = new Smarty_variable(5, null, 0); ?> <?php $_smarty_tpl->tpl_vars['sticky_padding'] = new Smarty_variable(73, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['sticky_scroll'] = new Smarty_variable(41, null, 0); ?> <?php $_smarty_tpl->tpl_vars['sticky_padding'] = new Smarty_variable(37, null, 0); } ?> <?php if (!$_smarty_tpl->tpl_vars['sidebar_position']->value) { ?> <?php $_smarty_tpl->tpl_vars['sidebar_position'] = new Smarty_variable("right", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['anchor']->value) { ?> <a name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['anchor']->value, ENT_QUOTES, 'UTF-8'); ?> "></a> <?php } ?> <?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"> // Init ajax callback (rebuild) var menu_content = <?php echo ($tmp = @htmlspecialchars_decode($_smarty_tpl->tpl_vars['data']->value, ENT_QUOTES)) === null || $tmp === '' ? "''" : $tmp; ?> ; <?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); ?> <!-- Actions --> <div class="actions cm-sticky-scroll" data-ce-top="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sticky_scroll']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ce-padding="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sticky_padding']->value, ENT_QUOTES, 'UTF-8'); ?> " id="actions_panel"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:actions")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:actions"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['no_sidebar']->value) { ?> <div class="btn-bar-left pull-left"> <div class="pull-left"><?php echo $_smarty_tpl->getSubTemplate("common/last_viewed_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> <?php } ?> <div class="title pull-left"> <h2 title="<?php echo htmlspecialchars(preg_replace('!\\s+!u', ' ', preg_replace('!<[^>]*?>!', ' ', ($tmp = @$_smarty_tpl->tpl_vars['title_alt']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['title']->value : $tmp)), ENT_QUOTES, 'UTF-8'); ?> "><?php echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? " " : $tmp; ?> </h2> </div> <div class="<?php if (isset($_smarty_tpl->tpl_vars['main_buttons_meta']->value)) { echo htmlspecialchars($_smarty_tpl->tpl_vars['main_buttons_meta']->value, ENT_QUOTES, 'UTF-8'); } else { ?> btn-bar btn-toolbar<?php } ?> dropleft pull-right" <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> id="tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _buttons"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['adv_buttons']->value) { ?> <div class="adv-buttons" <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> id="tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _adv_buttons"<?php } ?> > <?php echo $_smarty_tpl->tpl_vars['adv_buttons']->value; ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <!--tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _adv_buttons--><?php } ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value['dynamic']['actions']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars['title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['dynamic']['actions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value) { $_smarty_tpl->tpl_vars['m']->_loop = true; $_smarty_tpl->tpl_vars['title']->value = $_smarty_tpl->tpl_vars['m']->key; ?> <li><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['m']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['meta'], ENT_QUOTES, 'UTF-8'); ?> " target="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['target'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['title']->value); ?> </a></li> <?php } ?> <?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 echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('hide_actions' => true, 'tools_list' => Smarty::$_smarty_vars['capture']['tools_list'], 'link_text' => __("choose_action")), 0); ?> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['buttons']->value; ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <!--tools_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> _buttons--><?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:actions"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--actions_panel--></div> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar_content", "sidebar_content", null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['navigation']->value && $_smarty_tpl->tpl_vars['navigation']->value['dynamic']['sections']) { ?> <div class="sidebar-row"> <ul class="nav nav-list"> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars["s_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['dynamic']['sections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['m']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['m']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value) { $_smarty_tpl->tpl_vars['m']->_loop = true; $_smarty_tpl->tpl_vars["s_id"]->value = $_smarty_tpl->tpl_vars['m']->key; $_smarty_tpl->tpl_vars['m']->iteration++; $_smarty_tpl->tpl_vars['m']->last = $_smarty_tpl->tpl_vars['m']->iteration === $_smarty_tpl->tpl_vars['m']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["first_level"]['last'] = $_smarty_tpl->tpl_vars['m']->last; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:dynamic_menu_item")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:dynamic_menu_item"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['m']->value['type'] == "divider") { ?> <li class="divider"></li> <?php } else { ?> <li class="<?php if ($_smarty_tpl->tpl_vars['m']->value['js'] == true) { ?> cm-js<?php } if ($_smarty_tpl->getVariable('smarty')->value['foreach']['first_level']['last']) { ?> last-item<?php } if ($_smarty_tpl->tpl_vars['navigation']->value['dynamic']['active_section'] == $_smarty_tpl->tpl_vars['s_id']->value) { ?> active<?php } ?> "><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['m']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['m']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:dynamic_menu_item"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </ul> </div> <hr> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['sidebar']->value; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('notes', array('assign' => "notes")); $_block_repeat = true; echo smarty_block_notes(array('assign' => "notes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_notes(array('assign' => "notes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['notes']->value) { ?> <?php $_smarty_tpl->tpl_vars["note"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["note"]->_loop = false; $_smarty_tpl->tpl_vars["title"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['notes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["note"]->key => $_smarty_tpl->tpl_vars["note"]->value) { $_smarty_tpl->tpl_vars["note"]->_loop = true; $_smarty_tpl->tpl_vars["title"]->value = $_smarty_tpl->tpl_vars["note"]->key; ?> <?php $_smarty_tpl->_capture_stack[0][] = array("note_title", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['title']->value == "_note_") { echo $_smarty_tpl->__("notes"); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); } ?> <?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 echo $_smarty_tpl->getSubTemplate("common/sidebox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => $_smarty_tpl->tpl_vars['note']->value, 'title' => Smarty::$_smarty_vars['capture']['note_title']), 0); ?> <?php } ?> <?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(); } ?> <!-- Sidebar left --> <?php if (!$_smarty_tpl->tpl_vars['no_sidebar']->value && trim($_smarty_tpl->tpl_vars['sidebar_content']->value) != '' && $_smarty_tpl->tpl_vars['sidebar_position']->value == "left") { ?> <div class="sidebar sidebar-left" id="elm_sidebar"> <div class="sidebar-wrapper"> <?php echo $_smarty_tpl->tpl_vars['sidebar_content']->value; ?> </div> <!--elm_sidebar--></div> <?php } ?> <!--Content--> <div class="content<?php if ($_smarty_tpl->tpl_vars['no_sidebar']->value) { ?> content-no-sidebar<?php } if (trim($_smarty_tpl->tpl_vars['sidebar_content']->value) == '') { ?> no-sidebar<?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> ufa<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['box_id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['box_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <div class="content-wrap"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:content_top")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:content_top"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['select_languages']->value && sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <div class="language-wrap"> <h6 class="muted"><?php echo $_smarty_tpl->__("language"); ?> :</h6> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?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'], "descr_sl="), 'items' => $_smarty_tpl->tpl_vars['languages']->value, 'selected_id' => @constant('DESCR_SL'), 'key_name' => "name", 'suffix' => "content", 'display_icons' => true), 0); ?> <?php } ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['tools']->value) { echo $_smarty_tpl->tpl_vars['tools']->value; } ?> <?php if ($_smarty_tpl->tpl_vars['title_extra']->value) { ?> <div class="title">- </div> <?php echo $_smarty_tpl->tpl_vars['title_extra']->value; ?> <?php } ?> <?php if (trim($_smarty_tpl->tpl_vars['extra_tools']->value)) { ?> <div class="extra-tools"> <?php echo $_smarty_tpl->tpl_vars['extra_tools']->value; ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:content_top"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <div id="content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php } ?> <?php echo ($tmp = @$_smarty_tpl->tpl_vars['content']->value) === null || $tmp === '' ? " " : $tmp; ?> <?php if ($_smarty_tpl->tpl_vars['content_id']->value) { ?> <!--content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['content_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php } ?> <?php if ($_smarty_tpl->tpl_vars['box_id']->value) { ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['box_id']->value, ENT_QUOTES, 'UTF-8'); ?> --><?php } ?> </div> </div> <!--/Content--> <!-- Sidebar --> <?php if (!$_smarty_tpl->tpl_vars['no_sidebar']->value && trim($_smarty_tpl->tpl_vars['sidebar_content']->value) != '' && $_smarty_tpl->tpl_vars['sidebar_position']->value == "right") { ?> <div class="sidebar" id="elm_sidebar"> <div class="sidebar-wrapper"> <?php echo $_smarty_tpl->tpl_vars['sidebar_content']->value; ?> </div> <!--elm_sidebar--></div> <?php } ?> <?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"> var ajax_callback_data = menu_content; <?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); }
function content_55dc792dd01bf9_65081325($_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('administration_panel', 'access_denied', 'page_not_found', 'access_denied_text', 'page_not_found_text', 'go_back', 'go_to_the_admin_homepage')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); if (!$_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <span class="right"><span> </span></span> <h1 class="clear exception-header"> <span><?php echo $_smarty_tpl->__("administration_panel"); ?> </span> </h1> <?php } ?> <div class="exception-body login-content"> <h2><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['exception_status']->value, ENT_QUOTES, 'UTF-8'); ?> </h2> <h3> <?php if ($_smarty_tpl->tpl_vars['exception_status']->value == "403") { ?> <?php echo $_smarty_tpl->__("access_denied"); ?> <?php } elseif ($_smarty_tpl->tpl_vars['exception_status']->value == "404") { ?> <?php echo $_smarty_tpl->__("page_not_found"); ?> <?php } ?> </h3> <div class="exception-content"> <?php if ($_smarty_tpl->tpl_vars['exception_status']->value == "403") { ?> <h4><?php echo $_smarty_tpl->__("access_denied_text"); ?> </h4> <?php } elseif ($_smarty_tpl->tpl_vars['exception_status']->value == "404") { ?> <h4><?php echo $_smarty_tpl->__("page_not_found_text"); ?> </h4> <?php } ?> <ul class="exception-menu"> <li id="go_back"><a class="cm-back-link"><?php echo $_smarty_tpl->__("go_back"); ?> </a></li> <li><a href="<?php echo htmlspecialchars(fn_url(fn_get_index_script($_smarty_tpl->tpl_vars['auth']->value)), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("go_to_the_admin_homepage"); ?> </a></li> </ul> <?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"> Tygh.$(document).ready(function() { var $ = Tygh.$; $.each($.browser, function(i, val) { if ((i == 'opera') && (val == true)) { if (history.length == 0) { $('#go_back').hide(); } } else { if (history.length == 1) { $('#go_back').hide(); } } }); }); <?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); ?> </div> </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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['mainbox']), 0); ?> <?php }
function content_55e61f9b592921_73294899($_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_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('search', 'loading')); $_smarty_tpl->_capture_stack[0][] = array("ajax_select_content", null, null); ob_start(); ?> <a class="<?php if ($_smarty_tpl->tpl_vars['type']->value != 'list') { ?> btn-text<?php } ?> dropdown-toggle" data-toggle="dropdown"> <span id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _wrap_"><?php echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['text']->value, 40, "...", true), ENT_QUOTES, 'UTF-8'); ?> </span> <b class="caret"></b> </a> <?php if ($_smarty_tpl->tpl_vars['label']->value) { ?> <label><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label']->value, ENT_QUOTES, 'UTF-8'); ?> </label><?php } ?> <?php if ($_smarty_tpl->tpl_vars['js_action']->value) { $_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(_, $) { $.ceEvent('on', 'ce.picker_js_action_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ', function(elm) { <?php echo $_smarty_tpl->tpl_vars['js_action']->value; ?> }); }(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 } ?> <ul class="dropdown-menu <?php if ($_smarty_tpl->tpl_vars['type']->value == "opened") { ?> dropdown-opened<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _ajax_select_object"> <li> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> _wrap_" class="search-shop cm-smart-position"> <input type="text" value="<?php echo $_smarty_tpl->__("search"); ?> ..." class="span3 input-text cm-hint cm-ajax-content-input" data-ca-target-id="content_loader_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " size="16"> </div> </li> <li> <div class="ajax-popup-tools" id="scroller_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <ul class="cm-select-list" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item"]->_loop = false; $_smarty_tpl->tpl_vars["object_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['objects']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) { $_smarty_tpl->tpl_vars["item"]->_loop = true; $_smarty_tpl->tpl_vars["object_id"]->value = $_smarty_tpl->tpl_vars["item"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor']) { ?> <?php $_smarty_tpl->tpl_vars["name"] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['name'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["name"] = new Smarty_variable(smarty_modifier_truncate($_smarty_tpl->tpl_vars['item']->value['name'], 40, "...", true), null, 0); ?> <?php } ?> <li><a data-ca-action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></ul> <ul> <li id="content_loader_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-ajax-content-more ajax-content-more" data-ca-target-url="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['data_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-result-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result_elm']->value, ENT_QUOTES, 'UTF-8'); ?> "><span><?php echo $_smarty_tpl->__("loading"); ?> </span></li> </ul> </div> </li> <?php echo $_smarty_tpl->tpl_vars['extra_content']->value; ?> </ul> <?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 if ($_smarty_tpl->tpl_vars['type']->value == 'list') { ?> <li class="dropdown vendor-submenu"><?php echo Smarty::$_smarty_vars['capture']['ajax_select_content']; ?> </li> <?php } else { ?> <div class="btn-group"><?php echo Smarty::$_smarty_vars['capture']['ajax_select_content']; ?> </div> <?php } }
function content_55db8f584aa1e6_03359110($_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_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('object_exists', 'advanced_search', 'advanced_search', 'cancel', 'save_this_search_as', 'name', 'name', 'save', 'advanced_search_options')); echo smarty_function_script(array('src' => "js/tygh/advanced_search.js"), $_smarty_tpl); ?> <?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"> Tygh.tr('object_exists', '<?php echo strtr($_smarty_tpl->__("object_exists"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); <?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); ?> <input type="hidden" name="is_search" value="Y" /> <?php $_smarty_tpl->tpl_vars["a_id"] = new Smarty_variable(sprintf("s_%s", fn_crc32($_smarty_tpl->tpl_vars['dispatch']->value)), null, 0); $_smarty_tpl->tpl_vars["views"] = new Smarty_variable(fn_get_views($_smarty_tpl->tpl_vars['view_type']->value), null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['in_popup']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['simple_search']->value) { ?> <div id="simple_search_common"> <div id="simple_search"> <?php echo $_smarty_tpl->tpl_vars['simple_search']->value; ?> </div> </div> <?php } ?> <div class="sidebar-field"> <?php echo $_smarty_tpl->getSubTemplate("buttons/search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_smarty_tpl->tpl_vars['dispatch']->value . "]"), 0); ?> <?php if (!$_smarty_tpl->tpl_vars['no_adv_link']->value) { ?> <a class="advanced-search cm-dialog-opener" id="adv_search_opener" data-ca-target-id="adv_search"><?php echo $_smarty_tpl->__("advanced_search"); ?> </a> <?php } ?> </div> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="hidden adv-search" id="adv_search" title="<?php echo $_smarty_tpl->__("advanced_search"); ?> "> <?php if ($_smarty_tpl->tpl_vars['simple_search']->value) { ?> <div class="group" id="simple_search_popup"></div> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['advanced_search']->value; ?> <div class="modal-footer buttons-container"> <div class="pull-right"> <a class="cm-dialog-closer cm-cancel tool-link btn" data-dismiss="modal"><?php echo $_smarty_tpl->__("cancel"); ?> </a> <?php echo $_smarty_tpl->getSubTemplate("buttons/search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_smarty_tpl->tpl_vars['dispatch']->value . "]", 'but_role' => "submit", 'method' => "GET"), 0); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['not_saved']->value) { ?> <div class="pull-left"> <?php if (strpos($_REQUEST['dispatch'], ".picker") === false) { ?> <span class="pull-left"><?php echo $_smarty_tpl->__("save_this_search_as"); ?> </span> <div class="input-append"> <input type="text" id="view_name" name="new_view" value="<?php if ($_smarty_tpl->tpl_vars['search']->value['view_id'] && $_smarty_tpl->tpl_vars['views']->value[$_smarty_tpl->tpl_vars['search']->value['view_id']]) { echo htmlspecialchars($_smarty_tpl->tpl_vars['views']->value[$_smarty_tpl->tpl_vars['search']->value['view_id']]['name'], ENT_QUOTES, 'UTF-8'); } else { echo $_smarty_tpl->__("name"); } ?> " title="<?php echo $_smarty_tpl->__("name"); ?> " class="input-medium cm-hint" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("save"), 'but_id' => "adv_search_save", 'but_role' => "advanced-search"), 0); ?> </div> <?php } ?> </div> <?php } ?> </div> </div> </div> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['simple_search']->value; ?> <div class="sidebar-field in-popup"> <?php echo $_smarty_tpl->getSubTemplate("buttons/search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[" . (string) $_smarty_tpl->tpl_vars['dispatch']->value . "]"), 0); ?> <?php if (trim($_smarty_tpl->tpl_vars['advanced_search']->value) != '') { ?> <a id="sw_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination cm-save-state" title="<?php echo $_smarty_tpl->__("advanced_search_options"); ?> "> <i id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="icon-chevron-down cm-combination cm-save-state <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['a_id']->value]) { ?> hidden<?php } ?> "></i> <i id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="icon-chevron-up cm-combination cm-save-state <?php if (!$_COOKIE[$_smarty_tpl->tpl_vars['a_id']->value]) { ?> hidden<?php } ?> "></i> </a> <?php } ?> </div> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="search-advanced <?php if (!$_COOKIE[$_smarty_tpl->tpl_vars['a_id']->value]) { ?> hidden<?php } ?> "> <?php echo $_smarty_tpl->tpl_vars['advanced_search']->value; ?> </div> <?php } }
function content_55e61f9b3f4035_82056836($_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('general', 'weight', 'tt_views_products_components_products_shipping_settings_weight', 'free_shipping', 'shipping_freight', 'items_in_box', 'tt_views_products_components_products_shipping_settings_items_in_box', 'box_length', 'box_width', 'box_height')); echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("general")), 0); ?> <div class="control-group"> <label class="control-label" for="product_weight"><?php echo $_smarty_tpl->__("weight"); ?> (<?php echo $_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol']; ?> )<?php echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_components_products_shipping_settings_weight")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[weight]" id="product_weight" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['weight']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="product_free_shipping"><?php echo $_smarty_tpl->__("free_shipping"); ?> :</label> <div class="controls"> <input type="hidden" name="product_data[free_shipping]" value="N" /> <input type="checkbox" name="product_data[free_shipping]" id="product_free_shipping" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['free_shipping'] == "Y") { ?> checked="checked"<?php } ?> /> </div> </div> <div class="control-group"> <label class="control-label" for="product_shipping_freight"><?php echo $_smarty_tpl->__("shipping_freight"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ):</label> <div class="controls"> <input type="text" name="product_data[shipping_freight]" id="product_shipping_freight" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['shipping_freight']) === null || $tmp === '' ? "0.00" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="product_items_in_box"><?php echo $_smarty_tpl->__("items_in_box"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_components_products_shipping_settings_items_in_box")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[min_items_in_box]" id="product_items_in_box" size="5" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['min_items_in_box']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-micro" onkeyup="fn_product_shipping_settings(this);" /> - <input type="text" name="product_data[max_items_in_box]" size="5" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['max_items_in_box']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-micro" onkeyup="fn_product_shipping_settings(this);" /> </div> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['min_items_in_box'] > 0 || $_smarty_tpl->tpl_vars['product_data']->value['max_items_in_box']) { ?> <?php $_smarty_tpl->tpl_vars["box_settings"] = new Smarty_variable(true, null, 0); ?> <?php } ?> </div> <div class="control-group"> <label class="control-label" for="product_box_length"><?php echo $_smarty_tpl->__("box_length"); ?> :</label> <div class="controls"> <input type="text" name="product_data[box_length]" id="product_box_length" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['box_length']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long shipping-dependence" <?php if (!$_smarty_tpl->tpl_vars['box_settings']->value) { ?> disabled="disabled"<?php } ?> /> </div> </div> <div class="control-group"> <label class="control-label" for="product_box_width"><?php echo $_smarty_tpl->__("box_width"); ?> :</label> <div class="controls"> <input type="text" name="product_data[box_width]" id="product_box_width" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['box_width']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long shipping-dependence" <?php if (!$_smarty_tpl->tpl_vars['box_settings']->value) { ?> disabled="disabled"<?php } ?> /> </div> </div> <div class="control-group"> <label class="control-label" for="product_box_height"><?php echo $_smarty_tpl->__("box_height"); ?> :</label> <div class="controls"> <input type="text" name="product_data[box_height]" id="product_box_height" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['box_height']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long shipping-dependence" <?php if (!$_smarty_tpl->tpl_vars['box_settings']->value) { ?> disabled="disabled"<?php } ?> /> </div> </div> <?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 fn_product_shipping_settings(elm) { var jelm = Tygh.$(elm); var available = false; Tygh.$('input', jelm.parent()).each(function() { if (parseInt(Tygh.$(this).val()) > 0) { available = true; } }); Tygh.$('input.shipping-dependence').prop('disabled', (available ? false : true)); } <?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 }
function content_55db8bf92e8236_50589251($_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_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('no_items', 'multiple_selectbox_notice', 'no_items', 'select_country', 'select_state', 'browse', 'no_items')); if ($_smarty_tpl->tpl_vars['item']->value['update_for_all'] && $_smarty_tpl->tpl_vars['settings']->value['Stores']['default_state_update_for_all'] == 'not_active' && !$_smarty_tpl->tpl_vars['runtime']->value['simple_ultimate']) { ?> <?php $_smarty_tpl->tpl_vars["disable_input"] = new Smarty_variable(true, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['parent_item']->value) { $_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($, _) { $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_item_html_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').on('click', function() { $('#container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').toggle(); }); }(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 } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "O") { ?> <div><?php echo $_smarty_tpl->tpl_vars['item']->value['info']; ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "E") { ?> <div><?php echo $_smarty_tpl->getSubTemplate("addons/" . (string) $_REQUEST['addon'] . "/settings/" . (string) $_smarty_tpl->tpl_vars['item']->value['value'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "Z") { ?> <div><?php echo $_smarty_tpl->getSubTemplate("addons/" . (string) $_REQUEST['addon'] . "/settings/" . (string) $_smarty_tpl->tpl_vars['item']->value['value'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('skip_addon_check' => true), 0); ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "H") { ?> <?php if (Smarty::$_smarty_vars['capture']['header_first'] == 'true') { ?> </fieldset> </div> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("header_first", null, null); ob_start(); ?> true<?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 echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['item']->value['description'], 'target' => "#collapsable_" . (string) $_smarty_tpl->tpl_vars['html_id']->value), 0); ?> <div id="collapsable_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="in collapse"> <fieldset> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] != "D" && $_smarty_tpl->tpl_vars['item']->value['type'] != "B") { ?> <div id="container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-group<?php if ($_smarty_tpl->tpl_vars['class']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class']->value, ENT_QUOTES, 'UTF-8'); } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['section_name'], ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['parent_item']->value && $_smarty_tpl->tpl_vars['parent_item']->value['value'] != "Y") { ?> hidden<?php } ?> "> <label for="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label <?php if ($_smarty_tpl->tpl_vars['highlight']->value && smarty_modifier_in_array($_smarty_tpl->tpl_vars['item']->value['name'], $_smarty_tpl->tpl_vars['highlight']->value)) { ?> highlight<?php } ?> " ><?php echo $_smarty_tpl->tpl_vars['item']->value['description']; if ($_smarty_tpl->tpl_vars['item']->value['tooltip']) { echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => $_smarty_tpl->tpl_vars['item']->value['tooltip']), 0); } ?> : </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "P") { ?> <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="password" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " class="input-text" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "T") { ?> <textarea id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " rows="5" cols="19" class="input-large" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "C") { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="N" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="Y" <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == "Y") { ?> checked="checked"<?php } if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "S") { ?> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == $_smarty_tpl->tpl_vars['k']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "R") { ?> <div class="select-field" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="radio"> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == $_smarty_tpl->tpl_vars['k']->value) { ?> checked="checked"<?php } ?> id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars['v']->_loop) { ?> <?php echo $_smarty_tpl->__("no_items"); ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "M") { ?> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" multiple="multiple" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'][$_smarty_tpl->tpl_vars['k']->value] == "Y") { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <div class="muted"><?php echo $_smarty_tpl->__("multiple_selectbox_notice"); ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "N") { ?> <div class="select-field" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="N" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars['v']->key; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'][$_smarty_tpl->tpl_vars['k']->value] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars['v']->_loop) { ?> <?php echo $_smarty_tpl->__("no_items"); ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "X") { ?> <select class="cm-country cm-location-billing" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <option value="">- <?php echo $_smarty_tpl->__("select_country"); ?> -</option> <?php $_smarty_tpl->tpl_vars["countries"] = new Smarty_variable(fn_get_simple_countries(''), null, 0); ?> <?php $_smarty_tpl->tpl_vars["country"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["country"]->_loop = false; $_smarty_tpl->tpl_vars["code"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["country"]->key => $_smarty_tpl->tpl_vars["country"]->value) { $_smarty_tpl->tpl_vars["country"]->_loop = true; $_smarty_tpl->tpl_vars["code"]->value = $_smarty_tpl->tpl_vars["country"]->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['code']->value == $_smarty_tpl->tpl_vars['item']->value['value']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['country']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "W") { ?> <select class="cm-state cm-location-billing" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <option value="">- <?php echo $_smarty_tpl->__("select_state"); ?> -</option> </select> <input type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> _d" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " size="32" maxlength="64" disabled="disabled" class="cm-state cm-location-billing hidden" /> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "F") { ?> <div class="input-append"> <input id="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " size="30" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <button id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="button" class="btn" onclick="Tygh.fileuploader.init('box_server_upload', this.id);" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> ><?php echo $_smarty_tpl->__("browse"); ?> </button> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "G") { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars['v']->key; ?> <label for="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " class="checkbox"> <input type="checkbox" class="cm-combo-checkbox" id="variant_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['name'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'][$_smarty_tpl->tpl_vars['k']->value] == "Y") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars['v']->_loop) { ?> <?php echo $_smarty_tpl->__("no_items"); ?> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "K") { ?> <select id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combo-select" <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> > <?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['v']->_loop = false; $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['item']->value['variants']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) { $_smarty_tpl->tpl_vars['v']->_loop = true; $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['item']->value['value'] == $_smarty_tpl->tpl_vars['k']->value) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php } else { ?> <input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['html_name']->value, ENT_QUOTES, 'UTF-8'); ?> " size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['value'], ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "U") { ?> cm-value-integer<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['disable_input']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> <div class="right update-for-all"> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['item']->value['update_for_all'], 'object_id' => $_smarty_tpl->tpl_vars['item']->value['object_id'], 'name' => "update_all_vendors[" . (string) $_smarty_tpl->tpl_vars['item']->value['object_id'] . "]", 'hide_element' => $_smarty_tpl->tpl_vars['html_id']->value), 0); ?> </div> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "B") { ?> <div class="control-group"> <?php echo $_smarty_tpl->getSubTemplate("common/selectable_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('addon' => $_smarty_tpl->tpl_vars['section']->value, 'name' => $_smarty_tpl->tpl_vars['html_name']->value, 'id' => $_smarty_tpl->tpl_vars['html_id']->value, 'fields' => $_smarty_tpl->tpl_vars['item']->value['variants'], 'selected_fields' => $_smarty_tpl->tpl_vars['item']->value['value']), 0); ?> </div> <?php } if ($_smarty_tpl->tpl_vars['total']->value == $_smarty_tpl->tpl_vars['index']->value && Smarty::$_smarty_vars['capture']['header_first'] == 'true') { ?> </fieldset> </div> <?php } }
function content_55e61f9ba13292_82585819($_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_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('new_option', 'add_option', 'new_option', 'add_option', 'apply_to_products', 'global', 'edit', 'view', 'view', 'editing_option', 'no_data', 'options')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?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 fn_check_option_type(value, tag_id) { var id = tag_id.replace('option_type_', '').replace('elm_', ''); Tygh.$('#tab_option_variants_' + id).toggleBy(!(value == 'S' || value == 'R' || value == 'C')); Tygh.$('#required_options_' + id).toggleBy(!(value == 'I' || value == 'T' || value == 'F')); Tygh.$('#extra_options_' + id).toggleBy(!(value == 'I' || value == 'T')); Tygh.$('#file_options_' + id).toggleBy(!(value == 'F')); if (value == 'C') { var t = Tygh.$('table', '#content_tab_option_variants_' + id); Tygh.$('.cm-non-cb', t).switchAvailability(true); // hide obsolete columns Tygh.$('tbody:gt(1)', t).switchAvailability(true); // hide obsolete rows } else if (value == 'S' || value == 'R') { var t = Tygh.$('table', '#content_tab_option_variants_' + id); Tygh.$('.cm-non-cb', t).switchAvailability(false); // show all columns Tygh.$('tbody', t).switchAvailability(false); // show all rows Tygh.$('#box_add_variant_' + id).show(); // show "add new variants" box } else if (value == 'I' || value == 'T') { Tygh.$('#extra_options_' + id).show(); // show "add new variants" box } } <?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 $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "global") { ?> <?php $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("pagination_contents", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("product_options_list", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'])) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("toolbar", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_options/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option_id' => "0", 'company_id' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'disable_company_picker' => true), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("views/product_options/update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('option_id' => "0"), 0); ?> <?php } ?> <?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 if ($_smarty_tpl->tpl_vars['object']->value == "product") { ?> <?php $_smarty_tpl->tpl_vars["position"] = new Smarty_variable("pull-right", null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['view_mode']->value == "embed") { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_option", 'text' => __("new_option"), 'link_text' => __("add_option"), 'act' => "general", 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'meta' => $_smarty_tpl->tpl_vars['position']->value, 'icon' => "icon-plus"), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_option", 'text' => __("new_option"), 'title' => __("add_option"), 'act' => "general", 'content' => Smarty::$_smarty_vars['capture']['add_new_picker'], 'meta' => $_smarty_tpl->tpl_vars['position']->value, 'icon' => "icon-plus"), 0); ?> <?php } ?> <?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 echo $_smarty_tpl->tpl_vars['extra']->value; ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value != "global") { ?> <div class="btn-toolbar clearfix cm-toggle-button"> <?php echo Smarty::$_smarty_vars['capture']['toolbar']; ?> </div> <?php } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['product_options']->value && $_smarty_tpl->tpl_vars['object']->value == "global") { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("apply_to_products"), 'but_role' => "action", 'but_href' => "product_options.apply"), 0); ?> <?php } ?> <?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 $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo Smarty::$_smarty_vars['capture']['toolbar']; ?> <?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 } ?> <div class="items-container" id="product_options_list"> <?php if ($_smarty_tpl->tpl_vars['product_options']->value) { ?> <table width="100%" class="table table-middle table-objects"> <tbody> <?php $_smarty_tpl->tpl_vars["po"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["po"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_options']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["po"]->key => $_smarty_tpl->tpl_vars["po"]->value) { $_smarty_tpl->tpl_vars["po"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "product" && !$_smarty_tpl->tpl_vars['po']->value['product_id']) { ?> <?php ob_start(); echo $_smarty_tpl->__("global"); $_tmp7 = ob_get_clean(); $_smarty_tpl->tpl_vars["details"] = new Smarty_variable("(" . $_tmp7 . ")", null, 0); ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["details"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value == "product") { ?> <?php if (!$_smarty_tpl->tpl_vars['po']->value['product_id']) { ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&object=" . (string) $_smarty_tpl->tpl_vars['object']->value, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value . "&object=" . (string) $_smarty_tpl->tpl_vars['object']->value, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["query_delete_product_id"] = new Smarty_variable("&product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "products"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["query_product_id"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["query_delete_product_id"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['po']->value, "product_options"), null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("edit"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["additional_class"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(false, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["additional_class"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable($_smarty_tpl->tpl_vars['po']->value['status'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable("product_options.delete?option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . (string) $_smarty_tpl->tpl_vars['query_delete_product_id']->value, null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, 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['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'] || $_smarty_tpl->tpl_vars['object']->value == "global" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['po']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["is_view_link"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php ob_start(); echo $_smarty_tpl->__("editing_option"); $_tmp8 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/object_group.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_table' => true, 'id' => $_smarty_tpl->tpl_vars['po']->value['option_id'], 'id_prefix' => "_product_option_", 'details' => $_smarty_tpl->tpl_vars['details']->value, 'text' => $_smarty_tpl->tpl_vars['po']->value['option_name'], 'hide_for_vendor' => $_smarty_tpl->tpl_vars['hide_for_vendor']->value, 'status' => $_smarty_tpl->tpl_vars['status']->value, 'table' => "product_options", 'object_id_name' => "option_id", 'href' => "product_options.update?option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . (string) $_smarty_tpl->tpl_vars['query_product_id']->value, 'href_delete' => $_smarty_tpl->tpl_vars['href_delete']->value, 'delete_target_id' => $_smarty_tpl->tpl_vars['delete_target_id']->value, 'header_text' => $_tmp8 . ": " . (string) $_smarty_tpl->tpl_vars['po']->value['option_name'], 'skip_delete' => !$_smarty_tpl->tpl_vars['allow_save']->value, 'additional_class' => $_smarty_tpl->tpl_vars['additional_class']->value, 'prefix' => "product_options", 'link_text' => $_smarty_tpl->tpl_vars['link_text']->value, 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value, 'company_object' => $_smarty_tpl->tpl_vars['po']->value), 0); ?> <?php } ?> </tbody> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <!--product_options_list--></div> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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 if ($_smarty_tpl->tpl_vars['object']->value == "product") { ?> <?php echo Smarty::$_smarty_vars['capture']['mainbox']; ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_language' => $_smarty_tpl->tpl_vars['select_language']->value), 0); ?> <?php } }
function content_55db8bdae73b19_83320565($_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_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } if (!is_callable('smarty_modifier_unpuny')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.unpuny.php'; } fn_preload_lang_vars(array('previous_period', 'current_period', 'orders', 'sales', 'taxes', 'users_carts', 'order', 'by', 'no_data', 'recent_orders', 'statistics', 'active_products', 'out_of_stock_products', 'registered_customers', 'categories', 'vendors', 'web_pages', 'order_by_status', 'status', 'qty', 'shipping', 'recent_activity', 'order', 'dashboard', 'installer_complete_title', 'welcome_screen.administrator_info', 'admin_panel', 'welcome_screen.go_admin_panel', 'welcome_screen.go_settings_wizard', 'settings_wizard', 'welcome_screen.run_settings_wizard', 'storefront', 'welcome_screen.go_storefront', 'welcome_screen.learn_more_configuration', 'welcome_screen.knowledge_base', 'welcome_screen.thanks')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); $_smarty_tpl->tpl_vars["show_latest_orders"] = new Smarty_variable(fn_check_permissions("orders", 'manage', 'admin'), null, 0); $_smarty_tpl->tpl_vars["show_orders"] = new Smarty_variable(fn_check_permissions("sales_reports", 'reports', 'admin'), null, 0); $_smarty_tpl->tpl_vars["show_inventory"] = new Smarty_variable(fn_check_permissions("products", 'manage', 'admin'), null, 0); $_smarty_tpl->tpl_vars["show_users"] = new Smarty_variable(fn_check_permissions("profiles", 'manage', 'admin'), null, 0); ?> <?php $_smarty_tpl->tpl_vars["user_can_view_orders"] = new Smarty_variable(fn_check_view_permissions("orders.manage", 'GET'), 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(_, $) { _.drawChart = function(is_day) { if (typeof google == "undefined") { return false; } function get_data(div) { var id = $(div).attr('id'); var dataTable = new google.visualization.DataTable(); if (is_day) { dataTable.addColumn('timeofday', 'Date'); } else { dataTable.addColumn('date', 'Date'); } dataTable.addColumn('number', '<?php echo $_smarty_tpl->__("previous_period"); ?> '); dataTable.addColumn('number', '<?php echo $_smarty_tpl->__("current_period"); ?> '); dataTable.addRows(_.chart_data[id]); var dataView = new google.visualization.DataView(dataTable); dataView.setColumns([0, 1, 2]); return dataView; } var options = { chartArea: { left: 7, top: 10, width: 556, height: 208 }, colors: ['#f491a5','#8fd1ff'], tooltip: { showColorCode: true }, lineWidth: 4, hAxis: { baselineColor: '#e1e1e1', textStyle: { color: '#a1a1a1', fontSize: 11 }, gridlines: { count: 6 } }, legend: { position: 'none' }, pointSize: 10, vAxis: { minValue: 0, baselineColor: '#e1e1e1', textPosition: 'in', textStyle: { color: '#a1a1a1', fontSize: 11 }, gridlines: { count: 10 } } }; if (!is_day) { options.hAxis.format = 'MMM d'; } $('.dashboard-statistics-chart:visible').each(function(i, div) { var dataView = get_data(div); var chart = new google.visualization.AreaChart(div); chart.draw(dataView, options); }); $('#statistics_tabs .tabs li').on('click', function() { $('.dashboard-statistics-chart:visible').each(function(i, div) { var dataView = get_data(div); var chart = new google.visualization.AreaChart(div); chart.draw(dataView, options); }); }); }; $(document).ready(function() { $.getScript('//www.google.com/jsapi', function() { setTimeout(function() { // do not remove it - otherwise it will be slow in ff google.load('visualization', '1.0', { packages: ['corechart'], callback: function() { _.drawChart(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['is_day']->value, ENT_QUOTES, 'UTF-8'); ?> ); } }); }, 0); }); }); }(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 $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:index")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:index"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="dashboard" id="dashboard"> <table class="dashboard-card-table"> <tbody> <tr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:finance_statistic")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:finance_statistic"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!empty($_smarty_tpl->tpl_vars['orders_stat']->value['orders'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("orders"); ?> </div> <div class="dashboard-card-content"> <h3> <?php if ($_smarty_tpl->tpl_vars['user_can_view_orders']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url("orders.manage?is_search=Y&period=C&time_from=" . (string) $_smarty_tpl->tpl_vars['time_from']->value . "&time_to=" . (string) $_smarty_tpl->tpl_vars['time_to']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['orders_stat']->value['orders']), ENT_QUOTES, 'UTF-8'); ?> </a> <?php } else { ?> <?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['orders_stat']->value['orders']), ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </h3> <?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['orders_stat']->value['prev_orders']), ENT_QUOTES, 'UTF-8'); ?> , <?php if ($_smarty_tpl->tpl_vars['orders_stat']->value['diff']['orders_count'] > 0) { ?> +<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['orders_stat']->value['diff']['orders_count'], ENT_QUOTES, 'UTF-8'); ?> </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['orders_stat']->value['orders_total'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("sales"); ?> </div> <div class="dashboard-card-content"> <h3><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['orders_stat']->value['orders_total']['totally_paid']), 0); ?> </h3><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['orders_stat']->value['prev_orders_total']['totally_paid']), 0); ?> , <?php if ($_smarty_tpl->tpl_vars['orders_stat']->value['orders_total']['totally_paid'] > $_smarty_tpl->tpl_vars['orders_stat']->value['prev_orders_total']['totally_paid']) { ?> +<?php } echo $_smarty_tpl->tpl_vars['orders_stat']->value['diff']['sales']; ?> % </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['orders_stat']->value['taxes'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("taxes"); ?> </div> <div class="dashboard-card-content"> <h3><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['orders_stat']->value['taxes']['subtotal']), 0); ?> </h3><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['orders_stat']->value['taxes']['prev_subtotal']), 0); ?> , <?php if ($_smarty_tpl->tpl_vars['orders_stat']->value['taxes']['subtotal'] > $_smarty_tpl->tpl_vars['orders_stat']->value['taxes']['prev_subtotal']) { ?> +<?php } echo $_smarty_tpl->tpl_vars['orders_stat']->value['taxes']['diff']; ?> % </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['orders_stat']->value['abandoned_cart_total'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("users_carts"); ?> </div> <div class="dashboard-card-content"> <h3><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['orders_stat']->value['abandoned_cart_total']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> </h3><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['orders_stat']->value['prev_abandoned_cart_total']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> , <?php if ($_smarty_tpl->tpl_vars['orders_stat']->value['abandoned_cart_total'] > $_smarty_tpl->tpl_vars['orders_stat']->value['prev_abandoned_cart_total']) { ?> +<?php } echo $_smarty_tpl->tpl_vars['orders_stat']->value['diff']['abandoned_carts']; ?> % </div> </div> </td> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:finance_statistic"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </tr> </tbody> </table> <?php if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.php'; } if (!function_exists('smarty_template_function_get_orders')) { function smarty_template_function_get_orders($_smarty_tpl, $params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; foreach ($_smarty_tpl->smarty->template_functions['get_orders']['parameter'] as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } ?> <?php $_smarty_tpl->tpl_vars['params'] = new Smarty_variable(array('status' => $_smarty_tpl->tpl_vars['status']->value, 'time_from' => $_smarty_tpl->tpl_vars['time_from']->value, 'time_to' => $_smarty_tpl->tpl_vars['time_to']->value, 'period' => 'C'), null, 0); ?> <?php $_smarty_tpl->tpl_vars['orders'] = new Smarty_variable(fn_get_orders($_smarty_tpl->tpl_vars['params']->value, $_smarty_tpl->tpl_vars['limit']->value), null, 0); ?> <table class="table table-middle table-last-td-align-right"> <tbody> <?php $_smarty_tpl->tpl_vars["order"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["order"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['orders']->value[0]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["order"]->key => $_smarty_tpl->tpl_vars["order"]->value) { $_smarty_tpl->tpl_vars["order"]->_loop = true; ?> <tr> <td> <span class="label btn-info o-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['order']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_statuses']->value[$_smarty_tpl->tpl_vars['order']->value['status']]['description'], ENT_QUOTES, 'UTF-8'); ?> </span> </td> <td><a href="<?php echo htmlspecialchars(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['order']->value['order_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("order"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['order_id'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php echo $_smarty_tpl->__("by"); ?> <?php if ($_smarty_tpl->tpl_vars['order']->value['user_id']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['order']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['firstname'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['order']->value['user_id']) { ?> </a><?php } ?> </td> <td><span class="date"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['order']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </span></td> <td><h4><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order']->value['total']), 0); ?> </h4></td> </tr> <?php } if (!$_smarty_tpl->tpl_vars["order"]->_loop) { ?> <tr><td><?php echo $_smarty_tpl->__("no_data"); ?> </td></tr> <?php } ?> </tbody> </table> <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars; foreach (Smarty::$global_tpl_vars as $key => $value) { if (!isset($_smarty_tpl->tpl_vars[$key])) { $_smarty_tpl->tpl_vars[$key] = $value; } } } } ?> <div class="dashboard-row"> <?php if (!empty($_smarty_tpl->tpl_vars['order_statuses']->value)) { ?> <div class="dashboard-recent-orders cm-j-tabs tabs"> <h4><?php echo $_smarty_tpl->__("recent_orders"); ?> </h4> <ul class="nav nav-pills"> <li id="tab_recent_all" class="active cm-js"><a href="#status_all" data-toggle="tab">All</a></li> <?php $_smarty_tpl->tpl_vars["status"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["status"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['order_statuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["status"]->key => $_smarty_tpl->tpl_vars["status"]->value) { $_smarty_tpl->tpl_vars["status"]->_loop = true; ?> <li id="tab_recent_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['status'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-js"><a href="#status_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['status'], ENT_QUOTES, 'UTF-8'); ?> " data-toggle="tab"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> </ul> <div class="tab-content cm-tabs-content"> <div class="tab-pane" id="content_tab_recent_all"> <?php smarty_template_function_get_orders($_smarty_tpl, array('status' => '')); ?> </div> <?php $_smarty_tpl->tpl_vars["status"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["status"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['order_statuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["status"]->key => $_smarty_tpl->tpl_vars["status"]->value) { $_smarty_tpl->tpl_vars["status"]->_loop = true; ?> <div class="tab-pane" id="content_tab_recent_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['status'], ENT_QUOTES, 'UTF-8'); ?> "> <?php smarty_template_function_get_orders($_smarty_tpl, array('status' => $_smarty_tpl->tpl_vars['status']->value['status'])); ?> </div> <?php } ?> </div> </div> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['graphs']->value)) { ?> <div class="dashboard-statistics"> <h4> <?php echo $_smarty_tpl->__("statistics"); ?> </h4> <?php $_smarty_tpl->_capture_stack[0][] = array("chart_tabs", null, null); ob_start(); ?> <div id="content_sales_chart"> <div id="dashboard_statistics_sales_chart" class="dashboard-statistics-chart spinner"> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:chart_statistic")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:chart_statistic"), 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' => "index:chart_statistic"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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(); } ?> <div id="statistics_tabs"> <?php echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['chart_tabs']), 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'; ?> > Tygh.chart_data = { <?php $_smarty_tpl->tpl_vars["graph"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["graph"]->_loop = false; $_smarty_tpl->tpl_vars["chart"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['graphs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["graph"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["graph"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["graph"]->key => $_smarty_tpl->tpl_vars["graph"]->value) { $_smarty_tpl->tpl_vars["graph"]->_loop = true; $_smarty_tpl->tpl_vars["chart"]->value = $_smarty_tpl->tpl_vars["graph"]->key; $_smarty_tpl->tpl_vars["graph"]->iteration++; $_smarty_tpl->tpl_vars["graph"]->last = $_smarty_tpl->tpl_vars["graph"]->iteration === $_smarty_tpl->tpl_vars["graph"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["graphs"]['last'] = $_smarty_tpl->tpl_vars["graph"]->last; ?> '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['chart']->value, ENT_QUOTES, 'UTF-8'); ?> ': [ <?php $_smarty_tpl->tpl_vars["data"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["data"]->_loop = false; $_smarty_tpl->tpl_vars["date"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['graph']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["data"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["data"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["data"]->key => $_smarty_tpl->tpl_vars["data"]->value) { $_smarty_tpl->tpl_vars["data"]->_loop = true; $_smarty_tpl->tpl_vars["date"]->value = $_smarty_tpl->tpl_vars["data"]->key; $_smarty_tpl->tpl_vars["data"]->iteration++; $_smarty_tpl->tpl_vars["data"]->last = $_smarty_tpl->tpl_vars["data"]->iteration === $_smarty_tpl->tpl_vars["data"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["graph"]['last'] = $_smarty_tpl->tpl_vars["data"]->last; ?> [<?php if ($_smarty_tpl->tpl_vars['is_day']->value) { ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date']->value, ENT_QUOTES, 'UTF-8'); ?> , 0, 0, 0]<?php } else { ?> new Date(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date']->value, ENT_QUOTES, 'UTF-8'); ?> )<?php } ?> , <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data']->value['prev'], ENT_QUOTES, 'UTF-8'); ?> , <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data']->value['cur'], ENT_QUOTES, 'UTF-8'); ?> ]<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['graph']['last']) { ?> ,<?php } ?> <?php } ?> ]<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['graphs']['last']) { ?> ,<?php } ?> <?php } ?> }; Tygh.drawChart(<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['is_day']->value, ENT_QUOTES, 'UTF-8'); ?> ); <?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); ?> <!--statistics_tabs--></div> </div> <?php } ?> </div> <div class="dashboard-row-bottom"> <div class="dashboard-tables"> <table class="dashboard-card-table dashboard-card-table-center nowrap"> <tbody> <tr> <?php if (!empty($_smarty_tpl->tpl_vars['general_stats']->value['products'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("active_products"); ?> </div> <div class="dashboard-card-content"> <h3><a href="<?php echo htmlspecialchars(fn_url("products.manage?status=A"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(number_format($_smarty_tpl->tpl_vars['general_stats']->value['products']['total_products']), ENT_QUOTES, 'UTF-8'); ?> </a></h3> </div> </div> </td> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("out_of_stock_products"); ?> </div> <div class="dashboard-card-content"> <h3><a href="<?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS"), ENT_QUOTES, 'UTF-8'); $_tmp2 = ob_get_clean(); echo htmlspecialchars(fn_url("products.manage?amount_from=&amount_to=0&tracking[0]=" . $_tmp1 . "&tracking[1]=" . $_tmp2), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(number_format($_smarty_tpl->tpl_vars['general_stats']->value['products']['out_of_stock_products']), ENT_QUOTES, 'UTF-8'); ?> </a></h3> </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['general_stats']->value['customers'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("registered_customers"); ?> </div> <div class="dashboard-card-content"> <h3><a href="<?php echo htmlspecialchars(fn_url("profiles.manage?user_type=C"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(number_format($_smarty_tpl->tpl_vars['general_stats']->value['customers']['registered_customers']), ENT_QUOTES, 'UTF-8'); ?> </a></h3> </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['general_stats']->value['categories'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("categories"); ?> </div> <div class="dashboard-card-content"> <h3><a href="<?php echo htmlspecialchars(fn_url("categories.manage"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(number_format($_smarty_tpl->tpl_vars['general_stats']->value['categories']['total_categories']), ENT_QUOTES, 'UTF-8'); ?> </a></h3> </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['general_stats']->value['companies'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("vendors"); ?> </div> <div class="dashboard-card-content"> <h3><a href="<?php echo htmlspecialchars(fn_url("companies.manage"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(number_format($_smarty_tpl->tpl_vars['general_stats']->value['companies']['total_companies']), ENT_QUOTES, 'UTF-8'); ?> </a></h3> </div> </div> </td> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['general_stats']->value['pages'])) { ?> <td> <div class="dashboard-card"> <div class="dashboard-card-title"><?php echo $_smarty_tpl->__("web_pages"); ?> </div> <div class="dashboard-card-content"> <h3><a href="<?php echo htmlspecialchars(fn_url("pages.manage"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(number_format($_smarty_tpl->tpl_vars['general_stats']->value['pages']['total_pages']), ENT_QUOTES, 'UTF-8'); ?> </a></h3> </div> </div> </td> <?php } ?> </tr> </tbody> </table> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:order_statistic")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:order_statistic"), 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' => "index:order_statistic"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['user_can_view_orders']->value) { ?> <div class="dashboard-table dashboard-table-order-by-statuses"> <h4><?php echo $_smarty_tpl->__("order_by_status"); ?> </h4> <div class="table-wrap" id="dashboard_order_by_status"> <table class="table"> <thead> <tr> <th width="25%"><?php echo $_smarty_tpl->__("status"); ?> </th> <th width="25%"><?php echo $_smarty_tpl->__("qty"); ?> </th> <th width="25%"><?php echo $_smarty_tpl->__('total'); ?> </th> <th width="25%"><?php echo $_smarty_tpl->__("shipping"); ?> </th> </tr> </thead> </table> <div class="scrollable-table"> <table class="table table-striped"> <tbody> <?php $_smarty_tpl->tpl_vars["order_status"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["order_status"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['order_by_statuses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["order_status"]->key => $_smarty_tpl->tpl_vars["order_status"]->value) { $_smarty_tpl->tpl_vars["order_status"]->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['url'] = new Smarty_variable(fn_url("orders.manage?is_search=Y&period=C&time_from=" . (string) $_smarty_tpl->tpl_vars['time_from']->value . "&time_to=" . (string) $_smarty_tpl->tpl_vars['time_to']->value . "&status[]=" . (string) $_smarty_tpl->tpl_vars['order_status']->value['status']), null, 0); ?> <tr> <td width="25%"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_status']->value['status_name'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <td width="25%"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_status']->value['count'], ENT_QUOTES, 'UTF-8'); ?> </td> <td width="25%"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_status']->value['total']), 0); ?> </td> <td width="25%"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['order_status']->value['shipping']), 0); ?> </td> </tr> <?php } ?> </tbody> </table> </div> <!--dashboard_order_by_status--></div> </div> <?php } ?> </div> <?php if (fn_check_view_permissions("logs.manage", "GET")) { ?> <div class="dashboard-activity"> <div class="pull-right"><a href="<?php echo htmlspecialchars(fn_url("logs.manage"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__('show_all'); ?> </a></div> <h4><?php echo $_smarty_tpl->__("recent_activity"); ?> </h4> <?php if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.php'; } if (!function_exists('smarty_template_function_show_log_row')) { function smarty_template_function_show_log_row($_smarty_tpl, $params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; foreach ($_smarty_tpl->smarty->template_functions['show_log_row']['parameter'] as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } ?> <?php if ($_smarty_tpl->tpl_vars['item']->value) { ?> <div class="item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:recent_activity")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:recent_activity"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_smarty_tpl->tpl_vars['_type'] = new Smarty_variable("log_type_" . (string) $_smarty_tpl->tpl_vars['item']->value['type'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['_action'] = new Smarty_variable("log_action_" . (string) $_smarty_tpl->tpl_vars['item']->value['action'], null, 0); ?> <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_type']->value); if ($_smarty_tpl->tpl_vars['item']->value['action']) { ?> (<?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_action']->value); ?> )<?php } ?> : <?php if ($_smarty_tpl->tpl_vars['item']->value['type'] == "users" && fn_check_view_permissions(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), "GET")) { ?> <?php if ($_smarty_tpl->tpl_vars['item']->value['content']['id']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['content']['user'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['item']->value['content']['id']) { ?> </a><?php } ?> <br> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "orders" && fn_check_view_permissions(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), "GET")) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['content']['status'], ENT_QUOTES, 'UTF-8'); ?> <br> <a href="<?php echo htmlspecialchars(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("order"); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['content']['order'], ENT_QUOTES, 'UTF-8'); ?> </a><br> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "products" && fn_check_view_permissions(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), "GET")) { ?> <a href="<?php echo htmlspecialchars(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['content']['product'], ENT_QUOTES, 'UTF-8'); ?> </a><br> <?php } elseif ($_smarty_tpl->tpl_vars['item']->value['type'] == "categories" && fn_check_view_permissions(fn_url("categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), "GET")) { ?> <a href="<?php echo htmlspecialchars(fn_url("categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['content']['category'], ENT_QUOTES, 'UTF-8'); ?> </a><br> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:recent_activity_item")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:recent_activity_item"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:recent_activity_item"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <span class="date"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </span> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:recent_activity"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars; foreach (Smarty::$global_tpl_vars as $key => $value) { if (!isset($_smarty_tpl->tpl_vars[$key])) { $_smarty_tpl->tpl_vars[$key] = $value; } } } } ?> <div class="dashboard-activity-list"> <?php $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['logs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["item"]->key => $_smarty_tpl->tpl_vars["item"]->value) { $_smarty_tpl->tpl_vars["item"]->_loop = true; ?> <?php smarty_template_function_show_log_row($_smarty_tpl, array('item' => $_smarty_tpl->tpl_vars['item']->value)); ?> <?php } ?> </div> </div> <?php } ?> </div> <!--dashboard--></div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:index"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/daterange_picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "dashboard_date_picker", 'extra_class' => "pull-right offset1", 'data_url' => fn_url("index.index"), 'result_ids' => "dashboard", 'start_date' => $_smarty_tpl->tpl_vars['time_from']->value, 'end_date' => $_smarty_tpl->tpl_vars['time_to']->value), 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(); } 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 echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'no_sidebar' => true, 'title' => __("dashboard"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'tools' => Smarty::$_smarty_vars['capture']['tools']), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:welcome_dialog")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:welcome_dialog"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['show_welcome']->value) { ?> <div class="hidden cm-dialog-auto-open cm-dialog-auto-size" title="<?php echo $_smarty_tpl->__("installer_complete_title"); ?> " id="after_install_dialog" data-ca-dialog-class="welcome-screen-dialog"> <?php $_smarty_tpl->tpl_vars["company"] = new Smarty_variable(fn_get_company_data("1"), null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php ob_start(); echo htmlspecialchars(smarty_modifier_unpuny($_smarty_tpl->tpl_vars['company']->value['storefront']), ENT_QUOTES, 'UTF-8'); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars['link_storefront'] = new Smarty_variable("http://" . $_tmp3, null, 0); ?> <?php } else { ?> <?php ob_start(); echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['http_location']), ENT_QUOTES, 'UTF-8'); $_tmp4 = ob_get_clean(); $_smarty_tpl->tpl_vars['link_storefront'] = new Smarty_variable($_tmp4, null, 0); ?> <?php } ?> <div class="welcome-screen"> <p> <?php $_smarty_tpl->tpl_vars['user_data'] = new Smarty_variable(fn_get_user_info($_smarty_tpl->tpl_vars['auth']->value['user_id']), null, 0); ?> <?php echo $_smarty_tpl->__("welcome_screen.administrator_info", array('[email]' => $_smarty_tpl->tpl_vars['user_data']->value['email'])); ?> </p> <div class="welcome-location-wrapper clearfix"> <div class="welcome-location-block pull-left center"> <h4 class="install-title"><?php echo $_smarty_tpl->__("admin_panel"); ?> </h4> <div class="welcome-screen-location welcome-screen-admin"> <div class="welcome-screen-overlay"> <a class="btn cm-dialog-closer welcome-screen-overlink"><?php echo $_smarty_tpl->__("welcome_screen.go_admin_panel"); ?> </a> </div> </div> <div class="welcome-screen-arrow"></div> <p> <?php echo $_smarty_tpl->__("welcome_screen.go_settings_wizard"); ?> </p> <?php $_smarty_tpl->tpl_vars['c_url'] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <a class="cm-dialog-opener cm-ajax btn btn-primary strong" data-ca-target-id="content_settings_wizard" title="<?php echo $_smarty_tpl->__("settings_wizard"); ?> " href="<?php echo htmlspecialchars(fn_url("settings_wizard.view?return_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), ENT_QUOTES, 'UTF-8'); ?> " target="_blank"><?php echo $_smarty_tpl->__("welcome_screen.run_settings_wizard"); ?> </a> </div> <div class="welcome-location-block pull-right center"> <h4 class="install-title"><?php echo $_smarty_tpl->__("storefront"); ?> </h4> <div class="welcome-screen-location welcome-screen-store"> <div class="welcome-screen-overlay"> <a class="btn welcome-screen-overlink" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link_storefront']->value, ENT_QUOTES, 'UTF-8'); ?> " target="_blank"><?php echo $_smarty_tpl->__("welcome_screen.go_storefront"); ?> </a> </div> </div> <div class="welcome-screen-arrow"></div> <p> <?php echo $_smarty_tpl->__("welcome_screen.learn_more_configuration"); ?> </p> <a class="kbase-link" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['resources']['knowledge_base'], ENT_QUOTES, 'UTF-8'); ?> " target="_blank"><?php echo $_smarty_tpl->__("welcome_screen.knowledge_base"); ?> </a> </div> </div> <div class="welcome-screen-social center"> <p> <?php echo $_smarty_tpl->__("welcome_screen.thanks", array("[product]" => @constant('PRODUCT_NAME'))); ?> </p> <?php echo $_smarty_tpl->getSubTemplate("common/share.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> </div> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:welcome_dialog"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php }
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'); } ?> " /> <?php $_smarty_tpl->tpl_vars["image"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["image"]->_loop = false; $_smarty_tpl->tpl_vars["image_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["image"]->key => $_smarty_tpl->tpl_vars["image"]->value) { $_smarty_tpl->tpl_vars["image"]->_loop = true; $_smarty_tpl->tpl_vars["image_id"]->value = $_smarty_tpl->tpl_vars["image"]->key; ?> <div class="upload-file-section cm-uploaded-image" id="message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8'); ?> " title=""> <p class="cm-fu-file"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "fileuploader:links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['image']->value['location'] == "cart") { ?> <?php $_smarty_tpl->tpl_vars["delete_link"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['runtime']->value['controller'] . ".delete_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value . "&redirect_mode=cart", null, 0); ?> <?php $_smarty_tpl->tpl_vars["download_link"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['runtime']->value['controller'] . ".get_custom_file?cart_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&option_id=" . (string) $_smarty_tpl->tpl_vars['po']->value['option_id'] . "&file=" . (string) $_smarty_tpl->tpl_vars['image_id']->value, null, 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "fileuploader:links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['image']->value['is_image']) { ?> <a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['detailed']), ENT_QUOTES, 'UTF-8'); ?> "><img src="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['image']->value['thumbnail']), ENT_QUOTES, 'UTF-8'); ?> " border="0" /></a><br /> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:uploaded_files")); $_block_repeat = true; echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['delete_link']->value) { ?> <a class="cm-ajax cm-post" href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['delete_link']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php } if (!($_smarty_tpl->tpl_vars['po']->value['required'] == "Y" && count($_smarty_tpl->tpl_vars['images']->value) == 1)) { ?> <i id="clean_selection_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['file'], ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " onclick="Tygh.fileuploader.clean_selection(this.id); <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") { ?> Tygh.fileuploader.toggle_links('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', 'show');<?php } ?> Tygh.fileuploader.check_required_field('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="icon-remove-sign cm-tooltip hand"></i> <?php } if ($_smarty_tpl->tpl_vars['delete_link']->value) { ?> </a><?php } ?> <span><?php if ($_smarty_tpl->tpl_vars['download_link']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['download_link']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['name'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['download_link']->value) { ?> </a><?php } ?> </span> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "fileuploader:uploaded_files"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </p> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "fileuploader:uploader")); $_block_repeat = true; echo smarty_block_hook(array('name' => "fileuploader:uploader"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div id="file_uploader_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="upload-file-section" id="message_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " title=""> <p class="cm-fu-file hidden"><i id="clean_selection_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " alt="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " onclick="Tygh.fileuploader.clean_selection(this.id); <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") { ?> Tygh.fileuploader.toggle_links(this.id, 'show');<?php } ?> Tygh.fileuploader.check_required_field('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="icon-remove-sign cm-tooltip hand"></i> <span></span></p> <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y") { ?> <p class="cm-fu-no-file <?php if ($_smarty_tpl->tpl_vars['images']->value) { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("text_select_file"); ?> </p><?php } ?> </div> <input type="hidden" name="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['image_name']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['image_name']->value, ENT_QUOTES, 'UTF-8'); } ?> " id="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['is_image']->value) { ?> class="cm-image-field"<?php } ?> /><input type="hidden" name="type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php if ($_smarty_tpl->tpl_vars['image_name']->value) { ?> local<?php } ?> " id="type_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['is_image']->value) { ?> class="cm-image-field"<?php } ?> /><div class="btn-group <?php if ($_smarty_tpl->tpl_vars['multiupload']->value != "Y" && $_smarty_tpl->tpl_vars['images']->value) { ?> hidden<?php } ?> " id="link_container_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><div class="upload-file-local"><a class="btn"><span data-ca-multi="Y" <?php if (!$_smarty_tpl->tpl_vars['images']->value) { ?> class="hidden"<?php } ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_another_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("upload_another_file") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </span><span data-ca-multi="N" <?php if ($_smarty_tpl->tpl_vars['images']->value) { ?> class="hidden"<?php } ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['upload_file_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("local") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </span></a><div class="image-selector"><label for=""><input type="file" name="file_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " id="local_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> " onchange="Tygh.fileuploader.show_loader(this.id); <?php if ($_smarty_tpl->tpl_vars['multiupload']->value == "Y") { ?> Tygh.fileuploader.check_image(this.id);<?php } ?> Tygh.fileuploader.check_required_field('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['label_id']->value, ENT_QUOTES, 'UTF-8'); ?> ');" class="file<?php if ($_smarty_tpl->tpl_vars['is_image']->value) { ?> cm-image-field<?php } ?> " data-ca-empty-file="" onclick="Tygh.$(this).removeAttr('data-ca-empty-file');"></label></div></div><?php if (!($_smarty_tpl->tpl_vars['hide_server']->value || defined("RESTRICTED_ADMIN"))) { ?> <a class="btn" onclick="Tygh.fileuploader.show_loader(this.id);" id="server_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("server"); ?> </a><?php } ?> <a class="btn" onclick="Tygh.fileuploader.show_loader(this.id);" id="url_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_var_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("url"); ?> </a><?php if ($_smarty_tpl->tpl_vars['hidden_name']->value) { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hidden_value']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php } ?> </div><?php if ($_smarty_tpl->tpl_vars['allowed_ext']->value) { ?> <p class="mute micro-note"><?php echo $_smarty_tpl->__("text_allowed_to_upload_file_extension", array("[ext]" => $_smarty_tpl->tpl_vars['allowed_ext']->value)); ?> </p><?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "fileuploader:uploader"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div><!--fileuploader--><?php }
function content_55db8bdb0f92e3_64294621($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.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_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } fn_preload_lang_vars(array('month_name_abr_1', 'month_name_abr_2', 'month_name_abr_3', 'month_name_abr_4', 'month_name_abr_5', 'month_name_abr_6', 'month_name_abr_7', 'month_name_abr_8', 'month_name_abr_9', 'month_name_abr_10', 'month_name_abr_11', 'month_name_abr_12', 'weekday_abr_0', 'weekday_abr_1', 'weekday_abr_2', 'weekday_abr_3', 'weekday_abr_4', 'weekday_abr_5', 'weekday_abr_6', 'today', 'yesterday', 'this_month', 'last_month', 'this_year', 'last_year', 'custom_range', 'apply', 'clear', 'from', 'to')); ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-date-range <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['data_url']->value) { ?> data-ca-target-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_url']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['result_ids']->value) { ?> data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> data-ca-time-from="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['start_date']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-time-to="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['end_date']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-date-format="<?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_date_format'] == "month_first") { ?> MM/DD/YYYY<?php } else { ?> DD/MM/YYYY<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['data_event']->value) { ?> data-ca-event="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_event']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > <a class="btn-text"> <span> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_date_format'] == "month_first") { ?> <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['start_date']->value, "%b %d, %Y"), ENT_QUOTES, 'UTF-8'); ?> — <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['end_date']->value, "%b %d, %Y"), ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['start_date']->value, "%d %b %Y"), ENT_QUOTES, 'UTF-8'); ?> — <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['end_date']->value, "%d %b %Y"), ENT_QUOTES, 'UTF-8'); ?> <?php } ?> </span> <b class="caret"></b> </a> </div> <?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" class="cm-ajax_force"> (function (_, $) { $(document).ready(function () { _.tr({ default_lang: '<?php echo htmlspecialchars(strtr(@constant('DEFAULT_LANGUAGE'), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")), ENT_QUOTES, 'UTF-8'); ?> ', month_name_abr_1: '<?php echo strtr($_smarty_tpl->__("month_name_abr_1"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_2: '<?php echo strtr($_smarty_tpl->__("month_name_abr_2"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_3: '<?php echo strtr($_smarty_tpl->__("month_name_abr_3"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_4: '<?php echo strtr($_smarty_tpl->__("month_name_abr_4"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_5: '<?php echo strtr($_smarty_tpl->__("month_name_abr_5"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_6: '<?php echo strtr($_smarty_tpl->__("month_name_abr_6"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_7: '<?php echo strtr($_smarty_tpl->__("month_name_abr_7"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_8: '<?php echo strtr($_smarty_tpl->__("month_name_abr_8"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_9: '<?php echo strtr($_smarty_tpl->__("month_name_abr_9"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_10: '<?php echo strtr($_smarty_tpl->__("month_name_abr_10"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_11: '<?php echo strtr($_smarty_tpl->__("month_name_abr_11"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', month_name_abr_12: '<?php echo strtr($_smarty_tpl->__("month_name_abr_12"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_0: '<?php echo strtr($_smarty_tpl->__("weekday_abr_0"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_1: '<?php echo strtr($_smarty_tpl->__("weekday_abr_1"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_2: '<?php echo strtr($_smarty_tpl->__("weekday_abr_2"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_3: '<?php echo strtr($_smarty_tpl->__("weekday_abr_3"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_4: '<?php echo strtr($_smarty_tpl->__("weekday_abr_4"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_5: '<?php echo strtr($_smarty_tpl->__("weekday_abr_5"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', weekday_abr_6: '<?php echo strtr($_smarty_tpl->__("weekday_abr_6"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', today: '<?php echo strtr($_smarty_tpl->__("today"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', yesterday: '<?php echo strtr($_smarty_tpl->__("yesterday"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', this_month: '<?php echo strtr($_smarty_tpl->__("this_month"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', last_month: '<?php echo strtr($_smarty_tpl->__("last_month"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', this_year: '<?php echo strtr($_smarty_tpl->__("this_year"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', last_year: '<?php echo strtr($_smarty_tpl->__("last_year"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', custom_range: '<?php echo strtr($_smarty_tpl->__("custom_range"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', apply: '<?php echo strtr($_smarty_tpl->__("apply"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', clear: '<?php echo strtr($_smarty_tpl->__("clear"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', from: '<?php echo strtr($_smarty_tpl->__("from"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', to: '<?php echo strtr($_smarty_tpl->__("to"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ' }); _.daterangepicker = { usePredefinedPeriods: true, customRangeFormat: '<?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_date_format'] == "month_first") { ?> MM/DD/YYYY<?php } else { ?> DD/MM/YYYY<?php } ?> ', displayedFormat: '<?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_date_format'] == "month_first") { ?> MMM DD, YYYY<?php } else { ?> DD MMM, YYYY<?php } ?> ' }; _.time_from = '<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['start_date']->value, array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")), ENT_QUOTES, 'UTF-8'); ?> '; _.time_to = '<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['end_date']->value, array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")), ENT_QUOTES, 'UTF-8'); ?> '; }); }(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/date_picker.js", 'class' => "cm-ajax-force"), $_smarty_tpl); ?> <?php }
function content_55db8bdb361cd8_44258580($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.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('all_vendors', 'view_storefront', 'storefront_url_not_defined', 'manage_stores', 'vendor', 'manage_stores', 'view_storefront', 'vendor', 'manage_vendors', 'signed_in_as', 'edit_profile', 'sign_out', 'feedback_values', 'send_feedback', 'search_tooltip', 'go')); if (defined("THEMES_PANEL")) { ?> <?php $_smarty_tpl->tpl_vars['sticky_scroll'] = new Smarty_variable(5, null, 0); ?> <?php $_smarty_tpl->tpl_vars['sticky_padding'] = new Smarty_variable(36, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['sticky_scroll'] = new Smarty_variable(41, null, 0); ?> <?php $_smarty_tpl->tpl_vars['sticky_padding'] = new Smarty_variable(0, null, 0); } ?> <?php if (!function_exists('smarty_template_function_menu_attrs')) { function smarty_template_function_menu_attrs($_smarty_tpl, $params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; foreach ($_smarty_tpl->smarty->template_functions['menu_attrs']['parameter'] as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } ?> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['attr'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['attrs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['attr']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attr']->value, ENT_QUOTES, 'UTF-8'); ?> ="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } $_smarty_tpl->tpl_vars = $saved_tpl_vars; foreach (Smarty::$global_tpl_vars as $key => $value) { if (!isset($_smarty_tpl->tpl_vars[$key])) { $_smarty_tpl->tpl_vars[$key] = $value; } } } } ?> <div class="navbar-admin-top"> <!--Navbar--> <div class="navbar navbar-inverse" id="header_navbar"> <div class="navbar-inner"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company']) { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_variable($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['Company']['company_name'], null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <div class="nav-ult"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "menu:storefront_icon")); $_block_repeat = true; echo smarty_block_hook(array('name' => "menu:storefront_icon"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_data']['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["name"] = new Smarty_variable($_smarty_tpl->__("all_vendors"), null, 0); ?> <?php } ?> <li class="nav-company"> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_data']['storefront']) { ?> <a href="<?php echo htmlspecialchars(fn_url("?company_id=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['company_data']['company_id'], "C"), ENT_QUOTES, 'UTF-8'); ?> " target="_blank" class="brand" title="<?php echo $_smarty_tpl->__("view_storefront"); ?> "> <i class="icon-shopping-cart icon-white"></i> </a> <?php } else { ?> <a class="brand" title="<?php echo $_smarty_tpl->__("storefront_url_not_defined"); ?> "><i class="icon-shopping-cart icon-white cm-tooltip"></i></a> <?php } ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "menu:storefront_icon"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['companies_available_count'] > 1) { ?> <ul class="nav"> <?php $_smarty_tpl->_capture_stack[0][] = array("extra_content", null, null); ob_start(); ?> <?php if (fn_check_view_permissions("companies.manage", "GET")) { ?> <li class="divider"></li> <li><a href="<?php echo htmlspecialchars(fn_url("companies.manage?switch_company_id=0"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("manage_stores"); ?> ...</a></li> <?php } ?> <?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 echo $_smarty_tpl->getSubTemplate("common/ajax_select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_url' => "companies.get_companies_list?show_all=Y&action=href", 'text' => $_smarty_tpl->tpl_vars['name']->value, 'id' => "top_company_id", 'type' => "list", 'extra_content' => Smarty::$_smarty_vars['capture']['extra_content']), 0); ?> </ul> <?php } else { ?> <ul class="nav"> <?php if ($_smarty_tpl->tpl_vars['auth']->value['company_id']) { ?> <li class="dropdown"> <a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['company_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("vendor"); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } else { ?> <?php if (fn_check_view_permissions("companies.manage", "GET")) { ?> <li class="dropdown vendor-submenu"> <a class=" dropdown-toggle" data-toggle="dropdown"> <span><?php echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['name']->value, 60, "...", true), ENT_QUOTES, 'UTF-8'); ?> </span><b class="caret"></b> </a> <ul class="dropdown-menu" id="top_company_id_ajax_select_object"> <li><a href="<?php echo htmlspecialchars(fn_url("companies.manage?switch_company_id=0"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("manage_stores"); ?> ...</a></li> </ul> </li> <?php } ?> <?php } ?> </ul> <?php } ?> </div> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR") && !$_smarty_tpl->tpl_vars['runtime']->value['simple_ultimate']) { ?> <ul class="nav"> <li class="nav-company"> <a href="<?php echo htmlspecialchars(htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['config']->value['http_location']), ENT_QUOTES, 'UTF-8', true), ENT_QUOTES, 'UTF-8'); ?> " target="_blank" class="brand" title="<?php echo $_smarty_tpl->__("view_storefront"); ?> "> <i class="icon-shopping-cart icon-white"></i> </a> <a href="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " class="brand"><?php echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['settings']->value['Company']['company_name'], 60, "...", true), ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['live_editor']) { ?> <?php $_smarty_tpl->tpl_vars["company_name"] = new Smarty_variable($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["company_name"] = new Smarty_variable(smarty_modifier_truncate($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], 43, "...", true), null, 0); ?> <?php } ?> </li> <?php if ($_smarty_tpl->tpl_vars['auth']->value['company_id']) { ?> <li class="dropdown"> <a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['runtime']->value['company_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("vendor"); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['runtime']->value['company_data']['company'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } else { ?> <?php if (fn_check_view_permissions("companies.get_companies_list", "GET")) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("extra_content", null, null); ob_start(); ?> <li class="divider"></li> <li><a href="<?php echo htmlspecialchars(fn_url("companies.manage?switch_company_id=0"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("manage_vendors"); ?> ...</a></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()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/ajax_select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_url' => "companies.get_companies_list?show_all=Y&action=href", 'text' => $_smarty_tpl->tpl_vars['company_name']->value, 'id' => "top_company_id", 'type' => "list", 'extra_content' => Smarty::$_smarty_vars['capture']['extra_content']), 0); ?> <?php } else { ?> <li class="dropdown"> <a class="unedited-element"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_name']->value, ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php } ?> </ul> <?php } ?> <ul class="nav hover-show navbar-right"> <?php if ($_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['navigation']->value['static']) { ?> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars['first_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['static']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value) { $_smarty_tpl->tpl_vars['m']->_loop = true; $_smarty_tpl->tpl_vars['first_level_title']->value = $_smarty_tpl->tpl_vars['m']->key; ?> <li class="dropdown dropdown-top-menu-item<?php if ($_smarty_tpl->tpl_vars['first_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['selected_tab']) { ?> active<?php } ?> "> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " href="#" class="dropdown-toggle <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " data-toggle="dropdown"> <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['first_level_title']->value); ?> <b class="caret"></b> </a> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars["second_level"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["second_level"]->_loop = false; $_smarty_tpl->tpl_vars['second_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['m']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["second_level"]->key => $_smarty_tpl->tpl_vars["second_level"]->value) { $_smarty_tpl->tpl_vars["second_level"]->_loop = true; $_smarty_tpl->tpl_vars['second_level_title']->value = $_smarty_tpl->tpl_vars["second_level"]->key; ?> <li class="<?php if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> dropdown-submenu<?php } if ($_smarty_tpl->tpl_vars['second_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['subsection']) { ?> active<?php } ?> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['main'])); ?> > <?php if ($_smarty_tpl->tpl_vars['second_level']->value['type'] == "title") { ?> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href']) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['href'])); ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['second_level']->value['title']) === null || $tmp === '' ? $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level_title']->value) : $tmp, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } elseif ($_smarty_tpl->tpl_vars['second_level']->value['type'] != "divider") { ?> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href']) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class_href'], ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['second_level']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['href'])); ?> ><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['second_level']->value['title']) === null || $tmp === '' ? $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level_title']->value) : $tmp, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['sm'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sm']->_loop = false; $_smarty_tpl->tpl_vars['subitem_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['second_level']->value['subitems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sm']->key => $_smarty_tpl->tpl_vars['sm']->value) { $_smarty_tpl->tpl_vars['sm']->_loop = true; $_smarty_tpl->tpl_vars['subitem_title']->value = $_smarty_tpl->tpl_vars['sm']->key; ?> <li class="<?php if ($_smarty_tpl->tpl_vars['sm']->value['active']) { ?> active<?php } ?> <?php if ($_smarty_tpl->tpl_vars['sm']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['main'])); ?> > <?php if ($_smarty_tpl->tpl_vars['sm']->value['type'] == "title") { ?> <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['subitem_title']->value); ?> <?php } elseif ($_smarty_tpl->tpl_vars['sm']->value['type'] != "divider") { ?> <a id="elm_menu_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['first_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subitem_title']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['sm']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['href'])); ?> ><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['subitem_title']->value); ?> </a> <?php } ?> </li> <?php if ($_smarty_tpl->tpl_vars['sm']->value['type'] == "divider") { ?> <li class="divider"></li> <?php } ?> <?php } ?> </ul> <?php } ?> </li> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['type'] == "divider") { ?> <li class="divider"></li> <?php } ?> <?php } ?> </ul> </li> <?php } ?> <?php } ?> <!-- end navbar--> <?php if ($_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if (sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1 || sizeof($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <li class="divider-vertical"></li> <?php } ?> <!--language--> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if (sizeof($_smarty_tpl->tpl_vars['languages']->value) > 1) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "dropdown", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "sl="), 'items' => $_smarty_tpl->tpl_vars['languages']->value, 'selected_id' => @constant('CART_LANGUAGE'), 'display_icons' => true, 'key_name' => "name", 'key_selected' => "lang_code", 'class' => "languages"), 0); ?> <?php } ?> <?php } ?> <!--end language--> <!--Curriencies--> <?php if (sizeof($_smarty_tpl->tpl_vars['currencies']->value) > 1) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_object.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('style' => "dropdown", 'link_tpl' => fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "currency="), 'items' => $_smarty_tpl->tpl_vars['currencies']->value, 'selected_id' => $_smarty_tpl->tpl_vars['secondary_currency']->value, 'display_icons' => false, 'key_name' => "description", 'key_selected' => "currency_code"), 0); ?> <?php } ?> <!--end curriencies--> <li class="divider-vertical"></li> <!-- user menu --> <li class="dropdown dropdown-top-menu-item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:top_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:top_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-white icon-user"></i> <b class="caret"></b> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:top_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <ul class="dropdown-menu pull-right"> <li class="disabled"> <a><strong><?php echo $_smarty_tpl->__("signed_in_as"); ?> </strong><br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_info']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <li class="divider"></li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "menu:profile")); $_block_repeat = true; echo smarty_block_hook(array('name' => "menu:profile"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['auth']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("edit_profile"); ?> </a></li> <li><a href="<?php echo htmlspecialchars(fn_url("auth.logout"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("sign_out"); ?> </a></li> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <li class="divider"></li> <li> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "group" . (string) $_smarty_tpl->tpl_vars['id_prefix']->value . "feedback", 'edit_onclick' => $_smarty_tpl->tpl_vars['onclick']->value, 'text' => __("feedback_values"), 'act' => "link", 'picker_meta' => "cm-clear-content", 'link_text' => __("send_feedback", array("[product]" => @constant('PRODUCT_NAME'))), 'content' => Smarty::$_smarty_vars['capture']['update_block'], 'href' => "feedback.prepare", 'no_icon_link' => true, 'but_name' => "dispatch[feedback.send]", 'opener_ajax_class' => "cm-ajax"), 0); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "menu:profile"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </ul> </li> <!--end user menu --> <?php } ?> </ul> </div> <!--header_navbar--></div> <!--Subnav--> <div class="subnav cm-sticky-scroll" data-ce-top="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sticky_scroll']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ce-padding="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sticky_padding']->value, ENT_QUOTES, 'UTF-8'); ?> " id="header_subnav"> <!--quick search--> <div class="search pull-right"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "index:global_search")); $_block_repeat = true; echo smarty_block_hook(array('name' => "index:global_search"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <form id="global_search" method="get" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="dispatch" value="search.results" /> <input type="hidden" name="compact" value="Y" /> <button class="icon-search cm-tooltip " type="submit" title="<?php echo $_smarty_tpl->__("search_tooltip"); ?> " id="search_button"><?php echo $_smarty_tpl->__("go"); ?> </button> <label for="gs_text"><input type="text" class="cm-autocomplete-off" id="gs_text" name="q" value="<?php echo htmlspecialchars($_REQUEST['q'], ENT_QUOTES, 'UTF-8'); ?> " /></label> </form> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "index:global_search"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <!--end quick search--> <!-- quick menu --> <?php echo $_smarty_tpl->getSubTemplate("common/quick_menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <!-- end quick menu --> <ul class="nav hover-show nav-pills"> <li><a href="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " class="home"><i class="icon-home"></i></a></li> <?php if ($_smarty_tpl->tpl_vars['auth']->value['user_id'] && $_smarty_tpl->tpl_vars['navigation']->value['static']) { ?> <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['m']->_loop = false; $_smarty_tpl->tpl_vars['first_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['navigation']->value['static']['central']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['m']->key => $_smarty_tpl->tpl_vars['m']->value) { $_smarty_tpl->tpl_vars['m']->_loop = true; $_smarty_tpl->tpl_vars['first_level_title']->value = $_smarty_tpl->tpl_vars['m']->key; ?> <li class="dropdown <?php if ($_smarty_tpl->tpl_vars['first_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['selected_tab']) { ?> active<?php } ?> "> <a href="#" class="dropdown-toggle" data-toggle="dropdown" > <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['first_level_title']->value); ?> <b class="caret"></b> </a> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars["second_level"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["second_level"]->_loop = false; $_smarty_tpl->tpl_vars['second_level_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['m']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["second_level"]->key => $_smarty_tpl->tpl_vars["second_level"]->value) { $_smarty_tpl->tpl_vars["second_level"]->_loop = true; $_smarty_tpl->tpl_vars['second_level_title']->value = $_smarty_tpl->tpl_vars["second_level"]->key; ?> <li class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level_title']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> dropdown-submenu<?php } if ($_smarty_tpl->tpl_vars['second_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['subsection'] && $_smarty_tpl->tpl_vars['first_level_title']->value == $_smarty_tpl->tpl_vars['navigation']->value['selected_tab']) { ?> active<?php } ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['main'])); ?> ><a class="<?php if ($_smarty_tpl->tpl_vars['second_level']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (!$_smarty_tpl->tpl_vars['second_level']->value['is_promo']) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['second_level']->value['href']), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['second_level']->value['attrs']['href'])); ?> > <span><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level_title']->value); if ($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'] == 'is-addon') { ?> <i class="icon-is-addon"></i><?php } ?> </span> <?php if ($_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level']->value['description']) != "_" . (string) $_smarty_tpl->tpl_vars['second_level_title']->value . "_menu_description") { if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['show_menu_descriptions'] == "Y") { ?> <span class="hint"><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['second_level']->value['description']); ?> </span><?php } } ?> </a> <?php if ($_smarty_tpl->tpl_vars['second_level']->value['subitems']) { ?> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['sm'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sm']->_loop = false; $_smarty_tpl->tpl_vars['subitem_title'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['second_level']->value['subitems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sm']->key => $_smarty_tpl->tpl_vars['sm']->value) { $_smarty_tpl->tpl_vars['sm']->_loop = true; $_smarty_tpl->tpl_vars['subitem_title']->value = $_smarty_tpl->tpl_vars['sm']->key; ?> <li class="<?php if ($_smarty_tpl->tpl_vars['sm']->value['active']) { ?> active<?php } ?> <?php if ($_smarty_tpl->tpl_vars['sm']->value['is_promo']) { ?> cm-promo-popup<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['second_level']->value['attrs']['class'], ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['main'])); ?> ><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['sm']->value['href']), ENT_QUOTES, 'UTF-8'); ?> " <?php smarty_template_function_menu_attrs($_smarty_tpl, array('attrs' => $_smarty_tpl->tpl_vars['sm']->value['attrs']['href'])); ?> ><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['subitem_title']->value); ?> </a></li> <?php } ?> </ul> <?php } ?> </li> <?php } ?> </ul> </li> <?php } ?> <?php } ?> </ul> <!--header_subnav--></div> </div> <?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(_, $) { $('.navbar-right li').hover(function() { var pagePosition = $(".admin-content").offset(); var adminContentWidth = 1240; if($(this).hasClass('dropdown-submenu')) { var elmPosition = $(this).find('.dropdown-menu').offset().left + $(this).find('.dropdown-menu').width(); if((elmPosition - pagePosition.left) > adminContentWidth) { $(this).find('.dropdown-menu').addClass('dropdown-menu-to-right'); } } }, function() { $(this).find('.dropdown-menu').removeClass('dropdown-menu-to-right'); }); }(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 }
function content_55db8bdb5dd860_54735364($_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('store_mode', 'choose_your_store_mode', 'full', 'text_store_mode_full', 'license_number', 'please_enter_license_here', 'trial', 'trial_mode_ult_disabled', 'trial_mode_mve_disabled', 'text_store_mode_trial', 'free', 'text_store_mode_free', 'select')); if ($_smarty_tpl->tpl_vars['show']->value) { ?> <a id="store_mode" class="cm-dialog-opener cm-dialog-auto-size hidden cm-dialog-non-closable" data-ca-target-id="store_mode_dialog"></a> <?php } ?> <div class="hidden" title="<?php echo $_smarty_tpl->__("store_mode"); ?> " id="store_mode_dialog"> <?php if ($_smarty_tpl->tpl_vars['store_mode_errors']->value) { ?> <div class="alert alert-error notification-content"> <button type="button" class="close" data-dismiss="alert">×</button> <?php $_smarty_tpl->tpl_vars["message"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["message"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['store_mode_errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["message"]->key => $_smarty_tpl->tpl_vars["message"]->value) { $_smarty_tpl->tpl_vars["message"]->_loop = true; ?> <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['title'], ENT_QUOTES, 'UTF-8'); ?> :</strong> <?php echo $_smarty_tpl->tpl_vars['message']->value['text']; ?> <br> <?php } ?> </div> <?php } ?> <form name="store_mode_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8'); ?> "> <span class="choice-text"><?php echo $_smarty_tpl->__("choose_your_store_mode"); ?> :</span> <ul class="store-mode inline"> <li class="clickable <?php if ($_smarty_tpl->tpl_vars['store_mode_errors']->value) { ?> type-error<?php } ?> item<?php if ($_smarty_tpl->tpl_vars['store_mode']->value == "full") { ?> active<?php } ?> "> <label for="store_mode_radio_full" class="radio"> <input type="radio" id="store_mode_radio_full" name="store_mode" value="full" <?php if (!$_smarty_tpl->tpl_vars['store_mode']->value || $_smarty_tpl->tpl_vars['store_mode']->value == "full") { ?> checked="checked"<?php } ?> class="cm-switch-class"><?php echo $_smarty_tpl->__("full"); ?> </label> <p><?php echo $_smarty_tpl->__("text_store_mode_full"); ?> </p> <label><?php echo $_smarty_tpl->__("license_number"); ?> :</label> <input type="text" name="license_number" class="<?php if ($_smarty_tpl->tpl_vars['store_mode_errors']->value) { ?> type-error<?php } ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['store_mode_license']->value, ENT_QUOTES, 'UTF-8'); ?> " placeholder="<?php echo $_smarty_tpl->__("please_enter_license_here"); ?> "> </li> <li class="<?php if ($_smarty_tpl->tpl_vars['store_mode']->value == "trial") { ?> active<?php } elseif ($_smarty_tpl->tpl_vars['store_mode']->value) { ?> disabled<?php } ?> "> <label for="store_mode_radio_trial" class="radio"> <input type="radio" id="store_mode_radio_trial" name="store_mode" value="trial" <?php if ($_smarty_tpl->tpl_vars['store_mode']->value == "trial") { ?> checked="checked"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['store_mode']->value != '' && $_smarty_tpl->tpl_vars['store_mode']->value != "trial") { ?> disabled="disabled"<?php } ?> ><?php echo $_smarty_tpl->__("trial"); ?> </label> <?php if ($_smarty_tpl->tpl_vars['store_mode']->value != '' && $_smarty_tpl->tpl_vars['store_mode']->value != "trial") { ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <p><?php echo $_smarty_tpl->__("trial_mode_ult_disabled"); ?> </p> <?php } else { ?> <p><?php echo $_smarty_tpl->__("trial_mode_mve_disabled"); ?> </p> <?php } ?> <?php } else { ?> <p><?php echo $_smarty_tpl->__("text_store_mode_trial"); ?> </p> <?php } ?> </li> <?php if (fn_allowed_for("ULTIMATE")) { ?> <li class="clickable <?php if ($_smarty_tpl->tpl_vars['store_mode']->value == "free") { ?> active<?php } ?> "> <label class="radio" for="store_mode_radio_free"> <input type="radio" id="store_mode_radio_free" name="store_mode" value="free" <?php if ($_smarty_tpl->tpl_vars['store_mode']->value == "free") { ?> checked="checked"<?php } ?> ><?php echo $_smarty_tpl->__("free"); ?> </label> <p><?php echo $_smarty_tpl->__("text_store_mode_free"); ?> </p> </li> <?php } ?> </ul> <div class="buttons-container"> <input name="dispatch[settings.change_store_mode]" type="submit" value="<?php echo $_smarty_tpl->__("select"); ?> " class="btn btn-primary"> </div> </form> </div> <?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"> Tygh.$(document).ready(function()<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['show']->value) { ?> Tygh.$('#store_mode').trigger('click'); <?php } ?> Tygh.$(document).on('click', '#store_mode_dialog li:not(.disabled)', function(){ $('#store_mode_dialog li').removeClass('active'); $(this).addClass('active').find('input[type="radio"]').prop('checked', true); }); <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); <?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 }
function content_55e6204edb88e9_99321176($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_modifier_replace')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/modifier.replace.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.php'; } if (!is_callable('smarty_modifier_formatfilesize')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.formatfilesize.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('new_version', 'release_date', 'filesize', 'install', 'package_contents', 'download', 'loading', 'refresh_packages_list', 'settings', 'installed_upgrades', 'upload_upgrade_package', 'upload_upgrade_package', 'upgrade_center')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <div class="upgrade-center"> <?php $_smarty_tpl->tpl_vars['packages'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['packages']->_loop = false; $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['upgrade_packages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['packages']->key => $_smarty_tpl->tpl_vars['packages']->value) { $_smarty_tpl->tpl_vars['packages']->_loop = true; $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['packages']->key; ?> <?php $_smarty_tpl->tpl_vars['package'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['package']->_loop = false; $_smarty_tpl->tpl_vars['_id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['packages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['package']->key => $_smarty_tpl->tpl_vars['package']->value) { $_smarty_tpl->tpl_vars['package']->_loop = true; $_smarty_tpl->tpl_vars['_id']->value = $_smarty_tpl->tpl_vars['package']->key; ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['_id']->value, ".", "_"), null, 0); ?> <form name="upgrade_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['type']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " method="post" action="<?php echo htmlspecialchars(fn_url(), ENT_QUOTES, 'UTF-8'); ?> " class="form-horizontal form-edit cm-disable-check-changes"> <input type="hidden" name="type" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['type']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="result_ids" value="install_notices_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ,install_button_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="upgrade-center_item"> <div class="upgrade-center_icon"> <?php if ($_smarty_tpl->tpl_vars['type']->value == "core" || $_smarty_tpl->tpl_vars['type']->value == "hotfix") { ?> <i class="glyph-physics1"></i> <?php } else { ?> <i class="glyph-addon"></i> <?php } ?> </div> <div class="upgrade-center_content"> <h4 class="upgrade-center_title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['package']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </h4> <ul class="upgrade-center_info"> <li> <strong><?php echo $_smarty_tpl->__("new_version"); ?> :</strong> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['package']->value['to_version'], ENT_QUOTES, 'UTF-8'); ?> </li> <li> <strong><?php echo $_smarty_tpl->__("release_date"); ?> :</strong> <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['package']->value['timestamp']), ENT_QUOTES, 'UTF-8'); ?> </li> <li> <strong><?php echo $_smarty_tpl->__("filesize"); ?> :</strong> <?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['package']->value['size']); ?> </li> </ul> <p class="upgrade-center_desc"> <?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['package']->value['description'], "\n", "<br>"); ?> </p> <?php if ($_smarty_tpl->tpl_vars['package']->value['ready_to_install']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/upgrade_center/components/install_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'caption' => __("install")), 0); ?> <a class="upgrade-center_pkg cm-dialog-opener cm-ajax" href="<?php echo htmlspecialchars(fn_url("upgrade_center.package_content?package_id=" . (string) $_smarty_tpl->tpl_vars['_id']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="package_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-dialog-title="<?php echo htmlspecialchars(htmlspecialchars($_smarty_tpl->tpl_vars['package']->value['name'], ENT_QUOTES, 'UTF-8', true), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("package_contents"); ?> </a> <?php } else { ?> <div class="upgrade-center_install"> <input name="dispatch[upgrade_center.download]" type="submit" class="btn cm-loading-btn" value="<?php echo $_smarty_tpl->__("download"); ?> " data-ca-loading-text="<?php echo $_smarty_tpl->__("loading"); ?> "> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/upgrade_center/components/notices.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'type' => $_smarty_tpl->tpl_vars['type']->value), 0); ?> </div> </div> </form> <?php } ?> <?php } if (!$_smarty_tpl->tpl_vars['packages']->_loop) { ?> <p class="no-items"><?php echo $_smarty_tpl->__('text_no_upgrades_available'); ?> </p> <?php } ?> </div> <?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(_, $){ $('.cm-loading-btn').on('click', function() { var self = $(this); setTimeout(function() { self.prop('value', self.data('caLoadingText')); $('.cm-loading-btn').attr('disabled', true); }, 50); return true; }); })(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 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 $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("refresh_packages_list"), 'href' => "upgrade_center.refresh")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("settings"), 'href' => "settings.manage§ion_id=Upgrade_center")); ?> </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()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php echo Smarty::$_smarty_vars['capture']['install_btn']; ?> <?php if ($_smarty_tpl->tpl_vars['installed_upgrades']->value['has_upgrades']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "upgrade_center.installed_upgrades", 'but_text' => __("installed_upgrades"), 'but_role' => "link"), 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 $_smarty_tpl->_capture_stack[0][] = array("upload_upgrade_package", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/upgrade_center/components/upload_upgrade_package.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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 $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "upgrade_center:adv_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "upgrade_center:adv_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_upgrade_package_container", 'text' => __("upload_upgrade_package"), 'title' => __("upload_upgrade_package"), 'content' => Smarty::$_smarty_vars['capture']['upload_upgrade_package'], 'act' => "general", 'link_class' => "cm-dialog-auto-size", 'icon' => "icon-plus", 'link_text' => ''), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "upgrade_center:adv_buttons"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("upgrade_center"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php }
function content_55dc7cba19ad69_72191634($_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('search', 'user', 'type', 'action', 'all', 'all')); ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("search"); ?> </h6> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="logs_form" method="get"> <input type="hidden" name="object" value="<?php echo htmlspecialchars($_REQUEST['object'], ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/period_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('period' => $_smarty_tpl->tpl_vars['search']->value['period'], 'extra' => '', 'display' => "form", 'button' => "false"), 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 $_smarty_tpl->_capture_stack[0][] = array("advanced_search", null, null); ob_start(); ?> <div class="group form-horizontal"> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("user"); ?> :</label> <div class="controls"> <input type="text" name="q_user" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q_user'], ENT_QUOTES, 'UTF-8'); ?> "> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("type"); ?> /<?php echo $_smarty_tpl->__("action"); ?> :</label> <div class="controls"> <select id="q_type" name="q_type" onchange="fn_logs_build_options();"> <option value=""<?php if (!$_smarty_tpl->tpl_vars['search']->value['q_type']) { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("all"); ?> </option> <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["o"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['log_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["o"]->key => $_smarty_tpl->tpl_vars["o"]->value) { $_smarty_tpl->tpl_vars["o"]->_loop = true; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['type'], ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['search']->value['q_type'] == $_smarty_tpl->tpl_vars['o']->value['type']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <select id="q_action" class="hidden" name="q_action"> </select> </div> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "logs:search_form")); $_block_repeat = true; echo smarty_block_hook(array('name' => "logs:search_form"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "logs:search_form"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 echo $_smarty_tpl->getSubTemplate("common/advanced_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('advanced_search' => Smarty::$_smarty_vars['capture']['advanced_search'], 'simple_search' => Smarty::$_smarty_vars['capture']['simple_search'], 'dispatch' => "logs.manage", 'view_type' => "logs"), 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"> var types = new Array(); <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["o"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['log_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["o"]->key => $_smarty_tpl->tpl_vars["o"]->value) { $_smarty_tpl->tpl_vars["o"]->_loop = true; ?> types['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['type'], ENT_QUOTES, 'UTF-8'); ?> '] = new Array(); <?php $_smarty_tpl->tpl_vars["v"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["v"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['o']->value['actions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["v"]->key => $_smarty_tpl->tpl_vars["v"]->value) { $_smarty_tpl->tpl_vars["v"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["v"]->key; ?> types['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['type'], ENT_QUOTES, 'UTF-8'); ?> ']['<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['k']->value, ENT_QUOTES, 'UTF-8'); ?> '] = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> '; <?php } ?> <?php } ?> Tygh.tr('all', '<?php echo strtr($_smarty_tpl->__("all"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); function fn_logs_build_options(current_action) { var elm_t = Tygh.$('#q_type'); var elm_a = Tygh.$('#q_action'); elm_a.html('<option value="">' + Tygh.tr('all') + '</option>'); for (var action in types[elm_t.val()]) { elm_a.append('<option value="' + action + '"' + (current_action && current_action == action ? ' selected="selected"' : '') + '>' + types[elm_t.val()][action] + '</option>'); } Tygh.$('#q_action').toggleBy((Tygh.$('option', elm_a).length == 1)); } Tygh.$(document).ready(function() <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> fn_logs_build_options('<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q_action'], ENT_QUOTES, 'UTF-8'); ?> '); <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> ); <?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); ?> </form> </div><?php }
function content_55dc7cba236e95_48066436($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.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('weekday_abr_0', 'weekday_abr_1', 'weekday_abr_2', 'weekday_abr_3', 'weekday_abr_4', 'weekday_abr_5', 'weekday_abr_6', 'month_name_abr_1', 'month_name_abr_2', 'month_name_abr_3', 'month_name_abr_4', 'month_name_abr_5', 'month_name_abr_6', 'month_name_abr_7', 'month_name_abr_8', 'month_name_abr_9', 'month_name_abr_10', 'month_name_abr_11', 'month_name_abr_12')); if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_date_format'] == "month_first") { ?> <?php $_smarty_tpl->tpl_vars["date_format"] = new Smarty_variable("%m/%d/%Y", null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["date_format"] = new Smarty_variable("%d/%m/%Y", null, 0); } ?> <div class="calendar"> <input type="text" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_id']->value, ENT_QUOTES, 'UTF-8'); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if ($_smarty_tpl->tpl_vars['date_meta']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['date_meta']->value, ENT_QUOTES, 'UTF-8'); } ?> cm-calendar" value="<?php if ($_smarty_tpl->tpl_vars['date_val']->value) { echo htmlspecialchars(smarty_modifier_date_format(fn_parse_date($_smarty_tpl->tpl_vars['date_val']->value), (string) $_smarty_tpl->tpl_vars['date_format']->value), ENT_QUOTES, 'UTF-8'); } ?> " <?php echo $_smarty_tpl->tpl_vars['extra']->value; ?> size="10" /> <span data-ca-external-focus-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="icon-calendar cm-external-focus"></span> </div> <?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(_, $) <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> $.ceEvent('on', 'ce.commoninit', function(context) { $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').datepicker({ changeMonth: true, duration: 'fast', changeYear: true, numberOfMonths: 1, selectOtherMonths: true, showOtherMonths: true, firstDay: <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_week_format'] == "sunday_first") { ?> 0<?php } else { ?> 1<?php } ?> , dayNamesMin: ['<?php echo $_smarty_tpl->__("weekday_abr_0"); ?> ', '<?php echo $_smarty_tpl->__("weekday_abr_1"); ?> ', '<?php echo $_smarty_tpl->__("weekday_abr_2"); ?> ', '<?php echo $_smarty_tpl->__("weekday_abr_3"); ?> ', '<?php echo $_smarty_tpl->__("weekday_abr_4"); ?> ', '<?php echo $_smarty_tpl->__("weekday_abr_5"); ?> ', '<?php echo $_smarty_tpl->__("weekday_abr_6"); ?> '], monthNamesShort: ['<?php echo $_smarty_tpl->__("month_name_abr_1"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_2"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_3"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_4"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_5"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_6"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_7"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_8"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_9"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_10"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_11"); ?> ', '<?php echo $_smarty_tpl->__("month_name_abr_12"); ?> '], yearRange: '<?php if ($_smarty_tpl->tpl_vars['start_year']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['start_year']->value, ENT_QUOTES, 'UTF-8'); } else { ?> c-100<?php } ?> :c+10', dateFormat: '<?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['calendar_date_format'] == "month_first") { ?> mm/dd/yy<?php } else { ?> dd/mm/yy<?php } ?> ' }); }); <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> (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); }
function content_55db8bdb55d9a2_72459790($_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('editing_quick_menu_section', 'new_section', 'editing_quick_menu_link', 'new_link', 'quick_menu', 'remove_this_item', 'remove_this_item', 'add_link', 'show_menu_on_mouse_over', 'add_section', 'done', 'edit', 'name', 'link', 'position', 'use_current_link')); if (fn_check_view_permissions("tools.show_quick_menu")) { ?> <?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"> Tygh.tr('editing_quick_menu_section', '<?php echo strtr($_smarty_tpl->__("editing_quick_menu_section"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); Tygh.tr('new_section', '<?php echo strtr($_smarty_tpl->__("new_section"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); Tygh.tr('editing_quick_menu_link', '<?php echo strtr($_smarty_tpl->__("editing_quick_menu_link"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); Tygh.tr('new_link', '<?php echo strtr($_smarty_tpl->__("new_link"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> '); <?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); ?> <div class="quick-menu-container" id="quick_menu"> <div class="quick-menu <?php if ($_smarty_tpl->tpl_vars['settings']->value['show_menu_mouseover'] == "Y") { ?> quick-menu-show-on-hover<?php } ?> "> <a id="sw_quick_menu_content" class="quick-menu-link <?php if ($_smarty_tpl->tpl_vars['edit_quick_menu']->value || $_smarty_tpl->tpl_vars['expand_quick_menu']->value) { ?> open<?php } ?> cm-combination"><?php echo $_smarty_tpl->__("quick_menu"); ?> </a> <div id="quick_menu_content" class="quick-menu-content cm-popup-box<?php if (!$_smarty_tpl->tpl_vars['edit_quick_menu']->value && !$_smarty_tpl->tpl_vars['expand_quick_menu']->value) { ?> hidden<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['edit_quick_menu']->value) { ?> <div class="menu-container"> <table width="100%"> <?php $_smarty_tpl->tpl_vars['sect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sect']->_loop = false; $_smarty_tpl->tpl_vars['sect_id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['quick_menu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sect']->key => $_smarty_tpl->tpl_vars['sect']->value) { $_smarty_tpl->tpl_vars['sect']->_loop = true; $_smarty_tpl->tpl_vars['sect_id']->value = $_smarty_tpl->tpl_vars['sect']->key; ?> <tr data-ca-qm-item="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect_id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-parent-id="0" data-ca-qm-position="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['position'], ENT_QUOTES, 'UTF-8'); ?> "> <td class="nowrap section-header"> <strong class="cm-qm-name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['name'], ENT_QUOTES, 'UTF-8'); ?> </strong> </td> <td class="hidden-tools nowrap right"> <i title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " class="icon-trash hand valign cm-delete-section"></i> <i class="icon-edit hand cm-update-item"></i> </td> </tr> <?php $_smarty_tpl->tpl_vars['subsect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['subsect']->_loop = false; $_from = $_smarty_tpl->tpl_vars['sect']->value['subsection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['subsect']->key => $_smarty_tpl->tpl_vars['subsect']->value) { $_smarty_tpl->tpl_vars['subsect']->_loop = true; ?> <tr data-ca-qm-item="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['menu_id'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-parent-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['parent_id'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-position="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['position'], ENT_QUOTES, 'UTF-8'); ?> "> <td class="nowrap"> <a class="cm-qm-name" href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['subsect']->value['url']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> </td> <td class="hidden-tools nowrap right"> <i title="<?php echo $_smarty_tpl->__("remove_this_item"); ?> " class="icon-trash hand valign cm-delete-section"></i> <i class="icon-edit hand cm-update-item"></i> </td> </tr> <?php } ?> <tr data-ca-qm-item="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect_id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-qm-parent-id="0" data-ca-qm-position="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['position'], ENT_QUOTES, 'UTF-8'); ?> "> <td colspan="2" class="cm-add-link"><a class="edit cm-add-link"><?php echo $_smarty_tpl->__("add_link"); ?> </a></td> </tr> <?php } ?> </table> </div> <table width="100%" class="quick-menu-edit"> <tr colspan="2"> <td> <label class="checkbox" for="show_menu_mouseover"> <input class="cm-qm-show-hide" id="show_menu_mouseover" type="checkbox" name="show_menu_mouseover" value="Y" <?php if ($_smarty_tpl->tpl_vars['settings']->value['show_menu_mouseover'] == "Y") { ?> checked="checked"<?php } ?> /><?php echo $_smarty_tpl->__("show_menu_on_mouse_over"); ?> </label> </td> </tr> <tr> <td class="nowrap top"> <a class="edit cm-add-section"><?php echo $_smarty_tpl->__("add_section"); ?> </a> <a class="pull-right edit cm-ajax" data-ca-target-id="quick_menu" href="<?php echo htmlspecialchars(fn_url("tools.show_quick_menu"), ENT_QUOTES, 'UTF-8'); ?> " data-ca-event="ce.quick_menu_content_switch_callback"><?php echo $_smarty_tpl->__("done"); ?> </a> </td> </tr> </table> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['quick_menu']->value) { ?> <div class="menu-container"> <ul class="unstyled"> <?php $_smarty_tpl->tpl_vars['sect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['sect']->_loop = false; $_from = $_smarty_tpl->tpl_vars['quick_menu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['sect']->key => $_smarty_tpl->tpl_vars['sect']->value) { $_smarty_tpl->tpl_vars['sect']->_loop = true; ?> <li><span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['name'], ENT_QUOTES, 'UTF-8'); ?> </span></li> <?php $_smarty_tpl->tpl_vars['subsect'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['subsect']->_loop = false; $_from = $_smarty_tpl->tpl_vars['sect']->value['subsection']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['subsect']->key => $_smarty_tpl->tpl_vars['subsect']->value) { $_smarty_tpl->tpl_vars['subsect']->_loop = true; ?> <li><a href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['subsect']->value['url']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subsect']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <div class="quick-menu-actions right"> <a class="edit cm-ajax" href="<?php echo htmlspecialchars(fn_url("tools.show_quick_menu.edit"), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="quick_menu" data-ca-event="ce.quick_menu_content_switch_callback" title="<?php echo $_smarty_tpl->__("edit"); ?> "><i class="icon-edit hand"></i></a> </div> <?php } ?> </div> </div> <?php if ($_smarty_tpl->tpl_vars['show_quick_popup']->value) { ?> <div id="quick_box" class="hidden quick-menu-popup"> <div id="quick_menu_language_selector"> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?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("tools.get_quick_menu_variant", "descr_sl="), 'items' => $_smarty_tpl->tpl_vars['languages']->value, 'selected_id' => @constant('DESCR_SL'), 'key_name' => "name", 'suffix' => "quick_menu", 'display_icons' => true, 'select_container_id' => "quick_menu_language_selector"), 0); ?> <?php } ?> </div> <form class="cm-ajax form-horizontal form-edit" name="quick_menu_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post"> <input id="qm_item_id" type="hidden" name="item[id]" value=""/> <input id="qm_item_parent" type="hidden" name="item[parent_id]" value="0"/> <input id="qm_descr_sl" type="hidden" name="descr_sl" value=""/> <input type="hidden" name="result_ids" value="quick_menu"/> <div class="control-group"> <label class="cm-required control-label" for="qm_item_name"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input id="qm_item_name" name="item[name]" type="text" value="" size="40"/> </div> </div> <div class="control-group"> <label class="cm-required control-label" for="qm_item_link"><?php echo $_smarty_tpl->__("link"); ?> :</label> <div class="controls"> <input id="qm_item_link" name="item[url]" class="input-text-large" type="text" value="" size="40"/> </div> </div> <div class="control-group"> <label class="control-label" for="qm_item_position"><?php echo $_smarty_tpl->__("position"); ?> :</label> <div class="controls"> <input id="qm_item_position" name="item[position]" type="text" value="" size="6"/> </div> </div> <div class="control-group"> <div class="controls"> <a id="qm_current_link"><?php echo $_smarty_tpl->__("use_current_link"); ?> </a> </div> </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[tools.update_quick_menu_item.edit]", 'cancel_action' => "close"), 0); ?> </div> </form> </div> <?php } ?> <!--quick_menu--></div> <?php } }