/**
     * How to display the widget on the screen.
     */
    function widget($args, $instance)
    {
        extract($args);
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', $instance['title']);
        /* 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;
        }
        ?>
	
		<?php 
        rehub_get_social_links('big');
        ?>
	
	<?php 
        /* After widget (defined by themes). */
        echo $after_widget;
    }
示例#2
0
    ?>
      <div class="top-social"> 
        <?php 
    if (rehub_option('rehub_header_style') != 'header_first') {
        ?>
<div class="search top_search responsive_search"><?php 
        get_search_form();
        ?>
</div><?php 
    }
    ?>
			    <?php 
    if (rehub_option('rehub_header_social')) {
        ?>
          	<?php 
        rehub_get_social_links('small');
        ?>
  
        	<?php 
    }
    ?>
        
          <?php 
    global $woocommerce;
    ?>
          <?php 
    if ($woocommerce && rehub_option('exclude_cart_header') != '1') {
        ?>
<a class="cart-contents cart_count_<?php 
        echo $woocommerce->cart->cart_contents_count;
        ?>