-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-project.php
More file actions
100 lines (77 loc) · 3.16 KB
/
Copy pathsingle-project.php
File metadata and controls
100 lines (77 loc) · 3.16 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php get_header(); ?>
<div id="main">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php
global $portfolio_meta;
global $media_attach;
$meta = get_post_meta(get_the_ID(), $portfolio_meta->get_the_id(), TRUE);
?>
<div class="porfolio-preview clearfix">
<?php
if ($meta['featured_attachment_type'] == "images") {
?>
<div class="image-work">
<div id="portfolio_flexslider" class="flexslider">
<ul class="slides">
<script>
/*
Slider
*/
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
</script>
<?php
foreach ($meta['work_images_group'] as $work_img) { ?>
<li data-thumb="<?php echo $work_img['work_img']; ?>">
<img src="<?php echo $work_img['work_img']; ?>">
</li>
<?php } ?>
</ul>
</div>
<?php } else { ?>
<div id="portfolio_flexslider" class="flexslider">
<ul class="slides">
<li data-thumb="<?php echo $meta['portfolio_image']; ?>">
<img src="<?php echo $meta['portfolio_image']; ?>" alt="">
</li>
</ul>
</div>
</div>
<?php } ?>
<<<<<<< HEAD
<<<<<<< HEAD
</div>
=======
</div>
>>>>>>> 544a6e702f72ee9f461e7e7b249e360384e6122a
=======
</div>
>>>>>>> 544a6e702f72ee9f461e7e7b249e360384e6122a
<div class="info-work">
<div class="navigation clearfix">
<span class="previews"><?php previous_post_link('%link', 'Previous'); ?></span>
<span class="next"><?php next_post_link('%link','Next') ?></span>
</div>
<h1><?php the_title(); ?></h1>
<p><?php echo get_the_content(); ?></p>
<?php if($meta['url'] != ""){ ?>
<p><strong>URL</strong> <a href="<?php echo $meta['url']; ?>" target="_blank"><?php echo $meta['url']; ?></a></p>
<?php } ?>
<<<<<<< HEAD
<<<<<<< HEAD
</div>
</div>
=======
</div>
</div>
>>>>>>> 544a6e702f72ee9f461e7e7b249e360384e6122a
=======
</div>
</div>
>>>>>>> 544a6e702f72ee9f461e7e7b249e360384e6122a
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>