-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontent.php
More file actions
41 lines (40 loc) · 1.84 KB
/
content.php
File metadata and controls
41 lines (40 loc) · 1.84 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
<?php
/**
* @package Google_S
*/
?>
<article style="border-bottom: 1px solid #ccc;" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="editorial-header">
<div class="container" >
<h1 class="tag editorial-header__title ">
<?php if ( 'post' == get_post_type() ) : ?>
<?php google_s_posted_on(); ?>
<?php endif; ?>
</h1>
<?php the_title( sprintf( ' <h2 class="editorial-header__subtitle"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( has_post_format( 'quote' ) ) : ?>
<section class="styleguide__quote">
<div class="quote"><blockquote class="quote__content">
<?php the_content(); ?>
</blockquote></div></section><!-- .entry-content -->
<?php elseif ( has_post_format( 'video' ) || has_post_format( 'audio' )) : ?>
<p class="editorial-header__excerpt "><?php the_content(); ?></p>
<!-- .entry-content -->
<?php elseif ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>"><p class="image-borded"><?php the_post_thumbnail( 'google_s-large' ); ?></p></a>
<p class="editorial-header__excerpt "><?php the_excerpt(); ?></p>
<!-- .entry-content -->
<?php elseif ( post_password_required() ) : ?>
<p class="editorial-header__excerpt "><?php get_the_password_form(); ?></p>
<!-- .entry-content -->
<?php else : ?>
<?php the_excerpt(); ?>
<!-- .entry-content -->
<?php endif; ?>
<?php if ( post_password_required() ) : ?>
<br><a class="button--primary pull-right" href="<?php the_permalink(); ?>"> Type password to Read</a>
<?php else : ?>
<br><a class="button--primary pull-right" href="<?php the_permalink(); ?>"> Read the full post</a>
<?php endif; ?>
</div>
</article>