Version 2.0 (Share Buttons; Article Pages; config file; disqus)
This commit is contained in:
parent
836098e2db
commit
2af426028b
12 changed files with 952 additions and 27 deletions
14
res/SocialBar.php
Normal file
14
res/SocialBar.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!-- The following code displays the social buttons -->
|
||||
|
||||
<?php
|
||||
$url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
||||
?>
|
||||
|
||||
<div class="socialbar">
|
||||
<!--Twitter-->
|
||||
<a href="https://twitter.com/intent/tweet?text=Check out: <?php echo $post->title; ?> &url=<?php echo $url; ?>&original_referer=" target="blank"><img src="res/twttr.svg" class="socialimg"/></a>
|
||||
<!--Google+-->
|
||||
<a href="https://plus.google.com/share?url=<?php echo $url; ?>&hl=en-US" target="blank"><img src="res/gplus.svg" class="socialimg" /></a>
|
||||
<!--Facebook-->
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>&t=<?php echo $post->title; ?>" target="blank"><img src="res/fb.png" class="socialimg" /></a>
|
||||
</div>
|
Reference in a new issue