-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-aside.php
62 lines (51 loc) · 2.39 KB
/
content-aside.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
<?php
/**
* Aside Content Template
*
* Template used to show post content when a more specific template cannot be found.
*
* @package Codename GL
* @subpackage Template
* @since 0.1.0
* @author Aaron Nelson <[email protected]>
* @copyright Copyright (c) 2012, Aaron Nelson
* @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>' ); ?>
</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( 'byline', '<div class="byline"></div>' ); ?>
</div>
<div class="article-summary">
<?php the_content( __( 'Read more →', 'unique' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'unique' ), 'after' => '</p>' ) ); ?>
</div>
<div class="article-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta"></div>' ); ?>
</div>
<!-- End Single Column -->
</div>
<!-- End Article -->
<?php } ?>
<?php do_atomic( 'after_entry' ); // unique_after_entry ?>