-
Notifications
You must be signed in to change notification settings - Fork 6
/
content-archive-portfolio.php
53 lines (46 loc) · 1.36 KB
/
content-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
<?php
/**
* "Portfolio" Content Archive Template
*
* This template is the used to display "portfolio" posts when in a generic archive.
*
* @package WooFramework
* @subpackage Template
*/
/**
* Settings for this template file.
*
* This is where the specify the HTML tags for the title.
* These options can be filtered via a child theme.
*
* @link http://codex.wordpress.org/Plugin_API#Filters
*/
$title_before = '<h1 class="title">';
$title_after = '</h1>';
if ( ! is_single() ) {
$title_before = $title_before . '<a href="' . get_permalink( get_the_ID() ) . '" rel="bookmark" title="' . the_title_attribute( array( 'echo' => 0 ) ) . '">';
$title_after = '</a>' . $title_after;
}
$page_link_args = apply_filters( 'woothemes_pagelinks_args', array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) );
woo_post_before();
?>
<div <?php post_class( 'post' ); ?>>
<?php
woo_post_inside_before();
the_title( $title_before, $title_after );
?>
<div class="entry">
<?php
echo '<div class="fl portfolio-img">' . woo_image( 'return=true&key=portfolio-image&width=100&height=100' ) . '</div><!--/.fl-->' . "\n";
the_excerpt();
wp_link_pages( $page_link_args );
?>
</div><!-- /.entry -->
<?php
woo_post_inside_after();
?>
</div><!-- /.post -->
<?php
woo_post_after();
comments_template();
?>