Define TEMPLATEPATH. Look for footer, sidebar, and header in the template directory for the active theme.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ceca2e9751
commit
b1f753ab3f
|
@ -202,7 +202,7 @@ if ( (0 == count($posts)) && !is_404() && !is_search()
|
||||||
$wp_did_header = true;
|
$wp_did_header = true;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
$wp_template_dir = get_template_directory();
|
$wp_template_dir = TEMPLATEPATH;
|
||||||
|
|
||||||
// Template redirection
|
// Template redirection
|
||||||
if ($pagenow == 'index.php') {
|
if ($pagenow == 'index.php') {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
// If a footer.php file exists in the WP root directory we
|
// If a footer.php file exists in the WP root directory we
|
||||||
// use that, otherwise use this default wp-footer.php file.
|
// use that, otherwise use this default wp-footer.php file.
|
||||||
if ( file_exists(ABSPATH . '/footer.php') ) :
|
if ( file_exists(TEMPLATEPATH . '/footer.php') ) :
|
||||||
include_once(ABSPATH . '/footer.php');
|
include_once(TEMPLATEPATH . '/footer.php');
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
// If a header.php file exists in the WP root directory we
|
// If a header.php file exists in the WP root directory we
|
||||||
// use that, otherwise use this default wp-header.php file.
|
// use that, otherwise use this default wp-header.php file.
|
||||||
if ( file_exists(ABSPATH . '/header.php') ) :
|
if ( file_exists(TEMPLATEPATH . '/header.php') ) :
|
||||||
include_once(ABSPATH . '/header.php');
|
include_once(TEMPLATEPATH . '/header.php');
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
|
|
@ -96,6 +96,8 @@ if ( get_settings('active_plugins') ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define('TEMPLATEPATH', get_template_directory());
|
||||||
|
|
||||||
function shutdown_action_hook() {
|
function shutdown_action_hook() {
|
||||||
do_action('shutdown', '');
|
do_action('shutdown', '');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
// If a sidebar.php file exists in the WP root directory we
|
// If a sidebar.php file exists in the WP root directory we
|
||||||
// use that, otherwise use this default wp-sidebar.php file.
|
// use that, otherwise use this default wp-sidebar.php file.
|
||||||
if ( file_exists(ABSPATH . '/sidebar.php') ) :
|
if ( file_exists(TEMPLATEPATH . '/sidebar.php') ) :
|
||||||
include_once(ABSPATH . '/sidebar.php');
|
include_once(TEMPLATEPATH . '/sidebar.php');
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue