<?php /* Template Name: Homepage

*/ ?> 
  <?php get_template_part('header');?>
  <body id="home" <?php body_class();?>>
 	<?php get_template_part('topbar');?>
    <div class="wrapper" id="topcontent">
    	<div class="container">
        
        	<div id="header">
            	<?php 
				if ( function_exists( 'ot_get_option' )){
				$logo = ot_get_option( 'logo_image' );
				}
				if ( function_exists( 'ot_get_option' ) && !empty($logo) ){ 
				$width = ot_get_option( 'logo_width' );
                $height = ot_get_option( 'logo_height' );
				?>
				<div class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" style="background:url(<?php echo esc_url( $logo ); ?>); padding-left:<?php echo esc_html($width); ?>; height:<?php echo esc_html($height); ?>; background-size:100% 100%"><?php echo esc_html(get_bloginfo( "name" ));?></a></div>
				<?php }else{?>
                <div class="logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html(get_bloginfo( "name" ));?></a></div>
                <?php } ?>
             	<div class="phonemenu"><span class="glyphicon glyphicon-align-justify"></span></div>
                <?php wp_nav_menu( array('container' => '','theme_location' => 'main-menu' )); ?>
            </div>
            
			<?php get_template_part('slider');?>

        </div>
    </div>
   <?php while ( have_posts() ) : the_post();?>
 		 <?php the_content();?>
  <?php endwhile;?>
 <?php get_template_part('footer');?>