forked from justintadlock/ravel
/
archive-portfolio_item.php
43 lines (28 loc) · 1.34 KB
/
archive-portfolio_item.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
<?php get_header(); // Loads the header.php template. ?>
<main <?php hybrid_attr( 'content' ); ?>>
<?php hybrid_get_menu( 'portfolio' ); // Loads the menu/primary.php template. ?>
<?php if ( have_posts() ) : // Checks if any posts were found. ?>
<ul class="loop-entries-gallery">
<?php while ( have_posts() ) : // Begins the loop through found posts. ?>
<?php the_post(); // Loads the post data. ?>
<li>
<?php get_the_image(
array(
'default' => hybrid_locate_theme_file( array( 'images/placeholder-540.png' ) ),
'size' => 'ravel-medium',
'scan' => true,
'order' => array( 'scan', 'featured', 'attachment', 'default' ),
'before' => '<figure>',
'after' => '</figure>'
)
); ?>
<?php the_title( '<h2 ' . hybrid_get_attr( 'entry-title' ) . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>' ); ?>
</li>
<?php endwhile; // End found posts loop. ?>
</ul>
<?php locate_template( array( 'misc/loop-nav.php' ), true ); // Loads the misc/loop-nav.php template. ?>
<?php else : // If no posts were found. ?>
<?php locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template. ?>
<?php endif; // End check for posts. ?>
</main><!-- #content -->
<?php get_footer(); // Loads the footer.php template. ?>