working on reworking pages
This commit is contained in:
parent
b32425ed7c
commit
4df37cd29b
36
links.php
36
links.php
|
@ -2,24 +2,26 @@
|
||||||
/*
|
/*
|
||||||
Template Name: Links
|
Template Name: Links
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
global $comicpress;
|
||||||
|
|
||||||
|
comicpress_init();
|
||||||
|
|
||||||
|
ob_start();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<div class="post-page-head"></div>
|
||||||
<?php get_header() ?>
|
<div class="post-page">
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
<div id="content" class="narrowcolumn">
|
<ul>
|
||||||
|
<?php wp_list_bookmarks() ?>
|
||||||
<div class="post-page-head">
|
</ul>
|
||||||
<div class="post-page">
|
<br class="clear-margins" />
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
|
||||||
<ul>
|
|
||||||
<?php wp_list_bookmarks() ?>
|
|
||||||
</ul>
|
|
||||||
<br class="clear-margins" />
|
|
||||||
</div>
|
|
||||||
<div class="post-page-foot"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="post-page-foot"></div>
|
||||||
|
<?php
|
||||||
|
|
||||||
<?php ge_sidebar() ?>
|
$content = ob_get_clean();
|
||||||
|
|
||||||
<?php get_footer() ?>
|
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
|
||||||
|
?>
|
35
page.php
35
page.php
|
@ -1,22 +1,19 @@
|
||||||
<?php get_header() ?>
|
<?php
|
||||||
|
global $comicpress;
|
||||||
|
|
||||||
<div id="content" class="narrowcolumn">
|
comicpress_init();
|
||||||
<?php if (have_posts()) : while (have_posts()) : the_post() ?>
|
|
||||||
<div class="post-page-head"></div>
|
|
||||||
<div class="post-page" id="post-<?php the_ID() ?>">
|
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
|
||||||
<div class="entry">
|
|
||||||
<?php the_content() ?>
|
|
||||||
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
|
||||||
</div>
|
|
||||||
<?php edit_post_link('Edit this page.', '<p>', '</p>') ?>
|
|
||||||
<br class="clear-margins" />
|
|
||||||
</div>
|
|
||||||
<div class="post-page-foot"></div>
|
|
||||||
<?php endwhile; endif; ?>
|
|
||||||
<?php comments_template(); ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php get_sidebar() ?>
|
ob_start();
|
||||||
|
|
||||||
<?php get_footer() ?>
|
if (have_posts()) {
|
||||||
|
while (have_posts()) {
|
||||||
|
the_post();
|
||||||
|
include_partial('page-post');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
comments_template();
|
||||||
|
|
||||||
|
$content = ob_get_clean();
|
||||||
|
|
||||||
|
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
|
||||||
|
?>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<div class="post-page-head"></div>
|
||||||
|
<div class="post-page" id="post-<?php the_ID() ?>">
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<div class="entry">
|
||||||
|
<?php the_content() ?>
|
||||||
|
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
||||||
|
</div>
|
||||||
|
<?php edit_post_link('Edit this page.', '<p>', '</p>') ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
|
<div class="post-page-foot"></div>
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic">
|
<div class="post-comic">
|
||||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
<div class="comicarchiveframe">
|
||||||
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="Click for full size." title="Click for full size" width="<?php echo $archive_comic_width ?>" /><br />
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="Click for full size." title="Click for full size" /><br />
|
||||||
<h3><?php the_title() ?></h3>
|
<h3><?php the_title() ?></h3>
|
||||||
<small><?php the_time('F jS, Y') ?></small></a>
|
<small><?php the_time('F jS, Y') ?></small></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<div class="post-comic-head"></div>
|
||||||
|
<div class="post-comic">
|
||||||
|
<div class="comicarchiveframe">
|
||||||
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="<?php the_transcript() ?>" /><br />
|
||||||
|
<h3><?php the_title() ?></h3>
|
||||||
|
<small><?php the_time('F jS, Y') ?></small></a>
|
||||||
|
</div>
|
||||||
|
<br class="clear-margins" />
|
||||||
|
</div>
|
||||||
|
<div class="post-comic-foot"></div>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||||
|
<div class="pagenav">
|
||||||
|
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
||||||
|
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<div class="post-page-head"></div>
|
||||||
|
<div class="post-page">
|
||||||
|
<?php $count = $wp_query->post_count; ?>
|
||||||
|
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
||||||
|
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
||||||
|
</div>
|
||||||
|
<div class="post-page-foot"></div>
|
|
@ -1,74 +1,32 @@
|
||||||
<?php get_header() ?>
|
<?php
|
||||||
|
global $comicpress, $post, $query_string;
|
||||||
|
|
||||||
<div id="content" class="archive">
|
comicpress_init();
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
ob_start();
|
||||||
<div class="post-page">
|
|
||||||
<?php
|
|
||||||
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
|
|
||||||
$count = $tmp_search->post_count;
|
|
||||||
?>
|
|
||||||
<h2 class="pagetitle">Transcript search for ‘<?php the_search_query() ?>’</h2>
|
|
||||||
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
|
|
||||||
</div>
|
|
||||||
<div class="post-page-foot"></div>
|
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
include_partial('search-transcript-results-count');
|
||||||
|
|
||||||
<?php $posts = query_posts($query_string.'&order=asc');
|
if (have_posts()) {
|
||||||
while (have_posts()) : the_post() ?>
|
query_posts($query_string.'&order=asc');
|
||||||
|
|
||||||
<?php if (in_comic_category()) { ?>
|
while (have_posts()) {
|
||||||
|
the_post();
|
||||||
|
|
||||||
<div class="post-comic-head"></div>
|
if (in_comic_category()) {
|
||||||
<div class="post-comic">
|
include_partial('search-transcript-comic-post', 'search-comic-post', 'archive-comic-post');
|
||||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
} else {
|
||||||
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="<?php the_transcript() ?>" width="<?php echo $archive_comic_width ?>" /><br />
|
include_partial('search-transcript-blog-post', 'search-blog-post', 'archive-blog-post');
|
||||||
<h3><?php the_title() ?></h3>
|
}
|
||||||
<small><?php the_time('F jS, Y') ?></small></a>
|
}
|
||||||
</div>
|
|
||||||
<br class="clear-margins" />
|
|
||||||
</div>
|
|
||||||
<div class="post-comic-foot"></div>
|
|
||||||
|
|
||||||
<?php } else { ?>
|
include_partial('search-transcript-page-nav', 'search-page-nav', 'archive-page-nav');
|
||||||
|
|
||||||
<div class="post-head"></div>
|
} else {
|
||||||
<div class="post">
|
include_partial('search-transcript-not-found');
|
||||||
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></h3>
|
}
|
||||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
|
||||||
<?php the_excerpt() ?>
|
|
||||||
<br class="clear-margins" />
|
|
||||||
</div>
|
|
||||||
<div class="post-foot"></div>
|
|
||||||
|
|
||||||
<?php } ?>
|
$content = ob_get_clean();
|
||||||
|
|
||||||
<?php endwhile; ?>
|
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
|
||||||
|
?>
|
||||||
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
|
||||||
<div class="pagenav">
|
|
||||||
<div class="pagenav-right"><?php next_posts_link('Next Page ›') ?></div>
|
|
||||||
<div class="pagenav-left"><?php previous_posts_link('‹ Previous Page') ?></div>
|
|
||||||
<div class="clear"></div>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php else : ?>
|
|
||||||
|
|
||||||
<div class="post-page-head"></div>
|
|
||||||
<div class="post-page">
|
|
||||||
<h3>No transcripts found.</h3>
|
|
||||||
<p>Try another search?</p>
|
|
||||||
<p><?php include (get_template_directory() . '/searchform-transcript.php') ?></p>
|
|
||||||
<br class="clear-margins" />
|
|
||||||
</div>
|
|
||||||
<div class="post-page-foot"></div>
|
|
||||||
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php get_sidebar() ?>
|
|
||||||
|
|
||||||
<?php get_footer() ?>
|
|
||||||
|
|
42
search.php
42
search.php
|
@ -1,29 +1,29 @@
|
||||||
<?php get_header() ?>
|
<?php
|
||||||
|
global $comicpress, $query_string;
|
||||||
|
|
||||||
<div id="content" class="archive">
|
comicpress_init();
|
||||||
<?php
|
|
||||||
include_partial('search-results-count');
|
|
||||||
|
|
||||||
if (have_posts()) {
|
include_partial('search-results-count');
|
||||||
query_posts($query_string . '&order=asc');
|
|
||||||
|
|
||||||
while (have_posts()) {
|
if (have_posts()) {
|
||||||
the_post();
|
query_posts($query_string . '&order=asc');
|
||||||
|
|
||||||
if (in_comic_category()) {
|
while (have_posts()) {
|
||||||
include_partial('search-comic-post', 'archive-comic-post');
|
the_post();
|
||||||
} else {
|
|
||||||
include_partial('search-blog-post', 'archive-blog-post');
|
if (in_comic_category()) {
|
||||||
}
|
include_partial('search-comic-post', 'archive-comic-post');
|
||||||
|
} else {
|
||||||
|
include_partial('search-blog-post', 'archive-blog-post');
|
||||||
}
|
}
|
||||||
|
|
||||||
include_partial('search-page-nav', 'archive-page-nav');
|
|
||||||
} else {
|
|
||||||
include_partial('search-not-found');
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php get_sidebar() ?>
|
include_partial('search-page-nav', 'archive-page-nav');
|
||||||
|
} else {
|
||||||
|
include_partial('search-not-found');
|
||||||
|
}
|
||||||
|
|
||||||
<?php get_footer() ?>
|
$content = ob_get_clean();
|
||||||
|
|
||||||
|
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
|
||||||
|
?>
|
Loading…
Reference in New Issue