BossBey File Manager
PHP:
7.3.31-1~deb10u1
OS:
Linux
User:
www-data
Root
/
home
/
www
/
inorg
/
lcc
/
templates
/
jsn_epic_free
📤 Upload
📝 New File
📁 New Folder
Close
Editing: template_custom.php
<?php $jsnutils = JSNTplUtils::getInstance(); $doc = $this->_document; // Count module instances $doc->hasRight = $jsnutils->countModules('right'); $doc->hasLeft = $jsnutils->countModules('left'); $doc->hasPromo = $jsnutils->countModules('promo'); $doc->hasPromoLeft = $jsnutils->countModules('promo-left'); $doc->hasPromoRight = $jsnutils->countModules('promo-right'); $doc->hasInnerLeft = $jsnutils->countModules('innerleft'); $doc->hasInnerRight = $jsnutils->countModules('innerright'); // Define template colors $doc->templateColors = array('blue', 'red', 'green', 'violet', 'orange', 'grey'); if (isset($doc->sitetoolsColorsItems)) { $this->_document->templateColors = $doc->sitetoolsColorsItems; } // Apply K2 style if ($jsnutils->checkK2()) { $doc->addStylesheet($doc->templateUrl . "/ext/k2/jsn_ext_k2.css"); } // Start generating custom styles $customCss = ''; // Process TPLFW v2 parameter if (isset($doc->customWidth)) { if ($doc->customWidth != 'responsive') { $customCss .= ' #jsn-page, #jsn-pos-topbar { width: ' . $doc->customWidth . '; min-width: ' . $doc->customWidth . '; }'; } } $doc->addStyleDeclaration(trim($customCss, "\n"));
Save
Cancel