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 pathindex.php
More file actions
executable file
·111 lines (88 loc) · 3.49 KB
/
index.php
File metadata and controls
executable file
·111 lines (88 loc) · 3.49 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Author
* @since Author 1.0
*/
get_header(); ?>
<div id="content-wrap" class="clearfix">
<!-- excerpt slider -->
<?php get_template_part( 'template-slider' ); ?>
<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">
<?php if( is_page() ) { } else { ?>
<div class="title-meta">
<?php the_author_posts_link(); ?>
<span class="sep"><?php _e( '/', 'author' ); ?></span>
<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
<span class="sep"><?php _e( '/', 'author' ); ?></span>
<?php comments_popup_link( __( 'Leave a comment', 'author' ), __( '1 Comment', 'author' ), __( '% Comments', 'author' ) ); ?>
</div><!-- title meta -->
<?php } ?>
<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 if( is_search() || is_archive() ) { ?>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>"><?php _e( 'Read More', 'author' ); ?></a></p>
<?php } else { ?>
<?php the_content( __( 'Read More', 'author' ) ); ?>
<?php if( is_single() || is_page() ) { ?>
<div class="pagelink">
<?php wp_link_pages(); ?>
</div>
<?php } ?>
<?php } ?>
</div><!-- post content -->
</div><!-- frame -->
<!-- post meta -->
<?php get_template_part( 'template-meta' ); ?>
</div><!-- box -->
</div><!-- post-->
<?php endwhile; ?>
</div><!-- post wrap -->
<!-- post navigation -->
<?php get_template_part( 'template-nav' ); ?>
<?php else: ?>
</div><!-- content -->
<?php endif; ?>
<!-- end posts -->
<!-- comments -->
<?php if( is_single() && comments_open() ) {
comments_template();
} ?>
</div><!--content-->
<!-- load the sidebar -->
<?php get_sidebar(); ?>
</div><!-- content wrap -->
<!-- load footer -->
<?php get_footer(); ?>