-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-services.php
More file actions
169 lines (67 loc) · 2.78 KB
/
single-services.php
File metadata and controls
169 lines (67 loc) · 2.78 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php get_header(); ?>
<div class="row">
<div class="sixteen columns">
<?php boc_breadcrumbs(); ?>
<div class="page_heading"><h1><?php the_title(); ?></h1></div>
</div>
</div>
<div class="row">
<div class="twelve columns">
<!-- Post -->
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class('post-page'); ?> id="post-<?php the_ID(); ?>" >
<!-- Post Begin -->
<div class="clearfix">
<?php
$args = array(
'post_type' => 'attachment',
'numberposts' => '5',
'post_status' => null,
'post_parent' => $post->ID,
'orderby' => 'menu_order',
'order' => 'ASC',
'exclude' => get_post_thumbnail_id()
);
$attachments = get_posts($args);
if($attachments || has_post_thumbnail()):
?>
<!-- FlexSlider -->
<div class="flexslider">
<ul class="slides">
<?php if(has_post_thumbnail()): ?>
<?php $attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'portfolio-main'); ?>
<?php $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); ?>
<?php $attachment_data = wp_get_attachment_metadata(get_post_thumbnail_id()); ?>
<li class="pic">
<a href="<?php echo $full_image[0]; ?>" rel="prettyPhoto['services']" title="<?php the_title(); ?>">
<img src="<?php echo $attachment_image[0]; ?>" alt="" /><span class="img_overlay_zoom"></span>
</a>
</li>
<?php endif; ?>
<?php foreach($attachments as $attachment): ?>
<?php $attachment_image = wp_get_attachment_image_src($attachment->ID, 'portfolio-main'); ?>
<?php $full_image = wp_get_attachment_image_src($attachment->ID, 'full'); ?>
<?php $attachment_data = wp_get_attachment_metadata($attachment->ID); ?>
<li class="pic">
<a href="<?php echo $full_image[0]; ?>" rel="prettyPhoto['services']" title="<?php echo $attachment->post_title; ?>">
<img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo $attachment->post_title; ?>" /><span class="img_overlay_zoom"></span>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<!-- FlexSlider :: END -->
<?php endif; ?>
<div class="post_description clearfix">
<?php the_content(); ?>
</div>
</div>
<!-- Post End -->
</div>
<?php endwhile; // Loop End ?>
<!-- Post :: End -->
<?php //comments_template('', true); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>