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
·80 lines (61 loc) · 2.12 KB
/
page.php
File metadata and controls
executable file
·80 lines (61 loc) · 2.12 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* The template for displaying pages.
*
* @package Author
* @since Author 1.0
*/
get_header(); ?>
<div id="content-wrap" class="clearfix">
<div id="content">
<!-- post navigation -->
<?php get_template_part( 'template-title' ); ?>
<div class="post-wrap">
<!-- load the posts -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div <?php post_class('post'); ?>>
<div class="box">
<?php if ( has_post_format( 'gallery' , $post->ID ) ) { ?>
<?php if ( function_exists( 'array_gallery' ) ) { array_gallery(); } ?>
<?php } ?>
<!-- load the video -->
<?php if ( get_post_meta( $post->ID, 'arrayvideo', true ) ) { ?>
<div class="arrayvideo">
<?php echo get_post_meta( $post->ID, 'arrayvideo', true ) ?>
</div>
<?php } else { ?>
<!-- load 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 } ?>
<?php } ?>
<div class="frame">
<div class="title-wrap">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</div><!-- title wrap -->
<div class="post-content">
<?php the_content( __( 'Read More', 'author' ) ); ?>
<div class="pagelink">
<?php wp_link_pages(); ?>
</div>
</div><!-- post content -->
</div><!-- frame -->
<!-- post meta -->
<?php get_template_part( 'template-meta' ); ?>
</div><!-- box -->
</div><!-- post-->
<?php endwhile; ?>
</div><!-- post wrap -->
<?php else: ?>
</div><!-- content -->
<?php endif; ?>
<!-- end posts -->
<?php if( comments_open() ) {
comments_template();
} ?>
</div><!--content-->
<!-- load the sidebar -->
<?php get_sidebar(); ?>
</div><!-- content wrap -->
<!-- load footer -->
<?php get_footer(); ?>