-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathsingle-post.php
More file actions
60 lines (42 loc) · 2.44 KB
/
single-post.php
File metadata and controls
60 lines (42 loc) · 2.44 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div <?php post_class('post clear single'); ?> id="post_<?php the_ID(); ?>">
<h2>
<a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a>
</h2>
<div class="post-meta grid">
<div class="col s2of3">
<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' ); ?>">
eftir
<?php the_author_meta('name2'); $c = get_post_meta($post->id, "geotag_country", true); echo $c; ?>
</a>
<span class="post-date">
♦ <?php the_time(__('j. F, Y')) ?>
</span>
</div>
<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>
</div>
<div class="featured-image">
<?php get_template_part('featured-image'); ?>
</div>
<div class="post-content">
<?php the_content(); ?>
</div>
<div class="post-footer">
<div class="flokkar">
<?php the_tags(__('<strong>Flokkar: </strong>'), ', '); ?>
</div>
<div class="fb-like" data-href="<?php the_permalink() ?>" data-send="false" data-action="like" data-width="670" data-show-faces="false" data-colorscheme="<?php if ( in_category(26) ) { echo 'dark'; } else { echo 'light'; } ?>" data-layout="standard"></div>
<div class="comments">
<div class="fb-comments" data-href="<?php the_permalink(); ?>" style="width: 100%;" data-width="670" data-num-posts="10" data-colorscheme="<?php if ( in_category(26) ) { echo 'dark'; } else { echo 'light'; } ?>"></div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>