-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-portfolio.php
54 lines (46 loc) · 1.38 KB
/
template-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
54
<?php
/*
Template Name: Portfolio Page
*/
get_header();?>
<?php
if(have_posts()){
while(have_posts()){
the_post();
$pageId=get_the_ID();
$pageTitle=get_the_title();
$subtitle=get_post_meta($pageId, 'subtitle_value', true);
$catId=get_post_meta($pageId,'postCategory_value',true);
$postNumberToShow=get_post_meta($pageId,'postNumber_value',true);
$slider=get_post_meta($post->ID, "slider_value", $single = true);
$slider_prefix=get_post_meta($post->ID, 'slider_name_value', true);
if($slider_prefix=='default'){
$slider_prefix='';
}
$auto_thumbnail=get_post_meta($post->ID, '_auto_portfolio_thumbnail_value', true);
$order=get_post_meta($post->ID, 'order_value', true);
include(TEMPLATEPATH . '/includes/page-header.php');
}
}
?>
<div id="content-container" class="content-gradient">
<div id="portfolio-preview-container">
<div class="loading"></div>
</div>
<?php include(TEMPLATEPATH . '/includes/portfolio/portfolio-previewer.php'); ?>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#portfolio-preview-container').portfolioPreviewer({
itemnum:<?php echo $postNumberToShow; ?>,
order:"<?php echo $order; ?>",
prev:"<?php echo get_opt('_previous_text'); ?>",
next:"<?php echo get_opt('_next_text'); ?>",
more:"<?php echo get_opt('_more_projects_text'); ?>"
});
});
</script>
<div class="clear"></div>
</div>
<?php
get_footer();
?>