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 pathformat-standard.php
More file actions
executable file
·49 lines (43 loc) · 1.54 KB
/
format-standard.php
File metadata and controls
executable file
·49 lines (43 loc) · 1.54 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
<?php
/**
* Template for standard posts.
*
* @package Fixed
* @since 1.0
*/
if ( get_post_meta( $post->ID, 'video', true ) ) { ?>
<div class="fitvid">
<?php echo get_post_meta( $post->ID, 'video', true ); ?>
</div>
<?php } else {
// grab the featured image
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">
<header>
<?php if( is_single() || is_page() ) { ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<?php } else { ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<?php } ?>
</header>
<?php if( is_search() || is_archive() ) { ?>
<div class="excerpt-more">
<?php the_excerpt( __( 'Read More', 'fixed' ) ); ?>
</div>
<?php } else { ?>
<?php the_content( __( 'Read More', 'fixed' ) ); ?>
<?php if( is_single() || is_page() ) { ?>
<div class="pagelink">
<?php wp_link_pages(); ?>
</div>
<?php } ?>
<?php } ?>
</div><!-- post content -->
</div><!-- box -->
</div><!-- box wrap -->