forked from HighBoh/Retete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
70 lines (57 loc) · 2 KB
/
Copy pathcontent.php
File metadata and controls
70 lines (57 loc) · 2 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
<?php
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('animate-article'); ?>>
<div <?php
if ( is_single() ) {
post_class('animate-article post-base');
} else {
post_class('animate-article post-base not-single');
}
?>>
<header class="entry-header">
<?php if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
?>
</header><!-- .entry-header -->
<?php $seos_photography = get_post_meta($post->ID, 'my_seos_photography_name', true);
if ($seos_photography) {
echo '<div class="seos-video">' . esc_html($seos_photography) . '</div>';
} ?>
<?php if ( is_front_page() or is_home() or is_category() ) : ?>
<div class="ex-right">
<?php if ( 'post' === get_post_type() ) : ?>
<?php if ( is_front_page() || is_home() || is_category() ) { ?>
<?php if ( has_post_thumbnail() ) { ?>
<p class="cont-img"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php the_post_thumbnail(); ?> </a> </p>
<?php } } ?>
<?php endif; ?>
<?php the_excerpt();?>
</div>
<?php else : ?>
<div class="entry-content">
<?php
the_content( sprintf(
/* translators: %s: Name of current post. */
wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'seos-photography' ), array( 'span' => array( 'class' => array() ) ) ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
) );
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'seos-photography' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-footer">
<?php seos_photography_entry_footer(); ?>
</footer><!-- .entry-footer -->
</div>
</article><!-- #post-## -->