-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-gallery.php
69 lines (54 loc) · 1.83 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* The Template for displaying all single posts.
*
* @package dazzling
*/
get_header(); ?>
<div id="content" class="site-content container">
<div id="primary" class="content-area col-sm-12 col-md-8 dfgfdgd <?php echo of_get_option( 'site_layout', 'no entry' ); ?>">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<div class="jssor-slider">
<!-- Slides Container -->
<div u="slides">
<?php
$child_posts = types_child_posts("photo");
foreach ($child_posts as $child_post) {
?>
<div>
<img u="image" src="<?php echo $child_post->fields['image']; ?>" alt="">
<div class="caption"><?php echo $child_post->fields['caption']; ?></div>
</div>
<?php } ?>
</div>
<!--#region Bullet Navigator Skin Begin -->
<!-- bullet navigator container -->
<div u="navigator" class="jssorb06" style="bottom: 16px; right: 6px;">
<!-- bullet navigator item prototype -->
<div u="prototype"></div>
</div>
<!--#endregion Bullet Navigator Skin End -->
<!-- Arrow Left -->
<span u="arrowleft" class="jssora09l" style="top: 123px; left: 8px;">
</span>
<!-- Arrow Right -->
<span u="arrowright" class="jssora09r" style="top: 123px; right: 8px;">
</span>
</div>
<p class="slider-caption">
</p>
<?php journal_post_nav(); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>