2009-11-13 16:00:25 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
Template Name: Links
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<?php get_header(); ?>
|
|
|
|
<?php include(get_template_directory() . '/layout-head.php'); ?>
|
|
|
|
|
|
|
|
<?php
|
2009-11-28 08:38:44 +00:00
|
|
|
$linkcatid = get_term_by('name','menubar','link_category');
|
|
|
|
$linkcatid = $linkcatid->term_id;
|
|
|
|
$bookmarks = wp_list_bookmarks('echo=0&categorize=1&exclude_category='.$linkcatid);
|
2009-11-13 16:00:25 +00:00
|
|
|
$bookmarks = preg_replace('#<li ([^>]*)>#', '<li>', $bookmarks);
|
|
|
|
$bookmarks = preg_replace('#<ul ([^>]*)>#', '<ul>', $bookmarks);
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php while (have_posts()) : the_post() ?>
|
|
|
|
<div class="<?php comicpress_post_class(); ?>">
|
|
|
|
<div class="post-page-head"></div>
|
|
|
|
<div class="post-page">
|
2009-11-17 08:33:18 +00:00
|
|
|
<?php if (function_exists('the_post_image')) {
|
|
|
|
if ( has_post_image() ) { ?>
|
|
|
|
<div class="post-page-image">
|
|
|
|
<?php the_post_image('full'); ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-11-18 23:15:24 +00:00
|
|
|
<?php } ?>
|
2009-11-22 18:06:19 +00:00
|
|
|
<?php if (!$comicpress_options['disable_page_titles']) { ?>
|
2009-11-17 08:33:18 +00:00
|
|
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
|
|
|
<?php } ?>
|
2009-11-29 12:40:02 +00:00
|
|
|
<div class="entry">
|
|
|
|
<?php the_content(); ?>
|
|
|
|
</div>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
|
2009-11-13 16:00:25 +00:00
|
|
|
<div id="linkspage">
|
|
|
|
<ul>
|
|
|
|
<?php echo $bookmarks; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2009-11-17 06:57:25 +00:00
|
|
|
<div class="clear"></div>
|
2009-11-13 16:00:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="post-page-foot"></div>
|
|
|
|
</div>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
|
|
|
<?php get_footer() ?>
|