-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-jw_portfolio.php
53 lines (39 loc) · 1.64 KB
/
single-jw_portfolio.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
<?php get_header(); ?>
<?php the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('single-portfolio');?>>
<div class="row">
<div class="span8 port">
<?php
global $post;
$likeit = get_post_meta($post->ID, 'post_likeit', true);
$likecount = empty($likeit) ? '0' : $likeit;
$likedclass = 'likeit';
if (isset($_COOKIE['likeit-' . $post->ID])) {
$likedclass .= ' liked';
}
$ids = get_metabox('gallery_image_ids');
$video_embed = wp_kses_post(get_metabox('format_video_embed'));
if($ids!="false" && $ids!="") {
$height = wp_kses_post(get_metabox('format_image_height'));
portfolio_gallery(770, $height, $ids, false);
} elseif(!empty($video_embed)) {
echo apply_filters("the_content", htmlspecialchars_decode($video_embed));
} else {
$height = wp_kses_post(get_metabox('image_height'));
portfolio_image_single(770, $height,false);
}
?>
<h3 style="margin-top:30px;border-bottom:1px solid #f1f1f1;padding-bottom:20px;">PROJECT DESCRIPTION</h3>
<?php
//echo do_shortcode('[jw_item_title title="'.$project_desc.'"]');
echo wp_kses_post(get_the_content());
?>
</div>
<div class="pull-right"> <?php get_template_part("sidebar");?></div>
</div>
</article>
<?php
if(!jw_option('port_related')) {
related_portfolios();
}?>
<?php get_footer(); ?>