<?php
$links_color = ThemeMakersThemeModel::get_option('links_color');
$heading_font = ThemeMakersThemeModel::get_option('heading_font');
$content_fonts = ThemeMakersThemeModel::get_option('content_fonts');
//colors
//main navigation
$main_nav_def_text_color = ThemeMakersThemeModel::get_option('main_nav_def_text_color');
$main_nav_hover_text_color = ThemeMakersThemeModel::get_option('main_nav_hover_text_color');

$main_nav_font = ThemeMakersThemeModel::get_option('main_nav_font');
$main_nav_font_size = ThemeMakersThemeModel::get_option('main_nav_font_size');

//content
$content_text_color = ThemeMakersThemeModel::get_option('content_text_color');
$content_font_family = ThemeMakersThemeModel::get_option('content_font_family');
$content_font_size = ThemeMakersThemeModel::get_option('content_font_size');

//buttons
$buttons_text_color = ThemeMakersThemeModel::get_option('buttons_text_color');
$buttons_font_family = ThemeMakersThemeModel::get_option('buttons_font_family');
$buttons_font_size = ThemeMakersThemeModel::get_option('buttons_font_size');
$buttons_grad_top_color=ThemeMakersThemeModel::get_option('buttons_grad_top_color');
$buttons_grad_bottom_color=ThemeMakersThemeModel::get_option('buttons_grad_bottom_color');

//widgets
$widgets_heading_font_family = ThemeMakersThemeModel::get_option('widgets_heading_font_family');
$widgets_heading_font_size = ThemeMakersThemeModel::get_option('widgets_heading_font_size');

$widget_def_bg_color = ThemeMakersThemeModel::get_option('widget_def_bg_color');
$widget_def_title_color = ThemeMakersThemeModel::get_option('widget_def_title_color');

$widget_gradient_top = ThemeMakersThemeModel::get_option('widget_gradient_top');
$widget_gradient_bottom = ThemeMakersThemeModel::get_option('widget_gradient_bottom');

$widget_colored_bg_color = ThemeMakersThemeModel::get_option('widget_colored_bg_color');
$widget_colored_title_color = ThemeMakersThemeModel::get_option('widget_colored_title_color');
$widget_colored_text_color = ThemeMakersThemeModel::get_option('widget_colored_text_color');
$widget_colored_link_color = ThemeMakersThemeModel::get_option('widget_colored_link_color');
$widget_colored_link_hover_color = ThemeMakersThemeModel::get_option('widget_colored_link_hover_color');


$widget_colored_testimonials_text_color = ThemeMakersThemeModel::get_option('widget_colored_testimonials_text_color');
$widget_colored_testimonials_author_text_color = ThemeMakersThemeModel::get_option('widget_colored_testimonials_author_text_color');

//images
$image_frame_border_color = ThemeMakersThemeModel::get_option('image_frame_border_color');
//heding
$h1_font_family = ThemeMakersThemeModel::get_option('h1_font_family');
$h1_font_size = ThemeMakersThemeModel::get_option('h1_font_size');

$h2_font_family = ThemeMakersThemeModel::get_option('h2_font_family');
$h2_font_size = ThemeMakersThemeModel::get_option('h2_font_size');

$h3_font_family = ThemeMakersThemeModel::get_option('h3_font_family');
$h3_font_size = ThemeMakersThemeModel::get_option('h3_font_size');

$h4_font_family = ThemeMakersThemeModel::get_option('h4_font_family');
$h4_font_size = ThemeMakersThemeModel::get_option('h4_font_size');

$h5_font_family = ThemeMakersThemeModel::get_option('h5_font_family');
$h5_font_size = ThemeMakersThemeModel::get_option('h5_font_size');

$h6_font_family = ThemeMakersThemeModel::get_option('h6_font_family');
$h6_font_size = ThemeMakersThemeModel::get_option('h6_font_size');

/* * ************************************************************************************************* */

$disable_header_color = ThemeMakersThemeModel::get_option('disable_header_color');
$header_color = "";
if (!$disable_header_color) {
    $header_color = ThemeMakersThemeModel::get_option('header_color');
}

$logo_text_color = "";
$disable_logo_text_color = ThemeMakersThemeModel::get_option('disable_logo_text_color');
if (!$disable_logo_text_color) {
    $logo_text_color = ThemeMakersThemeModel::get_option('logo_text_color');
}

$disable_footer_widget_title_color = ThemeMakersThemeModel::get_option('disable_footer_widget_title_color');
$footer_widget_title_color = "";
if (!$disable_footer_widget_title_color) {
    $footer_widget_title_color = ThemeMakersThemeModel::get_option('footer_widget_title_color');
}
?>


<?php if ($header_color) echo 'header {color:' . $header_color . ';}' ?>
<?php if ($logo_text_color) echo '#logo a h1 {color:' . $logo_text_color . ';}' ?>
<?php if ($logo_text_color) echo '#logo a span {color:' . $logo_text_color . ';}' ?>

<?php if ($footer_widget_title_color) echo '#footer .widget-title {color:' . $footer_widget_title_color . ';}' ?>

<?php if ($links_color) echo 'a {color:' . $links_color . ';}'; ?>
<?php if ($heading_font) echo "h1, h2, h3, h4, h5, h6 { font-family: " . $heading_font . "; }"; ?>
<?php if ($content_fonts) echo 'body,p { font-family:' . $content_fonts . ', Helvetica, sans-serif ; }'; ?>


<?php if (!empty($main_nav_def_text_color)): ?>
 .skin-1 .navigation > div:first-child > ul > li > a { color:<?php echo $main_nav_def_text_color ?> ;}
<?php endif; ?>
<?php if (!empty($main_nav_hover_text_color)): ?>
  .skin-1 .navigation > div:first-child > ul > li:hover > a { color:<?php echo $main_nav_hover_text_color ?> ;}
  .skin-2 .navigation > div:first-child > ul > li:hover > a { color:<?php echo $main_nav_hover_text_color ?> ;}
  <?php endif; ?>

<?php if (!empty($main_nav_hover_item_bg_color)): ?>
    .navigation > div:first-child > ul > li > a:hover {background-color: <?php echo $main_nav_hover_item_bg_color ?> ;}
<?php endif; ?>
<?php if (!empty($main_nav_font)): ?>
    .navigation > div:first-child > ul > li > a {font-family: <?php echo $main_nav_font ?>;}
<?php endif; ?>
<?php if (!empty($main_nav_font_size)): ?>
    .navigation > div:first-child > ul > li > a {font-size: <?php echo $main_nav_font_size ?>px;}
<?php endif; ?>



<?php if (!empty($content_text_color)): ?>
    #content p, section p {color:<?php echo $content_text_color ?>;}
<?php endif; ?>

<?php if (!empty($content_font_family)): ?>
    .content-wrapper{font-family:<?php echo $content_font_family ?>;}
    .content-wrapper p{font-family:<?php echo $content_font_family ?>;}
<?php endif; ?>
<?php if (!empty($content_font_size)): ?>
    .content-wrapper{font-size:<?php echo $content_font_size ?>px;}
    .content-wrapper p{font-size:<?php echo $content_font_size ?>px;}
<?php endif; ?>



<?php if (!empty($buttons_text_color)): ?>
    input#searchsubmit, .button{color:<?php echo $buttons_text_color ?> !important;}
<?php endif; ?>
<?php if (!empty($buttons_font_family)): ?>
    .button{font-family:<?php echo $buttons_font_family ?>;}
<?php endif; ?>
<?php if (!empty($buttons_font_size)): ?>
    .button{font-size:<?php echo $buttons_font_size ?>px;}
<?php endif; ?>

	<?php  if ((!empty($buttons_grad_top_color))&&(!empty($buttons_grad_bottom_color))) { ?>
		a.button, button.button, input.button, #respond input#submit, #content input.button, input#searchsubmit {
				background: <?php echo $buttons_grad_top_color ?> !important; 
				background: -moz-linear-gradient(top, <?php echo $buttons_grad_top_color ?>, <?php echo $buttons_grad_bottom_color ?>) !important; 
				background: -webkit-linear-gradient(top, <?php echo $buttons_grad_top_color ?>, <?php echo $buttons_grad_bottom_color ?>) !important;
				background: -o-linear-gradient(top, <?php echo $buttons_grad_top_color ?>, <?php echo $buttons_grad_bottom_color ?>) !important;
				background: -ms-linear-gradient(top, <?php echo $buttons_grad_top_color ?>, <?php echo $buttons_grad_bottom_color ?>) !important;
				background: linear-gradient(top, <?php echo $buttons_grad_top_color ?>, <?php echo $buttons_grad_bottom_color ?>) !important;
  
		}
			
	<?php } ?>
	
	

/********************************************************/

<?php if (!empty($widgets_heading_font_family)): ?>
    h3.widget-title{font-family:<?php echo $widgets_heading_font_family ?>;}
<?php endif; ?>
<?php if (!empty($widgets_heading_font_size)): ?>
    h3.widget-title{font-size:<?php echo $widgets_heading_font_size ?>px;}
<?php endif; ?>

<?php if (!empty($widget_def_bg_color)): ?>
    #sidebar .widget,
    #sidebar .widget div,
    #sidebar .widget ul,
    #sidebar .widget form {background-color:<?php echo $widget_def_bg_color ?> ;}

<?php endif; ?>
	
<?php if ((!empty($widget_gradient_top))&&(!empty($widget_gradient_bottom))): ?>

	#sidebar .widget .widget-title, #sidebar .widget .title-caption{
		background: <?php echo $widget_gradient_top ?>; 
		background: -moz-linear-gradient(top, <?php echo $widget_gradient_top ?>, <?php echo $widget_gradient_bottom ?>); 
		background: -webkit-linear-gradient(top, <?php echo $widget_gradient_top ?>, <?php echo $widget_gradient_bottom ?>);
		background: -o-linear-gradient(top, <?php echo $widget_gradient_top ?>, <?php echo $widget_gradient_bottom ?>);
		background: -ms-linear-gradient(top, <?php echo $widget_gradient_top ?>, <?php echo $widget_gradient_bottom ?>);
		background: linear-gradient(top, <?php echo $widget_gradient_top ?>, <?php echo $widget_gradient_bottom ?>);
    
	}

<?php endif; ?>

<?php if (!empty($widget_def_title_color)): ?>
    #sidebar > div.widget h3.widget-title {color:<?php echo $widget_def_title_color ?> ;}
<?php endif; ?>

<?php if (!empty($widget_colored_testimonials_text_color)): ?>
    #sidebar > .quote-text {color:<?php echo $widget_colored_testimonials_text_color ?> ;}
<?php endif; ?>

<?php if (!empty($widget_colored_testimonials_author_text_color)): ?>
    #sidebar > .quote-author {color:<?php echo $widget_colored_testimonials_author_text_color ?> ;}
<?php endif; ?>

<?php if (!empty($widget_colored_testimonials_bg_color)): ?>
    #sidebar > .testimonials{background:<?php echo $widget_colored_testimonials_bg_color ?> ;}
<?php endif; ?>

/********************************************************/

<?php if (!empty($image_frame_border_color)): ?>
    .small-custom-frame {border-color:<?php echo $image_frame_border_color ?> ;}
<?php endif; ?>



<?php if (!empty($h1_font_family)): ?>
    .content-wrapper h1{font-family:<?php echo $h1_font_family ?> ;}
<?php endif; ?>
<?php if (!empty($h1_font_size)): ?>
    .content-wrapper h1{font-size:<?php echo $h1_font_size ?>px ;}
<?php endif; ?>

<?php if (!empty($h2_font_family)): ?>
    .content-wrapper h2{font-family:<?php echo $h2_font_family ?> ;}
<?php endif; ?>
<?php if (!empty($h2_font_size)): ?>
    .content-wrapper h2{font-size:<?php echo $h2_font_size ?>px;}
<?php endif; ?>

<?php if (!empty($h3_font_family)): ?>
    .content-wrapper h3{font-family:<?php echo $h3_font_family ?> ;}
<?php endif; ?>
<?php if (!empty($h3_font_size)): ?>
    .content-wrapper h3{font-size:<?php echo $h3_font_size ?>px;}
<?php endif; ?>

<?php if (!empty($h4_font_family)): ?>
    .content-wrapper h4{font-family:<?php echo $h4_font_family ?>;}
<?php endif; ?>
<?php if (!empty($h4_font_size)): ?>
    .content-wrapper h4{font-size:<?php echo $h4_font_size ?>px;}
<?php endif; ?>

<?php if (!empty($h5_font_family)): ?>
    .content-wrapper h5{font-family:<?php echo $h5_font_family ?>;}
<?php endif; ?>
<?php if (!empty($h5_font_size)): ?>
    .content-wrapper h5{font-size:<?php echo $h5_font_size ?>px;}
<?php endif; ?>

<?php if (!empty($h6_font_family)): ?>
    .content-wrapper h6{font-family:<?php echo $h6_font_family ?>;}
<?php endif; ?>
<?php if (!empty($h6_font_size)): ?>
    .content-wrapper h6{font-size:<?php echo $h6_font_size ?>px;}
<?php endif; ?>



