This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-portfolio.php
76 lines (54 loc) · 1.66 KB
/
archive-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
67
68
69
70
71
72
73
74
75
76
<?php
/**
* Template For Displaying Portfolio Pages
*
* @package MIXT
*/
get_header();
if ( have_posts() ) {
$cont_classes = 'portfolio-wrap page-padding';
$is_sortable = ( mixt_get_option(array('key' => 'portfolio-page-filters')) && function_exists('mixt_portfolio_filters') );
if ( $is_sortable ) $cont_classes .= ' portfolio-sortable';
echo "<div class='$cont_classes'>";
// Set portfolio item display options
$options = mixt_get_options( array(
'feat-ph' => array(
'key' => 'portfolio-page-feat-ph',
'return' => 'value',
),
'title' => array(
'key' => 'portfolio-page-title',
'default' => true,
),
'content' => array(
'key' => 'portfolio-page-content',
'default' => false,
),
'meta-comments' => array(
'key' => 'project-comments',
'default' => true,
),
) );
Mixt_Options::set('post-display', null, $options);
// Filter links
if ( $is_sortable ) {
mixt_portfolio_filters();
}
echo '<div class="posts-container">';
while ( have_posts() ) : // Start The Loop
the_post();
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'templates/content', get_post_format() );
endwhile; // End The Loop
echo '</div>'; // Close .posts-container
mixt_content_nav( 'nav-below', true );
echo '</div>'; // Close .portfolio
} else {
get_template_part( 'templates/no-results', 'archive' ); // Load "Nothing Found / No Results" template
}
get_sidebar();
get_footer();
?>