using application.php now

This commit is contained in:
John Bintz 2009-11-07 17:40:16 -05:00
parent 0cad4b0d53
commit b59fea3a86
6 changed files with 48 additions and 97 deletions

37
application.php Normal file
View File

@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<?php get_header(); ?>
<body <?php if (function_exists('body_class')) { body_class(); } ?>>
<div id="page"><!-- Defines entire site width - Ends in Footer -->
<div id="header">
<h1><a href="<?php echo get_settings('home') ?>"><?php bloginfo('name') ?></a></h1>
<div class="description"><?php bloginfo('description') ?></div>
</div>
<div id="menubar">
<ul id="menu">
<li><a href="<?php bloginfo('url') ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=4&title_li=') ?>
<li><a href="<?php bloginfo('rss2_url') ?>">Subscribe</a></li>
</ul>
<br class="clear" />
</div>
<?php echo $content ?>
<br class="clear" />
<div id="footer">
<p>
<?php bloginfo('name') ?> is powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a>
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p>
</div>
</div>
<?php wp_footer() ?>
</body>
<?php get_footer(); ?>
</html>

View File

@ -1,17 +0,0 @@
<div class="clear"></div><!-- Clears floated columns and sidebars -->
<div id="footer">
<p>
<?php bloginfo('name') ?> is powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a>
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p>
</div>
</div><!-- Ends "page" -->
<?php wp_footer() ?>
</body>
</html>

View File

@ -32,16 +32,6 @@ function __comicpress_init() {
$comicpress_filters = new ComicPressFilters(); $comicpress_filters = new ComicPressFilters();
$comicpress_filters->init(); $comicpress_filters->init();
$layouts = $comicpress->get_layout_choices();
if (isset($layouts[$comicpress->comicpress_options['layout']])) {
if (isset($layouts[$comicpress->comicpress_options['layout']]['Sidebars'])) {
foreach (explode(",", $layouts[$comicpress->comicpress_options['layout']]['Sidebars']) as $sidebar) {
$sidebar = trim($sidebar);
register_sidebar($sidebar);
}
}
}
} }
function F($name, $path, $override_post = null) { function F($name, $path, $override_post = null) {
@ -52,6 +42,12 @@ function F($name, $path, $override_post = null) {
return ComicPress::get_instance()->find_file($name, $path, $comic_post->find_parents()); return ComicPress::get_instance()->find_file($name, $path, $comic_post->find_parents());
} }
function FinishComicPress() {
$content = ob_get_clean();
include(F('application.php', ''));
}
/** /**
* Display the list of Storyline categories. * Display the list of Storyline categories.
*/ */
@ -95,4 +91,5 @@ function comicpress_list_storyline_categories($args = "") {
echo $output; echo $output;
} }
ob_start();
?> ?>

View File

@ -1,5 +1,3 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head profile="http://gmpg.org/xfn/11"> <head profile="http://gmpg.org/xfn/11">
<title><?php <title><?php
bloginfo('name'); bloginfo('name');
@ -21,25 +19,4 @@
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name') ?> Atom Feed" href="<?php bloginfo('atom_url') ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name') ?> Atom Feed" href="<?php bloginfo('atom_url') ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
<?php wp_head() ?> <?php wp_head() ?>
<!--[if lt IE 7]><script type="text/javascript" src="<?php bloginfo('template_directory') ?>/ie6submenus.js"></script><![endif]-->
</head> </head>
<body <?php if (function_exists('body_class')) { body_class(); } ?>>
<div id="page"><!-- Defines entire site width - Ends in Footer -->
<div id="header">
<h1><a href="<?php echo get_settings('home') ?>"><?php bloginfo('name') ?></a></h1>
<div class="description"><?php bloginfo('description') ?></div>
</div>
<div id="menubar">
<ul id="menu">
<li><a href="<?php bloginfo('url') ?>">Home</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=4&title_li=') ?>
<li><a href="<?php bloginfo('rss2_url') ?>">Subscribe</a></li>
</ul>
<div class="clear"></div>
</div>

View File

@ -1,14 +0,0 @@
//Suckerfish Dropdown for IE6
sfHover = function() {
var sfEls = document.getElementById("menu").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

View File

@ -1,34 +1,5 @@
<?php <?php
global $comicpress, $post, $nav_comics; echo "hello";
comicpress_init(); FinishComicPress();
$nav_comics = array();
$t = $post;
$post = $nav_comics['last'];
setup_postdata($post);
ob_start();
if (!is_paged()) { include_partial('index-display-comic'); }
$comic = ob_get_clean();
ob_start();
if (!is_paged() && ($comicpress->comicpress_options['comic_space'] == "comic_only")) { include_partial('index-comic-post'); }
include_partial('index-blog-header');
$index_posts_query = $comicpress->get_index_blog_posts_query();
while ($index_posts_query->have_posts()) {
$index_posts_query->the_post();
include_partial('index-blog-post');
}
$content = ob_get_clean();
$post = $t;
include(get_template_directory() . '/layouts/' . $comicpress->comicpress_options['layout']);
?> ?>