Ejemplo n.º 1
0
<?php

/**
 * Your Inspiration Themes
 * 
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <*****@*****.**>
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
global $yit_is_header;
$yit_is_header = true;
do_action('yit_topbar');
$skin = yit_get_header_skin();
do_action('yit_header_skin', $skin);
$yit_is_header = false;
Ejemplo n.º 2
0
        function widget($args, $instance)
        {
            extract($args);
            $title = isset($instance['title']) ? $instance['title'] : '';
            echo $before_widget;
            $search_type = yit_get_option('search_type');
            if (!is_shop_installed() && $search_type == 'product') {
                $search_type = 'post';
            }
            ?>
            <?php 
            $icon = yit_get_option('header-search-mini-icon');
            $image_attr = yit_getimagesize($icon['custom']);
            if ($icon['select'] == 'icon') {
                $i = '<i class="fa fa-' . $icon['icon'] . '"></i>';
            } else {
                $i = '<span><img src="' . $icon['custom'] . '" ' . $image_attr[3] . ' alt="' . __("Search", "yit") . '"/></span>';
            }
            ?>
            <a href="#" class="search_mini_button"><?php 
            echo $i;
            ?>
</a>

            <div class="search_mini_content slideInDown">

                <?php 
            echo yit_get_header_skin() == 'skin1' ? '<div class="container">' : '';
            ?>

                <?php 
            if (defined('YITH_WCAS')) {
                ?>
                    <?php 
                echo do_shortcode('[yith_woocommerce_ajax_search]');
                ?>
                <?php 
            } else {
                ?>
                    <form action="<?php 
                echo home_url('/');
                ?>
" method="get" class="search_mini">
                        <input type="text" name="s" id="search_mini" value="<?php 
                the_search_query();
                ?>
" placeholder="<?php 
                if (is_shop_installed()) {
                    _e('search for products', 'yit');
                } else {
                    _e('search for...', 'yit');
                }
                ?>
" /><input type="submit" value="" id="mini-search-submit" />
                        <input type="hidden" name="post_type" value="<?php 
                echo $search_type;
                ?>
" />
                    </form>
                <?php 
            }
            ?>
                <?php 
            echo yit_get_header_skin() == 'skin1' ? '</div>' : '';
            ?>
            </div>
            <?php 
            echo $after_widget;
        }
Ejemplo n.º 3
0
<?php

/*
 * This file belongs to the YIT Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$sticky = yit_get_option('header-sticky') == 'yes' ? 'sticky-header' : '';
$infobar = yit_get_option('header-enable-infobar') == 'yes' ? 'with-infobar' : '';
?>
<!-- START HEADER -->
<div id="header" class="clearfix <?php 
echo yit_get_header_skin() . ' ' . $sticky . ' ' . $infobar;
?>
 ">
Ejemplo n.º 4
0
        <!-- MOBILE MENU -->
        <div class="nav main-nav mobile-clone">
            <a href="#" class="menu-trigger fa fa-bars"></a>

            <?php 
    $nav_args = array('theme_location' => 'mobile-nav', 'container' => 'none', 'menu_class' => 'level-1 clearfix', 'depth' => apply_filters('yit_main_nav_depth', 3));
    wp_nav_menu($nav_args);
    ?>

        </div>
        <!-- END MOBILE MENU -->
    <?php 
}
?>

    <?php 
wp_reset_query();
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('header')) {
}
?>

    <!-- cart -->
    <?php 
do_action('yit_header_cart');
?>

</div>
<!-- END HEADER SIDEBAR -->
<?php 
echo yit_get_header_skin() == 'skin2' ? '</div><!-- end row1 -->' : '';
<?php

/*
 * This file belongs to the YIT Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
?>
<!-- START HEADER -->
<div id="header-container">
    <div class="container">
        <?php 
echo yit_get_header_skin() == 'skin2' ? '<div class="row1">' : '';
Ejemplo n.º 6
0
 function yit_skin_header()
 {
     $skin = yit_get_header_skin();
     yit_get_template('/header/skins/' . $skin . '.php');
 }