-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
executable file
·89 lines (81 loc) · 2.9 KB
/
single.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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage kvarteret
* @since Kvarteret 1.0
*/
get_header(); ?>
<div id="content" role="main">
<?php
if ( has_post_thumbnail() ) {
?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('full-thumbnail'); ?>
</a>
<h1 class="article-title"><?php the_title(); ?></h1>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="article_meta_header">
<?php echo the_date(); ?> -
av <?php
$custom_author = get_post_meta($post->ID, "article_author", true);
$curauth = get_the_author();
if ( $custom_author ) {
echo $custom_author;
}
else {
echo $curauth;
}
?>
</div>
<div id="left_content">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
</div>
</div>
<div id="standard_right_menu" class="widget-area">
<!--Publisert <?php echo the_date(); ?> <br />
Skrevet av <?php
$custom_author = get_post_meta($post->ID, "article_author", true);
$curauth = get_the_author();
if ( $custom_author ) {
echo $custom_author;
}
else {
echo $curauth;
}
?>
<h2>Abonner på nytt fra Kvarteret</h2>-->
<ul class="article_feed_icons">
<li><a href="http://kvarteret.no/feed">RSS</a></li>
<li><a href="https://www.facebook.com/Kvarteret">Facebook</a></li>
<li><a href="http://twitter.com/#!/kvarteret">Twitter</a></li>
</ul>
</div>
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
<div id="entry-author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
<div id="author-link">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?>
</a>
</div><!-- #author-link -->
</div><!-- #author-description -->
</div><!-- #entry-author-info -->
<?php endif; ?>
</div><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
</div>
<?php get_footer(); ?>