-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopus-primus-gallery.php
98 lines (86 loc) · 2.99 KB
/
opus-primus-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
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* Opus Primus Post-Format: Gallery Template
*
* Displays the post-format: gallery loop
*
* @package OpusPrimus
* @since 0.1
*
* @author Opus Primus <in.opus.primus@gmail.com>
* @copyright Copyright (c) 2012-2016, Opus Primus
*
* This file is part of Opus Primus.
*
* Opus Primus is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2, as published by the
* Free Software Foundation.
*
* You may NOT assume that you can use any other version of the GPL.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to:
*
* Free Software Foundation, Inc.
* 51 Franklin St, Fifth Floor
* Boston, MA 02110-1301 USA
*
* The license for this software can also likely be found here:
* http://www.gnu.org/licenses/gpl-2.0.html
*
* @version 1.2.3
* @date February 2, 2014
* Moved `featured_image` wrapper into OpusPrimusGallery::featured_image method
* Moved `secondary_images` wrapper into OpusPrimusGallery::secondary_images method
*
* @version 1.2.5
* @date July 20, 2014
* Refactored all defaults using true/false to use filtered define statements
*/
/** Create class objects */
$opus_posts = OpusPrimusPosts::create_instance();
$opus_comments = OpusPrimusComments::create_instance();
$opus_gallery = OpusPrimusGallery::create_instance();
$opus_navigation = OpusPrimusNavigation::create_instance(); ?>
<div <?php post_class(); ?>>
<?php
/** @var $anchor - set value for use in post_byline and meta_tags */
$anchor = __( 'Displayed', 'opus-primus' );
$opus_posts->post_byline(
array(
'display_mod_author' => OPUS_DISPLAY_MOD_AUTHOR,
'anchor' => $anchor,
'sticky_flag' => __( 'Exhibition', 'opus-primus' )
)
);
$opus_posts->post_title();
if ( ! is_single() ) {
$opus_comments->comments_link();
}
/** Display Featured Image */
$opus_gallery->featured_image();
/** Display Secondary Images */
$opus_gallery->secondary_images();
$opus_posts->post_content();
$opus_navigation->multiple_pages_link( array(), $preface = __( 'Pages:', 'opus-primus' ) );
$opus_posts->meta_tags( $anchor );
$opus_posts->post_coda();
if ( is_single() ) {
/** Create OpusPrimusAuthors class object */
$opus_authors = OpusPrimusAuthors::create_instance();
$opus_authors->post_author(
array(
'display_mod_author' => OPUS_DISPLAY_MOD_AUTHOR,
'display_author_url' => OPUS_DISPLAY_AUTHOR_URL,
'display_author_email' => OPUS_DISPLAY_AUTHOR_EMAIL,
'display_author_desc' => OPUS_DISPLAY_AUTHOR_DESCRIPTION,
)
);
} ?>
</div><!-- post classes -->
<?php
$opus_comments->wrapped_comments_template();