-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.php
66 lines (52 loc) · 1.59 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
<?php $t =& peTheme(); ?>
<?php $project =& $t->project; ?>
<?php list($portfolio) = $t->template->data(); ?>
<!-- Filters -->
<ul class="filtering grid-full">
<?php $project->filter('',"filter","active"); ?>
</ul>
</div>
<!-- Ajax Section -->
<div class="ajax-section container">
<div class="loader"></div>
<div class="project-navigation">
<ul>
<li class="nextProject"><a href="#"></a></li>
<li class="prevProject"><a href="#"></a></li>
</ul>
</div>
<div class="closeProject">
<a href="#"><i class="icon-remove"></i></a>
</div>
<div class="ajax-content clearfix"></div>
</div>
<!-- End Ajax Section -->
<?php $content =& $t->content; ?>
<!-- Thumbnails -->
<ul class="projectlist clearfix">
<?php while ($content->looping()): ?>
<?php $meta =& $content->meta(); ?>
<?php $class = isset( $meta->ajax->ajax ) && $meta->ajax->ajax === 'yes' ? 'doajax' : 'noajax'; ?>
<li class="project mix <?php echo $class; ?> <?php $project->filterClasses(); ?>">
<a href="<?php echo get_permalink(); ?>" data-slug="<?php echo esc_attr(basename(get_permalink())); ?>">
<?php $content->img(545,344); ?>
<div class="projectinfo">
<div class="meta">
<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>
</a>
</li>
<?php endwhile; ?>
</ul>