<?php
$product = $viewData['product'];
$ItemidStr = '';
$Itemid = shopFunctionsF::getLastVisitedItemId();
if(!empty($Itemid)){
    $ItemidStr = '&Itemid='.$Itemid;
}
$productModel = VmModel::getModel('product');
$pr_images = $productModel->getProduct($product->virtuemart_product_id,TRUE,TRUE,TRUE,1);
$productModel->addImages($pr_images);
$image_url = JUri::root() . $pr_images->images[0]->file_url;
$share_img = urlencode($image_url);
$share_url = JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' .
    $product->virtuemart_category_id);
?>
<div class="ob-share-product">
    <ul class="share_show">
        <li>
            <a target="_blank" class="facebook" href="https://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $product->product_name; ?>&amp;p[url]=<?php echo $share_url ?>" title="Facebook">
                <i class="fa fa-facebook"></i>
            </a>
        </li>
        <li>
            <a target="_blank" class="twitter-share-button" href="https://twitter.com/intent/tweet?text=<?php echo $product->product_name; ?>&amp;url=<?php echo $share_url ?>" data-count="none">
                <i class="fa fa-twitter"></i>
            </a>
        </li>
        <li>
            <a target="_blank" class="google" href="https://plus.google.com/share?url=<?php echo $product->product_name; ?>" title="Google Plus" />
                <i class="fa fa-google"></i>
            </a>
        </li>
    </ul>
</div>