forked from weDevsOfficial/dokani
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-link.php
96 lines (82 loc) · 1.89 KB
/
content-link.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
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 dokani
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php dokani_article_schema( 'CreativeWork' ); ?>>
<div class="inside-article">
<?php
/**
* dokani_before_content hook.
*
* @since 1.0.0
*
* @hooked dokani_featured_page_header_inside_single - 10
*/
do_action( 'dokani_before_content' );
?>
<header class="entry-header">
<?php
/**
* dokani_before_entry_title hook.
*
* @since 1.0.0
*/
do_action( 'dokani_before_entry_title' );
the_title( sprintf( '<h2 class="entry-title" itemprop="headline"><a href="%s" rel="bookmark">', esc_url( dokani_get_link_url() ) ), '</a></h2>' );
/**
* dokani_after_entry_title hook.
*
* @since 1.0.0
*
* @hooked dokani_post_meta - 10
*/
do_action( 'dokani_after_entry_title' );
?>
</header><!-- .entry-header -->
<?php
/**
* dokani_after_entry_header hook.
*
* @since 1.0.0
*
* @hooked dokani_post_image - 10
*/
do_action( 'dokani_after_entry_header' );
if ( dokani_show_excerpt() ) : ?>
<div class="entry-summary" itemprop="text">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content" itemprop="text">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'dokani' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php endif;
/**
* dokani_after_entry_content hook.
*
* @since 1.0.0
*
* @hooked dokani_footer_meta - 10
*/
do_action( 'dokani_after_entry_content' );
/**
* dokani_after_content hook.
*
* @since 1.0.0
*/
do_action( 'dokani_after_content' );
?>
</div><!-- .inside-article -->
</article><!-- #post-## -->