[wp-cvs] wordpress wp-footer.php, NONE, 1.1 wp-header.php, NONE, 1.1 index.php, 1.80, 1.81

Matthew Mullenweg saxmatt at users.sourceforge.net
Fri Aug 20 17:14:29 UTC 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12529

Modified Files:
	index.php 
Added Files:
	wp-footer.php wp-header.php 
Log Message:
Header/footer template start

--- NEW FILE: wp-footer.php ---
<?php
// If a footer.php file exists in the WP root directory we
// use that, otherwise use this default wp-footer.php file.
if ( file_exists(ABSPATH . '/footer.php') ) :
	include(ABSPATH . '/footer.php');
else :
?>
</div>



<div id="menu">

<ul>
	<?php get_links_list(); ?>
 <li id="categories"><?php _e('Categories:'); ?>
	<ul>
	<?php wp_list_cats(); ?>
	</ul>
 </li>
 <li id="search">
   <label for="s"><?php _e('Search:'); ?></label>	
   <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
	<div>
		<input type="text" name="s" id="s" size="15" /><br />
		<input type="submit" name="submit" value="<?php _e('Search'); ?>" />
	</div>
	</form>
 </li>
 <li id="archives"><?php _e('Archives:'); ?>
 	<ul>
	 <?php wp_get_archives('type=monthly'); ?>
 	</ul>
 </li>
 <li id="calendar">
	<?php get_calendar(); ?>
 </li>
 <li id="meta"><?php _e('Meta:'); ?>
 	<ul>
		<li><?php wp_register(); ?></li>
		<li><?php wp_loginout(); ?></li>
		<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
		<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
		<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
		<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
		<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
		<?php wp_meta(); ?>
	</ul>
 </li>

</ul>

</div>

</div>

<p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p>
</body>
</html>
<?php endif; ?>
--- NEW FILE: wp-header.php ---
<?php
// If a header.php file exists in the WP root directory we
// use that, otherwise use this default wp-header.php file.
if ( file_exists(ABSPATH . '/header.php') ) :
	include(ABSPATH . '/header.php');
else :
?>
<!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">

<head profile="http://gmpg.org/xfn/1">
	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

	<style type="text/css" media="screen">
		@import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
	</style>
	
	<link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
	<?php //comments_popup_script(); // off by default ?>
	<?php wp_head(); ?>
</head>

<body>
<div id="rap">
<h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

<div id="content">
<?php endif; ?>
Index: index.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/index.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** index.php	8 Aug 2004 15:31:49 -0000	1.80
--- index.php	20 Aug 2004 17:14:27 -0000	1.81
***************
*** 2,35 ****
  /* Don't remove this line. */
  require('./wp-blog-header.php');
  ?>
- <!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">
  
- <head profile="http://gmpg.org/xfn/1">
- 	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
- 	
- 	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
- 	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
- 
- 	<style type="text/css" media="screen">
- 		@import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
- 	</style>
- 	
- 	<link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
- 	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
- 	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
- 	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
- 	
- 	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
-     <?php wp_get_archives('type=monthly&format=link'); ?>
- 	<?php //comments_popup_script(); // off by default ?>
- 	<?php wp_head(); ?>
- </head>
- 
- <body>
- <div id="rap">
- <h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
- 
- <div id="content">
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  
--- 2,8 ----
  /* Don't remove this line. */
  require('./wp-blog-header.php');
+ include(ABSPATH . '/wp-header.php');
  ?>
  
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  
***************
*** 62,115 ****
  
  <?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
- </div>
- 
  
! 
! <div id="menu">
! 
! <ul>
! 	<?php get_links_list(); ?>
!  <li id="categories"><?php _e('Categories:'); ?>
! 	<ul>
! 	<?php wp_list_cats(); ?>
! 	</ul>
!  </li>
!  <li id="search">
!    <label for="s"><?php _e('Search:'); ?></label>	
!    <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
! 	<div>
! 		<input type="text" name="s" id="s" size="15" /><br />
! 		<input type="submit" name="submit" value="<?php _e('Search'); ?>" />
! 	</div>
! 	</form>
!  </li>
!  <li id="archives"><?php _e('Archives:'); ?>
!  	<ul>
! 	 <?php wp_get_archives('type=monthly'); ?>
!  	</ul>
!  </li>
!  <li id="calendar">
! 	<?php get_calendar(); ?>
!  </li>
!  <li id="meta"><?php _e('Meta:'); ?>
!  	<ul>
! 		<li><?php wp_register(); ?></li>
! 		<li><?php wp_loginout(); ?></li>
! 		<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
! 		<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
! 		<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
! 		<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
! 		<li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">WP</abbr></a></li>
! 		<?php wp_meta(); ?>
! 	</ul>
!  </li>
! 
! </ul>
! 
! </div>
! 
! </div>
! 
! <p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p>
! </body>
! </html>
--- 35,38 ----
  
  <?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
  
! <?php include(ABSPATH . '/wp-footer.php'); ?>
\ No newline at end of file




More information about the cvs mailing list