forked from sveinbjornt/lemur2013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-header.php
31 lines (24 loc) · 1.03 KB
/
post-header.php
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
<h2>
<a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a>
</h2>
<div class="post-meta grid">
<div class="col <?php echo (is_single() or is_user_logged_in()) ? "s2of3" : "s3of3"; ?> author-box">
eftir
<a class="author" href="<?php $id = get_the_author_meta('ID'); echo get_author_posts_url($id); ?>" title="Greinar eftir <?php the_author_meta( 'name2' ); ?>">
<?php the_author_meta('name2'); ?>
</a>
<span class="post-date">
♦ <?php the_time(__('j. F, Y')) ?>
</span>
</div>
<?php if (is_single() or is_user_logged_in()): ?>
<div class="col s1of3 facebook-like">
<div class="fb-like" data-action="like" data-href="<?php the_permalink() ?>" data-send="false" data-width="60" data-show-faces="false" data-colorscheme="<?php if ( in_category(26) ) { echo 'dark'; } else { echo 'light'; } ?>" data-layout="button_count"></div>
</div>
<?php endif; ?>
</div>
<div class="featured-image">
<?php get_template_part('featured-image'); ?>
</div>