function igthemes_scripts()
{
    wp_enqueue_style('igthemes-style', get_stylesheet_uri());
    //grid css
    wp_enqueue_style('igthemes-grid', get_template_directory_uri() . '/core-framework/css/grid.css');
    //resposnive css
    wp_enqueue_style('igthemes-responsive', get_template_directory_uri() . '/core-framework/css/responsive.css');
    //component css
    wp_enqueue_style('igthemes-component', get_template_directory_uri() . '/core-framework/css/component.css');
    //woocommerce css
    if (class_exists('WooCommerce')) {
        wp_enqueue_style('igthemes-woocommerce', get_template_directory_uri() . '/core-framework/css/woocommerce.css');
    }
    //icon css
    wp_enqueue_style('igthemes-icon', get_template_directory_uri() . '/core-framework/icon/icon.css');
    //lightbox css
    if (is_singular() && 'product' != get_post_type() && igthemes_get_option('lightbox') == '1') {
        wp_enqueue_style('nivo-lightbox-css', get_template_directory_uri() . '/core-framework/css/nivo-lightbox.css');
    }
    //carousel css
    wp_enqueue_style('owl-carousel-css', get_template_directory_uri() . '/core-framework/css/owl-carousel.css');
    //google font
    wp_enqueue_style('igthemes-opensans', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700,300');
    //lightbox js
    if (is_singular() && 'product' != get_post_type() && igthemes_get_option('lightbox') == '1') {
        wp_enqueue_script('nivo-lightbox', get_template_directory_uri() . '/core-framework/js/nivo-lightbox.js', array('jquery'), '1.2.0', true);
    }
    //carousel js
    wp_enqueue_script('owl-carousel', get_template_directory_uri() . '/core-framework/js/owl-carousel.js', array('jquery'), '1.3.3', true);
    //nav js
    wp_enqueue_script('igthemes-navigation', get_template_directory_uri() . '/core-framework/js/navigation.js', array(), '1.0', true);
    //main js
    wp_enqueue_script('igthemes-main-navigation', get_template_directory_uri() . '/core-framework/js/main.js', array(), '1.0', true);
    //comment js
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
function store_wp_favicon()
{
    if (igthemes_get_option('favicon')) {
        ?>
    <link rel="shortcut icon" href="<?php 
        echo esc_url(igthemes_get_option('favicon', ''));
        ?>
" />
<?php 
    }
    if (igthemes_get_option('icon_iphone')) {
        ?>
    <link rel="apple-touch-icon" sizes="57x57" href="<?php 
        echo esc_url(igthemes_get_option('icon_iphone', ''));
        ?>
">
<?php 
    }
    if (igthemes_get_option('icon_ipad')) {
        ?>
    <link rel="apple-touch-icon" sizes="76x76" href="<?php 
        echo esc_url(igthemes_get_option('icon_ipad', ''));
        ?>
">
<?php 
    }
    if (igthemes_get_option('icon_iphone_retina')) {
        ?>
    <link rel="apple-touch-icon" sizes="120x120" href="<?php 
        echo esc_url(igthemes_get_option('icon_iphone_retina', ''));
        ?>
">
<?php 
    }
    if (igthemes_get_option('icon_ipad_retina')) {
        ?>
    <link rel="apple-touch-icon" sizes="152x152" href="<?php 
        echo esc_url(igthemes_get_option('icon_ipad_retina', ''));
        ?>
">
<?php 
    }
    if (igthemes_get_option('win_tile_image')) {
        ?>
    <meta name="msapplication-TileImage" content="<?php 
        echo esc_url(igthemes_get_option('win_tile_image', ''));
        ?>
"/>
<?php 
    }
    if (igthemes_get_option('win_tile_color')) {
        ?>
    <meta name="msapplication-TileColor" content="<?php 
        echo esc_attr(igthemes_get_option('win_tile_color', ''));
        ?>
"/>
<?php 
    }
}
    </div><!-- .grid1200 -->
   <div class="main-menu">
       <div class="grid-1200">
           <div class="col12">
          <nav id="site-navigation" class="main-navigation" role="navigation">
              <button class="menu-toggle" aria-controls="menu" aria-expanded="false">
                  <span class="icon_menu-square_alt2"></span> <?php 
_e('MENU', 'store-wp');
?>
              </button>
              <?php 
wp_nav_menu(array('theme_location' => 'primary'));
?>
          </nav><!-- #site-navigation -->
       </div><!-- .col12 -->
    </div><!-- .grid-1200 -->
  </div><!-- .main-menu -->
</header><!-- #masthead -->

<?php 
$slide = igthemes_get_option('shop-slide');
if (class_exists('WooCommerce') && is_shop() && $slide) {
    ?>
    <?php 
    get_template_part('core-framework/partials/image-carousel');
}
?>

    <div id="content" class="site-content grid-1200">
<div class="row">
        ?>

				<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content', get_post_format());
        ?>

			 <?php 
    }
    ?>
            
                <?php 
    if (igthemes_get_option('main-numeric-pagination') == '1') {
        igthemes_numeric_paging();
    } else {
        igthemes_paging_nav();
    }
    ?>

		      <?php 
} else {
    ?>

			<?php 
    get_template_part('content', 'none');
    ?>

		<?php 
function igthemes_featured_image()
{
    if (igthemes_get_option("post-featured-images") && has_post_thumbnail()) {
        the_post_thumbnail('large', array('class' => 'featured-img'));
    }
}
if (igthemes_get_option('linkedin_url')) {
    $linkedin_url = esc_url(igthemes_get_option('linkedin_url', ''));
    echo "<a href='{$linkedin_url}' title='Linkedin' target='_blank' class='linkedin-icon'><span class='social_linkedin'></span></a>";
}
?>
        <?php 
if (igthemes_get_option('dribbble_url')) {
    $dribbble_url = esc_url(igthemes_get_option('dribbble_url', ''));
    echo "<a href='{$dribbble_url}' title='Dribble' target='_blank' class='dribble-icon'><span class='social_dribbble'></span></a>";
}
?>
         <?php 
if (igthemes_get_option('vimeo_url')) {
    $vimeo_url = esc_url(igthemes_get_option('vimeo_url', ''));
    echo "<a href='{$vimeo_url}' title='Vimeo' target='_blank' class='vimeo-icon'><span class='social_vimeo'></span></a>";
}
?>
        <?php 
if (igthemes_get_option('youtube_url')) {
    $youtube_url = esc_url(igthemes_get_option('youtube_url', ''));
    echo "<a href='{$youtube_url}' title='Youtube' target='_blank' class='youtube-icon'><span class='social_youtube'></span></a>";
}
?>
        <?php 
if (igthemes_get_option('rss_url')) {
    $rss_url = esc_url(igthemes_get_option('rss_url', ''));
    echo "<a href='{$rss_url}' title='RSS' target='_blank' class='rss-icon'><span class='social_rss'></span></a>";
}
?>
 </div><!-- .social url -->