|
|
|
|
@@ -10,7 +10,7 @@
|
|
|
|
|
* Loads header template.
|
|
|
|
|
*
|
|
|
|
|
* Includes the header template for a theme or if a name is specified then a
|
|
|
|
|
* specialised header will be included.
|
|
|
|
|
* specialized header will be included.
|
|
|
|
|
*
|
|
|
|
|
* For the parameter, if the file is called "header-special.php" then specify
|
|
|
|
|
* "special".
|
|
|
|
|
@@ -19,7 +19,7 @@
|
|
|
|
|
* @since 5.5.0 A return value was added.
|
|
|
|
|
* @since 5.5.0 The `$args` parameter was added.
|
|
|
|
|
*
|
|
|
|
|
* @param string $name The name of the specialised header.
|
|
|
|
|
* @param string $name The name of the specialized header.
|
|
|
|
|
* @param array $args Optional. Additional arguments passed to the header template.
|
|
|
|
|
* Default empty array.
|
|
|
|
|
* @return void|false Void on success, false if the template does not exist.
|
|
|
|
|
@@ -54,7 +54,7 @@ function get_header( $name = null, $args = array() ) {
|
|
|
|
|
* Loads footer template.
|
|
|
|
|
*
|
|
|
|
|
* Includes the footer template for a theme or if a name is specified then a
|
|
|
|
|
* specialised footer will be included.
|
|
|
|
|
* specialized footer will be included.
|
|
|
|
|
*
|
|
|
|
|
* For the parameter, if the file is called "footer-special.php" then specify
|
|
|
|
|
* "special".
|
|
|
|
|
@@ -63,7 +63,7 @@ function get_header( $name = null, $args = array() ) {
|
|
|
|
|
* @since 5.5.0 A return value was added.
|
|
|
|
|
* @since 5.5.0 The `$args` parameter was added.
|
|
|
|
|
*
|
|
|
|
|
* @param string $name The name of the specialised footer.
|
|
|
|
|
* @param string $name The name of the specialized footer.
|
|
|
|
|
* @param array $args Optional. Additional arguments passed to the footer template.
|
|
|
|
|
* Default empty array.
|
|
|
|
|
* @return void|false Void on success, false if the template does not exist.
|
|
|
|
|
@@ -98,7 +98,7 @@ function get_footer( $name = null, $args = array() ) {
|
|
|
|
|
* Loads sidebar template.
|
|
|
|
|
*
|
|
|
|
|
* Includes the sidebar template for a theme or if a name is specified then a
|
|
|
|
|
* specialised sidebar will be included.
|
|
|
|
|
* specialized sidebar will be included.
|
|
|
|
|
*
|
|
|
|
|
* For the parameter, if the file is called "sidebar-special.php" then specify
|
|
|
|
|
* "special".
|
|
|
|
|
@@ -107,7 +107,7 @@ function get_footer( $name = null, $args = array() ) {
|
|
|
|
|
* @since 5.5.0 A return value was added.
|
|
|
|
|
* @since 5.5.0 The `$args` parameter was added.
|
|
|
|
|
*
|
|
|
|
|
* @param string $name The name of the specialised sidebar.
|
|
|
|
|
* @param string $name The name of the specialized sidebar.
|
|
|
|
|
* @param array $args Optional. Additional arguments passed to the sidebar template.
|
|
|
|
|
* Default empty array.
|
|
|
|
|
* @return void|false Void on success, false if the template does not exist.
|
|
|
|
|
@@ -145,7 +145,7 @@ function get_sidebar( $name = null, $args = array() ) {
|
|
|
|
|
* in the theme.
|
|
|
|
|
*
|
|
|
|
|
* Includes the named template part for a theme or if a name is specified then a
|
|
|
|
|
* specialised part will be included. If the theme contains no {slug}.php file
|
|
|
|
|
* specialized part will be included. If the theme contains no {slug}.php file
|
|
|
|
|
* then no template will be included.
|
|
|
|
|
*
|
|
|
|
|
* The template is included using require, not require_once, so you may include the
|
|
|
|
|
@@ -159,7 +159,7 @@ function get_sidebar( $name = null, $args = array() ) {
|
|
|
|
|
* @since 5.5.0 The `$args` parameter was added.
|
|
|
|
|
*
|
|
|
|
|
* @param string $slug The slug name for the generic template.
|
|
|
|
|
* @param string $name The name of the specialised template.
|
|
|
|
|
* @param string $name The name of the specialized template.
|
|
|
|
|
* @param array $args Optional. Additional arguments passed to the template.
|
|
|
|
|
* Default empty array.
|
|
|
|
|
* @return void|false Void on success, false if the template does not exist.
|
|
|
|
|
|