<?php
/**
* @subpackage  mx_joofree12 Template
*/

defined('_JEXEC') or die;

//general parameters
$logo_type = $this->params->get('logo_type');
$logo_image = $this->params->get('logo_image');
$logo_image_width = $this->params->get('logo_image_width');
$logo_image_height = $this->params->get('logo_image_height');

//style parameters
$color_custom_style	= $this->params->get('color_custom_style');
$color_text	= $this->params->get('color_text');
$color_links = $this->params->get('color_links');
$color_links_hover = $this->params->get('color_links_hover');
$custom_css	= $this->params->get('custom_css');
$body_bg_color = $this->params->get('body_bg_color');
$top_bg_color = $this->params->get('top_bg_color');
$body_bg_patterns = $this->params->get('body_bg_patterns');
$header_bg_color = $this->params->get('header_bg_color');
$header_text_color = $this->params->get('header_text_color');
$float_menu = $this->params->get('float_menu');

//page container
$page_width = $this->params->get('page_width');
$page_align = $this->params->get('page_align');


/*	Layout parameters */
if($page_align =='left'){
$align_value = 'float:left;margin:0;';
}
elseif($page_align =='right'){
$align_value = 'float:right;margin:0;';
}
else {
$align_value = 'margin:0 auto;';	
}

//page container
$doc->addStyleDeclaration('.container{width:'.$page_width.';'.$align_value.'}'); 

/*	Logo */
if($logo_type =='text'){
$doc->addStyleDeclaration('#logo-text{margin: 0px;}'); 
}
elseif($logo_type =='image'){
$doc->addStyleDeclaration('#logo-image a{background:url('.$base_url.'/'.$logo_image.') no-repeat left top;width:'.$logo_image_width.';height:'.$logo_image_height.';margin: 0px;}');
} 


/*	Backgrounds */
//body background color and image

if($float_menu !='0') {
$doc->addStyleDeclaration('#slider {padding-top:142px}');
}
/*	Custom css */
if($custom_css != ''){
$doc->addStyleDeclaration($custom_css);
}