-
Notifications
You must be signed in to change notification settings - Fork 0
/
taxonomy.php
85 lines (83 loc) · 3.41 KB
/
taxonomy.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
77
78
79
80
81
82
83
84
85
<?php get_header(); ?>
<div id="containerlarge">
<div id="content" class="">
<div class="item">
<div id="top" class="dp100 breadcrumbs-one entrycontent">
<ul id="breadcrumbs-one">
<li>
<div style="display:inline" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="<?php echo esc_url(home_url( '/' )); ?>" itemprop="url">
<div class="homebutton"><span itemprop="title"><?php _e('Home', 'codium-now') ?></span></div>
</a>
</div>
</li>
</ul>
</div>
</div>
<div class="dp100 sixteen columns">
<h1 class="page-title"><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h1>
<div class="hr"></div>
<?php
$tax_description = term_description();
if ( ! empty( $tax_description ) )
echo '<div class="entry-content">' . $tax_description . '</div>';
?>
</div>
<div class="hr"></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="one-third column posthome">
<div id="post-<?php the_ID() ?>" <?php post_class('dp100') ?>>
<?php if(has_post_thumbnail()){ ?>
<div id="effect-1" class="effects clearfix">
<div class="img">
<?php echo get_the_post_thumbnail($post->ID); ?>
<div class="overlay">
<a href="<?php the_permalink(); ?>" class="expand"></a>
</div>
</div>
</div>
<?php } else {?>
<div id="effect-1" class="effects clearfix">
<div class="img nothumbnail">
<img src="<?php echo get_template_directory_uri(); ?>/images/blank.jpg" width="100%" />
</div>
</div>
<?php } ?>
<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>'); ?>
<div class="clear"></div>
<div class="entry-content">
<p><?php echo codium_now_cleanCut(get_the_excerpt(), 140); ?></p>
<div class="dp40">
<div class="entry-meta">
<a href="<?php the_permalink() ?>" ><?php _e('read more ', 'codium-now') ?><span class="meta-nav"></span></a>
</div>
</div>
<div class="dp60">
<div class="entry-meta alignright">
<?php edit_post_link(__('Edit', 'codium-now'), "\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t<span class=\"meta-sep\">|</span>\n"); ?>
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-M-D\TH:i:sO'); ?>"><?php the_date( __( 'n-d-Y', 'codium-now' ) ) ?></abbr></span>
<span class="meta-sep">|</span>
<span class="comments-link"><?php comments_popup_link( '', __('1', 'codium-now'), '%') ?></span>
</div>
</div>
</div>
</div>
</div>
<!-- End post -->
<?php endwhile; endif ?>
<div class="clear"></div>
<div class="center">
<?php if(function_exists('wp_pagenavi')) {
wp_pagenavi();
} else {?>
<div class="entry-content navigation">
<p><?php posts_nav_link(); ?></p>
</div>
<?php } ?>
</div>
</div>
<!-- #content -->
</div>
<!-- #container -->
<?php get_footer() ?>