Exemplo n.º 1
0
/**
 * @package WordPress
 * @subpackage Highend
 */
function hb_styles_setup()
{
    // Enqueue Responsive Style if selected from the Theme Options
    if (hb_options('hb_responsive')) {
        wp_register_style('hb_responsive', get_template_directory_uri() . '/css/responsive.css');
        wp_enqueue_style('hb_responsive');
    }
    // IcoMoon
    wp_register_style('hb_icomoon', get_template_directory_uri() . '/css/icomoon.css');
    wp_enqueue_style('hb_icomoon');
}
Exemplo n.º 2
0
function hb_woocommerce_output_content_wrapper_end()
{
    global $post;
    $sidebar_layout = vp_metabox('layout_settings.hb_page_layout_sidebar');
    $sidebar_name = vp_metabox('layout_settings.hb_choose_sidebar');
    if (isset($_REQUEST['layout']) && !empty($_REQUEST['layout'])) {
        $sidebar_layout = $_REQUEST['layout'];
        $sidebar_name = hb_options('hb_woo_choose_sidebar');
    } else {
        if (is_single()) {
            $sidebar_layout = hb_options('hb_woo_sp_layout_sidebar');
            $sidebar_name = hb_options('hb_woo_sp_choose_sidebar');
        } else {
            $sidebar_layout = hb_options('hb_woo_layout_sidebar');
            $sidebar_name = hb_options('hb_woo_choose_sidebar');
        }
    }
    ?>
						</div>
						<?php 
    if ($sidebar_layout != 'fullwidth') {
        ?>
						<!-- BEGIN .hb-sidebar -->
						<div class="col-3  hb-equal-col-height hb-sidebar">
							<?php 
        if ($sidebar_name && function_exists('dynamic_sidebar')) {
            dynamic_sidebar($sidebar_name);
        }
        ?>
						</div>
						<!-- END .hb-sidebar -->
						<?php 
    }
    ?>
					</div>
				</div>
			</div>
		</div>
	<?php 
}
Exemplo n.º 3
0
}
?>

                        <?php 
if ($header_layout_class != 'nav-type-2' && $header_layout_class != 'nav-type-2 centered-nav') {
    ?>
                        </div>
                        <!-- END .container or .container-wide -->
                        <?php 
}
?>
            </div>
            <!-- END #header-inner-bg -->

            <?php 
if (hb_options('hb_enable_sticky_shop_button') && class_exists('Woocommerce')) {
    global $woocommerce;
    $cart_url = $woocommerce->cart->get_cart_url();
    $cart_count = $woocommerce->cart->cart_contents_count;
    ?>
            <a href="<?php 
    echo $cart_url;
    ?>
" id="sticky-shop-button"><i class="hb-moon-cart-checkout"></i><span><?php 
    echo $cart_count;
    ?>
</span></a>
            <?php 
}
?>
Exemplo n.º 4
0
        }
    } else {
        if (is_singular('faq')) {
            _e('Frequenly Asked Questions', 'hbthemes');
        } else {
            if (is_singular('hb_testimonials')) {
                _e('Testimonial', 'hbthemes');
            } else {
                if (is_search()) {
                    _e('Search Results ', 'hbthemes');
                } else {
                    if (class_exists('bbPress') && bbp_is_forum_archive()) {
                        _e('Forums ', 'hbthemes');
                    } else {
                        if (is_archive()) {
                            echo hb_options('hb_archives_title');
                        } else {
                            if (vp_metabox('general_settings.hb_page_title_h1', null, $post_id)) {
                                echo vp_metabox('general_settings.hb_page_title_h1', null, $post_id);
                            } else {
                                the_title();
                            }
                        }
                    }
                }
            }
        }
    }
}
?>
			</h1>
Exemplo n.º 5
0
</a><?php 
        if ($cat_count > 0) {
            echo ', ';
        }
        ?>
			
		<?php 
    }
    ?>
		<span class="text-sep">|</span>
	<?php 
}
?>
	
	<?php 
if (comments_open() && hb_options('hb_blog_enable_comments')) {
    ?>
		<span class="comment-container minor-meta">
			<a href="<?php 
    the_permalink();
    ?>
#comments" class="comments-link" title="<?php 
    printf(__("Comment on %s", "hbthemes"), get_the_title());
    ?>
">
				<?php 
    comments_number(__('0 comments', 'hbthemes'), __('1 comment', 'hbthemes'), __('% comments', 'hbthemes'));
    ?>
 
			</a>
		</span>
Exemplo n.º 6
0
        ?>
]
							jQuery.prettyPhoto.open(api_images,api_titles,api_descriptions);
						});

		        });
			</script>
		</div>
		<?php 
        break;
    default:
        ?>
		<?php 
        // get featured image
        $thumb = get_post_thumbnail_id();
        $image_height = hb_options('hb_blog_image_height');
        $image_width = 1140;
        $full_image = wp_get_attachment_image_src($thumb, 'full', false);
        if (vp_metabox('layout_settings.hb_page_layout_sidebar')) {
            $image_width = 832;
        }
        $image = hb_resize($thumb, '', $image_width, $image_height, true);
        if ($image) {
            ?>
		<div class="featured-image">
			<a data-title="<?php 
            the_title();
            ?>
" href="<?php 
            echo $full_image[0];
            ?>
Exemplo n.º 7
0
<?php

if (!hb_options('hb_staff_enable_related_posts')) {
    return;
}
$current_item_cats = wp_get_object_terms(get_the_ID(), 'team_categories', array('fields' => 'slugs'));
$related_items = new WP_Query(array('posts_per_page' => 4, 'post_type' => 'team', 'orderby' => 'rand', 'post__not_in' => array(get_the_ID()), 'tax_query' => array(array('taxonomy' => 'team_categories', 'field' => 'slug', 'terms' => $current_item_cats))));
if ($related_items->have_posts()) {
    ?>
<!-- BEGIN .portfolio-related-fw -->
<div class="fw-section with-border portfolio-related-fw">
	<div class="row">
		<div class="col-12">
			<h4 class="hb-heading hb-center-heading alt-color-1"><span><?php 
    _e('Meet More Team Members', 'hbthemes');
    ?>
</span></h4>
		</div>
	</div>

	<!-- BEGIN .related-portfolio-items -->
	<div class="row related-members">
	<?php 
    while ($related_items->have_posts()) {
        $related_items->the_post();
        ?>
		<?php 
        $thumb = get_post_thumbnail_id();
        $image = hb_resize($thumb, '', 270, 270, true);
        if ($image) {
            ?>
Exemplo n.º 8
0
    if (function_exists('is_shop') && is_shop()) {
        if (function_exists('woocommerce_get_page_id')) {
            $post_id = woocommerce_get_page_id('shop');
            $is_shop = true;
        }
    }
}
?>

<!-- BEGIN #slider-section -->
<div id="slider-section" class="clearfix">
	<?php 
if (is_singular('portfolio')) {
    $header_layout = vp_metabox('portfolio_layout_settings.hb_portfolio_header_layout');
    if ($header_layout == 'default') {
        $header_layout = hb_options('hb_portfolio_content_layout');
    }
    if ($header_layout == 'totalfullwidth') {
        get_template_part('includes/portfolio', 'featured-content');
    }
} else {
    if (is_page() || is_singular('team') || $is_shop) {
        if ($is_shop) {
            $section_type = vp_metabox('featured_section.hb_featured_section_options', null, $post_id);
            $thumb = get_post_thumbnail_id($post_id);
            $rev_slider = vp_metabox('featured_section.hb_rev_slider', null, $post_id);
            $layer_slider = vp_metabox('featured_section.hb_layer_slider', null, $post_id);
            $video_link = vp_metabox('featured_section.hb_page_video', null, $post_id);
        } else {
            $section_type = vp_metabox('featured_section.hb_featured_section_options');
            $thumb = get_post_thumbnail_id();
Exemplo n.º 9
0
<?php

if (!hb_options('hb_portfolio_enable_related_posts')) {
    return;
}
$current_item_cats = wp_get_object_terms(get_the_ID(), 'portfolio_categories', array('fields' => 'slugs'));
$related_items = new WP_Query(array('posts_per_page' => 4, 'post_type' => 'portfolio', 'orderby' => 'rand', 'post__not_in' => array(get_the_ID()), 'tax_query' => array(array('taxonomy' => 'portfolio_categories', 'field' => 'slug', 'terms' => $current_item_cats))));
if ($related_items->have_posts()) {
    ?>
<!-- BEGIN .portfolio-related-fw -->
<div class="fw-section with-border portfolio-related-fw">
	<div class="row">
		<div class="col-12">
			<h4 class="hb-heading hb-center-heading alt-color-1"><span><?php 
    _e('Related Projects', 'hbthemes');
    ?>
</span></h4>
		</div>
	</div>

	<!-- BEGIN .related-portfolio-items -->
	<div class="row related-portfolio-items columns-4">
	<?php 
    while ($related_items->have_posts()) {
        $related_items->the_post();
        ?>
		<?php 
        $thumb = get_post_thumbnail_id();
        $image = hb_resize($thumb, '', 289, 216, true);
        if ($image) {
            ?>
Exemplo n.º 10
0
    if (is_active_sidebar('hb-side-section-sidebar')) {
        dynamic_sidebar('hb-side-section-sidebar');
    } else {
        echo '<p class="aligncenter" style="margin-top:30px;">';
        _e('Please add widgets to this widgetized area ("Side Panel Section") in Appearance > Widgets.', 'hbthemes');
        echo '</p>';
    }
    ?>
	</div>
<?php 
}
?>


<?php 
if (hb_options('hb_search_style') == 'hb-modern-search') {
    ?>
	<!-- BEGIN #fancy-search -->
	<div id="modern-search-overlay">
		<a href="#" class="hb-modern-search-close"><i class="hb-icon-x"></i></a>

		<div class="table-middle hb-modern-search-content">
			<p><?php 
    _e('Type and press Enter to search', 'hbthemes');
    ?>
</p>

			<form method="get" id="hb-modern-form" action="<?php 
    echo home_url('/');
    ?>
" novalidate="" autocomplete="off">
Exemplo n.º 11
0
/**
 * @package WordPress
 * @subpackage Highend
 */
get_header();
?>

<!-- BEGIN #main-content -->
<div id="main-content">
	<div class="container">
	
		<?php 
$sidebar_layout = hb_options('hb_page_layout_sidebar');
$sidebar_name = hb_options('hb_choose_sidebar');
$pagination_style = hb_options('hb_pagination_style');
?>

		<div class="row <?php 
echo $sidebar_layout;
?>
 main-row">

			<div id="page-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
			
Exemplo n.º 12
0
            ?>

					<?php 
            if (hb_options('hb_blog_enable_likes')) {
                ?>
					<div class="float-right">
					<?php 
                echo hb_print_likes(get_the_ID());
                ?>
					</div>
					<?php 
            }
            ?>

					<?php 
            if (hb_options('hb_blog_enable_share')) {
                ?>
					<div class="float-right">
						<?php 
                get_template_part('includes/hb', 'share');
                ?>
					</div>
					<!-- END .float-right -->
					<?php 
            }
            ?>
				</section>
				<?php 
        }
        ?>
Exemplo n.º 13
0
                ?>
					</div>
					<!-- END .float-right -->
					<?php 
            }
            ?>
				</section>
				<?php 
        }
        ?>

				<?php 
        if (hb_options('hb_blog_author_info') && is_singular('post')) {
            get_template_part('includes/post', 'author-info');
        }
        if (hb_options('hb_blog_enable_related_posts')) {
            get_template_part('includes/post', 'related-articles');
        }
        ?>

			</div>
			<!-- END #single-blog-wrapper -->
			<?php 
        if (!is_attachment()) {
            if (comments_open()) {
                comments_template();
            }
        }
        ?>

		</div>
Exemplo n.º 14
0
    function hb_scheme_styles()
    {
        $focus_hex_color = "#00aeef";
        $color_value = hb_options('hb_scheme_chooser');
        if (isset($_GET['focus_color'])) {
            $color_value = $_GET['focus_color'];
        }
        if (hb_options('hb_color_manager_type') == 'hb_color_manager_schemes') {
            if ($color_value == 'minimal_red') {
                $focus_hex_color = "#c0392b";
            } else {
                if ($color_value == 'minimal_green') {
                    $focus_hex_color = "#27ae60";
                } else {
                    if ($color_value == 'minimal_pink') {
                        $focus_hex_color = "#F07FB2";
                    } else {
                        if ($color_value == 'minimal_yellow') {
                            $focus_hex_color = "#f1c40f";
                        } else {
                            if ($color_value == 'minimal_orange') {
                                $focus_hex_color = "#e67e22";
                            } else {
                                if ($color_value == 'minimal_purple') {
                                    $focus_hex_color = "#8e44ad";
                                } else {
                                    if ($color_value == 'minimal_grey') {
                                        $focus_hex_color = "#7f8c8d";
                                    } else {
                                        if ($color_value == 'minimal_blue_alt' || $color_value == 'business_blue') {
                                            $focus_hex_color = "#2980b9";
                                        } else {
                                            if ($color_value == 'dark_elegance') {
                                                $focus_hex_color = "#1BCBD1";
                                            } else {
                                                if ($color_value == 'minimal_green_alt') {
                                                    $focus_hex_color = "#a0ce4e";
                                                } else {
                                                    if ($color_value == 'orchyd') {
                                                        $focus_hex_color = "#E8BF56";
                                                    } else {
                                                        $focus_hex_color = "#00aeef";
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            set_focus_color($focus_hex_color);
        } else {
            if (hb_options('hb_color_manager_type') == 'hb_color_manager_color_customizer') {
                if (get_theme_mod('hb_focus_color_setting')) {
                    $focus_hex_color = get_theme_mod('hb_focus_color_setting');
                } else {
                    $focus_hex_color = "00aeef";
                }
                set_focus_color($focus_hex_color);
            }
        }
        ?>
		<style type="text/css">
		<?php 
        echo '
		::selection { background:' . $focus_hex_color . '; color:#FFF; }
		::-moz-selection { background:' . $focus_hex_color . '; color:#FFF; }

		a:hover, .user-entry a, 
		.widget_calendar tbody a,
		#header-bar a:hover,
		.minimal-skin #main-nav > li a:hover,
		#header-inner.stuck .second-skin #main-nav > li > a:hover,
		.minimal-skin #main-nav li.current-menu-item > a,
		.minimal-skin #main-nav li.sfHover > a, 
		.minimal-skin #main-nav > li.current-menu-ancestor > a,
		#close-fancy-search,
		article.search-entry a.search-thumb:hover,
		.map-info-section .minimize-section:hover,
		.hb-blog-small h3.title a:hover,
		.post-header .post-meta-info a:hover,
		.post-content h2.title a,
		.like-holder:hover i,
		.comments-holder:hover i,
		.share-holder:hover i,
		.comments-holder a:hover,
		.hb-blog-grid .comments-holder:hover, 
		.hb-blog-grid .like-holder:hover,
		.most-liked-list li:hover .like-count,
		.simple-read-more:hover,
		.team-member-box:hover .team-member-name,
		.testimonial-author .testimonial-company:hover,
		.close-modal:hover,
		.hb-tabs-wrapper .nav-tabs li.active a,
		.hb-icon,
		.hb-logout-box small a:hover,
		.hb-gallery-sort li.hb-dd-header:hover strong,
		.filter-tabs li a:hover,
		ul.social-list li a:hover,
		div.pp_default .pp_close:hover,
		#main-wrapper .hb-woo-product.sale .price,
		.woocommerce .star-rating span, .woocommerce-page .star-rating span,
		.woocommerce-page div.product p.price, .hb-focus-color { color:' . $focus_hex_color . '; }

		.hb-focus-color, 
		.light-text a:hover, 
		#header-bar.style-1 .top-widget .active,
		#header-bar.style-2 .top-widget .active, 
		.top-widget:hover > a,
		#header-bar.style-2 .top-widget:hover > a,
		.top-widget.social-list a:hover,
		#main-wrapper .hb-dropdown-box a:hover,
		.social-list ul li a:hover,
		light-menu-dropdown #main-nav ul.sub-menu li a:hover,
		.light-menu-dropdown #main-nav ul.sub-menu li.sfHover > a,
		.light-menu-dropdown #main-nav ul.sub-menu li.current-menu-item > a,
		.light-menu-dropdown #main-nav ul.sub-menu li.current-menu-ancestor > a,
		#fancy-search .ui-autocomplete li a:hover,
		#fancy-search .ui-autocomplete li:hover span.search-title,
		#fancy-search .ui-autocomplete li a,
		#nav-search > a:hover,
		.share-holder .hb-dropdown-box ul li a:hover,
		.share-holder .hb-dropdown-box ul li a:hover i,
		.share-holder.active,
		.share-holder.active i,
		.author-box .social-list li a:hover,
		#respond small a:hover,
		.commentmetadata a:hover time,
		.comments-list .reply a,
		#footer.dark-style a:hover,
		.feature-box i.ic-holder-1,
		.feature-box.alternative i.ic-holder-1,
		.portfolio-simple-wrap .standard-gallery-item:hover .portfolio-description h3 a,
		#copyright-wrapper a:hover,
		.hb-effect-1 #main-nav > li > a::before, 
		.hb-effect-1 a::after,
		.third-skin.hb-effect-1 #main-nav > li > a:hover, 
		.third-skin.hb-effect-1 #main-nav > li.current-menu-item > a, 
		.third-skin.hb-effect-1 #main-nav > li.sfHover > a,
		.second-skin.hb-effect-9 #main-nav #nav-search > a:hover,
		.hb-effect-10 #main-nav > li > a:hover, 
		.hb-effect-10 #main-nav > li #nav-search a:hover, 
		.hb-effect-10 #main-nav > li.current-menu-item > a,
		.like-holder:hover,
		.comments-holder:hover,
		.share-holder:hover,
		#main-nav ul.sub-menu li a:hover { color: ' . $focus_hex_color . '!important; }

		.light-style .feature-box i.ic-holder-1,
		.light-style .feature-box.alternative i.ic-holder-1,
		.light-style .feature-box h4.bold {
			color: #f9f9f9 !important;
		}

		.light-style .feature-box-content p {
			color: #ccc;
		}

		.like-holder.like-active i, .like-holder.like-active { color: #da4c26 !important; }

		.hb-icon-container,
		.feature-box i.ic-holder-1 {
			border-color: ' . $focus_hex_color . ';
		}

		.main-navigation.default-skin #main-nav > li > a:hover > span, 
		.main-navigation.default-skin #main-nav > li.current-menu-item > a > span, 
		.main-navigation.default-skin #main-nav > li.sfHover > a > span,
		.simple-read-more,
		.team-member-box.tmb-2:hover .team-member-description,
		.hb-logout-box small a:hover,
		#pre-footer-area,
		span[rel="tooltip"] { border-bottom-color: ' . $focus_hex_color . '; }

		.hb-pricing-item:hover,
		.hb-process-steps ul:before,
		.pace .pace-activity,
		.wpb_tabs .nav-tabs li.active a {
			border-top-color: ' . $focus_hex_color . ';
		}

		blockquote.pullquote,
		.author-box,
		#main-wrapper .widget_nav_menu ul.menu li.current-menu-item > a,
		.hb-callout-box h3,
		.pace .pace-activity,
		.hb-tabs-wrapper.tour-style.left-tabs > .nav-tabs > li.active a,
		.light-menu-dropdown #main-nav ul.sub-menu li a:hover,.light-menu-dropdown #main-nav ul.sub-menu li.sfHover > a,.light-menu-dropdown #main-nav ul.sub-menu li.current-menu-item > a, .light-menu-dropdown #main-nav ul.sub-menu li.current-menu-ancestor > a, .light-menu-dropdown #main-nav ul.sub-menu li.sfHover > a {
			border-left-color: ' . $focus_hex_color . ';
		}

		#main-wrapper .right-sidebar .widget_nav_menu ul.menu li.current-menu-item > a,
		.hb-tabs-wrapper.tour-style.right-tabs > .nav-tabs > li.active a {
			border-right-color: ' . $focus_hex_color . ';
		}

		#to-top:hover,
		#contact-button:hover, 
		#contact-button.active-c-button,
		.pagination ul li span, 
		.single .pagination span,
		.single-post-tags a:hover,
		div.overlay,
		.portfolio-simple-wrap .standard-gallery-item:hover .hb-gallery-item-name:before,
		.progress-inner,
		.woocommerce .wc-new-badge,
		#main-wrapper .coupon-code input.button:hover,
		.woocommerce-page #main-wrapper button.button:hover,
		#main-wrapper input.checkout-button { background-color:' . $focus_hex_color . '; }

		#header-dropdown .close-map:hover,
		#sticky-shop-button:hover,
		#sticky-shop-button span,
		.quote-post-format .quote-post-wrapper a,
		.link-post-format .quote-post-wrapper a,
		.status-post-format .quote-post-wrapper a,
		span.highlight,
		mark,
		.feature-box:hover:not(.standard-icon-box) .hb-small-break,
		.content-box i.box-icon,
		.hb-button, input[type=submit], a.read-more,
		.hb-effect-2 #main-nav > li > a > span::after,
		.hb-effect-3 #main-nav > li > a::before,
		.hb-effect-4 #main-nav > li > a::before,
		.hb-effect-6 #main-nav > li > a::before,
		.hb-effect-7 #main-nav > li > a span::after,
		.hb-effect-8 #main-nav > li > a:hover span::before,
		.hb-effect-9 #main-nav > li > a > span::before,
		.hb-effect-9 #main-nav > li > a > span::after,
		.hb-effect-10 #main-nav > li > a:hover span::before, 
		.hb-effect-10 #main-nav > li.current-menu-item > a span::before, 
		#main-nav > li.sfHover > a span::before, 
		#main-nav > li.current-menu-ancestor > a span::before,
		.pace .pace-progress,
		#main-wrapper .hb-bag-buttons a.checkout-button {background: ' . $focus_hex_color . ';}

		.filter-tabs li.selected a, #main-wrapper .single_add_to_cart_button:hover {
			background: ' . $focus_hex_color . ' !important;
		}

		table.focus-header th,
		.second-skin #main-nav > li a:hover,
		.second-skin #main-nav > li.current-menu-item > a,
		.second-skin #main-nav > li.sfHover > a,
		#header-inner.stuck .second-skin #main-nav > li > a:hover,
		.second-skin #main-nav > li.current-menu-item > a,
		.crsl-nav a:hover,
		.feature-box:hover i.ic-holder-1 {
			background: ' . $focus_hex_color . ';
			color: #FFF;
		}


		.load-more-posts:hover,
		.dropcap.fancy,
		.tagcloud > a:hover,
		.hb-icon.hb-icon-medium.hb-icon-container:hover {
			background-color: ' . $focus_hex_color . ';
			color: #FFF;
		}

		.filter-tabs li.selected a {
			border-color: ' . $focus_hex_color . ' !important;
		}

		.hb-second-light:hover {background:#FFF!important;color:' . $focus_hex_color . '!important;}

		.hb-effect-11 #main-nav > li > a:hover::before,
		.hb-effect-11 #main-nav > li.sfHover > a::before,
		.hb-effect-11 #main-nav > li.current-menu-item > a::before,
		.hb-effect-11 #main-nav > li.current-menu-ancestor > a::before  {
			color: ' . $focus_hex_color . ';
			text-shadow: 7px 0 ' . $focus_hex_color . ', -7px 0 ' . $focus_hex_color . ';
		}

		#main-wrapper .product-loading-icon {
			background: ' . hb_color($focus_hex_color, 0.85) . ';
		}

		.item-overlay-text {
			background: #323436;
			background: rgba(0,0,0,0.85);
		}

		.hb-button, input[type=submit]{
			box-shadow: 0 3px 0 0 ' . hb_darken_color($focus_hex_color, -50) . ';
		}

		.hb-button.special-icon i,
		.hb-button.special-icon i::after {
			background:' . hb_darken_color($focus_hex_color, -50) . ';
		}

		#main-wrapper a.active-language, #main-wrapper a.active-language:hover {color: #aaa !important; }
		.feature-box:hover:not(.standard-icon-box):not(.alternative) i, #main-wrapper .hb-bag-buttons a:hover, #main-wrapper .hb-dropdown-box .hb-bag-buttons a:hover,
		#main-wrapper .social-icons.dark li a:hover i, #main-wrapper #footer .social-icons.dark li a i, 
		#footer.dark-style ul.social-icons.light li a:hover,
		#main-wrapper .hb-single-next-prev a:hover {color: #FFF !important;}';
        if (hb_options('hb_color_manager_type') == 'hb_color_manager_color_customizer') {
            if (get_theme_mod('hb_top_bar_bg_setting')) {
                echo '#header-bar { background-color:' . get_theme_mod('hb_top_bar_bg_setting') . '}';
            }
            if (get_theme_mod('hb_top_bar_text_color_setting')) {
                echo '#header-bar, #fancy-search input[type=text] { color:' . get_theme_mod('hb_top_bar_text_color_setting') . '}';
                echo '#fancy-search ::-webkit-input-placeholder { color:' . get_theme_mod('hb_top_bar_text_color_setting') . '}';
            }
            if (get_theme_mod('hb_top_bar_link_color_setting')) {
                echo '#header-bar a { color:' . get_theme_mod('hb_top_bar_link_color_setting') . '}';
            }
            if (get_theme_mod('hb_top_bar_border_setting')) {
                echo '#header-bar { border-bottom-color:' . get_theme_mod('hb_top_bar_border_setting') . '}';
                echo '#header-bar .top-widget { border-right-color: ' . get_theme_mod('hb_top_bar_border_setting') . '!important; border-left-color: ' . get_theme_mod('hb_top_bar_border_setting') . '; }';
            }
            if (get_theme_mod('hb_nav_bar_bg_setting')) {
                echo '#header-inner-bg {background-color: ' . get_theme_mod('hb_nav_bar_bg_setting') . ';}';
            }
            if (get_theme_mod('hb_nav_bar_stuck_bg_setting')) {
                echo '#header-inner.stuck #header-inner-bg { background-color: ' . get_theme_mod('hb_nav_bar_stuck_bg_setting') . '; }';
            }
            if (get_theme_mod('hb_nav_bar_border_setting')) {
                echo '#header-inner.nav-type-2 .main-navigation { border-top-color: ' . get_theme_mod('hb_nav_bar_border_setting') . '; }';
                echo '#header-inner-bg {border-bottom-color: ' . get_theme_mod('hb_nav_bar_border_setting') . '}';
                echo '#main-nav li#nav-search::before {background:' . get_theme_mod('hb_nav_bar_border_setting') . '}';
                echo '#header-inner.nav-type-2 #main-nav > li:first-child > a, #header-inner.nav-type-2 li#nav-search > a { border-left-color: ' . get_theme_mod('hb_nav_bar_border_setting') . '; }';
                echo '#header-inner.nav-type-2 #main-nav > li > a { border-right-color: ' . get_theme_mod('hb_nav_bar_border_setting') . '; }';
            }
            if (get_theme_mod('hb_nav_bar_stuck_border_setting')) {
                echo '#header-inner.stuck #header-inner-bg { border-bottom-color:' . get_theme_mod('hb_nav_bar_stuck_border_setting') . ' !important; }';
                echo '#header-inner.stuck #main-nav li#nav-search::before {background: ' . get_theme_mod('hb_nav_bar_stuck_border_setting') . '}';
            }
            if (get_theme_mod('hb_nav_bar_text_setting')) {
                echo '#main-wrapper #main-nav > li > a, #main-wrapper #header-inner-bg { color:' . get_theme_mod('hb_nav_bar_text_setting') . ' !important; }';
            }
            if (get_theme_mod('hb_nav_bar_stuck_text_setting')) {
                echo '#main-wrapper #header-inner.stuck #main-nav > li > a, #main-wrapper #header-inner.stuck #header-inner-bg { color:' . get_theme_mod('hb_nav_bar_stuck_text_setting') . ' !important; }';
            }
            if (get_theme_mod('hb_pfooter_bg_setting')) {
                echo '#pre-footer-area {background-color: ' . get_theme_mod('hb_pfooter_bg_setting') . ';}';
            }
            if (get_theme_mod('hb_pfooter_text_setting')) {
                echo '#pre-footer-area {color: ' . get_theme_mod('hb_pfooter_text_setting') . ';}';
            }
            if (get_theme_mod('hb_footer_bg_setting')) {
                echo '#footer { background-color: ' . get_theme_mod('hb_footer_bg_setting') . '; }';
            }
            if (get_theme_mod('hb_footer_text_setting')) {
                echo '#footer { color: ' . get_theme_mod('hb_footer_text_setting') . '; }';
            }
            if (get_theme_mod('hb_footer_text_setting')) {
                echo '#main-wrapper #footer {color: ' . get_theme_mod('hb_footer_text_setting') . ';}';
            }
            if (get_theme_mod('hb_footer_link_setting')) {
                echo '#main-wrapper #footer a { color: ' . get_theme_mod('hb_footer_link_setting') . '; }';
            }
            if (get_theme_mod('hb_copyright_bg_setting')) {
                echo '#copyright-wrapper {background: ' . get_theme_mod('hb_copyright_bg_setting') . ';}';
            }
            if (get_theme_mod('hb_copyright_text_setting')) {
                echo '#copyright-wrapper {color: ' . get_theme_mod('hb_copyright_text_setting') . ';}';
            }
            if (get_theme_mod('hb_copyright_link_setting')) {
                echo '#copyright-wrapper a {color: ' . get_theme_mod('hb_copyright_link_setting') . ';}';
            }
            if (get_theme_mod('hb_content_bg_setting')) {
                echo 'body {background-color: ' . get_theme_mod('hb_content_bg_setting') . ';}';
            }
            if (get_theme_mod('hb_content_c_bg_setting')) {
                echo '#main-wrapper, #main-wrapper.hb-stretched-layout, #main-wrapper.hb-boxed-layout {background-color: ' . get_theme_mod('hb_content_c_bg_setting') . ';}';
                echo '#main-wrapper #pre-footer-area:after {border-top-color: ' . get_theme_mod('hb_content_c_bg_setting') . ';}';
            }
            if (get_theme_mod('hb_content_text_color_setting')) {
                echo '#main-wrapper .hb-main-content, #main-wrapper .hb-sidebar, .hb-testimonial-quote p {color: ' . get_theme_mod('hb_content_text_color_setting') . ';}';
            }
            if (get_theme_mod('hb_content_link_color_setting')) {
                echo '#main-wrapper .hb-main-content a, select { color: ' . get_theme_mod('hb_content_link_color_setting') . ' }';
                echo '#main-wrapper .hb-main-content a:hover {color: ' . $focus_hex_color . ';}';
            }
            if (get_theme_mod('hb_content_border_setting')) {
                echo '
					.portfolio-single-meta ul, .content-box, #main-wrapper .hb-accordion-pane, .hb-accordion-tab, .hb-box-cont, .hb-tabs-wrapper.tour-style .tab-content, .hb-tabs-wrapper .nav-tabs li a, .hb-callout-box, .hb-teaser-column .teaser-content. .hb-pricing-item, .hb-testimonial:after, .hb-testimonial, .tmb-2 .team-member-description, .recent-comments-content, .recent-comments-content:after, .hb-tweet-list.light li, .hb-tweet-list.light li:after, fieldset,table,.wp-caption-text, .gallery-caption, .author-box, .comments-list .children > li::before, .widget_nav_menu ul.menu, .comments-list li.comment > div.comment-body, .hb-dropdown-box, #contact-panel, .filter-tabs li a, #contact-panel::after, .hb-flexslider-wrapper.bordered-wrapper,.bordered-wrapper, iframe.fw {border-color:' . get_theme_mod('hb_content_border_setting') . ';}

				#main-content .left-sidebar .hb-main-content.col-9, table th, table th, table td, #main-content .hb-sidebar, .comments-list .children, .tmb-2 .team-member-img, .hb-tabs-wrapper .tab-content, div.pp_default .pp_close {border-left-color:' . get_theme_mod('hb_content_border_setting') . ';}

				table td, .hb-blog-small .meta-info, #main-wrapper .widget_nav_menu ul.menu ul li:first-child, #main-wrapper .bottom-meta-section, .comments-list .children > li::after, .tmb-2 .team-member-img, h5.hb-heading span:not(.special-amp):before, h4.hb-heading span:not(.special-amp):before,h4.hb-heading span:not(.special-amp):after,h5.hb-heading span:not(.special-amp):after,h3.hb-heading span:not(.special-amp):before,h3.hb-heading span:not(.special-amp):after,h4.lined-heading span:not(.special-amp):before,h4.lined-heading span:not(.special-amp):after, .hb-fw-separator, .hb-separator-s-1, .hb-separator-extra, .hb-separator-25, .hb-gal-standard-description .hb-small-separator {border-top-color:' . get_theme_mod('hb_content_border_setting') . ';}

				.pricing-table-caption, .pricing-table-price, #hb-page-title, .share-holder .hb-dropdown-box ul li, .hb-blog-small .meta-info, .hb_latest_posts_widget article, .most-liked-list li, ul.hb-ul-list.line-list li, ol.line-list li, ul.line-list li, #hb-blog-posts.unboxed-blog-layout article, .hb-tabs-wrapper .nav-tabs, #main-wrapper .wpb_content_element .wpb_tour_tabs_wrapper .wpb_tabs_nav a, .hb-tabs-wrapper .tab-content, .hb-tabs-wrapper.tour-style .nav-tabs li.active a, .hb-box-cont-header, .hb-separator.double-border, .portfolio-single-meta ul.meta-list li {border-bottom-color:' . get_theme_mod('hb_content_border_setting') . ';}

				#main-content .col-9.hb-main-content, #main-content .left-sidebar .hb-sidebar.col-3, .tmb-2 .team-member-img, .hb-tabs-wrapper .tab-content, .hb-tabs-wrapper.tour-style.right-tabs .nav-tabs > li.active a, div.pp_default .pp_nav {border-right-color:' . get_theme_mod('hb_content_border_setting') . ';}

				.pagination ul li a, .pagination ul li span.page-numbers.dots, .single .pagination a, .page-links a, .hb-skill-meter .hb-progress-bar, .hb-counter .count-separator span, .hb-small-break, hr {background-color: ' . get_theme_mod('hb_content_border_setting') . ';}

				#main-wrapper .hb-tabs-wrapper:not(.wpb_tabs) ul li:last-child a, .darker-border .hb-separator {border-bottom-color: "+newval+" !important;}
				.darker-border .hb-separator {border-top-color: ' . get_theme_mod('hb_content_border_setting') . ' !important;}';
            }
            if (get_theme_mod('hb_content_h1_setting')) {
                echo 'h1, h1.extra-large, h1 a, article.single h1.title { color: ' . get_theme_mod('hb_content_h1_setting') . '; }';
                echo '.hb-page-title.dark-text h1, .hb-page-title.light-text h1, p.hb-text-large { color: ' . get_theme_mod('hb_content_h1_setting') . '!important; }';
                echo '#main-wrapper h1.hb-bordered-heading {color: ' . get_theme_mod('hb_content_h1_setting') . '; border-color: ' . get_theme_mod('hb_content_h1_setting') . ';}';
            }
            if (get_theme_mod('hb_content_h2_setting')) {
                echo 'h2, #hb-page-title h2 { color: ' . get_theme_mod('hb_content_h2_setting') . '; }';
                echo '#main-wrapper h2.hb-bordered-heading {color: ' . get_theme_mod('hb_content_h2_setting') . '; border-color: ' . get_theme_mod('hb_content_h2_setting') . ';}';
            }
            if (get_theme_mod('hb_content_h3_setting')) {
                echo 'h3, #respond h3, h3.title-class, .hb-callout-box h3, .hb-gal-standard-description h3 { color: ' . get_theme_mod('hb_content_h3_setting') . '; }';
                echo '#main-wrapper h3.hb-bordered-heading {color: ' . get_theme_mod('hb_content_h3_setting') . '; border-color: ' . get_theme_mod('hb_content_h3_setting') . ';}';
            }
            if (get_theme_mod('hb_content_h4_setting')) {
                echo 'h4, .widget-item h4, .content-box h4, .feature-box h4.bold { color: ' . get_theme_mod('hb_content_h4_setting') . '; }';
                echo '#main-wrapper h4.hb-bordered-heading {color: ' . get_theme_mod('hb_content_h4_setting') . '; border-color: ' . get_theme_mod('hb_content_h4_setting') . ';}';
            }
            if (get_theme_mod('hb_content_h5_setting')) {
                echo 'h5, #comments h5, #respond h5, .testimonial-author h5 { color: ' . get_theme_mod('hb_content_h5_setting') . '; }';
            }
            if (get_theme_mod('hb_content_h6_setting')) {
                echo 'h6, .single-post-tags span, h6.special, .blog-shortcode-1 h6 { color: ' . get_theme_mod('hb_content_h6_setting') . '; }';
            }
        }
        if (hb_options('hb_color_manager_type') == 'hb_color_manager_schemes') {
            if ($color_value == 'business_blue') {
                echo '
					#header-bar { background: #34495e; color: #FFF; color: rgba(255,255,255,0.7); border-bottom: 0 !important;  }
					#header-bar a { color: #FFF; color: rgba(255,255,255,0.7); }
					#header-bar a:hover, #header-bar.style-1 .top-widget .active { color: #FFF !important; }
					#header-bar.style-1 .top-widget .active { color: #FFF !important; }
					#main-wrapper #header-bar .top-widget {border-left-color: rgba(255,255,255,0.15) !important; border-right-color: rgba(255,255,255,0.15) !important; }
					#footer {background: #2c3e50;}
					#copyright-wrapper {background: #34495e;}
					#main-wrapper.hb-boxed-layout,
					#main-wrapper.hb-stretched-layout {background: #FFF;}
					#main-wrapper.hb-boxed-layout #pre-footer-area:after {border-top-color: #FFF;}

					#footer {color: rgba(255,255,255,0.6) !important;}
					#main-wrapper #footer a:hover, #main-wrapper #copyright-wrapper a:hover {color: #FFF !important;}

					#footer .widget_pages ul > li,
					#footer .widget_categories ul > li,
					#footer .widget_archive ul > li, 
					#footer .widget_nav_menu ul > li, 
					#footer .widget_recent_comments ul > li, 
					#footer .widget_meta ul > li, 
					#footer .widget_recent_entries ul > li, 
					#footer .widget_product_categories ul > li, 
					#footer .widget_layered_nav ul li {
						border-top-color: rgba(255,255,255,0.1);
					}

					#footer.dark-style .widget-item h4 {color: #FFF !important;}

				';
            } else {
                if ($color_value == 'dark_elegance') {
                    echo '
					#header-bar { background: #292929; color: #FFF; color: rgba(255,255,255,0.7); border-bottom: solid 1px #333; border-bottom-color: rgba(255,255,255,0.15)  }
					#header-bar a { color: #FFF; color: rgba(255,255,255,0.7); }
					#main-wrapper #header-bar .top-widget {border-left:none !important; border-right: none !important; }

					#header-inner-bg {background: #222; color:#FFF;}
					#main-nav>li>a {color: #FFF !important;}
					#header-inner.stuck #header-inner-bg {background: #222; border-bottom: solid 1px #333;}
					#fancy-search input[type=text] {color: #FFF;}
					#fancy-search ::-webkit-input-placeholder{color:rgba(255,255,255,0.5);}
					#hb-header h1, #hb-header h2, #hb-header h3, #hb-header h4, #hb-header h5, #hb-header h6 {color: #FFF;}
					#header-inner.nav-type-2 #main-nav > li > a { border-left-color: rgba(255,255,255,0.1) !important; border-right-color: rgba(255,255,255,0.1) !important; }
					#header-inner.nav-type-2 .main-navigation { border-top-color: rgba(255,255,255,0.1) !important; }

					.third-skin #main-nav > li > a:hover, #header-inner.stuck .second-skin #main-nav > li > a:hover, .third-skin #main-nav > li.current-menu-item > a, .third-skin #main-nav > li.sfHover > a, .third-skin #main-nav > li.current-menu-ancestor > a {color: ' . $focus_hex_color . ' !important;}
					#main-wrapper #header-inner-bg {border-bottom-color:#333 !important}
				';
                } else {
                    if ($color_value == 'orchyd') {
                        echo '
					#header-bar { background: #6B3078; color: #FFF; color: rgba(255,255,255,0.7); border-bottom: solid 1px #333; border-bottom-color: rgba(255,255,255,0.15)  }
					#header-bar a { color: #FFF; color: rgba(255,255,255,0.7); }
					#main-wrapper #header-bar .top-widget {border-left-color:rgba(255,255,255,0.15) !important; border-right-color: rgba(255,255,255,0.15) !important; }

					#header-inner-bg {background: #6B3078; color:#FFF;}
					#main-nav>li>a {color: #FFF !important;}
					#header-inner.stuck #header-inner-bg {background: #6B3078; border-bottom: solid 1px #6B3078;}
					#fancy-search input[type=text] {color: #FFF;}
					#fancy-search ::-webkit-input-placeholder{color:rgba(255,255,255,0.5);}
					#hb-header h1, #hb-header h2, #hb-header h3, #hb-header h4, #hb-header h5, #hb-header h6 {color: #FFF;}
					#header-inner.nav-type-2 #main-nav > li > a { border-left-color: rgba(255,255,255,0.1) !important; border-right-color: rgba(255,255,255,0.1) !important; }
					#header-inner.nav-type-2 .main-navigation { border-top-color: rgba(255,255,255,0.1) !important; }

					.third-skin #main-nav > li > a:hover, #header-inner.stuck .second-skin #main-nav > li > a:hover, .third-skin #main-nav > li.current-menu-item > a, .third-skin #main-nav > li.sfHover > a, .third-skin #main-nav > li.current-menu-ancestor > a {color: ' . $focus_hex_color . ' !important;}
					#main-wrapper #header-inner-bg {border-bottom-color:#333 !important}
					body #ascrail2000 div {background-color: #A84A78 !important;}
					#main-wrapper { background-color: #f0f0f0 !important; }
					#pre-footer-area:after { border-top-color: #f0f0f0; }
					#hb-page-title.hb-color-background {background-color: #202020 !important;}
				';
                    }
                }
            }
        }
        if (!is_archive() && !is_404() && !is_search() && vp_metabox('misc_settings.hb_special_header_style')) {
            ?>
			#slider-section {
			    margin-top:-81px;
			}

			#header-inner:not(.stuck) #header-inner-bg{
			    background: transparent !important;
			}

			#main-wrapper #header-inner #main-nav > li > a {
			    color: #FFF;
			    font-weight: bold;
			}

			#header-inner:not(.stuck) { border-bottom:none; }
			#header-inner #header-inner-bg { border-bottom-color: rgba(255,255,255,0.15) !important; }

			#main-wrapper #header-inner #fancy-search input[type=text] {
			color: #FFF !important;
			}

			#main-wrapper #header-inner.stuck #header-inner-bg {
				background: #000;
				background: rgba(0,0,0,0.7)!important;
			}

			#main-wrapper #header-inner #fancy-search ::-webkit-input-placeholder { color: rgba(255,255,255,0.5); }

			#close-fancy-search:hover { color: #FFF !important; }

			#main-content .col-12.hb-main-content {
			    margin: 0;
			    padding: 0;
			}
			#slider-section { margin-bottom:-1px; }
			#main-wrapper { margin-bottom: 0px; }
			#main-content { padding-top: 0px !important; }

			#header-inner {
			border-bottom: 0;
			}
			<?php 
        }
        // Custom CSS Code from Theme Options
        $custom_css_code = hb_options('hb_custom_css');
        if ($custom_css_code) {
            echo $custom_css_code;
        }
        ?>
		</style>
		<?php 
    }
Exemplo n.º 15
0
$comments_pagination = paginate_comments_links(array('prev_text' => '<i class="icon-angle-left"></i>', 'next_text' => '<i class="icon-angle-right"></i>', 'echo' => false));
if ($comments_pagination) {
    ?>
      <div class="pagination">
        <?php 
    echo $comments_pagination;
    ?>
      </div>
    <?php 
}
?>

<?php 
if (comments_open()) {
    $required_text = null;
    $additional_text = hb_options('hb_comment_form_text');
    if ($additional_text != '') {
        $additional_text = '<h5 class="aligncenter">' . $additional_text . '</h5>';
    }
    $args = array('id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __('Leave a Reply', 'hbthemes') . $additional_text, 'title_reply_to' => __('Leave a Reply to %s', 'hbthemes') . $additional_text, 'cancel_reply_link' => __('Cancel Reply', 'hbthemes'), 'label_submit' => __('Submit Comment', 'hbthemes'), 'comment_field' => '<p><textarea class="required requiredField" name="comment" id="comment" cols="55" rows="10" tabindex="67"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'hbthemes'), wp_login_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'hbthemes'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'comment_notes_before' => '', 'comment_notes_after' => '<div class="clearfix"></div>', 'fields' => apply_filters('comment_form_default_fields', array('author' => '<div class="form-col"> 
          <input class="required requiredField" type="text" name="author" id="author" placeholder="' . __('Name (Required)', 'hbthemes') . '" size="22" tabindex="64" value="' . esc_attr($commenter['comment_author']) . '"/>
        </div>', 'email' => '<div class="form-col"> 
        <input class="required requiredField email" type="text" name="email" id="email" placeholder="' . __('Email (Required)', 'hbthemes') . '" size="22" tabindex="65" value="' . esc_attr($commenter['comment_author_email']) . '"/>
      </div>', 'url' => '<div class="form-col clear-r-padding"> 
            <input type="text" name="url" id="url" placeholder="' . __('Website', 'hbthemes') . '" size="22" tabindex="66" value="' . esc_attr($commenter['comment_author_url']) . '" />
          </div>')));
    comment_form($args);
}
// if you delete this the sky will fall on your head
function hb_format_comment($comment, $args, $depth)
{
Exemplo n.º 16
0
/**
 * @package WordPress
 * @subpackage Highend
 */
get_header();
?>
<!-- BEGIN #main-content -->
<div id="main-content"<?php 
echo $main_content_style;
?>
>
	<div class="container">
	<?php 
$sidebar_layout = hb_options('hb_page_layout_sidebar');
$sidebar_name = hb_options('hb_choose_sidebar');
?>
		<div class="row <?php 
echo $sidebar_layout;
?>
 main-row">

		<?php 
if (have_posts()) {
    ?>
			<div id="page-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
Exemplo n.º 17
0
?>
"><?php 
the_title();
?>
</a></h3>
			<?php 
$size = sizeof(get_the_terms($post->ID, 'product_cat'));
?>
			<div class="woo-cats"><?php 
echo $product->get_categories(', ', '<span class="hb-woo-shop-cats">' . _n('', '', $size, 'woocommerce') . ' ', '</span>');
?>
</div>
		</div>

		<?php 
if (hb_options('hb_woo_enable_likes')) {
    echo hb_print_likes(get_the_ID());
}
?>

	</div>

	<?php 
/**
 * woocommerce_after_shop_loop_item_title hook
 *
 * @hooked woocommerce_template_loop_rating - 5
 * @hooked woocommerce_template_loop_price - 10
 */
do_action('woocommerce_after_shop_loop_item_title');
?>
Exemplo n.º 18
0
										<!-- BEGIN .float-left -->
										<div class="float-left">
										<?php 
                            echo hb_print_likes(get_the_ID());
                            ?>
										<!--<div class="like-holder like-button" id="like-60" title="Like this project!" >
											<i class="hb-moon-heart"></i>1,235</div><!-->
										</div>
										<!-- END .float-left -->
									<?php 
                        }
                        ?>


									<?php 
                        if (hb_options('hb_portfolio_enable_share')) {
                            ?>
									<!-- BEGIN .float-right -->	
									<div class="float-right">
										<?php 
                            get_template_part('includes/hb', 'share');
                            ?>
									</div>
									<!-- END .float-right -->
									<?php 
                        }
                        ?>

								</div>
								<!-- END .single-shares -->
								<?php 
Exemplo n.º 19
0
    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $username = $instance['username'];
        $skin = $instance['skin'];
        $count = isset($instance['count']) ? (int) $instance['count'] : 1;
        $consumer_key = hb_options('hb_twitter_consumer_key');
        $consumer_secret = hb_options('hb_twitter_consumer_secret');
        $access_token = hb_options('hb_twitter_access_token');
        $access_token_secret = hb_options('hb_twitter_access_token_secret');
        if ($count < 1 || !$count) {
            $count = 1;
        }
        if ($count > 30) {
            $count = 30;
        }
        if ($consumer_key && $consumer_secret && $access_token && $access_token_secret) {
            echo $before_widget;
            if ($title) {
                echo $before_title . $title . $after_title;
            }
            $transName = 'hbthemes_tweets_' . $args['widget_id'];
            $cacheTime = 10;
            delete_transient($transName);
            if (false === ($twitterData = get_transient($transName))) {
                // require the twitter auth class
                @(require_once 'twitteroauth/twitteroauth.php');
                $twitterConnection = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);
                $twitterData = $twitterConnection->get('statuses/user_timeline', array('screen_name' => $username, 'count' => $count, 'exclude_replies' => false));
                if ($twitterConnection->http_code != 200) {
                    $twitterData = get_transient($transName);
                }
                set_transient($transName, $twitterData, 30 * $cacheTime);
            }
            $twitter = get_transient($transName);
            if ($twitter && is_array($twitter)) {
                ?>

					<div id="tweets_<?php 
                echo $args['widget_id'];
                ?>
">
						<ul class="hb-tweet-list <?php 
                echo $skin;
                ?>
">
							<?php 
                foreach ($twitter as $tweet) {
                    ?>
							<li>
								<span class="tweet-text">
								<?php 
                    $latestTweet = $tweet->text;
                    $latestTweet = preg_replace('/http:\\/\\/([a-z0-9_\\.\\-\\+\\&\\!\\#\\~\\/\\,]+)/i', '&nbsp;<a href="http://$1" target="_blank">http://$1</a>&nbsp;', $latestTweet);
                    $latestTweet = preg_replace('/@([a-z0-9_]+)/i', '&nbsp;<a href="http://twitter.com/$1" target="_blank">@$1</a>&nbsp;', $latestTweet);
                    echo $latestTweet;
                    ?>
								</span>
								<?php 
                    $twitterTime = strtotime($tweet->created_at);
                    $timeAgo = hb_time_ago($twitterTime);
                    ?>
							</li>
							<span class="tweet-time"><a href="http://twitter.com/<?php 
                    echo $tweet->user->screen_name;
                    ?>
/statuses/<?php 
                    echo $tweet->id_str;
                    ?>
"><i class="hb-moon-twitter"></i><?php 
                    echo $timeAgo;
                    ?>
</a></span>
							<?php 
                }
                ?>
						</ul>
					</div>

					<p><?php 
                _e('Follow ', 'hbthemes');
                ?>
<a href="http://twitter.com/<?php 
                echo $tweet->user->screen_name;
                ?>
" target="_blank">@<?php 
                echo $tweet->user->screen_name;
                ?>
</a></p>
		<?php 
                echo $after_widget;
            }
        } else {
            echo '<p>' . __('[Twitter Widget Error] You need to authenticate your Twitter App first. Go to Highend Options > Social Links. <a href="http://documentation.hb-themes.com/highend/#twitter">Read the documentation</a> to find out more.', 'hbthemes') . '</p>';
        }
    }
Exemplo n.º 20
0
if (hb_options('hb_share_reddit')) {
    ?>
			<li><a class="reddit-share" onclick="popWindow('http://reddit.com/submit?url=<?php 
    the_permalink();
    ?>
&amp;title=<?php 
    the_title();
    ?>
','Reddit','500','400')" title="Reddit" rel="tooltip" data-placement="right"><i class="hb-moon-reddit"></i></a>
			</li>
			<?php 
}
?>

			<?php 
if (hb_options('hb_share_email')) {
    ?>
			<li><a class="email-share" href="mailto:?subject=<?php 
    echo get_bloginfo('title') . ' - ';
    the_title();
    ?>
&amp;body=<?php 
    the_permalink();
    ?>
" target="_blank" title="Email" rel="tooltip" data-placement="right"><i class="hb-moon-envelop"></i></a></li>
			<?php 
}
?>
		</ul>

	</div>
Exemplo n.º 21
0
?>

    </div>
    <!-- END .container or .container-wide -->

</div>
<!-- END #header-bar -->

<div id="header-dropdown">
    <div id="contact-map" data-map-level="<?php 
echo hb_options('hb_map_zoom');
?>
" data-map-lat="<?php 
echo hb_options('hb_map_latitude');
?>
" data-map-lng="<?php 
echo hb_options('hb_map_longitude');
?>
" data-map-img="<?php 
echo hb_options('hb_custom_marker_image');
?>
" data-overlay-color="<?php 
if (hb_options('hb_enable_map_color')) {
    echo hb_options('hb_map_focus_color');
} else {
    echo 'none';
}
?>
"></div>
    <div class="close-map"><i class="hb-moon-close-2"></i></div>
</div>
Exemplo n.º 22
0
function hb_map_embed_shortcode($params = array(), $content = null)
{
    extract(shortcode_atts(array('latitude' => '48.856614', 'longitude' => '2.352222', 'zoom' => '16', 'custom_pin' => '', 'height' => '350', 'styled' => 'yes', 'border' => '', 'animation' => '', 'animation_delay' => '', 'class' => ''), $params));
    $classes = "map-wrapper shadow";
    if ($border == "yes") {
        $classes .= " bordered-wrapper";
    }
    if ($animation != '') {
        $animation = ' hb-animate-element ' . $animation;
    }
    if ($custom_pin == "") {
        $custom_pin = hb_options('hb_custom_marker_image');
    } else {
        if (is_numeric($custom_pin)) {
            $custom_pin = wp_get_attachment_image_src($custom_pin, 'full');
            $custom_pin = $custom_pin[0];
        }
    }
    if ($animation_delay != '') {
        // Remove ms or s, if entered in the attribute
        if (substr($height, -2) == 'ms') {
            $animation_delay = substr($height, 0, -2);
        }
        if (substr($height, -1) == 's') {
            $animation_delay = substr($height, 0, -1);
        }
        $animation_delay = ' data-delay="' . $animation_delay . '"';
    }
    $style = "";
    if ($height != "") {
        $style = ' style="height:' . $height . 'px;"';
    }
    $output = '<div class="shortcode-wrapper shortcode-map-embed clearfix' . $class . $animation . '"' . $animation_delay . '>';
    $output .= '<div class="' . $classes . '">';
    $output .= '<div class="hb-gmap-map" data-show-location="0" data-map-level="' . $zoom . '" data-map-lat="' . $latitude . '" data-map-lng="' . $longitude . '" data-map-img="' . $custom_pin . '" data-overlay-color="';
    if (hb_options('hb_enable_map_color') && $styled != 'no') {
        $output .= '#ff6838';
    } else {
        $output .= 'none';
    }
    $output .= '"' . $style . '></div>';
    $output .= '</div>';
    $output .= '</div>';
    return $output;
}
Exemplo n.º 23
0
echo ' ' . hb_options('hb_boxed_layout_type');
echo $hb_logo_alignment;
echo ' ' . $hb_shadow_class;
echo $hb_logo_alignment;
echo ' ' . $hb_content_width;
echo $sticky_shop_button . $hb_resp;
echo ' ' . hb_options('hb_header_layout_style');
?>
">

		<?php 
$additional_class = "";
if (hb_options('hb_header_layout_style') == "nav-type-1 nav-type-4") {
    $additional_class .= "special-header";
}
if (!hb_options('hb_top_header_bar')) {
    $additional_class .= " without-top-bar";
}
?>

		<?php 
if (!is_page_template('page-blank.php')) {
    ?>
		<!-- BEGIN #hb-header -->
		<header id="hb-header" class="<?php 
    echo $additional_class;
    ?>
">

			<?php 
    get_template_part('includes/header', 'top-bar');
Exemplo n.º 24
0
    function widget($args, $instance)
    {
        extract($args);
        global $wp_query;
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $large_icons = $instance['large_icons'];
        $icon_style = $instance['icon_style'];
        /* Before widget (defined by themes). */
        echo $before_widget;
        /* Display the widget title if one was input (before and after defined by themes). */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>

		<ul class="social-icons <?php 
        echo $icon_style;
        ?>
 <?php 
        echo $large_icons;
        ?>
 clearfix">
            <?php 
        $hb_socials = hb_options('hb_top_header_socials');
        if (!empty($hb_socials)) {
            foreach ($hb_socials as $hb_social) {
                if ($hb_social == 'custom-url') {
                    $hb_social_n = 'link-5';
                } else {
                    $hb_social_n = $hb_social;
                }
                ?>
                    <li class="<?php 
                echo $hb_social;
                ?>
">
                        <a href="<?php 
                echo hb_options('hb_' . $hb_social . '_link');
                ?>
" original-title="<?php 
                echo ucfirst($hb_social);
                ?>
">
                        	<i class="hb-moon-<?php 
                echo $hb_social_n;
                ?>
"></i>
                        	<i class="hb-moon-<?php 
                echo $hb_social_n;
                ?>
"></i>
                        </a> 
                    </li>
                    <?php 
            }
        }
        ?>
        
		</ul>

		<?php 
        echo $after_widget;
    }
Exemplo n.º 25
0
					<?php 
            hb_pagination_standard();
            ?>

				</div>
				<?php 
        }
        wp_reset_query();
        ?>

			</div>
			<!-- END .row-special -->

			<?php 
        if (comments_open() && hb_options('hb_disable_page_comments')) {
            comments_template();
        }
        ?>

			</div>
			<!-- END .hb-main-content -->

			<?php 
        if ($sidebar_layout != 'fullwidth') {
            ?>
			<!-- BEGIN .hb-sidebar -->
			<div class="col-3  hb-equal-col-height hb-sidebar">
				<?php 
            if ($sidebar_name && function_exists('dynamic_sidebar')) {
                dynamic_sidebar($sidebar_name);
Exemplo n.º 26
0
    if (has_nav_menu('footer-menu')) {
        wp_nav_menu(array('theme_location' => 'footer-menu', 'container_id' => 'footer-menu', 'container_class' => 'clearfix', 'menu_id' => 'footer-nav', 'menu_class' => '', 'walker' => new hb_custom_walker()));
    }
    ?>

	</div> 
	<!-- END .container -->

</div>
<!-- END #copyright-wrapper -->
<?php 
}
?>

<?php 
if (is_singular('post') && hb_options('hb_blog_enable_next_prev') || is_singular('portfolio') && hb_options('hb_portfolio_enable_next_prev') || is_singular('team') && hb_options('hb_staff_enable_next_prev')) {
    ?>
	<nav class="hb-single-next-prev">
	<?php 
    $prev_post = get_previous_post();
    $next_post = get_next_post();
    ?>
	
	<?php 
    if (!empty($prev_post)) {
        ?>
	<a href="<?php 
        echo get_permalink($prev_post->ID);
        ?>
" title="<?php 
        echo $prev_post->post_title;
Exemplo n.º 27
0
Arquivo: meta.php Projeto: phupx/genco
?>

	<div class="bottom-meta-section hb-woo-meta">
	<?php 
if (hb_options('hb_woo_enable_likes')) {
    ?>
	<div class="float-right">	
		<?php 
    echo hb_print_likes(get_the_ID());
    ?>
	</div>
	<?php 
}
?>

	<?php 
if (hb_options('hb_woo_enable_share')) {
    ?>
	<div class="float-right">
		<div class="hb-woo-like-share">
			<?php 
    get_template_part('includes/hb', 'share');
    ?>
		</div>
	</div>
	<?php 
}
?>
	</div>

</div>
Exemplo n.º 28
0
$hb_gmap = null;
// Check if options are ok
$hb_gmap = array();
$hb_gmap[1]['lat'] = hb_options('hb_map_1_latitude');
$hb_gmap[1]['lng'] = hb_options('hb_map_1_longitude');
$hb_gmap[1]['ibx'] = hb_options('hb_location_1_info');
$count = 1;
for ($i = 2; $i <= 5; $i++) {
    if (hb_options('hb_enable_location_' . $i)) {
        $count++;
        $hb_gmap[$count]['lat'] = hb_options('hb_map_' . $i . '_latitude');
        $hb_gmap[$count]['lng'] = hb_options('hb_map_' . $i . '_longitude');
        $hb_gmap[$count]['ibx'] = hb_options('hb_location_' . $i . '_info');
    }
}
function json_hb_map()
{
    global $hb_gmap;
    return $hb_gmap;
}
wp_localize_script('hb_map', 'hb_gmap', json_hb_map());
$data_map_img = 'data-map-img=""';
if (hb_options('hb_enable_custom_pin')) {
    $data_map_img = ' data-map-img="' . hb_options('hb_custom_marker_image') . '"';
}
?>
	



Exemplo n.º 29
0
					</a>
				</span>
				<span class="text-sep">|</span>
				<?php 
}
?>
			</div>
			<!-- END .post-meta-info -->

		</div>
		<p class="hb-post-excerpt clearfix">
			<?php 
if (has_excerpt()) {
    echo get_the_excerpt();
} else {
    echo wp_trim_words(strip_shortcodes(get_the_content()), hb_options('hb_blog_excerpt_length'), '...');
}
?>
			<br/>
			<a href="<?php 
the_permalink();
?>
" class="read-more"><?php 
_e('Read More', 'hbthemes');
?>
</a>				
		</p>
	</div>
	<!-- END .post-inner -->

</div>
Exemplo n.º 30
0
        ?>
				<div class="col-9 hb-equal-col-height hb-main-content">
			<?php 
    } else {
        ?>
				<div class="col-12 hb-main-content">
			<?php 
    }
    ?>

			<?php 
    $portfolio_filter = hb_options('hb_portfolio_taxonomy_filter');
    $portfolio_sorter = hb_options('hb_portfolio_taxonomy_sorter');
    $portfolio_orientation = hb_options('hb_portfolio_taxonomy_orientation');
    $portfolio_ratio = hb_options('hb_portfolio_taxonomy_ratio');
    $portfolio_columns_count = hb_options('hb_portfolio_taxonomy_columns');
    if (!$portfolio_columns_count) {
        $portfolio_columns_count = 3;
    }
    $image_dimensions = get_image_dimensions($portfolio_orientation, $portfolio_ratio, 1000);
    ?>
			
			<!-- BEGIN .row-special -->
			<div class="row row-special" id="standard-gallery-wrapper" data-enable-filter="<?php 
    if ($portfolio_filter) {
        echo '1';
    } else {
        echo '0';
    }
    ?>
" data-enable-sort="<?php