-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
58 lines (49 loc) · 1006 Bytes
/
single.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
<?php
get_header();
?>
<div class="main-container">
<div id="nav-container">
<?php
wp_nav_menu(array(
'theme_location' => 'telerk-top-menu',
'container' => 'nav',
'menu_class' => 'nav'
))
?>
<div class="clear"></div>
</div>
</div>
<?php
if (have_posts()) :
the_post();
?>
<div class="main-container">
<div class="container1">
<div class="box">
<h1><?php echo the_title();?></h1>
<?php echo the_content();?>
<div class="clear"></div>
</div>
<?php
$img_urls = get_post_image_urls($post);
if($img_urls) :
echo '<div id="gallery" class="box">';
foreach ($img_urls as $img_url) :
echo '<li>';
?>
<a data-gal="prettyPhoto[gallery2]"
href="<?php echo $img_url?>"><img src="<?php echo $img_url?>"/>
</a>
<?php
echo '</li>';
endforeach;
echo '</ul>';
echo '<br class="clear" /></div>';
endif;
?>
</div>
</div>
<?php
endif;
get_footer();
?>