|
<?php $page = $this->getPage() ?> |
|
<?php if ($page): ?> |
|
<?php $helper = $this->helper('wordpress') ?> |
|
<?php $author = $page->getAuthor() ?> |
|
|
|
<div class="wp-logo-print"><img src="logo-image.png" width="292" |
|
height="164"> <!-- Logo image --> |
|
<span>www.your-company.com</span> <!-- Your domain --> |
|
</div> |
|
<div class="page-title"> |
|
<h1><?php echo $this->escapeHtml($page->getPostTitle()) ?></h1> |
|
</div> |
|
|
|
<?php |
|
$currentUrl = Mage::helper('core/url')->getCurrentUrl(); |
|
$url = Mage::getSingleton('core/url')->parseUrl($currentUrl); |
|
$path = $url->getPath(); |
|
$featuredImage = $page->getFeaturedImage()->getFullSizeImage(); |
|
?> |
|
|
|
<!--<h3 style="color: red"><?php echo $currentUrl;?></h3>--> |
|
|
|
<div class="wp-social-buttons"> |
|
<!--Facebook--> |
|
<a href="javascript:popWin('https://www.facebook.com/sharer/sharer.php?u=<?php echo $currentUrl; ?>&t=<?php echo $this->escapeHtml($page->getPostTitle()) ?>', |
|
'facebook', 'width=640,height=480,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes');" |
|
title="<?php echo $this->__('Share on Facebook') ?>"><img src="image-for-facebook.jpg" |
|
width="40" height="40" ></a> |
|
|
|
<!--Google Plus--> |
|
<a href="javascript:popWin('https://plus.google.com/share?url=<?php echo $currentUrl; ?>', 'google', |
|
'width=640,height=480,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes');" |
|
title="<?php echo $this->__('Share on Google Plus') ?>"><img src="image-for-google-plus.gif" |
|
width="40" height="40" ></a> |
|
|
|
|
|
<!--Twitter--> |
|
<a href="javascript:popWin('http://twitter.com/home/?status=<?php echo $this->escapeHtml($page->getPostTitle()) . ' (' . $currentUrl . ')'; ?>', 'twitter', |
|
'width=640,height=480,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes');" |
|
title="<?php echo $this->__('Tweet') ?>"><img src="image-for-twitter.gif" |
|
width="40" height="40" ></a> |
|
|
|
<!--Pinterest--> |
|
<a href="javascript:popWin('https://pinterest.com/pin/create/button/?url=<?php echo $currentUrl; ?>&media=<?php echo $featuredImage; ?>&description=<?php echo $this->escapeHtml($page->getPostTitle()) ?>', |
|
'pinterest', 'width=640,height=480,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes');" title="<?php echo $this->__('Pin it') ?>"> |
|
<img src="image-for-pinterest.gif" |
|
width="40" height="40" ></a> |
|
|
|
|
|
<!--Email This --> |
|
<!-- |
|
<a href="mailto:email@emailaddres.com?subject=<?php echo $this->escapeHtml($page->getPostTitle()) . 'article from Your Company' ?>&body=<?php echo $currentUrl; ?>">Email This</a> |
|
|
|
-OR- |
|
--> |
|
<!--Email This (This is what I am currently using!)--> |
|
<a href="mailto:?subject=<?php echo $this->escapeHtml($page->getPostTitle()) . ' article from Your Company' ?>&body=<?php echo $currentUrl; ?> " title="Email This" |
|
target="_blank"><img src="image-for-email.gif" width="40" height="40" ></a> |
|
|
|
<!--Print This--> |
|
<a href="javascript:window.print()" title="Print This"><img src="image-for-printer.jpg" |
|
width="40" height="40" ></a> |
|
|
|
</div> |