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
75 lines (65 loc) · 3.15 KB
/
format-standard.php
File metadata and controls
75 lines (65 loc) · 3.15 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
<?php
/**
* Template for standard posts.
*
* @package Pocket
* @since Pocket 1.0
*/
?>
<article <?php post_class( 'post animated fadeIn' ); ?>>
<!-- grab the video -->
<?php if ( ! pocket_is_wpcom() && 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 -->
<?php if ( '' != get_the_post_thumbnail() ) { ?>
<a class="featured-image <?php if ( get_option( 'pocket_customizer_bw_image' ) == 'enable' ) echo "grayscale"; ?>" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'large-image' ); ?></a>
<?php } ?>
<?php } ?>
<div class="box-wrap">
<div class="box">
<header class="post-header">
<div class="date-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_the_date(); ?></a></div>
<?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>
<!-- post content -->
<div class="post-content">
<?php if( is_search() || is_archive() ) { ?>
<div class="excerpt-more">
<?php the_excerpt(); ?>
<p><a class="more-link" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><span><?php _e( 'Continue Reading', 'pocket' ); ?></span></a></p>
</div>
<?php } else { ?>
<?php the_content(); ?>
<?php if( is_single() || is_page() ) { ?>
<div class="pagelink">
<?php wp_link_pages(); ?>
</div>
<?php } ?>
<?php if( is_single() ) { ?>
<ul class="meta">
<?php edit_post_link( __( 'Edit Post', 'pocket' ), '<li><i class="fa fa-edit"></i>', '</li>' ); ?>
<li><i class="fa fa-pencil"></i> <?php the_author_posts_link(); ?></li>
<li><i class="fa fa-clock-o"></i> <?php echo get_the_date(); ?></li>
<?php if ( has_category() ) { ?>
<li><i class="fa fa-list-ul"></i> <?php the_category( ', ' ); ?></li>
<?php } ?>
<?php if ( get_the_tags() ) { ?>
<li><i class="fa fa-tag"></i> <?php the_tags( '', ', ', '' ); ?></li>
<?php } ?>
<li class="next-prev-mobile"> </li>
<li class="prev-mobile next-prev-mobile"><?php previous_post_link( '%link', '<i class="fa fa-arrow-left"></i>' . __( 'Previous Post', 'pocket' ) ); ?></li>
<li class="next-prev-mobile"><?php next_post_link( '%link', '<i class="fa fa-arrow-right"></i>' . __( 'Next Post', 'pocket' ) ); ?></li>
</ul>
<?php } ?>
<?php } ?>
</div><!-- post content -->
</div><!-- box -->
</div><!-- box wrap -->
</article><!-- post-->