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
·40 lines (34 loc) · 1.91 KB
/
template-meta.php
File metadata and controls
executable file
·40 lines (34 loc) · 1.91 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Template for the post meta, which includes share links, tags and categories.
*
* @package Author
* @since Author 1.0
*/
?>
<div class="bar">
<div class="bar-frame clearfix">
<div class="share">
<!-- google plus -->
<a class="share-google" 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;"><i class="fa fa-google-plus-square"></i></a>
<!-- facebook -->
<a class="share-facebook" 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"><i class="fa fa-facebook-square"></i></a>
<!-- twitter -->
<a class="share-twitter" onclick="window.open('http://twitter.com/home?status=<?php the_title(); ?> - <?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(); ?> - <?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" target="blank"><i class="fa fa-twitter-square"></i></a>
</div><!-- share -->
<?php if( is_page() ) {} else { ?>
<div class="bar-categories">
<?php if ( has_category() ) { ?>
<div class="categories">
<i class="fa fa-list-ul"></i>
<?php the_category(', '); ?>
</div>
<?php } ?>
<?php the_tags('<div class="tags">
<i class="fa fa-tag"></i>
',', ','
</div>'); ?>
</div><!-- bar categories -->
<?php } ?>
</div><!-- bar frame -->
</div><!-- bar -->