-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
96 lines (95 loc) · 3.92 KB
/
author.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
86
87
88
89
90
91
92
93
94
95
96
<?php get_header() ?>
<div id="container">
<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>
<?php the_post() ?>
<div class="dp100 sixteen columns">
<h1 class="page-title author"><?php _e('Author Archives: ', 'codium-now'); ?> <span class="vcard"><a class='url fn n' href='<?php echo $authordata->user_url; ?>' title='<?php echo $authordata->display_name; ?>' rel='me'><?php echo $authordata->display_name; ?></a></span></h1>
<div class="hr"></div>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div id="entry-author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 60 ); ?>
</div>
<!-- #author-avatar -->
<div id="author-description" class="entry-content">
<h3><?php get_the_author(); ?></h3>
<div class="clear"></div>
<p><?php the_author_meta( 'description' ); ?></p>
</div>
<!-- #author-description -->
</div>
<!-- #entry-author-info -->
<div class="clear"></div>
<div class="hr"></div>
<?php endif; ?>
</div>
<?php rewind_posts(); while (have_posts()) : the_post(); ?>
<!-- Begin 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; ?>
<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() ?>