<?php

$logo_site = themesflat_choose_opt('site_logo');
$logo_retina_site = themesflat_choose_opt('site_retina_logo');

  if ( $logo_site ) : ?>
    <div id="logo" class="logo" >                  
        <a href="<?php echo esc_url( home_url('/') ); ?>"  title="<?php bloginfo('name'); ?>">
            <?php if  (strpos($logo_site,'svg') == false) { ?>
                <img class="site-logo"  src="<?php echo esc_url($logo_site); ?>" alt="<?php bloginfo('name'); ?>"  data-retina="<?php echo esc_url( $logo_retina_site ); ?>" />
            <?php } else { ?>
                <img class="logo_svg" src="<?php echo esc_url($logo_site); ?>"  data-src="<?php echo esc_url($logo_site); ?>" alt="<?php bloginfo('name'); ?>"   data-retina="<?php echo esc_url( $logo_retina_site ); ?>" />
                <?php } ?>
        </a>
    </div>
<?php else : ?>
    <div id="logo" class="logo">
    	<h1 class="site-title"><a href="<?php echo esc_url( home_url('/') ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>			
		<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>	
    </div><!-- /.site-infomation -->          
<?php endif; ?>