This repository was archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate-meta.php
More file actions
executable file
·26 lines (25 loc) · 2.04 KB
/
template-meta.php
File metadata and controls
executable file
·26 lines (25 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* The template for displaying post meta
*/
?>
<div class="meta-wrap">
<ul class="meta">
<li><?php _e( 'Posted In:', 'north' ); ?> <?php the_category(', '); ?></li>
<?php
$posttags = get_the_tags();
if ($posttags) { ?>
<li><?php _e( 'Tags:', 'north' ); ?> <?php the_tags( '', ', ', '' ); ?></li>
<?php } ?>
</ul>
<ul class="share">
<li>
<a class="share-toggle" href="#"><?php _e( 'Share Post', 'north' ); ?></a>
<ul class="share-list">
<li class="share-twitter"><a onclick="window.open('http://twitter.com/home?status=<?php the_title_attribute(); ?> - <?php the_permalink(); ?>','twitter','width=450,height=300,left='+(screen.availWidth/2-375)+',top='+(screen.availHeight/2-150)+'');return false;" href="http://twitter.com/home?status=<?php the_title_attribute(); ?> - <?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" target="blank"><span><?php _e( 'Twitter', 'north' ); ?></span> <i class="fa fa-twitter-square"></i></a></li>
<li class="share-facebook"><a onclick="window.open('http://www.facebook.com/share.php?u=<?php the_permalink(); ?>','facebook','width=450,height=300,left='+(screen.availWidth/2-375)+',top='+(screen.availHeight/2-150)+'');return false;" href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" target="blank"><span><?php _e( 'Facebook', 'north' ); ?></span> <i class="fa fa-facebook-square"></i></a></li>
<li class="share-google"><a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="window.open('https://plus.google.com/share?url=<?php the_permalink(); ?>','gplusshare','width=450,height=300,left='+(screen.availWidth/2-375)+',top='+(screen.availHeight/2-150)+'');return false;"><span><?php _e( 'Google', 'north' ); ?></span> <i class="fa fa-google-plus-square"></i></a></li>
</ul>
</li>
</ul><!-- share -->
</div><!-- meta wrap -->