-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
94 lines (65 loc) · 3.55 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
/*
Theme Name: Rundown Child
Theme URI: http://www.kharissulistiyono.com/wp-labs/rundown-wordpress-theme
Author: Kharis Sulistiyono
Author URI: http://kharissulistiyono.com
Description: When something seems so hard to be done, do it point-by-point. Rundown is a responsive WordPress theme that suits for your personal web blog. It comes with some features such as fully responsive, magazine style, two skins option, and fits into high resolution screen, custom background, custom header image, and more.
Version: 1.7.4
Template: rundown
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, gray, two-columns, right-sidebar, custom-header, custom-menu, full-width-template, sticky-post, translation-ready, responsive-layout, microformats, theme-options, featured-images
Text Domain: rundown
*/
?>
<?php
/**
* The default template for displaying content
*
* @since Rundown 1.6.5
* @update 1.7
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-head">
<h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'rundown' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="meta">
<?php
printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'rundown' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'rundown' ), get_the_author() ) ),
get_the_author()
);
?>
<?php if(comments_open()){ echo "• "; } if (comments_open()) { comments_popup_link( '<span class="leave-reply">' . __( '0 comment', 'comments number', 'rundown' ) . '</span>', _x( '1 comment', 'comments number', 'rundown' ), _x( '% comments', 'comments number', 'rundown' ) ); } ?>
</div>
</div>
<div class="entry">
<?php
$excerpt_mode = get_option( 'rundown_magazine' );
$excerpt_limit = get_option( 'rundown_excerpt' );
if($excerpt_mode == 1 ){ ?>
<div class="excerpt-on">
<?php echo get_the_post_thumbnail($id, 'thumbnail'); ?>
<div class="content-excerpt">
<p><?php echo rundown_excerpt($excerpt_limit); ?></p>
<div><a href="<?php the_permalink(); ?>" class="more-link"><?php _e('Continue reading', 'rundown'); ?></a></div>
</div>
</div>
<?php } else { ?>
<?php echo get_the_post_thumbnail($id, 'thumbnail', array('class' => 'alignleft')); /* Get post thumbnail as in WordPress Codex: http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail */ ?>
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'rundown' ) ); ?>
<?php } ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'rundown'), 'after' => '</div>'));?>
<div class="meta2">
<?php printf( __(' Category: %1$s', 'rundown'), get_the_category_list( ', ' )); ?> <?php the_tags('| Tags: ', ', ', ''); ?>
<?php edit_post_link( __( 'Edit', 'rundown' ), '<span class="edit-link">', '</span>' ); ?>
</div>
</div><!--/.entry-->
</div><!--/#post-<?php the_ID(); ?>-->