-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
67 lines (56 loc) · 2.88 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
<?php
/**
* Content Template
*
* Template used to show post content when a more specific template cannot be found.
*
* @package Unique
* @subpackage Template
* @since 0.1.0
* @author Justin Tadlock <[email protected]>
* @copyright Copyright (c) 2012, Justin Tadlock
* @link http://themehybrid.com/themes/unique
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
do_atomic( 'before_entry' ); // unique_before_entry ?>
<?php if ( is_singular() && is_main_query() ) { ?>
<!-- Article -->
<div class="article">
<!-- Single Column -->
<div class="article-header">
<?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'unique' ) . '</div>' ); ?>
<?php if(has_excerpt()){ ?>
<?php the_excerpt(); ?>
<?php } ?>
</div>
<div class="article-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">Pages:', 'after' => '</div><div class="cl"></div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div>
<div class="article-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="<br />Tagged "]', 'unique' ) . '</div>' ); ?>
</div>
<!-- End Single Column -->
</div>
<!-- End Article -->
<?php } else { ?>
<!-- Article -->
<div class="article list">
<!-- Single Column -->
<div class="article-header">
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-permalink before="| "] [entry-edit-link before=" | "]', 'unique' ) . '</div>' ); ?>
</div>
<div class="article-summary">
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail', 'image_class' => 'alignleft' ) ); ?>
<?php the_excerpt(); ?>
</div>
<div class="article-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="<br />Tagged "]', 'unique' ) . '</div>' ); ?>
</div>
<!-- End Single Column -->
</div>
<!-- End Article -->
<?php } ?>
<?php do_atomic( 'after_entry' ); // unique_after_entry ?>