-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-project.php
103 lines (78 loc) · 2.91 KB
/
single-project.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php get_header(); ?>
<main class="site-main">
<?php if(have_posts()){ ?>
<?php while(have_posts()) { the_post(); ?>
<div class="banner-wrapper">
<?php get_template_part('library/banner','maker'); ?>
</div><!-- banner-wrapper -->
<div class="site-content">
<section class="layout">
<div class="primary">
<article class="hentry">
<header class="article-title">
<a href="<?php the_permalink(); ?>">
<h3><?php the_title(); ?></h3>
</a>
</header>
<main class="article-body">
<div class="project-features">
<?php $project_date = get_post_meta(get_the_ID(),'_viradeco_project_date',1); ?>
<?php $project_meta = get_post_meta(get_the_ID(),'_viradeco_group_feature'); ?>
<div class="project-meta">
<ul class="project-features-list">
<li >
<span class="meta-name"><?php echo __('Date ','viradeco'); ?></span>
<span class="meta-value"><?php echo $project_date; ?></span>
</li>
<?php if(!empty($project_meta[0])){ ?>
<?php foreach($project_meta[0] as $meta){ ?>
<li>
<span class="meta-name"><?php echo $meta['feature_name']; ?></span>
<span class="meta-value"><?php echo $meta['feature_value']; ?></span>
</li>
<?php } ?>
<?php } ?>
</ul>
</div>
<?php the_content(); ?>
<?php $project_images = get_post_meta(get_the_ID(),'_viradeco_image_list'); ?>
<ul class="feature-images">
<?php $counter = 1; ?>
<?php if(!empty($project_images)){ ?>
<?php foreach($project_images[0] as $image_src){?>
<?php $img_thumb_src = viradeco_get_image_src($image_src,'130x130'); ?>
<li>
<a href="<?php echo $image_src; ?>" rel="prettyPhoto" >
<img src="<?php echo $img_thumb_src; ?>" width="130" height="130" alt="" />
</a>
</li>
<?php } ?>
<?php } ?>
<?php $counter++; ?>
</ul>
</div>
<?php get_template_part('library/post','meta'); ?>
<!-- comments template -->
<div class="comment-area">
<?php comments_template(); ?>
</div>
</main>
</article>
</div><!-- primary -->
<div class="secondary">
<?php get_sidebar(); ?>
</div><!-- secondary -->
</section>
</div>
<?php } ?>
<?php } else { ?>
<div class="site-content">
<section class="layout">
<div class="secondary">
<?php get_sidebar(); ?>
</div><!-- secondary -->
</section>
</div>
<?php } ?>
</main>
<?php get_footer(); ?>