forked from lucasr/wp-lucasr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
73 lines (60 loc) · 3.13 KB
/
content.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
<?php
/**
* The default template for displaying posts. Used for both single
* and index/archive/search.
*
* @package WordPress
* @subpackage lucasr
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<hgroup>
<?php if ( is_single() ) : ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'lucasr' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php endif; ?>
<h2 class="entry-date"><?php the_date( _x( 'F j, Y', 'post date format', 'lucasr' ) ); ?></h2>
</hgroup>
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-image">
<div data-picture data-alt="<?php lucasr_the_post_thumbnail_caption(); ?>">
<div data-src="<?php lucasr_the_post_thumbnail ( 'small', false ); ?>"></div>
<div data-src="<?php lucasr_the_post_thumbnail ( 'medium', false ); ?>" data-media="(min-width: 480px)"></div>
<div data-src="<?php lucasr_the_post_thumbnail ( 'large', false ); ?>" data-media="(min-width: 960px)"></div>
<!--[if (lt IE 9) & (!IEMobile)]>
<div data-src="<?php lucasr_the_post_thumbnail( 'large', false ); ?>" data-media="(min-width: 960px)">
<![endif]-->
<noscript>
<img src="<?php lucasr_the_post_thumbnail ( 'large', false ); ?>" alt="<?php lucasr_the_post_thumbnail_caption(); ?>">
</noscript>
</div>
<p class="caption-text"><?php lucasr_the_post_thumbnail_caption() ?></p>
</div>
<?php endif; ?>
</header> <!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div> <!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content(); ?>
</div> <!-- .entry-content -->
<div class="entry-discuss">
<p><?php _e(' Got something to add? Find me on <a href="http://twitter.com/lucasratmundo" title="Tweet to @lucasratmundo">Twitter</a>
and <a href="http://gplus.to/lucasr" title="Find me on Google+">Google+</a>' ); ?></p>
</div> <!-- .entry-discuss -->
<div class="entry-meta">
<?php echo get_avatar( get_the_author_meta('ID'), 100 ); ?>
<p>
<span class="entry-author"><?php the_author_meta( 'display_name' ); ?></span>
<?php the_author_meta( 'description' ); ?>
<a href="about"><?php _e( 'More about me', "lucasr" ); ?>→</a>
</p>
</div> <!-- .entry-meta -->
<?php endif; ?>
</article> <!-- #post -->