-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
executable file
·63 lines (48 loc) · 1.29 KB
/
content.php
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
<?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 Rock
* @since 1.0.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
/**
* Fires inside the `article` element, before the content.
*
* @hooked rock_woo_shop_messages - 10
*
* @since 1.0.0
*/
do_action( 'rock_before_post_content' );
?>
<?php if ( ! is_single() || ! rock_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
*
* @since 1.0.0
*/
do_action( 'rock_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( 'rock_after_post_content' );
?>
</article><!-- #post-## -->