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 <?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
/* Don't remove these lines. */ /* Don't remove these lines. */
add_filter('comment_text', 'popuplinks'); add_filter('comment_text', 'popuplinks');
while( have_posts()) : the_post(); 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> <p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?> <?php return; endif; ?>

View File

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

View File

@ -1,10 +1,14 @@
<?php <?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
if ( function_exists('register_sidebar') ) if ( function_exists('register_sidebar') )
register_sidebar(array( register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">', 'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>', 'after_widget' => '</li>',
'before_title' => '', 'before_title' => '',
'after_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"> <!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(); ?>> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

View File

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

View File

@ -1,4 +1,9 @@
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
?>
<!-- begin sidebar --> <!-- begin sidebar -->
<div id="menu"> <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"> <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"> <div id="content" class="narrowcolumn">

View File

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

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/* Don't remove these lines. */ /* Don't remove these lines. */
add_filter('comment_text', 'popuplinks'); add_filter('comment_text', 'popuplinks');
while ( have_posts()) : the_post(); 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'])) if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!'); die ('Please do not load this page directly. Thanks!');

View File

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

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
if ( function_exists('register_sidebar') ) if ( function_exists('register_sidebar') )
register_sidebar(array( register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">', 'before_widget' => '<li id="%1$s" class="widget %2$s">',
@ -7,6 +12,7 @@ if ( function_exists('register_sidebar') )
'after_title' => '</h2>', 'after_title' => '</h2>',
)); ));
/** @ignore */
function kubrick_head() { function kubrick_head() {
$head = "<style type='text/css'>\n<!--"; $head = "<style type='text/css'>\n<!--";
$output = ''; $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"> <!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(); ?>> <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"> <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> <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"> <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> <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>'); ?> <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/** @ignore */
$img = 'kubrickheader.jpg'; $img = 'kubrickheader.jpg';
// If we don't have image processing support, redirect. // 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"> <div id="content" class="narrowcolumn">

View File

@ -1,4 +1,9 @@
<?php <?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/* /*
Template Name: Links 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"> <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"> <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'); ?>/"> <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<label class="hidden" for="s"><?php _e('Search for:'); ?></label> <label class="hidden" for="s"><?php _e('Search for:'); ?></label>
<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> <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"> <div id="sidebar">
<ul> <ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */ <?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"> <div id="content" class="widecolumn">