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 pathpage.php
More file actions
executable file
·63 lines (54 loc) · 1.81 KB
/
page.php
File metadata and controls
executable file
·63 lines (54 loc) · 1.81 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
61
62
63
<?php
/**
* The template for displaying pages.
*
* @package Medium
* @since 1.0
*/
get_header(); ?>
<div id="content">
<div class="posts">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class( 'post' ); ?>>
<!-- grab the video -->
<?php if( get_post_meta( $post->ID, 'video', true ) ) { ?>
<div class="fitvid">
<?php echo get_post_meta( $post->ID, 'video', true ); ?>
</div>
<?php } ?>
<!-- grab the featured image -->
<?php if ( has_post_thumbnail() ) { ?>
<a class="featured-image" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'large-image' ); ?></a>
<?php } ?>
<div class="box-wrap">
<div class="box clearfix">
<!-- post content -->
<div class="post-content">
<div class="title-meta">
<div class="title-meta-left">
<?php if( get_post_meta( $post->ID, 'pagetitle', true ) ) {
echo get_post_meta( $post->ID, 'pagetitle', true );
} else {
printf( __( 'Last modified %1$s by <a href="%2$s">%3$s', 'medium' ),
get_the_date(),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author() );
} ?>
</div>
</div>
<header>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</header>
<div class="entry-text">
<?php the_content(); ?>
</div>
</div><!-- post content -->
</div><!-- box -->
</div><!-- box wrap -->
</article><!-- post-->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- posts -->
</div><!-- content -->
<!-- footer -->
<?php get_footer(); ?>