-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-gallery.php
86 lines (63 loc) · 3.1 KB
/
content-gallery.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
<?php /* Post Format: Gallery */ ?>
<header class="entry-header" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
<?php if ( is_single() ) : ?>
<h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1>
<p class="entry-meta">
<?php _e( ' by ', 'mighty' ); ?>
<span class="entry-author vcard" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" itemprop="url" rel="author"><?php echo get_the_author(); ?></a></span>
<?php _e( ' on ', 'mighty' ); ?>
<time class="entry-time" itemprop="datePublished" datetime="<?php echo get_the_time( 'c' ); ?>"><?php echo get_the_date(); ?></time>
<?php _e( ' in ', 'mighty' ); ?>
<span class="entry-categories"><?php the_category( ', ' ); ?></span>
<?php _e( ' with ', 'mighty' ); ?>
<span class="entry-comments-meta"><?php comments_popup_link( __( '0 Replies', 'mighty' ), __( '1 Reply', 'mighty' ), __( '% Replies', 'mighty' ) ); ?></span>
</p>
<?php if ( has_excerpt() ) : ?>
<div class="entry-excerpt" itemprop="text">
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
<div class="flexslider">
<ul class="slides">
<?php mighty_gallery( $post->ID ); ?>
</ul>
</div>
<?php else : ?>
<div class="flexslider">
<ul class="slides">
<?php mighty_gallery( $post->ID ); ?>
</ul>
</div>
<h2 class="entry-title" itemprop="headline">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
<p class="entry-meta">
<?php _e( ' by ', 'mighty' ); ?>
<span class="entry-author vcard" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" itemprop="url" rel="author"><?php echo get_the_author(); ?></a></span>
<?php _e( ' on ', 'mighty' ); ?>
<time class="entry-time" itemprop="datePublished" datetime="<?php echo get_the_time( 'c' ); ?>"><?php echo get_the_date(); ?></time>
<?php _e( ' in ', 'mighty' ); ?>
<span class="entry-categories"><?php the_category( ', ' ); ?></span>
<?php _e( ' with ', 'mighty' ); ?>
<span class="entry-comments-meta"><?php comments_popup_link( __( '0 Replies', 'mighty' ), __( '1 Reply', 'mighty' ), __( '% Replies', 'mighty' ) ); ?></span>
</p>
<?php endif; ?>
</header>
<div class="entry-content" itemprop="text">
<?php if ( is_single() ) : ?>
<?php the_content(); ?>
<?php else : ?>
<?php the_excerpt(); ?>
<a class="more" href="<?php the_permalink(); ?>" title="Continue reading - <?php the_title(); ?>"><?php _e( 'Continue Reading', 'mighty' ); ?></a>
<?php endif; ?>
</div>
<?php if ( is_single() ) : ?>
<?php wp_link_pages( 'before=<div class="entry-links">&after=</div>' ); ?>
<?php if ( has_tag() ) : ?>
<footer class="entry-footer">
<p class="entry-meta">
<span><?php _e( 'Tagged with', 'mighty' ); ?>: <?php the_tags( '', '', '' ); ?></span>
</p>
</footer>
<?php endif; ?>
<?php endif; ?>