This repository was archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathcontent.php
More file actions
executable file
·72 lines (50 loc) · 1.35 KB
/
content.php
File metadata and controls
executable file
·72 lines (50 loc) · 1.35 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
<?php
/**
* The template part for displaying general content.
*
* @link https://developer.wordpress.org/themes/template-files-section/partial-and-miscellaneous-template-files/#content-slug-php
*
* @package Primer
* @since 1.0.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
/**
* Fires inside the `article` element, before the content.
*
* @hooked primer_wc_shop_messages - 10
*
* @since 1.0.0
*/
do_action( 'primer_before_post_content' );
?>
<?php if ( ! is_single() || ! primer_use_featured_hero_image() ) : ?>
<?php get_template_part( 'templates/parts/loop/post', 'thumbnail' ); ?>
<?php endif; ?>
<?php get_template_part( 'templates/parts/loop/post', 'title' ); ?>
<?php
/**
* Fires after templates/parts/loop/post template
*
* @hooked primer_add_post_meta - 10
*
* @since 1.0.0
*/
do_action( 'primer_after_post_title_template' );
?>
<?php if ( is_single() ) : ?>
<?php get_template_part( 'templates/parts/loop/post', 'content' ); ?>
<?php else : ?>
<?php get_template_part( 'templates/parts/loop/post', 'excerpt' ); ?>
<?php endif; ?>
<?php get_template_part( 'templates/parts/loop/post', 'footer' ); ?>
<?php
/**
* Fires inside the `article` element, after the content.
*
* @since 1.0.0
*/
do_action( 'primer_after_post_content' );
?>
</article><!-- #post-## -->