-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle-attachment.php
More file actions
86 lines (72 loc) · 2.31 KB
/
single-attachment.php
File metadata and controls
86 lines (72 loc) · 2.31 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
<?php get_header(); ?>
<?php
/**
* Primary Site Header
*/
get_template_part( 'template-parts/primary-site-header' ); ?>
<main class="xf__main" itemprop="mainContentOfPage">
<?php while ( have_posts() ) : the_post(); ?>
<div itemscope="itemscope" itemtype="http://schema.org/Blog">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemtype="http://schema.org/BlogPosting"
itemscope="itemscope" itemprop="blogPost">
<div class="xf__post-wrapper">
<div class="xf__container xf__entry-container">
<header class="xf__post-header">
<div class="xf__meta" itemprop="text">
<?php
/**
* Attachment Time - Published on
*/
printf(
'<span class="xf__meta-item posted-on"><a href="%1$s" rel="bookmark"><time class="entry-date published" datetime="%2$s" itemprop="datePublished" >%3$s</time></a></span>',
esc_url( get_the_permalink() ),
esc_attr( get_the_time( 'c' ) ),
esc_html( get_the_time( get_option( 'date_format' ) ) )
);
/* Attachment Time - Updated On */
printf(
'<span class="xf__meta-item updated-on screen-reader-text"><time class="entry-date updated" datetime="%1$s" itemprop="dateModified" >%2$s</time></span>',
esc_attr( get_the_modified_time( 'c' ) ),
esc_html( get_the_modified_time( get_option( 'date_format' ) ) )
);
/**
* Previous Post Link - Posted on
*/
printf(
'<span class="xf__meta-item parent-post">%s</span>',
/* translators: %s is the post title. */
sprintf( esc_html__( 'Posted on: %s', 'snowbird' ),
get_previous_post_link( '%link' )
)
); ?>
</div>
<?php
/**
* Attachment Title
*/
the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>
</header>
<div class="content entry-content" itemprop="text">
<?php
/**
* Attachment Content
*/
the_content(); ?>
</div>
</div>
<?php
/**
* Image Navigation
*/
get_template_part( 'template-parts/image-navigation' ); ?>
</div>
</article>
<?php
/**
* Comments and Form
*/
comments_template(); ?>
</div>
<?php endwhile; ?>
</main>
<?php get_footer(); ?>