-
-
Save russianryebread/8128553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Support for Twitter's New API --> | |
<div id="comments"> | |
<a class="twitter-timeline" width="100%" height="300" href="https://twitter.com/search?q=<?php echo urlencode($post_link) ?>" data-widget-id="NEW_TWITTER_WIDGET_ID" data-chrome="transparent noborders">Comments:</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article class="single"> | |
<div class="row"> | |
<div class="one-quarter meta"> | |
<div class="thumbnail"> | |
<img src="<?php echo $post_image ?>" alt="<?php echo $post_title ?>" /> | |
</div> | |
<ul> | |
<li>Written by <?php echo $author ?></li> | |
<li><?php echo $published_date ?></li> | |
<li>About <?php echo $post_category ?></li> | |
<li></li> | |
</ul> | |
</div> | |
<div class="three-quarters post"> | |
<?php echo $post ?> | |
<ul class="actions"> | |
<li><a class="button" href="https://twitter.com/intent/tweet?screen_name=<?php echo $twitter ?>&text=Re:%20<?php echo $post_link ?>%20" data-dnt="true">Comment on Twitter</a></li> | |
<li><a class="button" href="https://twitter.com/intent/tweet?text="<?php echo $post_title ?>"%20<?php echo $post_link ?>%20via%20@<?php echo $twitter ?>" data-dnt="true">Share on Twitter</a></li> | |
<li><a class="button" href="<?php echo $site_url ?>">More Articles</a></li> | |
</ul> | |
<?php | |
/* do twitter comments stuff */ | |
include('comments.php'); | |
?> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | |
</div> | |
</div> | |
</article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment