function igthemes_scripts() { wp_enqueue_style('igthemes-style', get_stylesheet_uri()); //woocommerce css wp_enqueue_style('igthemes-main', get_template_directory_uri() . '/core-framework/css/main-min.css'); //woocommerce css if (class_exists('WooCommerce')) { wp_enqueue_style('igthemes-woocommerce', get_template_directory_uri() . '/core-framework/css/woocommerce-min.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_option('lightbox') == '1') { wp_enqueue_style('nivo-lightbox', get_template_directory_uri() . '/core-framework/css/nivo-lightbox-min.css'); } //carousel css if (igthemes_option('shop_slide') == '1') { wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/core-framework/css/owl-carousel-min.css'); } //lightbox js if (is_singular() && 'product' != get_post_type() && igthemes_option('lightbox') == '1') { wp_enqueue_script('nivo-lightbox-js', get_template_directory_uri() . '/core-framework/js/nivo-lightbox-min.js', array('jquery'), '1.2.0', true); } //carousel js if (igthemes_option('shop_slide') == '1') { wp_enqueue_script('owl-carousel-js', get_template_directory_uri() . '/core-framework/js/owl-carousel-min.js', array('jquery'), '1.3.3', true); } //main js wp_enqueue_script('igthemes-main', get_template_directory_uri() . '/core-framework/js/main-min.js', array(), '1.0', true); //comment js if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } }
function igthemes_scripts() { wp_enqueue_style('igthemes-style', get_stylesheet_uri()); // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. wp_enqueue_style('igthemes-fonts', igthemes_font_url(), array(), null); //main css wp_enqueue_style('igthemes-main', get_template_directory_uri() . '/core-framework/css/main.min.css'); //responsive css wp_enqueue_style('igthemes-responsive', get_template_directory_uri() . '/core-framework/css/responsive.min.css'); //grid css wp_enqueue_style('igthemes-grid', get_template_directory_uri() . '/core-framework/css/grid.min.css'); //woocommerce css if (class_exists('WooCommerce')) { wp_enqueue_style('igthemes-woocommerce', get_template_directory_uri() . '/core-framework/css/woocommerce.min.css'); } //icon css wp_enqueue_style('igthemes-icon', get_template_directory_uri() . '/core-framework/icon/icon.min.css'); //lightbox css if (is_singular() && 'product' != get_post_type() && igthemes_option('lightbox') == '1') { wp_enqueue_style('nivo-lightbox-css', get_template_directory_uri() . '/core-framework/css/nivo-lightbox.min.css'); } //carousel css if (igthemes_option('shop_slide') || igthemes_option('post_slide')) { wp_enqueue_style('slick-css', get_template_directory_uri() . '/core-framework/css/slick.min.css'); } //lightbox js if (is_singular() && 'product' != get_post_type() && igthemes_option('lightbox') == '1') { wp_enqueue_script('nivo-lightbox', get_template_directory_uri() . '/core-framework/js/nivo-lightbox.min.js', array('jquery'), '1.2.0', true); } //carousel js if (igthemes_option('shop_slide') || igthemes_option('post_slide')) { wp_enqueue_script('slick-js', get_template_directory_uri() . '/core-framework/js/slick.min.js', array('jquery'), '1.5.7', true); } //main js wp_enqueue_script('igthemes-main', get_template_directory_uri() . '/core-framework/js/main.min.js', array(), '1.0', true); //comment js if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } //conditional ie scripts global $wp_scripts; wp_enqueue_script('igthemes-ie9', get_template_directory_uri() . '/core-framework/js/ie-fix.js', array(), '1.0', true); wp_enqueue_script('igthemes-ie9'); wp_script_add_data('igthemes-ie9', 'conditional', 'lt IE 9'); wp_enqueue_script('igthemes-ie7', get_template_directory_uri() . '/core-framework/icon/lte-ie7.min.js', array(), '1.0', true); wp_enqueue_script('igthemes-ie7'); wp_script_add_data('igthemes-ie7', 'conditional', 'IE 7'); }
<div class="main-menu"> <nav id="site-navigation" class="main-navigation" role="navigation"> <div class="grid-1200"> <div class="col12"> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><span class="icon_menu-square_alt2"></span> <?php esc_html_e('Menu', 'store-wp'); ?> </button> <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu')); ?> </div><!-- .col12 --> </div><!-- .grid-1200 --> </nav><!-- #site-navigation --> </div><!-- .main-menu --> </header><!-- #masthead --> <?php $slide = igthemes_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 igthemes_before_content();
public function form($instance) { $title = isset($instance['title']) ? esc_attr($instance['title']) : ''; $facebook = isset($instance['facebook']) ? esc_attr($instance['facebook']) : ''; $twitter = isset($instance['twitter']) ? esc_attr($instance['twitter']) : ''; $google = isset($instance['google']) ? esc_attr($instance['google']) : ''; $pinterest = isset($instance['pinterest']) ? esc_attr($instance['pinterest']) : ''; $tumblr = isset($instance['tumblr']) ? esc_attr($instance['tumblr']) : ''; $instagram = isset($instance['instagram']) ? esc_attr($instance['instagram']) : ''; $linkedin = isset($instance['linkedin']) ? esc_attr($instance['linkedin']) : ''; $dribbble = isset($instance['dribbble']) ? esc_attr($instance['dribbble']) : ''; $vimeo = isset($instance['vimeo']) ? esc_attr($instance['vimeo']) : ''; $youtube = isset($instance['youtube']) ? esc_attr($instance['youtube']) : ''; $rss = isset($instance['rss']) ? esc_attr($instance['rss']) : ''; ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php esc_html_e('Title:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo $title; ?> " /> </p> <p> <label for="<?php echo $this->get_field_id('facebook'); ?> "><?php esc_html_e('Facebook url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('facebook'); ?> " name="<?php echo $this->get_field_name('facebook'); ?> " type="text" value="<?php echo $facebook; ?> " placeholder="<?php echo esc_url(igthemes_option('facebookr_url', '')); ?> " /> </p> <p> <label for="<?php echo $this->get_field_id('twitter'); ?> "><?php esc_html_e('Twitter url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('twitter'); ?> " name="<?php echo $this->get_field_name('twitter'); ?> " type="text" value="<?php echo $twitter; ?> " placeholder="<?php echo esc_url(igthemes_option('twitter_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('google'); ?> "><?php esc_html_e('Google url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('google'); ?> " name="<?php echo $this->get_field_name('google'); ?> " type="text" value="<?php echo $google; ?> " placeholder="<?php echo esc_url(igthemes_option('google_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('pinterest'); ?> "><?php esc_html_e('Pinterest url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('pinterest'); ?> " name="<?php echo $this->get_field_name('pinterest'); ?> " type="text" value="<?php echo $pinterest; ?> " placeholder="<?php echo esc_url(igthemes_option('pinterest_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('tumblr'); ?> "><?php esc_html_e('Tumblr url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('tumblr'); ?> " name="<?php echo $this->get_field_name('tumblr'); ?> " type="text" value="<?php echo $tumblr; ?> " placeholder="<?php echo esc_url(igthemes_option('tumblr_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('instagram'); ?> "><?php esc_html_e('Instagram url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('instagram'); ?> " name="<?php echo $this->get_field_name('instagram'); ?> " type="text" value="<?php echo $instagram; ?> " placeholder="<?php echo esc_url(igthemes_option('instagram_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('linkedin'); ?> "><?php esc_html_e('Linkedin url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('linkedin'); ?> " name="<?php echo $this->get_field_name('linkedin'); ?> " type="text" value="<?php echo $linkedin; ?> " placeholder="<?php echo esc_url(igthemes_option('linkedin_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('dribbble'); ?> "><?php esc_html_e('Dribbble url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('dribbble'); ?> " name="<?php echo $this->get_field_name('dribbble'); ?> " type="text" value="<?php echo $dribbble; ?> " placeholder="<?php echo esc_url(igthemes_option('dribbble_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('vimeo'); ?> "><?php esc_html_e('Vimeo url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('vimeo'); ?> " name="<?php echo $this->get_field_name('vimeo'); ?> " type="text" value="<?php echo $vimeo; ?> " placeholder="<?php echo esc_url(igthemes_option('vimeo_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('youtube'); ?> "><?php esc_html_e('Youtube url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('youtube'); ?> " name="<?php echo $this->get_field_name('youtube'); ?> " type="text" value="<?php echo $youtube; ?> " placeholder="<?php echo esc_url(igthemes_option('youtube_url', '')); ?> "/> </p> <p> <label for="<?php echo $this->get_field_id('rss'); ?> "><?php esc_html_e('RSS url:', 'base-wp'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('rss'); ?> " name="<?php echo $this->get_field_name('rss'); ?> " type="text" value="<?php echo $rss; ?> " placeholder="<?php echo esc_url(igthemes_option('rss_url', '')); ?> "/> </p> <?php }
<?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('template-parts/content', get_post_format()); ?> <?php } ?> </div><!-- .content-grid --> <?php if (igthemes_option('main_numeric_pagination') == '1') { igthemes_numeric_paging(); } else { igthemes_paging_nav(); } ?> <?php } else { ?> <?php get_template_part('template-parts/content', 'none'); ?> <?php
igthemes_after_single_title(); ?> <div class="entry-meta"> <?php igthemes_posted_on(); ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <div class="entry-content"> <?php igthemes_before_single_content(); ?> <?php if (igthemes_option('main_post_content', 'full ')) { the_content(); } else { the_excerpt(); } ?> <?php igthemes_after_single_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'base-wp'), 'after' => '</div>')); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php
the_title(sprintf('<h3 class="carousel-title"><a href="%s">', esc_url(get_permalink())), '</a></h3>'); ?> </div> </div> <?php } wp_reset_postdata(); } ?> </div><!-- /.carousel --> <?php } ?> <?php if (class_exists('WooCommerce') && is_shop() && igthemes_option('shop_slide')) { ?> <div id="product-carousel" class="slick"> <?php $args = array('posts_per_page' => 9, 'post_type' => 'product', 'cat' => '', 'orderby' => 'post_date', 'post_status' => 'publish'); $product_carousel_query = new WP_Query($args); if ($product_carousel_query->have_posts()) { while ($product_carousel_query->have_posts()) { $product_carousel_query->the_post(); ?> <div class="item"> <a href="<?php echo esc_url(get_permalink()); ?> "> <?php
function igthemes_main_featured_images() { if (!is_single() && has_post_thumbnail() && igthemes_option('main_featured_images')) { echo "<div class='image'>"; the_post_thumbnail('large', array('class' => 'featured-img')); echo "</div>"; } }
if (igthemes_option('linkedin_url')) { $linkedin_url = esc_url(igthemes_option('linkedin_url', '')); echo "<a href='{$linkedin_url}' title='Linkedin' target='_blank' class='linkedin-icon'><span class='social_linkedin'></span></a>"; } ?> <?php if (igthemes_option('dribbble_url')) { $dribbble_url = esc_url(igthemes_option('dribbble_url', '')); echo "<a href='{$dribbble_url}' title='Dribble' target='_blank' class='dribble-icon'><span class='social_dribbble'></span></a>"; } ?> <?php if (igthemes_option('vimeo_url')) { $vimeo_url = esc_url(igthemes_option('vimeo_url', '')); echo "<a href='{$vimeo_url}' title='Vimeo' target='_blank' class='vimeo-icon'><span class='social_vimeo'></span></a>"; } ?> <?php if (igthemes_option('youtube_url')) { $youtube_url = esc_url(igthemes_option('youtube_url', '')); echo "<a href='{$youtube_url}' title='Youtube' target='_blank' class='youtube-icon'><span class='social_youtube'></span></a>"; } ?> <?php if (igthemes_option('rss_url')) { $rss_url = esc_url(igthemes_option('rss_url', '')); echo "<a href='{$rss_url}' title='RSS' target='_blank' class='rss-icon'><span class='social_rss'></span></a>"; } ?> </div><!-- .social url -->
function igthemes_main_featured_images() { if (!is_singular() && has_post_thumbnail() && igthemes_option('main_featured_images', 'checked')) { echo "<div class='image'><a href='" . get_permalink() . "' >"; the_post_thumbnail('large', array('class' => 'featured-img')); echo "</a></div>"; } }
function igthemes_featured_image() { if (!is_archive() && !is_home() && igthemes_option('post_featured_image') && has_post_thumbnail()) { echo "<div class='image'>"; the_post_thumbnail('large', array('class' => 'featured-img')); echo "</div>"; } elseif (!is_single() && igthemes_option('main_featured_images') && has_post_thumbnail()) { echo "<div class='image'>"; the_post_thumbnail('full', array('class' => 'featured-img')); echo "</div>"; } }
function store_wp_favicon() { if (igthemes_option('favicon')) { ?> <link rel="shortcut icon" href="<?php echo esc_url(igthemes_option('favicon', '')); ?> "> <?php } if (igthemes_option('icon_iphone')) { ?> <link rel="apple-touch-icon" sizes="57x57" href="<?php echo esc_url(igthemes_option('icon_iphone', '')); ?> "> <?php } if (igthemes_option('icon_ipad')) { ?> <link rel="apple-touch-icon" sizes="76x76" href="<?php echo esc_url(igthemes_option('icon_ipad', '')); ?> "> <?php } if (igthemes_option('icon_iphone_retina')) { ?> <link rel="apple-touch-icon" sizes="120x120" href="<?php echo esc_url(igthemes_option('icon_iphone_retina', '')); ?> "> <?php } if (igthemes_option('icon_ipad_retina')) { ?> <link rel="apple-touch-icon" sizes="152x152" href="<?php echo esc_url(igthemes_option('icon_ipad_retina', '')); ?> "> <?php } if (igthemes_option('win_tile_image')) { ?> <meta name="msapplication-TileImage" content="<?php echo esc_url(igthemes_option('win_tile_image', '')); ?> "/> <?php } if (igthemes_option('win_tile_color')) { ?> <meta name="msapplication-TileColor" content="<?php echo esc_attr(igthemes_option('win_tile_color', '')); ?> "/> <?php } }