-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
48 lines (34 loc) · 1.29 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
<?php
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ) );
?>
<?php get_header(); ?>
<main id="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<header class="header" <?php if ( has_post_thumbnail() ) { ?> style="background-image: url(<?php echo $thumbnail[0]; ?>);" <?php } ?>>
<div class="ucla campus">
<div class="col span_12_of_12">
<div class="breadcrumb"><?php get_breadcrumb(); ?></div>
<h1 class="entry-title"><?php the_title(); ?></h1> <?php edit_post_link(); ?>
</div>
</div>
</header>
<div class="ucla campus">
<div class="col span_9_of_12">
<time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><?php echo get_the_date(); ?></time>
<p><?php echo get_the_author_meta( 'user_login', $author_id ); ?></p>
<?php the_content(); ?>
<?php
/** @var string|false|WP_Error $tag_list */
$tag_list = get_the_tag_list( ' ', ' ' );
if ( $tag_list && ! is_wp_error( $tag_list ) ) {
echo $tag_list;
}
?>
</div>
<?php endwhile; endif; ?>
<div class="col span_3_of_12">
<?php get_sidebar(); ?>
</div>
</div>
</main>
<?php get_footer(); ?>