forked from mirror/_s
Ditch all @since DocBlocks from theme.
This commit is contained in:
parent
182298629a
commit
fe19f5433b
1
404.php
1
404.php
|
@ -3,7 +3,6 @@
|
||||||
* The template for displaying 404 pages (Not Found).
|
* The template for displaying 404 pages (Not Found).
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* located in the inc/template-tags.php file.
|
* located in the inc/template-tags.php file.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* The template used for displaying page content in page.php
|
* The template used for displaying page content in page.php
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* Contains the closing of the id=main div and all content after
|
* Contains the closing of the id=main div and all content after
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,10 @@
|
||||||
* _s functions and definitions
|
* _s functions and definitions
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the content width based on the theme's design and stylesheet.
|
* Set the content width based on the theme's design and stylesheet.
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
if ( ! isset( $content_width ) )
|
if ( ! isset( $content_width ) )
|
||||||
$content_width = 640; /* pixels */
|
$content_width = 640; /* pixels */
|
||||||
|
@ -26,8 +23,6 @@ if ( ! function_exists( '_s_setup' ) ) :
|
||||||
* Note that this function is hooked into the after_setup_theme hook, which runs
|
* Note that this function is hooked into the after_setup_theme hook, which runs
|
||||||
* before the init hook. The init hook is too late for some features, such as indicating
|
* before the init hook. The init hook is too late for some features, such as indicating
|
||||||
* support post thumbnails.
|
* support post thumbnails.
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_setup() {
|
function _s_setup() {
|
||||||
|
|
||||||
|
@ -117,8 +112,6 @@ add_action( 'after_setup_theme', '_s_register_custom_background' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register widgetized area and update sidebar with default widgets
|
* Register widgetized area and update sidebar with default widgets
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_widgets_init() {
|
function _s_widgets_init() {
|
||||||
register_sidebar( array(
|
register_sidebar( array(
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* Displays all of the <head> section and everything up till <div id="main">
|
* Displays all of the <head> section and everything up till <div id="main">
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?><!DOCTYPE html>
|
?><!DOCTYPE html>
|
||||||
<html <?php language_attributes(); ?>>
|
<html <?php language_attributes(); ?>>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* The template for displaying image attachments.
|
* The template for displaying image attachments.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,7 +71,6 @@ add_action( 'after_setup_theme', '_s_custom_header_setup' );
|
||||||
* @return stdClass All properties represent attributes of the curent header image.
|
* @return stdClass All properties represent attributes of the curent header image.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.1
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! function_exists( 'get_custom_header' ) ) {
|
if ( ! function_exists( 'get_custom_header' ) ) {
|
||||||
|
@ -91,8 +89,6 @@ if ( ! function_exists( '_s_header_style' ) ) :
|
||||||
* Styles the header image and text displayed on the blog
|
* Styles the header image and text displayed on the blog
|
||||||
*
|
*
|
||||||
* @see _s_custom_header_setup().
|
* @see _s_custom_header_setup().
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_header_style() {
|
function _s_header_style() {
|
||||||
|
|
||||||
|
@ -132,8 +128,6 @@ if ( ! function_exists( '_s_admin_header_style' ) ) :
|
||||||
* Styles the header image displayed on the Appearance > Header admin panel.
|
* Styles the header image displayed on the Appearance > Header admin panel.
|
||||||
*
|
*
|
||||||
* @see _s_custom_header_setup().
|
* @see _s_custom_header_setup().
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_admin_header_style() {
|
function _s_admin_header_style() {
|
||||||
?>
|
?>
|
||||||
|
@ -162,8 +156,6 @@ if ( ! function_exists( '_s_admin_header_image' ) ) :
|
||||||
* Custom header image markup displayed on the Appearance > Header admin panel.
|
* Custom header image markup displayed on the Appearance > Header admin panel.
|
||||||
*
|
*
|
||||||
* @see _s_custom_header_setup().
|
* @see _s_custom_header_setup().
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_admin_header_image() { ?>
|
function _s_admin_header_image() { ?>
|
||||||
<div id="headimg">
|
<div id="headimg">
|
||||||
|
|
|
@ -3,15 +3,12 @@
|
||||||
* _s Theme Customizer
|
* _s Theme Customizer
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.2
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add postMessage support for site title and description for the Theme Customizer.
|
* Add postMessage support for site title and description for the Theme Customizer.
|
||||||
*
|
*
|
||||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||||
*
|
|
||||||
* @since _s 1.2
|
|
||||||
*/
|
*/
|
||||||
function _s_customize_register( $wp_customize ) {
|
function _s_customize_register( $wp_customize ) {
|
||||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||||
|
@ -22,8 +19,6 @@ add_action( 'customize_register', '_s_customize_register' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||||
*
|
|
||||||
* @since _s 1.2
|
|
||||||
*/
|
*/
|
||||||
function _s_customize_preview_js() {
|
function _s_customize_preview_js() {
|
||||||
wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130304', true );
|
wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130304', true );
|
||||||
|
|
|
@ -5,13 +5,10 @@
|
||||||
* Eventually, some of the functionality here could be replaced by core features
|
* Eventually, some of the functionality here could be replaced by core features
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_page_menu_args( $args ) {
|
function _s_page_menu_args( $args ) {
|
||||||
$args['show_home'] = true;
|
$args['show_home'] = true;
|
||||||
|
@ -21,8 +18,6 @@ add_filter( 'wp_page_menu_args', '_s_page_menu_args' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds custom classes to the array of body classes.
|
* Adds custom classes to the array of body classes.
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_body_classes( $classes ) {
|
function _s_body_classes( $classes ) {
|
||||||
// Adds a class of group-blog to blogs with more than 1 published author
|
// Adds a class of group-blog to blogs with more than 1 published author
|
||||||
|
@ -36,8 +31,6 @@ add_filter( 'body_class', '_s_body_classes' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter in a link to a content ID attribute for the next/previous image links on image attachment pages
|
* Filter in a link to a content ID attribute for the next/previous image links on image attachment pages
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_enhanced_image_navigation( $url, $id ) {
|
function _s_enhanced_image_navigation( $url, $id ) {
|
||||||
if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )
|
if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )
|
||||||
|
@ -53,8 +46,6 @@ add_filter( 'attachment_link', '_s_enhanced_image_navigation', 10, 2 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters wp_title to print a neat <title> tag based on what is being viewed.
|
* Filters wp_title to print a neat <title> tag based on what is being viewed.
|
||||||
*
|
|
||||||
* @since _s 1.1
|
|
||||||
*/
|
*/
|
||||||
function _s_wp_title( $title, $sep ) {
|
function _s_wp_title( $title, $sep ) {
|
||||||
global $page, $paged;
|
global $page, $paged;
|
||||||
|
|
|
@ -5,14 +5,11 @@
|
||||||
* Eventually, some of the functionality here could be replaced by core features
|
* Eventually, some of the functionality here could be replaced by core features
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! function_exists( '_s_content_nav' ) ) :
|
if ( ! function_exists( '_s_content_nav' ) ) :
|
||||||
/**
|
/**
|
||||||
* Display navigation to next/previous pages when applicable
|
* Display navigation to next/previous pages when applicable
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_content_nav( $nav_id ) {
|
function _s_content_nav( $nav_id ) {
|
||||||
global $wp_query, $post;
|
global $wp_query, $post;
|
||||||
|
@ -63,8 +60,6 @@ if ( ! function_exists( '_s_comment' ) ) :
|
||||||
* Template for comments and pingbacks.
|
* Template for comments and pingbacks.
|
||||||
*
|
*
|
||||||
* Used as a callback by wp_list_comments() for displaying the comments.
|
* Used as a callback by wp_list_comments() for displaying the comments.
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_comment( $comment, $args, $depth ) {
|
function _s_comment( $comment, $args, $depth ) {
|
||||||
$GLOBALS['comment'] = $comment;
|
$GLOBALS['comment'] = $comment;
|
||||||
|
@ -114,8 +109,6 @@ endif; // ends check for _s_comment()
|
||||||
if ( ! function_exists( '_s_posted_on' ) ) :
|
if ( ! function_exists( '_s_posted_on' ) ) :
|
||||||
/**
|
/**
|
||||||
* Prints HTML with meta information for the current post-date/time and author.
|
* Prints HTML with meta information for the current post-date/time and author.
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_posted_on() {
|
function _s_posted_on() {
|
||||||
printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', '_s' ),
|
printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', '_s' ),
|
||||||
|
@ -131,8 +124,6 @@ function _s_posted_on() {
|
||||||
endif;
|
endif;
|
||||||
/**
|
/**
|
||||||
* Returns true if a blog has more than 1 category
|
* Returns true if a blog has more than 1 category
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_categorized_blog() {
|
function _s_categorized_blog() {
|
||||||
if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {
|
if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {
|
||||||
|
@ -158,8 +149,6 @@ function _s_categorized_blog() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flush out the transients used in _s_categorized_blog
|
* Flush out the transients used in _s_categorized_blog
|
||||||
*
|
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
function _s_category_transient_flusher() {
|
function _s_category_transient_flusher() {
|
||||||
// Like, beat it. Dig?
|
// Like, beat it. Dig?
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* WordPress.com-specific functions and definitions
|
* WordPress.com-specific functions and definitions
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $themecolors;
|
global $themecolors;
|
||||||
|
@ -12,7 +11,6 @@ global $themecolors;
|
||||||
* Set a default theme color array for WP.com.
|
* Set a default theme color array for WP.com.
|
||||||
*
|
*
|
||||||
* @global array $themecolors
|
* @global array $themecolors
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
$themecolors = array(
|
$themecolors = array(
|
||||||
'bg' => '',
|
'bg' => '',
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
1
page.php
1
page.php
|
@ -8,7 +8,6 @@
|
||||||
* different template.
|
* different template.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* The template for displaying Search Results pages.
|
* The template for displaying Search Results pages.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* The template for displaying search forms in _s
|
* The template for displaying search forms in _s
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
|
<form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* The Sidebar containing the main widget areas.
|
* The Sidebar containing the main widget areas.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<div id="secondary" class="widget-area" role="complementary">
|
<div id="secondary" class="widget-area" role="complementary">
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* The Template for displaying all single posts.
|
* The Template for displaying all single posts.
|
||||||
*
|
*
|
||||||
* @package _s
|
* @package _s
|
||||||
* @since _s 1.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
Reference in New Issue