598
581
* Retrieve information about the blog.
600
583
* Some show parameter values are deprecated and will be removed in future
601
* versions. These options will trigger the _deprecated_argument() function.
602
* The deprecated blog info options are listed in the function contents.
584
* versions. These options will trigger the {@see _deprecated_argument()}
585
* function. The deprecated blog info options are listed in the function
604
588
* The possible values for the 'show' parameter are listed below.
606
* <li><strong>url</strong> - Blog URI to homepage.</li>
607
* <li><strong>wpurl</strong> - Blog URI path to WordPress.</li>
608
* <li><strong>description</strong> - Secondary title</li>
590
* 1. url - Blog URI to homepage.
591
* 2. wpurl - Blog URI path to WordPress.
592
* 3. description - Secondary title
611
594
* The feed URL options can be retrieved from 'rdf_url' (RSS 0.91),
612
595
* 'rss_url' (RSS 1.0), 'rss2_url' (RSS 2.0), or 'atom_url' (Atom feed). The
1117
* Display the archive title based on the queried object.
1121
* @see get_the_archive_title()
1123
* @param string $before Optional. Content to prepend to the title. Default empty.
1124
* @param string $after Optional. Content to append to the title. Default empty.
1126
function the_archive_title( $before = '', $after = '' ) {
1127
$title = get_the_archive_title();
1129
if ( ! empty( $title ) ) {
1130
echo $before . $title . $after;
1135
* Retrieve the archive title based on the queried object.
1139
* @return string Archive title.
1141
function get_the_archive_title() {
1142
if ( is_category() ) {
1143
$title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
1144
} elseif ( is_tag() ) {
1145
$title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
1146
} elseif ( is_author() ) {
1147
$title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
1148
} elseif ( is_year() ) {
1149
$title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) );
1150
} elseif ( is_month() ) {
1151
$title = sprintf( __( 'Month: %s' ), get_the_date( _x( 'F Y', 'monthly archives date format' ) ) );
1152
} elseif ( is_day() ) {
1153
$title = sprintf( __( 'Day: %s' ), get_the_date( _x( 'F j, Y', 'daily archives date format' ) ) );
1154
} elseif ( is_tax( 'post_format' ) ) {
1155
if ( is_tax( 'post_format', 'post-format-aside' ) ) {
1156
$title = _x( 'Asides', 'post format archive title' );
1157
} elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) {
1158
$title = _x( 'Galleries', 'post format archive title' );
1159
} elseif ( is_tax( 'post_format', 'post-format-image' ) ) {
1160
$title = _x( 'Images', 'post format archive title' );
1161
} elseif ( is_tax( 'post_format', 'post-format-video' ) ) {
1162
$title = _x( 'Videos', 'post format archive title' );
1163
} elseif ( is_tax( 'post_format', 'post-format-quote' ) ) {
1164
$title = _x( 'Quotes', 'post format archive title' );
1165
} elseif ( is_tax( 'post_format', 'post-format-link' ) ) {
1166
$title = _x( 'Links', 'post format archive title' );
1167
} elseif ( is_tax( 'post_format', 'post-format-status' ) ) {
1168
$title = _x( 'Statuses', 'post format archive title' );
1169
} elseif ( is_tax( 'post_format', 'post-format-audio' ) ) {
1170
$title = _x( 'Audio', 'post format archive title' );
1171
} elseif ( is_tax( 'post_format', 'post-format-chat' ) ) {
1172
$title = _x( 'Chats', 'post format archive title' );
1174
} elseif ( is_post_type_archive() ) {
1175
$title = sprintf( __( 'Archives: %s' ), post_type_archive_title( '', false ) );
1176
} elseif ( is_tax() ) {
1177
$tax = get_taxonomy( get_queried_object()->taxonomy );
1178
/* translators: 1: Taxonomy singular name, 2: Current taxonomy term */
1179
$title = sprintf( __( '%1$s: %2$s' ), $tax->labels->singular_name, single_term_title( '', false ) );
1181
$title = __( 'Archives' );
1185
* Filter the archive title.
1189
* @param string $title Archive title to be displayed.
1191
return apply_filters( 'get_the_archive_title', $title );
1195
* Display category, tag, or term description.
1199
* @see get_the_archive_description()
1201
* @param string $before Optional. Content to prepend to the description. Default empty.
1202
* @param string $after Optional. Content to append to the description. Default empty.
1204
function the_archive_description( $before = '', $after = '' ) {
1205
$description = get_the_archive_description();
1206
if ( $description ) {
1207
echo $before . $description . $after;
1212
* Retrieve category, tag, or term description.
1216
* @return string Archive description.
1218
function get_the_archive_description() {
1220
* Filter the archive description.
1224
* @see term_description()
1226
* @param string $description Archive description to be displayed.
1228
return apply_filters( 'get_the_archive_description', term_description() );
1099
1232
* Retrieve archive link content based on predefined or custom code.
1101
1234
* The format can be one of four styles. The 'link' for head element, 'option'
2580
2711
* Registers an admin colour scheme css file.
2582
2713
* Allows a plugin to register a new admin colour scheme. For example:
2584
* wp_admin_css_color('classic', __('Classic'), admin_url("css/colors-classic.css"),
2585
* array('#07273E', '#14568A', '#D54E21', '#2683AE'));
2715
* wp_admin_css_color( 'classic', __( 'Classic' ), admin_url( "css/colors-classic.css" ), array(
2716
* '#07273E', '#14568A', '#D54E21', '#2683AE'
2721
* @todo Properly document optional arguments as such
2590
2723
* @param string $key The unique key for this theme.
2591
2724
* @param string $name The name of the theme.
2592
2725
* @param string $url The url of the css file containing the colour scheme.