phpdoc for the default and classic themes. See #7550 props jacobsantos.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-09-27 09:49:27 +00:00
parent a6f7c12d48
commit a2df97240f
24 changed files with 153 additions and 16 deletions

View File

@ -1,4 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
while( have_posts()) : the_post();

View File

@ -1,4 +1,10 @@
<?php if ( post_password_required() ) : ?>
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
if ( post_password_required() ) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>

View File

@ -1,3 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
?>
<!-- begin footer -->
</div>

View File

@ -1,10 +1,14 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '',
'after_title' => '',
));
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '',
'after_title' => '',
));
?>

View File

@ -1,3 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
?>
<!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(); ?>>

View File

@ -1,4 +1,8 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
get_header();
?>

View File

@ -1,4 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
?>
<!-- begin sidebar -->
<div id="menu">

View File

@ -1,4 +1,11 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();
?>
<div id="content" class="narrowcolumn">

View File

@ -1,4 +1,11 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();
?>
<div id="content" class="narrowcolumn">

View File

@ -1,4 +1,8 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/*
Template Name: Archives
*/

View File

@ -1,4 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
while ( have_posts()) : the_post();

View File

@ -1,4 +1,10 @@
<?php // Do not delete these lines
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');

View File

@ -1,3 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<hr />
<div id="footer">

View File

@ -1,4 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
@ -7,6 +12,7 @@ if ( function_exists('register_sidebar') )
'after_title' => '</h2>',
));
/** @ignore */
function kubrick_head() {
$head = "<style type='text/css'>\n<!--";
$output = '';

View File

@ -1,3 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!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(); ?>>

View File

@ -1,4 +1,11 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();
?>
<div id="content" class="widecolumn">
@ -8,7 +15,7 @@
<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
<div class="entry">
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

View File

@ -1,5 +1,10 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/** @ignore */
$img = 'kubrickheader.jpg';
// If we don't have image processing support, redirect.

View File

@ -1,4 +1,10 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div id="content" class="narrowcolumn">

View File

@ -1,4 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/*
Template Name: Links
*/

View File

@ -1,4 +1,10 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div id="content" class="narrowcolumn">

View File

@ -1,4 +1,10 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div id="content" class="narrowcolumn">

View File

@ -1,3 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<label class="hidden" for="s"><?php _e('Search for:'); ?></label>
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />

View File

@ -1,3 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<div id="sidebar">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */

View File

@ -1,4 +1,11 @@
<?php get_header(); ?>
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();
?>
<div id="content" class="widecolumn">