コード例 #1
0
function laborator_woocommerce_share()
{
    global $product;
    ?>
	<div class="share-product-container">
		<h3><?php 
    _e('Share this item:', 'kalium');
    ?>
</h3>
		
		<div class="share-product social-links">
		<?php 
    $share_product_networks = get_data('shop_share_product_networks');
    if (is_array($share_product_networks)) {
        foreach ($share_product_networks['visible'] as $network_id => $network) {
            if ($network_id == 'placebo') {
                continue;
            }
            share_story_network_link($network_id, $product->id, '', true);
        }
    }
    ?>
		</div>
	</div>
	<?php 
}
コード例 #2
0
        the_ID();
        ?>
">
				<i class="icon fa fa-heart<?php 
        echo $likes['liked'] ? '' : '-o';
        ?>
"></i>
				<span class="like-count"><?php 
        echo esc_html($likes['count']);
        ?>
</span>
			</a>
			<?php 
    }
    ?>

			<?php 
    if ($portfolio_share_item) {
        foreach ($portfolio_share_item_networks['visible'] as $network_id => $network) {
            if ($network_id == 'placebo') {
                continue;
            }
            share_story_network_link($network_id, $id, 'social-share-icon', true);
        }
    }
    ?>
		</div>

	</div>
	<?php 
}
コード例 #3
0
 *	Laborator.co
 *	www.laborator.co
 */
global $blog_share_story, $share_story_networks;
if (!get_data('blog_share_story')) {
    return;
}
$rounded_social_icons = get_data('blog_share_story_rounded_icons');
?>
<div class="col-xs-12">
	<div class="share-holder">
	    <h4><?php 
_e('Share:', 'kalium');
?>
</h4>

	    <div class="social-links<?php 
echo $rounded_social_icons ? ' rounded-share-icons' : '';
?>
">
	    <?php 
foreach ($share_story_networks['visible'] as $network_id => $network) {
    if ($network_id == 'placebo') {
        continue;
    }
    share_story_network_link($network_id, $id, '', $rounded_social_icons);
}
?>
	    </div>
	</div>
</div>