-
Notifications
You must be signed in to change notification settings - Fork 3
/
content-single-gallery.php
54 lines (40 loc) · 1.02 KB
/
content-single-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
<?php
/**
* Album singla page template.
*
* @package vogue
* @since 1.0.0
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('project-post'); ?>>
<?php
do_action('presscore_before_post_content');
if ( !post_password_required() ) {
switch ( presscore_config()->get( 'post.media.type' ) ) {
case 'photo_scroller': break;
case 'jgrid':
case 'masonry_grid':
presscore_get_template_part( 'mod_albums', 'albums-post-single-media' );
break;
default:
echo '<div class="wf-container">';
echo '<div class="wf-cell wf-1 project-slider">';
presscore_get_template_part( 'mod_albums', 'albums-post-single-media' );
echo '</div>';
echo '</div>';
}
if ( get_the_content() ) {
echo '<div class="wf-container">';
echo '<div class="wf-cell wf-1 project-content">';
the_content();
echo '</div>';
echo '</div>';
}
} else {
the_content();
}
do_action('presscore_after_post_content');
?>
</article>