/** * ... * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_loadJs($params, LiveCartSmarty $smarty) { include_once 'function.includeJs.php'; $files = array(); $files[] = "library/prototype/prototype.js"; $files[] = "library/livecart.js"; $files[] = "library/FooterToolbar.js"; // need to be before Frontend.js $files[] = "frontend/Frontend.js"; $files[] = "library/lightbox/lightbox.js"; $files[] = "library/scriptaculous/scriptaculous.js"; $files[] = "library/scriptaculous/builder.js"; $files[] = "library/scriptaculous/effects.js"; $files[] = "library/scriptaculous/dragdrop.js"; $files[] = "library/scriptaculous/controls.js"; $files[] = "library/scriptaculous/slider.js"; $files[] = "library/scriptaculous/sound.js"; if (isset($params['form'])) { $files[] = "library/form/Validator.js"; $files[] = "library/form/ActiveForm.js"; } foreach ($files as $file) { smarty_function_includeJs(array('file' => $file), $smarty); } smarty_function_includeCss(array('file' => "library/lightbox/lightbox.css"), $smarty); }
/** * ... * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_liveCustomization($params, LiveCartSmarty $smarty) { $app = $smarty->getApplication(); if ($app->isCustomizationMode()) { // theme dropdown $themes = array_merge(array('barebone' => 'barebone'), array_diff($app->getRenderer()->getThemeList(), array('barebone'))); $smarty->assign('themes', $themes); $smarty->assign('currentTheme', $app->getTheme()); if (!isset($params['action'])) { include_once 'function.includeJs.php'; include_once 'function.includeCss.php'; smarty_function_includeJs(array('file' => "library/prototype/prototype.js"), $smarty); smarty_function_includeJs(array('file' => "library/scriptaculous/scriptaculous.js"), $smarty); smarty_function_includeJs(array('file' => "library/livecart.js"), $smarty); smarty_function_includeJs(array('file' => "library/form/ActiveForm.js"), $smarty); smarty_function_includeJs(array('file' => "library/form/Validator.js"), $smarty); smarty_function_includeJs(array('file' => "backend/Backend.js"), $smarty); smarty_function_includeJs(array('file' => "frontend/Customize.js"), $smarty); smarty_function_includeCss(array('file' => "frontend/LiveCustomization.css"), $smarty); } else { $smarty->assign('mode', $app->getCustomizationModeType()); $smarty->assign('theme', $app->getTheme()); if ('menu' == $params['action']) { return $smarty->fetch('customize/menu.tpl'); } else { if ('lang' == $params['action']) { return $smarty->fetch('customize/translate.tpl'); } } } } }
/** * ... * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_includeCss($params, LiveCartSmarty $smarty) { $fileName = $params['file']; $filePath = substr($fileName, 0, 1) != '/' ? ClassLoader::getRealPath('public.stylesheet.') . $fileName : ClassLoader::getRealPath('public') . $fileName; // fix slashes $filePath = str_replace('\\', DIRECTORY_SEPARATOR, $filePath); $filePath = str_replace('/', DIRECTORY_SEPARATOR, $filePath); if (!is_file($filePath) && !isset($params['external']) || substr($filePath, -4) != '.css') { return; } $css = CssFile::getInstanceFromPath($filePath, $smarty->getApplication()->getTheme()); $origFileName = $fileName; if ($css->isPatched()) { $filePath = $css->getPatchedFilePath(); $fileName = $css->getPatchedFileRelativePath(); } if (isset($params['inline']) && $params['inline'] == 'true') { $path = 'stylesheet/' . str_replace(DIRECTORY_SEPARATOR, '/', $fileName) . '?' . filemtime($filePath); return '<link href="' . $path . '" media="screen" rel="Stylesheet" type="text/css" />' . "\n"; } else { if (isset($params['external'])) { $smarty->_smarty_vars['INCLUDED_STYLESHEET_FILES_EXTERNAL'][] = $fileName; } else { $includedStylesheetTimestamp = $smarty->_smarty_vars['INCLUDED_STYLESHEET_TIMESTAMP']; if (!($includedStylesheetFiles = $smarty->_smarty_vars['INCLUDED_STYLESHEET_FILES'])) { $includedStylesheetFiles = array(); } if (in_array($filePath, $includedStylesheetFiles)) { if (isset($params['front'])) { unset($includedStylesheetFiles[array_search($filePath, $includedStylesheetFiles)]); } else { return; } } $fileMTime = filemtime($filePath); if ($fileMTime > (int) $includedStylesheetTimestamp) { $smarty->_smarty_vars['INCLUDED_STYLESHEET_TIMESTAMP'] = $fileMTime; } if (isset($params['front'])) { array_unshift($includedStylesheetFiles, $filePath); } else { if (isset($params['last'])) { $includedStylesheetFiles['x' . (count($includedStylesheetFiles) + 200) * (int) $params['last']] = $filePath; } else { array_push($includedStylesheetFiles, $filePath); } } $smarty->_smarty_vars['INCLUDED_STYLESHEET_FILES'] = $includedStylesheetFiles; } } foreach ($smarty->getApplication()->getConfigContainer()->getFilesByRelativePath('public/stylesheet/' . $origFileName, true) as $file) { if (realpath($file) == realpath($filePath)) { continue; } $file = substr($file, strlen(ClassLoader::getRealPath('public'))); $params['file'] = $file; smarty_function_includeCss($params, $smarty); } }
/** * ... * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_loadJs($params, Smarty_Internal_Template $smarty) { include_once 'function.includeJs.php'; $files = array(); $files[] = "library/jquery/jquery-min.js"; $files[] = "library/jquery/jquery.ui.core.min.js"; $files[] = "library/jquery/jquery.ui.effect.min.js"; $files[] = "library/jquery/plugins.js"; $files[] = "library/prototype/prototype.js"; $files[] = "library/livecart.js"; $files[] = "frontend/Frontend.js"; if (isset($params['form'])) { $files[] = "library/form/Validator.js"; $files[] = "library/form/ActiveForm.js"; $files[] = "library/form/State.js"; } foreach ($files as $file) { smarty_function_includeJs(array('file' => $file), $smarty); } smarty_function_includeCss(array('file' => "library/lightbox/lightbox.css"), $smarty); smarty_function_includeCss(array('file' => "library/jquery/jquery-plugins.css"), $smarty); }
<?php /* Smarty version 2.6.26, created on 2015-12-01 16:51:53 compiled from /home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('function', 'includeCss', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 1, false), array('function', 'includeJs', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 4, false), array('function', 'translate', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 10, false), array('function', 'hidden', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 73, false), array('function', 'link', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 81, false), array('function', 'selectfield', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 116, false), array('function', 'maketext', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 195, false), array('block', 'pageTitle', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 10, false), array('block', 'form', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 69, false), array('block', 'error', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 119, false), array('modifier', 'branding', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 141, false), array('modifier', 'escape', '/home/illumin/public_html/application/view///backend/csvImport/delimiters.tpl', 165, false))), $this); echo smarty_function_includeCss(array('file' => "backend/DatabaseImport.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/CsvImport.css"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/ActiveList.js"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/form/ActiveForm.js"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/form/State.js"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/form/Validator.js"), $this); ?> <?php
" rel="shortcut icon" /> <?php } ?> <!-- Css includes --> <?php echo smarty_function_includeCss(array('file' => "../javascript/library/tinymce/themes/advanced/css/editor_ui.css", 'front' => true), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/stat.css", 'front' => true), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/Backend.css", 'front' => true), $this); ?> <?php echo smarty_function_compiledCss(array('glue' => true, 'nameMethod' => 'hash'), $this); ?> <?php if (!(is_array($_tmp = 'DISABLE_WYSIWYG') ? $this->_run_mod_handler('config', true, $_tmp) : $this->_plugins['modifier']['config'][0][0]->config($_tmp))) { ?> <?php echo smarty_function_includeJs(array('file' => "library/tinymce/tiny_mce.js", 'inline' => true), $this); ?> <?php
<?php echo smarty_function_includeJs(array('file' => "backend/Discount.js"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/Discount.css"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/ActiveList.js"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "library/ActiveGrid.css"), $this); ?> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/eav/includes.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <?php $this->_tag_stack[] = array('pageTitle', array('help' => 'products')); $_block_repeat = true; smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) {
?> <?php echo smarty_function_includeCss(array('file' => "library/TabControl.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/Eav.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "library/dhtmlxtree/dhtmlXTree.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "library/lightbox/lightbox.css"), $this); ?> <?php $this->_tag_stack[] = array('pageTitle', array('help' => 'cat')); $_block_repeat = true; smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <span id="activeCategoryPath"></span><span id="activeProductPath" style="display: none;"><span id="productCategoryPath"></span><span id="activeProductName"></span></span><span style="display: none;"><?php echo smarty_function_translate(array('text' => '_products_and_categories'), $this); ?> </span><?php $_block_content = ob_get_contents();
<?php /* Smarty version 2.6.26, created on 2015-12-01 10:53:37 compiled from /home/illumin/public_html/application/view///backend/session/index.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('function', 'includeCss', '/home/illumin/public_html/application/view///backend/session/index.tpl', 1, false), array('function', 'translate', '/home/illumin/public_html/application/view///backend/session/index.tpl', 2, false), array('function', 'img', '/home/illumin/public_html/application/view///backend/session/index.tpl', 9, false), array('function', 'link', '/home/illumin/public_html/application/view///backend/session/index.tpl', 16, false), array('block', 'pageTitle', '/home/illumin/public_html/application/view///backend/session/index.tpl', 2, false), array('modifier', 'branding', '/home/illumin/public_html/application/view///backend/session/index.tpl', 2, false), array('modifier', 'config', '/home/illumin/public_html/application/view///backend/session/index.tpl', 9, false), array('modifier', 'or', '/home/illumin/public_html/application/view///backend/session/index.tpl', 9, false), array('modifier', 'escape', '/home/illumin/public_html/application/view///backend/session/index.tpl', 19, false))), $this); echo smarty_function_includeCss(array('file' => "backend/Session.css"), $this); ?> <?php $this->_tag_stack[] = array('pageTitle', array()); $_block_repeat = true; smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ob_start(); echo smarty_function_translate(array('text' => '_backend_login'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('translation__backend_login', ob_get_contents()); ob_end_clean(); echo is_array($_tmp = $this->_tpl_vars['translation__backend_login']) ? $this->_run_mod_handler('branding', true, $_tmp) : $this->_plugins['modifier']['branding'][0][0]->branding($_tmp); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php $_smarty_tpl_vars = $this->_tpl_vars;
?> <?php echo smarty_function_includeJs(array('file' => "library/dhtmlCalendar/lang/calendar-en.js"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/dhtmlCalendar/lang/calendar-" . $this->_tpl_vars['curLanguageCode'] . ".js"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/dhtmlCalendar/calendar-setup.js"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "library/dhtmlCalendar/calendar-win2k-cold-2.css"), $this); ?> <?php $this->_tag_stack[] = array('pageTitle', array('help' => "tools.newsletter")); $_block_repeat = true; smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); echo smarty_function_translate(array('text' => '_newsletters'), $this); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); }
<?php echo smarty_function_includeCss(array('file' => "backend/stat.css"), $this); ?> <?php ob_start(); echo smarty_function_isRTL(array(), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('blockAsParamValue', ob_get_contents()); ob_end_clean(); if ($this->_tpl_vars['blockAsParamValue']) { ?> <?php echo smarty_function_includeCss(array('file' => "frontend/FrontendRTL.css"), $this); ?> <?php } ?> <?php echo smarty_function_compiledCss(array('glue' => true, 'nameMethod' => 'hash'), $this); ?> <!--[if lt IE 8]> <link href="stylesheet/frontend/FrontendIE.css" rel="Stylesheet" type="text/css"/> <?php if ($this->_tpl_vars['ieCss']) { ?>
<?php echo smarty_function_includeJs(array('file' => "library/form/ActiveForm.js"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "backend/StaticPage.js"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "library/dhtmlxtree/dhtmlXTree.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/StaticPage.css"), $this); ?> <?php $this->_tag_stack[] = array('pageTitle', array('help' => "content.pages")); $_block_repeat = true; smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); echo smarty_function_translate(array('text' => '_static_pages'), $this); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); }
<?php echo smarty_function_includeCss(array('file' => "backend/OrderNote.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/OrderLog.css"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "backend/CustomerOrder.js"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/CustomerOrder.css"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "frontend/Frontend.js"), $this); ?> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/eav/includes.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <?php
/** * ... * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_compiledCss($params, Smarty_Internal_Template $smarty) { $app = $smarty->getApplication(); if (!$app->isBackend()) { if (!function_exists('smarty_function_includeCss')) { include_once 'function.includeCss.php'; } $last = 1000; $files = array('common.css'); $theme = new Theme($smarty->getApplication()->getTheme(), $app); foreach ($theme->getAllParentThemes() as $parentTheme) { $files[] = CssFile::getTheme($parentTheme) . '.css'; } $files[] = CssFile::getTheme($smarty->getApplication()->getTheme()) . '.css'; foreach ($files as $file) { smarty_function_includeCss(array('file' => '/upload/css/' . $file, 'last' => ++$last), $smarty); } } $includedStylesheetTimestamp = $smarty->getGlobal("INCLUDED_STYLESHEET_TIMESTAMP"); $includedStylesheetFiles = $smarty->getGlobal("INCLUDED_STYLESHEET_FILES"); if ($includedStylesheetFiles) { uksort($includedStylesheetFiles, 'strnatcasecmp'); } $out = ''; if (isset($params['glue']) && $params['glue'] == true && !$smarty->getApplication()->isDevMode() && (!$smarty->getApplication()->isCustomizationMode() || $app->isBackend())) { $request = $smarty->getApplication()->getRequest(); if (isset($params['nameMethod']) && 'hash' == $params['nameMethod']) { $names = array_values((array) $includedStylesheetFiles); sort($names); $compiledFileName = md5(implode("\n", $names)) . '.css'; } else { $compiledFileName = $request->getControllerName() . '-' . $request->getActionName() . '.css'; } $compiledFilePath = ClassLoader::getRealPath('public.cache.stylesheet.') . $compiledFileName; $baseDir = ClassLoader::getRealPath('public.stylesheet.'); $publicDir = ClassLoader::getRealPath('public.'); $compiledFileTimestamp = 0; if (!is_file($compiledFilePath) || filemtime($compiledFilePath) < $includedStylesheetTimestamp) { if (!is_dir(ClassLoader::getRealPath('public.cache.stylesheet'))) { mkdir(ClassLoader::getRealPath('public.cache.stylesheet'), 0777, true); } // compile $compiledFileContent = ""; foreach ($includedStylesheetFiles as $key => $cssFile) { $relPath = str_replace($publicDir, '', $cssFile); $relPath = str_replace('\\', '/', $relPath); $compiledFileContent .= "\n\n\n/***************************************************\n"; $compiledFileContent .= " * " . $relPath . "\n"; $compiledFileContent .= " ***************************************************/\n\n"; $content = file_get_contents($cssFile); $pre = array('..', 'http', '/'); foreach (array("'", '"', '') as $quote) { foreach ($pre as $i) { $content = str_ireplace('url(' . $quote . $i, 'url__(' . $quote . $i, $content); } $content = str_replace('url(' . $quote, 'url(' . $quote . dirname($relPath) . '/', $content); foreach ($pre as $i) { $content = str_replace('url__(' . $quote . $i, 'url(' . $quote . $i, $content); } } $content = str_replace('url(..', 'url(' . dirname($relPath) . '/..', $content); $content = str_replace('url(\'..', 'url(\'' . dirname($relPath) . '/..', $content); $content = str_replace('url("..', 'url("' . dirname($relPath) . '/..', $content); $content = str_replace('upload/css/"../../', '"', $content); $compiledFileContent .= $content; } $compiledFileContent = preg_replace('/\\.(jpg|png|gif|bmp)/', '.$1?' . time(), $compiledFileContent); $compiledFileContent = preg_replace('/-moz-border-radius\\:([ \\.a-zA-Z0-9]+);/', '-moz-border-radius: $1; -khtml-border-radius: $1; border-radius: $1; ', $compiledFileContent); file_put_contents($compiledFilePath, $compiledFileContent); if (function_exists('gzencode')) { file_put_contents($compiledFilePath . '.gz', gzencode($compiledFileContent, 9)); } } $compiledFileTimestamp = filemtime($compiledFilePath); $out = '<link href="' . $app->getPublicUrl('gzip.php') . '?file=' . $compiledFileName . '&time=' . $compiledFileTimestamp . '" rel="Stylesheet" type="text/css"/>'; } else { if ($includedStylesheetFiles) { $includeString = ""; $publicPath = ClassLoader::getRealPath('public.'); foreach ($includedStylesheetFiles as $cssFile) { $urlPath = str_replace('\\', '/', str_replace($publicPath, '', $cssFile)); $includeString .= '<link href="' . $app->getPublicUrl($urlPath) . '?' . filemtime($cssFile) . '" rel="Stylesheet" type="text/css"/>' . "\n"; } $out = $includeString; } } if ($externalFiles = $smarty->getGlobal("INCLUDED_STYLESHEET_FILES_EXTERNAL")) { foreach ($externalFiles as $cssFile) { $out .= '<link href="' . $cssFile . '" rel="Stylesheet" type="text/css"/>' . "\n"; } } return $out; }
<?php echo smarty_function_includeCss(array('file' => "library/TabControl.css"), $this); ?> <?php echo smarty_function_includeJs(array('file' => "library/editarea/edit_area_full.js"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "backend/Template.css"), $this); ?> <?php echo smarty_function_includeCss(array('file' => "library/dhtmlxtree/dhtmlXTree.css"), $this); ?> <?php $this->_tag_stack[] = array('pageTitle', array('help' => "customize.templates")); $_block_repeat = true; smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); echo smarty_function_translate(array('text' => '_edit_templates'), $this); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_pageTitle($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); }