-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-portfolio.php
More file actions
executable file
·62 lines (42 loc) · 1.67 KB
/
loop-portfolio.php
File metadata and controls
executable file
·62 lines (42 loc) · 1.67 KB
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
<div class="row-fluid" >
<?php if (have_posts()): ?>
<div class="portfolio-container">
<ul class="thumbnails" >
<?php $count = 0; while (have_posts()) : the_post(); ?>
<li class="span6">
<!-- Article -->
<article id="post-<?php the_ID(); ?>" <?php post_class( 'thumbnail ' . get_post_meta( get_the_ID(), 'ribbon_type', true ) ); ?> >
<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" class="portfolio-thumb" >
<?php echo the_post_thumbnail( 'portfolio' ); // Declare pixel size you need inside the array ?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->
<!-- Post Title -->
<h3>
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a>
</h3>
<!-- /Post Title -->
<?php the_tags( '<span class="label label-warning">', '</span> <span class="label label-warning">', '</span>'); // Separated by commas with a line break at the end ?>
<?php #edit_post_link('Edit','<span class="label">', '</span>'); # uncomment at will ?>
</article>
<!-- /Article -->
</li>
<?php
$count++;
if ( $count % 2 == 0 ) echo "</ul><ul class=\"thumbnails\">";
?>
<?php endwhile; ?>
</ul> <!-- end of ul.thumbnails -->
</div>
<?php else: ?>
<!-- Article -->
<article>
<div class="inner">
<h2><?php _e( 'Sorry, nothing to display.', 'spritz' ); ?></h2>
</div>
</article>
<!-- /Article -->
<?php endif; ?>
</div> <!-- end of row-fluid -->