rework archive titles, backport from 2.8
This commit is contained in:
parent
c313dc14ae
commit
4a5fe829a2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
*~
|
*~
|
||||||
|
.directory
|
||||||
|
@ -120,12 +120,11 @@ $month['12'] = array('month' => 'December', 'days' => '31');
|
|||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
<?php while (have_posts()) { the_post(); ?>
|
||||||
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
|
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
|
||||||
|
|
||||||
<div class="entry">
|
<div class="entry"><?php the_content() ?></div>
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
<?php } ?>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="archive-yearlist">|
|
<div class="archive-yearlist">|
|
||||||
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
||||||
|
@ -65,10 +65,12 @@ Template Name: Comic Storyline with Thumbs
|
|||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
</div>
|
<?php the_content(); ?>
|
||||||
|
</div>
|
||||||
|
<?php endwhile; ?>
|
||||||
<ul id="storyline" class="level-0">
|
<ul id="storyline" class="level-0">
|
||||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
||||||
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
||||||
|
@ -37,12 +37,12 @@ Template Name: Comic Year Archive
|
|||||||
|
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
<?php while (have_posts()) : the_post() ?>
|
||||||
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
|
<div class="entry">
|
||||||
|
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
|
||||||
<div class="entry">
|
<?php the_content(); ?>
|
||||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
</div>
|
||||||
</div>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="archive-yearlist">|
|
<div class="archive-yearlist">|
|
||||||
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
||||||
|
Loading…
Reference in New Issue
Block a user