[wp-cvs] wordpress wp.php,1.7,1.8

Matthew Mullenweg saxmatt at users.sourceforge.net
Sun Sep 5 07:31:01 UTC 2004


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

Modified Files:
	wp.php 
Log Message:
Bring wp.php into the 21st century

Index: wp.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** wp.php	9 May 2004 05:44:17 -0000	1.7
--- wp.php	5 Sep 2004 07:30:59 -0000	1.8
***************
*** 1,17 ****
! <?php /* Don't remove this line, it calls the WP function files ! */
! $blog=1;
! require_once("wp-blog-header.php");
! ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
!   <title><?php bloginfo('name') ?><?php single_post_title(' :: ') ?><?php single_cat_title(' :: ') ?><?php single_month_title(' :: ') ?></title>
!   <!-- Change charset if needed(?)  But please do not remove this metatag -->
!   <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
!   <meta name="generator" content="WordPress <?php $wp_version ?>" /> <!-- leave this for stats -->
!   <meta http-equiv="reply-to" content="you at somewhere.zzz" />
!   <link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
!   <link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
!   <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  </head>
  <body>
--- 1,15 ----
! <?php
! // This is an example of a very simple template
! require_once('./wp-blog-header.php');
! ?>
! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
! 	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
! 	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
! 	<meta name="generator" content="WordPress <?php $wp_version ?>" /> <!-- leave this for stats -->
! 	<link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
! 	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  </head>
  <body>
***************
*** 19,48 ****
  
  <!-- // loop start -->
! <?php foreach ($posts as $post) { start_wp(); ?>
! <?php the_date("d.m.y","<h2>","</h2>"); ?>
! <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  
! <?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
! <p><em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php the_permalink() ?>"><?php the_time() ?></a></em></p>
! <p>Filed under: <?php the_category() ?></p>
! <?php comments_popup_link("comments ?", "1 comment", "% comments") ?>
  
! <?php include ("wp-comments.php"); ?>
  
  
  <!-- // this is just the end of the motor - don't touch that line either :) -->
! <?php } ?> 
  
  <div align="right"><cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite><br />
  <br />
  <a href="wp-login.php">login</a><br />
! <a href="wp-register.php">register</a></div>
  
- <?php
- $debug = "1";
- if ($debug == "1") {
- 	echo "<p>$wpdb->querycount queries - ".number_format(timer_stop(),3)." seconds</p>";
- }
- ?>
  
  </body>
--- 17,47 ----
  
  <!-- // loop start -->
! <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
! <?php the_date('d.m.y', '<h2>','</h2>'); ?>
! <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  
! <?php the_content(); ?>
  
! <?php link_pages('<br />Pages: ', '<br />', 'number') ?>
! 
! <p><em>Posted by <strong><?php the_author() ?></strong> @ <a href="<?php the_permalink() ?>"><?php the_time() ?></a></em></p>
! <p>Filed under: <?php the_category(',') ?></p>
! 
! <?php comments_popup_link('comments ?', '1 comment', '% comments') ?>
! 
! <?php comments_template(); ?>
  
  
  <!-- // this is just the end of the motor - don't touch that line either :) -->
! <?php endwhile; else: ?>
! <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
! <?php endif; ?>
  
  <div align="right"><cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite><br />
  <br />
  <a href="wp-login.php">login</a><br />
! <a href="wp-register.php">register</a>
! </div>
  
  
  </body>




More information about the cvs mailing list