function review_quickview()
{
    global $product, $options, $post;
    /*$rating_count = $product->get_rating_count();
    	
    	if(!empty($rating_count)) {
    	
    		echo '<div class="review_num">'.sprintf( _n('%s review %s', '%s reviews %s', $rating_count, 'woocommerce'), '<span itemprop="ratingCount" class="count">'. $rating_count .'</span>', '' ).'</div>';
    		echo '<div class="quick_rating">';
    		woocommerce_get_template( 'loop/rating.php' );
    		echo '</div>';
    		 
    	} */
    ?>
		
		<div id="single-meta" data-sharing="<?php 
    echo !empty($options['woo_social']) && $options['woo_social'] == 1 ? '1' : '0';
    ?>
">

			<?php 
    // portfolio social sharting icons
    if (!empty($options['woo_social']) && $options['woo_social'] == 1) {
        echo '<div class="nectar-social woo">';
        //facebook
        if (!empty($options['woo-facebook-sharing']) && $options['woo-facebook-sharing'] == 1) {
            echo "<a class='facebook-share nectar-sharing' href='#' title='Share this'> <i class='icon-facebook'></i> <span class='count'></span></a>";
        }
        //twitter
        if (!empty($options['woo-twitter-sharing']) && $options['woo-twitter-sharing'] == 1) {
            echo "<a class='twitter-share nectar-sharing' href='#' title='Tweet this'> <i class='icon-twitter'></i> <span class='count'></span></a>";
        }
        //google plus
        if (!empty($options['woo-google-plus-sharing']) && $options['woo-google-plus-sharing'] == 1) {
            echo "<a class='google-plus-share nectar-sharing-alt' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-google-plus'></i> <span class='count'> " . GetGooglePlusShares(get_permalink($post->ID)) . " </span></a>";
        }
        //linkedIn
        if (!empty($options['woo-linkedin-sharing']) && $options['woo-linkedin-sharing'] == 1) {
            echo "<a class='linkedin-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-linkedin'></i> <span class='count'> </span></a>";
        }
        //pinterest
        if (!empty($options['woo-pinterest-sharing']) && $options['woo-pinterest-sharing'] == 1) {
            echo "<a class='pinterest-share nectar-sharing' href='#' title='Pin this'> <i class='icon-pinterest'></i> <span class='count'></span></a>";
        }
        echo '</div>';
    }
    ?>
 
		
		</div> 
<?php 
}
Beispiel #2
0
								<?php 
            // portfolio social sharting icons
            if (!empty($options['portfolio_social']) && $options['portfolio_social'] == 1) {
                echo '<div class="nectar-social sharing">';
                echo '<span class="n-shortcode">' . nectar_love('return') . '</span>';
                //facebook
                if (!empty($options['portfolio-facebook-sharing']) && $options['portfolio-facebook-sharing'] == 1) {
                    echo "<a class='facebook-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-facebook'></i> <span class='count'></span></a>";
                }
                //twitter
                if (!empty($options['portfolio-twitter-sharing']) && $options['portfolio-twitter-sharing'] == 1) {
                    echo "<a class='twitter-share nectar-sharing' href='#' title='" . __('Tweet this', NECTAR_THEME_NAME) . "'> <i class='icon-twitter'></i> <span class='count'></span></a>";
                }
                //google plus
                if (!empty($options['portfolio-google-plus-sharing']) && $options['portfolio-google-plus-sharing'] == 1) {
                    echo "<a class='google-plus-share nectar-sharing-alt' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-google-plus'></i> <span class='count'> " . GetGooglePlusShares(get_permalink($post->ID)) . " </span></a>";
                }
                //linkedIn
                if (!empty($options['portfolio-linkedin-sharing']) && $options['portfolio-linkedin-sharing'] == 1) {
                    echo "<a class='linkedin-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-linkedin'></i> <span class='count'> </span></a>";
                }
                //pinterest
                if (!empty($options['portfolio-pinterest-sharing']) && $options['portfolio-pinterest-sharing'] == 1) {
                    echo "<a class='pinterest-share nectar-sharing' href='#' title='" . __('Pin this', NECTAR_THEME_NAME) . "'> <i class='icon-pinterest'></i> <span class='count'></span></a>";
                }
                echo '</div>';
            }
            ?>
								
								<div class="clear"></div>
							</div><!--project-meta-->
function nectar_social_buttons($atts, $content = null)
{
    extract(shortcode_atts(array("full_width_icons" => "", "hide_share_count" => "", "nectar_love" => 'false', "facebook" => 'false', "twitter" => 'false', "google_plus" => 'false', "linkedin" => 'false', "nectar-love" => 'false', "pinterest" => 'false'), $atts));
    $fw_class = $full_width_icons == 'true' ? ' full-width' : null;
    $hide_share_count_class = $hide_share_count == 'true' ? ' hide-share-count' : null;
    $fw_items = 0;
    if ($nectar_love == 'true') {
        $fw_items += 1;
    }
    if ($facebook == 'true') {
        $fw_items += 1;
    }
    if ($twitter == 'true') {
        $fw_items += 1;
    }
    if ($google_plus == 'true') {
        $fw_items += 1;
    }
    if ($linkedin == 'true') {
        $fw_items += 1;
    }
    if ($pinterest == 'true') {
        $fw_items += 1;
    }
    global $post;
    $buttons = '<div class="nectar-social ' . $hide_share_count_class . $fw_class . ' items_' . $fw_items . '">';
    if ($nectar_love == 'true') {
        $buttons .= '<span class="n-shortcode">' . nectar_love('return') . '</span>';
    }
    if ($facebook == 'true') {
        $buttons .= "<a class='facebook-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-facebook'></i> <span class='count'></span></a>";
    }
    if ($twitter == 'true') {
        $buttons .= "<a class='twitter-share nectar-sharing' href='#' title='" . __('Tweet this', NECTAR_THEME_NAME) . "'> <i class='icon-twitter'></i> <span class='count'></span></a>";
    }
    if ($google_plus == 'true') {
        $buttons .= "<a class='google-plus-share nectar-sharing-alt' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-google-plus'></i> <span class='count'> " . GetGooglePlusShares(get_permalink($post->ID)) . " </span></a>";
    }
    if ($linkedin == 'true') {
        $buttons .= "<a class='linkedin-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-linkedin'></i> <span class='count'></span></a>";
    }
    if ($pinterest == 'true') {
        $buttons .= "<a class='pinterest-share nectar-sharing' href='#' title='" . __('Pin this', NECTAR_THEME_NAME) . "'> <i class='icon-pinterest'></i> <span class='count'></span></a>";
    }
    $buttons .= '</div>';
    return $buttons;
}