-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-link.php
More file actions
96 lines (73 loc) · 2.4 KB
/
Copy pathcontent-link.php
File metadata and controls
96 lines (73 loc) · 2.4 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
* The template for displaying Link post formats.
*
* @package BlogPress
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php blogpress_do_microdata( 'article' ); ?>>
<div class="inside-article">
<?php
blogpress_featured_page_header_inside_single();
/** This action is documented in content.php */
do_action( 'blogpress_before_content', 'link' );
if ( blogpress_show_entry_header() ) :
?>
<header <?php blogpress_do_attr( 'entry-header' ); ?>>
<?php
/** This action is documented in content.php */
do_action( 'blogpress_before_entry_title', 'link' );
if ( blogpress_show_title() ) {
$params = blogpress_get_the_title_parameters();
the_title( $params['before'], $params['after'] );
}
/** This action is documented in content.php */
do_action( 'blogpress_after_entry_title', 'link' );
blogpress_post_meta();
?>
</header>
<?php
endif;
/** This action is documented in content.php */
do_action( 'blogpress_after_entry_header', 'link' );
blogpress_post_image();
$itemprop = '';
if ( 'microdata' === blogpress_get_schema_type() ) {
$itemprop = ' itemprop="text"';
}
if ( blogpress_show_excerpt() ) :
?>
<div class="entry-summary"<?php echo $itemprop; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Literal attribute string built above; escaping would break the markup. ?>>
<?php
/** This action is documented in content.php */
do_action( 'blogpress_before_content_output', 'link' );
the_excerpt();
?>
</div>
<?php else : ?>
<div class="entry-content"<?php echo $itemprop; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Literal attribute string built above; escaping would break the markup. ?>>
<?php
/** This action is documented in content.php */
do_action( 'blogpress_before_content_output', 'link' );
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . __( 'Pages:', 'blogpress' ),
'after' => '</div>',
)
);
?>
</div>
<?php
endif;
/** This action is documented in content.php */
do_action( 'blogpress_after_entry_content', 'link' );
blogpress_footer_meta();
/** This action is documented in content.php */
do_action( 'blogpress_after_content', 'link' );
?>
</div>
</article>