Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<?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></span> <!-- Your domain -->
<div class="page-title">
<h1><?php echo $this->escapeHtml($page->getPostTitle()) ?></h1>
$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">
<a href="javascript:popWin('<?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('<?php echo $currentUrl; ?>', 'google',
title="<?php echo $this->__('Share on Google Plus') ?>"><img src="image-for-google-plus.gif"
width="40" height="40" ></a>
<a href="javascript:popWin('<?php echo $this->escapeHtml($page->getPostTitle()) . ' (' . $currentUrl . ')'; ?>', 'twitter',
title="<?php echo $this->__('Tweet') ?>"><img src="image-for-twitter.gif"
width="40" height="40" ></a>
<a href="javascript:popWin('<?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="<?php echo $this->escapeHtml($page->getPostTitle()) . 'article from Your Company' ?>&body=<?php echo $currentUrl; ?>">Email This</a>
<!--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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment