-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-project.php
111 lines (75 loc) · 2.57 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
104
105
106
107
108
109
110
111
<?php $t =& peTheme(); ?>
<?php $content =& $t->content; ?>
<?php $meta =& $content->meta(); ?>
<?php get_header(); ?>
<?php while ($content->looping() ) : ?>
<section class="content container" id="<?php $content->slug(); ?>">
<div id="ajaxpage" class="container">
<div class="project-hero grid-full">
<?php
$format = get_post_format();
switch( $format ) {
case( false ) :
?>
<?php $content->img(941,0); ?>
<?php
break;
case( 'gallery' ) :
?>
<!-- Slider -->
<ul class="slider clearfix">
<?php $loop = $t->gallery->getSliderLoop($meta->gallery->id); ?>
<?php if ( $loop ): ?>
<?php while ($slide =& $loop->next()): ?>
<li><?php echo $t->image->resizedImg($slide->img,941,519); ?></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
<!-- Pager -->
<div class="slider-pager"></div>
<div class="small-border"></div>
<div class="project-gallery-next"><a class="bx-next" href=""><?php _e("Next",'Pixelentity Theme/Plugin'); ?></a></div>
<div class="project-gallery-prev"><a class="bx-prev" href=""><?php _e("Prev",'Pixelentity Theme/Plugin'); ?></a></div>
<?php
break;
case( 'video' ) :
?>
<!-- Video -->
<div class="video">
<?php $videoID = $meta->video->id; ?>
<?php if ($video = $t->video->getInfo($videoID)): ?>
<div class="embed-container">
<?php switch($video->type): case "youtube": ?>
<iframe width="940" height="529" src="http://www.youtube.com/embed/<?php echo $video->id; ?>?autohide=1&modestbranding=1&showinfo=0" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<?php break; case "vimeo": ?>
<iframe src="http://player.vimeo.com/video/<?php echo $video->id; ?>?title=0&byline=0&portrait=0&color=ffffff" width="940" height="529" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<?php endswitch; ?>
</div>
<?php endif; ?>
</div>
<?php
break;
}
?>
</div>
<div class="project-title grid-full">
<h4><?php $content->title(); ?></h4>
<h6><em><?php
$terms = get_the_terms( get_the_id(), 'prj-category' );
$output = '';
if ( $terms && ! is_wp_error( $terms ) ) :
foreach ( $terms as $term ) {
$output .= $term->name . ' / ';
}
$output = substr( $output, 0, -3 );
echo $output;
endif;
?></em></h6>
</div>
<div class="project-info clearfix">
<?php $content->content(); ?>
</div>
</div>
</section>
<?php endwhile; ?>
<?php get_footer(); ?>