Twenty Eleven: updated DocBlock comments following Twenty Ten's example; See #17198

git-svn-id: https://develop.svn.wordpress.org/trunk@17787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Stewart 2011-05-02 21:04:44 +00:00
parent 4e6c7c2281
commit 9af6ba3236
26 changed files with 110 additions and 3 deletions

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying 404 pages (Not Found).
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,7 +1,15 @@
<?php <?php
/** /**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying Author Archive pages.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying Category Archive pages.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,7 +1,15 @@
<?php <?php
/** /**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentyeleven_comment which is
* located in the functions.php file.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>
<div id="comments"> <div id="comments">

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* The template for displaying posts in the Aside Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying content featured in the showcase.php page template
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
global $feature_class; global $feature_class;

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* The template for displaying posts in the Gallery Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* The template for displaying posts in the Image Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying page content in the showcase.php page template
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* The template for displaying posts in the Link Post Format on index and archive pages
*
* Learn more: http://codex.wordpress.org/Post_Formats
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template used for displaying page content in page.php
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying content in the single.php template
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The default template for displaying content
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* The template for displaying the footer.
*
* Contains the closing of the id=main div and all content after
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>

View File

@ -1,7 +1,12 @@
<?php <?php
/** /**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?><!DOCTYPE html> ?><!DOCTYPE html>
<!--[if IE 6]> <!--[if IE 6]>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying image attachments.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,8 +1,12 @@
<?php <?php
/** /**
* new WordPress Widget format * Makes a custom Widget for displaying Aside, Link, Status, and Quote Posts available with Twenty Eleven
* Wordpress 2.8 and above *
* @see http://codex.wordpress.org/Widgets_API#Developing_Widgets * Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets
*
* @package WordPress
* @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
class Twenty_Eleven_Ephemera_Widget extends WP_Widget { class Twenty_Eleven_Ephemera_Widget extends WP_Widget {

View File

@ -1,5 +1,13 @@
<?php <?php
/** /**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
*/ */

View File

@ -1,7 +1,15 @@
<?php <?php
/** /**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying Search Results pages.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The template for displaying search forms in Twenty Eleven
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>
<form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">

View File

@ -11,6 +11,7 @@
* *
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
// Enqueue showcase script for the slider // Enqueue showcase script for the slider

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The Sidebar containing the main widget area.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
?> ?>
<div id="secondary" class="widget-area" role="complementary"> <div id="secondary" class="widget-area" role="complementary">

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* The Template for displaying all single posts.
*
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>

View File

@ -4,6 +4,7 @@
* *
* @package WordPress * @package WordPress
* @subpackage Twenty Eleven * @subpackage Twenty Eleven
* @since Twenty Eleven 1.0
*/ */
get_header(); ?> get_header(); ?>