-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattachment.php
More file actions
66 lines (50 loc) · 1.21 KB
/
attachment.php
File metadata and controls
66 lines (50 loc) · 1.21 KB
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
<?php
/******************/
/** Single Post
/******************/
get_header();
?>
<section class="container page-content" >
<hr class="vertical-space">
<?php
if( 'left' == $webnus_options->webnus_blog_singlepost_sidebar() ):
get_sidebar('bleft');
endif;
?>
<section class="col-md-8 omega">
<article class="blog-single-post">
<?php
GLOBAL $webnus_options;
$post_format = get_post_format(get_the_ID());
$content = get_the_content();
if( have_posts() ): while( have_posts() ): the_post(); ?>
<div <?php post_class('post'); ?>>
<h1><?php the_title() ?></h1>
<?php
if( wp_attachment_is_image(get_the_ID() ))
{
$att_image = wp_get_attachment_image_src( $post->id, "full");
if(is_array($att_image))
echo '<img src="'. $att_image[0] .'" />';
}
?>
</div>
<?php
endwhile;
endif;
?>
</article>
<?php comments_template(); ?>
</section>
<!-- end-main-conten -->
<?php
if( 'right' == $webnus_options->webnus_blog_singlepost_sidebar() ):
get_sidebar('bright');
endif;
?>
<!-- end-sidebar-->
<div class="vertical-space3"></div>
</section>
<?php
get_footer();
?>