<?php
//  @copyright	Copyright (C) 2012 CMSFARSI. All Rights Reserved
//  @license	Copyrighted Commercial Software 
//  @author     CMSFARSI (cmsfarsi.net)

// No direct access.
defined('_JEXEC') or die;

//////////////////////////////////////  CSS  //////////////////////////////////////

// Twitter bootstrap
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/bootstrap/css/bootstrap.min.css');
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/font-awesome/css/font-awesome.min.css');

if ($this->params->get('responsive_template')) {
	$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/bootstrap/css/bootstrap-responsive.min.css');
} 

// CSS by CMSFARSI for this Tempalte
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/css/joomla.css');
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/css/modules.css');
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/css/general.css');
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/css/pages.css');

if ($this->params->get('responsive_template')) { 
$doc->addStyleSheet($this->baseurl. '/templates/' .$this->template. '/css/responsive.css');}

?>
<style type="text/css" media="screen">

<?php if($this->params->get('homepage_content')) {
/* Hide Content From HOMEPAGE */
$menu = $app->getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) {  ?>
<?php }} ?>
	
<?php  if($this->params->get('sidebar_position') == 'left') {  ?>
/* Sidebar is "left" */
#middlecol { float:right !important;}
<?php } ?>

<?php if ( !$this->countModules('about') and !$this->params->get('social_icons')) { ?>
#footer #footer_mods { margin-left:60px;}
<?php } ?>

<?php if (!$this->countModules('footer1 + footer2 + footer3 + footer4')) { ?>
#footer #ice_about {
	padding-left: 45px;
	border: none;
	box-shadow: none;}
<?php } ?>

	
/* Custom CSS code throught paramters */
<?php echo $this->params->get('custom_css_code'); ?>
</style>


<!-- Template Styles  -->
<?php  if ($this->params->get('enable_template_style') !=1) { ?>
<link id="stylesheet" rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles/<?php echo $templatestyle; ?>.css" />
<?php } ?>

<?php  if ($this->params->get('responsive_template')) { ?>
<!-- Resposnive Template Styles -->
<link id="stylesheet-responsive" rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles/<?php echo $templatestyle; ?>_responsive.css" />

<?php } ?>


<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans|Coming+Soon' rel='stylesheet' type='text/css' />

<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie8.css" />
<![endif]-->

<!--[if lt IE 9]>
    <script src="<?php echo $this->baseurl ?>/media/jui/js/html5.js"></script>
<![endif]-->


<!--[if !IE]><!-->
<script>  
if(Function('/*@cc_on return document.documentMode===10@*/')()){
    document.documentElement.className+=' ie10';
}
</script>
<!--<![endif]-->  

<style type="text/css">

/* IE10 hacks. add .ie10 before */
.ie10 ul#ice-switcher {
	padding-right:20px;}  
	.ie10 ul#ice-switcher:hover {
		padding-right:35px}

.ie10 ul#ice-switcher li.active a,
.ie10 ul#ice-switcher li a:hover {
	padding-top:0;
	padding-bottom:0}
					
.ie10 ul#ice-switcher li a span {
	padding-left:30px;}
	
.ie10 #gotop .scrollup {
	right:40px;}

</style>




