Twenty Twelve: only show excerpt on search view, not full content.
Props bradthomas127 and obenland. See #21462. git-svn-id: http://core.svn.wordpress.org/trunk@21437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2fdde59241
commit
871fd8bbdf
|
@ -30,10 +30,16 @@
|
||||||
<?php endif; // comments_open() ?>
|
<?php endif; // comments_open() ?>
|
||||||
</header><!-- .entry-header -->
|
</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">
|
<div class="entry-content">
|
||||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
<?php twentytwelve_entry_meta(); ?>
|
<?php twentytwelve_entry_meta(); ?>
|
||||||
|
|
3
rtl.css
3
rtl.css
|
@ -207,7 +207,8 @@ label ~ span.required {
|
||||||
.site-header h2 {
|
.site-header h2 {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.entry-content p {
|
.entry-content p,
|
||||||
|
.entry-summary p {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.page-template-homepage-php .widget-area .widget_text img {
|
.page-template-homepage-php .widget-area .widget_text img {
|
||||||
|
|
|
@ -762,6 +762,7 @@ article.sticky .featured-post {
|
||||||
line-height: 1.846153846;
|
line-height: 1.846153846;
|
||||||
}
|
}
|
||||||
.entry-content p,
|
.entry-content p,
|
||||||
|
.entry-summary p,
|
||||||
.comment-content p {
|
.comment-content p {
|
||||||
margin: 0 0 24px;
|
margin: 0 0 24px;
|
||||||
margin: 0 0 1.714285714rem;
|
margin: 0 0 1.714285714rem;
|
||||||
|
@ -1325,7 +1326,8 @@ label ~ span.required {
|
||||||
|
|
||||||
/* Minimum width of 600 pixels. */
|
/* Minimum width of 600 pixels. */
|
||||||
@media screen and (min-width: 600px) {
|
@media screen and (min-width: 600px) {
|
||||||
.entry-content p {
|
.entry-content p,
|
||||||
|
.entry-summary p {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
text-justify: auto;
|
text-justify: auto;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue