baseurl.'/templates/'.$this->template;
?>
countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');
$showbreadcrumbs = $this->countModules('breadcrumbs');
$showcarousel = $this->countModules('carousel');
$showfooter[1] = $this->countModules('footer1');
$showfooter[2] = $this->countModules('footer2');
$showfooter[3] = $this->countModules('footer3');
$showfooter[4] = $this->countModules('footer4');
$showinset = $this->countModules('inset');
$showleft = $this->countModules('left');
$showpanel[1] = $this->countModules('panel1');
$showpanel[2] = $this->countModules('panel2');
$showpanel[3] = $this->countModules('panel3');
$showpanel[4] = $this->countModules('panel4');
$showright = $this->countModules('right');
$showscroller = $this->countModules('scroller');
$showuser1 = $this->countModules('user1');
$showuser3 = $this->countModules('user3');
$showuser[5] = $this->countModules('user5');
$showuser[6] = $this->countModules('user6');
$showuser[7] = $this->countModules('user7');
$showuser[8] = $this->countModules('user8');
$showuser[9] = $this->countModules('user9');
$showuser[10] = $this->countModules('user10');
$showuser[11] = $this->countModules('user11');
$showuser[12] = $this->countModules('user12');
$showuser[13] = $this->countModules('user13');
$showuser[14] = $this->countModules('user14');
$showuser[15] = $this->countModules('user15');
$showuser[16] = $this->countModules('user16');
$showtoolbar = $this->countModules('toolbar');
$panelmodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showpanel[$loop]) { $panelmodules++; }
}
$uppermodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showadvert[$loop]) { $uppermodules++; }
}
$bottommodules = 0;
for ($loop = 5; $loop <= 8; $loop += 1) {
if($showuser[$loop]) { $bottommodules++; }
}
$footer1modules = 0;
for ($loop = 9; $loop <= 12; $loop += 1) {
if($showuser[$loop]) { $footer1modules++; }
}
$footer2modules = 0;
for ($loop = 13; $loop <= 16; $loop += 1) {
if($showuser[$loop]) { $footer2modules++; }
}
$footer3modules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showfooter[$loop]) { $footer3modules++; }
}
?>
params->get("templateWidth", "940");
$columnLayout = $this->params->get("columnLayout", "lmr");
$textDirection = $this->params->get("textDirection", "ltr");
$columnLeftWidth = 0; $columnRightWidth = 0; $columnLeftPad = 0; $columnRightPad = 0;
if ($showleft) {
$columnLeftWidth = $this->params->get("columnLeftWidth", "220");
$columnLeftPad = 20;
}else{
$columnLeftWidth = 0;
$columnLeftPad = 0;
}
if ($showright) {
$columnRightWidth = $this->params->get("columnRightWidth", "220");
$columnRightPad = 20;
}else{
$columnRightWidth = 0;
$columnRightPad = 0;
}
$contentWidth = $templateWidth - $columnLeftWidth - $columnLeftPad - $columnRightWidth - $columnRightPad;
// advert1-4 modules width
$advert_width = 0;
if($uppermodules) {
$advert_width = ($templateWidth - (($uppermodules - 1) * 20) - ($uppermodules * 8)) / $uppermodules; // 20px (margin-right); 2*4px (padding left/right)
$advert_width = floor($advert_width);
}
// user5-8 modules width
$bottom_width = 0;
if($bottommodules) {
$bottom_width = ($templateWidth - (($bottommodules - 1) * 20) - ($bottommodules * 8)) / $bottommodules;
$bottom_width = floor($bottom_width);
}
// user9-12 modules width
$footer1_width = 0;
if($footer1modules) {
$footer1_width = ($templateWidth - (($footer1modules - 1) * 0) - ($footer1modules * 8)) / $footer1modules;
$footer1_width = floor($footer1_width);
}
// user13-16 modules width
$footer2_width = 0;
if($footer2modules) {
$footer2_width = ($templateWidth - (($footer2modules - 1) * 20) - ($footer2modules * 8)) / $footer2modules;
$footer2_width = floor($footer2_width);
}
// footer1-4 modules width
$footer3_width = 0;
if($footer3modules) {
$footer3_width = ($templateWidth - (($footer3modules - 1) * 20) - ($footer3modules * 8)) / $footer3modules;
$footer3_width = floor($footer3_width);
}
// panel1-4 modules width
$panel_width = 0;
if($panelmodules) {
$panel_width = ($templateWidth - (($panelmodules - 1) * 20) - ($panelmodules * 8)) / $panelmodules;
$panel_width = floor($panel_width);
}
// add-ons
$imageReflectionLoad = $this->params->get("imageReflectionLoad", "1");
$scrollToLoad = $this->params->get("scrollToLoad", "1");
// template style
// check if in parameters
$templateStyle = $this->params->get("templateStyle", "1");
// check if it cookie
if(isset($_COOKIE['Style']))
{
$templateStyle = $_COOKIE['Style'];
}
$templateStyleTest = "";
// check if in link
if (isset($_GET['style'])) {
$templateStyleTest = $_GET['style'];
}
if ($templateStyleTest) {
$templateStyle = $templateStyleTest;
$Month = 2592000 + time();
setcookie("Style", $templateStyle, $Month);
}
if($templateStyle) {
require(YOURBASEPATH."/styles/style".$templateStyle.".php");
}else{
$backgroundImage = $this->params->get("backgroundImage", "slideshow");
$backgroundImageName = $this->params->get("backgroundImageName", "bg_static.jpg");
$backgroundColor = $this->params->get("backgroundColor", "#FFFFFF");
$mainFontSize = $this->params->get("mainFontSize", "12");
$bodyText = $this->params->get("bodyText", "#6D6D6D");
$linkColor = $this->params->get("linkColor", "#FF6816");
$logoColor1 = $this->params->get("logoColor1", "#272727");
$headerBg = $this->params->get("headerBg", "#f1a826");
$contentBg = $this->params->get("contentBg", "#FFFFFF");
$topMenuBg = $this->params->get("topMenuBg", "#ff7502");
$menuAnimationEffect = $this->params->get("menuEffect", "menuEffect");
$topMenuText = $this->params->get("topMenuText", "#FFFFFF");
$topMenuHoverText = $this->params->get("topMenuHoverText", "#000000");
$topMenuSubText = $this->params->get("topMenuSubText", "#F2F2F2");
$topMenuSubTextHover = $this->params->get("topMenuSubTextHover", "#ffd559");
$topMenuDropBg = $this->params->get("topMenuDropBg", "#fe6f00");
$mainMenuText = $this->params->get("mainMenuText", "#969696");
$mainMenuHoverText = $this->params->get("mainMenuHoverText", "#FF6816");
$mainMenuTextActive = $this->params->get("mainMenuTextActive", "#FF6816");
$componentHeadingText = $this->params->get("componentHeadingText", "#969696");
$headingText = $this->params->get("headingText", "#969696");
$headingHoverText = $this->params->get("headingHoverText", "#FF6816");
$modulesFontSize = $this->params->get("modulesFontSize", "12");
$columnLeftColor = $this->params->get("columnLeftColor", "#FFFFFF");
$columnRightColor = $this->params->get("columnRightColor", "#FFFFFF");
$columnHeading = $this->params->get("columnHeading", "#969696");
$columnText = $this->params->get("columnText", "#969696");
$advert14ModulesHeading = $this->params->get("advert14ModulesHeading", "#969696");
$advert14ModulesBg = $this->params->get("advert14ModulesBg", "#FFFFFF");
$advert14ModulesText = $this->params->get("advert14ModulesText", "#969696");
$user58ModulesHeading = $this->params->get("user58ModulesHeading", "#969696");
$user58ModulesBg = $this->params->get("user58ModulesBg", "#FFFFFF");
$user58ModulesText = $this->params->get("user58ModulesText", "#969696");
$user912ModulesHeading = $this->params->get("user912ModulesHeading", "#FFFFFF");
$user912ModulesText = $this->params->get("user912ModulesText", "#BBBBBB");
$user1316ModulesHeading = $this->params->get("user1316ModulesHeading", "#FFFFFF");
$user1316ModulesText = $this->params->get("user1316ModulesText", "#BBBBBB");
$columnFirstWord = $this->params->get("columnFirstWord", "#FF7200");
$galleryBgColor = $this->params->get("galleryBgColor", "#FFFFFF");
$scrollerBgColor = $this->params->get("scrollerBgColor", "#303030");
$carouselBgColor = $this->params->get("carouselBgColor", "#FFFFFF");
$footer14ModulesHeading = $this->params->get("footer14ModulesHeading", "#FFFFFF");
$footer14ModulesText = $this->params->get("footer14ModulesText", "#BBBBBB");
$copyrightText = $this->params->get("copyrightText", "#969696");
$panelBg = $this->params->get("panelBg", "#000000");
$panelHeadings = $this->params->get("panelHeadings", "#FFFFFF");
$panelBorder = $this->params->get("panelBorder", "#000000");
$panelText = $this->params->get("panelText", "#FFFFFF");
$panelLinks = $this->params->get("panelLinks", "#FF6816");
}
?>