Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Documentation updates galore.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@397 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
commit 3594f29e481faa4ab8b85fb3a070d335ca888922 1 parent c3cf33f
greenshady authored
View
4 admin/admin.php
@@ -14,7 +14,7 @@
/**
* Initializes any admin-related features needed for the framework.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_admin_init() {
@@ -56,7 +56,7 @@ function hybrid_admin_enqueue_style() {
* Function for getting an array of available custom templates with a specific header. Ideally,
* this function would be used to grab custom singular post (any post type) templates.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $args Arguments to check the templates against.
* @return array $post_templates The array of templates.
*/
View
16 admin/post-meta-box.php
@@ -17,7 +17,7 @@
* function for grabbing a list of available post types and adding a new meta box for
* each post type.
*
- * @since 0.7
+ * @since 0.7.0
* @uses get_post_types() Gets an array of post type objects.
* @uses add_meta_box() Adds a meta box to the post editing screen.
*/
@@ -48,7 +48,7 @@ function hybrid_create_post_meta_box() {
* Creates the settings for the post meta box depending on some things in how the theme is
* set up.
*
- * @since 0.7
+ * @since 0.7.0
* @param string $type The post_type of the current post in the post editor.
*/
function hybrid_post_meta_box_args( $type = '' ) {
@@ -107,7 +107,7 @@ function hybrid_post_meta_box_args( $type = '' ) {
* from the hybrid_post_meta_box_args() function. It then loops through each item in the array and
* displays a form element based on the type of setting it should be.
*
- * @since 0.7
+ * @since 0.7.0
* @parameter object $object Post object that holds all the post information.
* @parameter array $box The particular meta box being shown and its information.
*/
@@ -132,7 +132,7 @@ function hybrid_post_meta_box( $object, $box ) {
/**
* Outputs a text input box with the given arguments for use with the post meta box.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $args
* @param string|bool $value Custom field value.
*/
@@ -148,7 +148,7 @@ function hybrid_post_meta_box_text( $args = array(), $value = false ) {
/**
* Outputs a select box with the given arguments for use with the post meta box.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $args
* @param string|bool $value Custom field value.
*/
@@ -171,7 +171,7 @@ function hybrid_post_meta_box_select( $args = array(), $value = false ) {
/**
* Outputs a textarea with the given arguments for use with the post meta box.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $args
* @param string|bool $value Custom field value.
*/
@@ -187,7 +187,7 @@ function hybrid_post_meta_box_textarea( $args = array(), $value = false ) {
/**
* Outputs radio inputs with the given arguments for use with the post meta box.
*
- * @since 0.8
+ * @since 0.8.0
* @param array $args
* @param string|bool $value Custom field value.
*/
@@ -208,7 +208,7 @@ function hybrid_post_meta_box_radio( $args = array(), $value = false ) {
* The function for saving the theme's post meta box settings. It loops through each of the meta
* box arguments for that particular post type and adds, updates, or deletes the metadata.
*
- * @since 0.7
+ * @since 0.7.0
* @param int $post_id
*/
function hybrid_save_post_meta_box( $post_id, $post ) {
View
18 admin/theme-settings.php
@@ -23,7 +23,7 @@
* Users or developers can set a custom capability (default is 'edit_themes') for access to the
* settings page using the "$prefix_settings_capability" filter hook.
*
- * @since 0.7
+ * @since 0.7.0
* @global string $hybrid The global theme object.
*/
function hybrid_settings_page_init() {
@@ -57,7 +57,7 @@ function hybrid_settings_page_init() {
* developers should validate/sanitize their theme settings on the "sanitize_option_{$prefix}_theme_settings"
* hook. This function merely exists for backwards compatibility.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_save_theme_settings( $settings ) {
$prefix = hybrid_get_prefix();
@@ -108,7 +108,7 @@ function hybrid_get_default_theme_settings() {
* {$prefix}_theme_settings in the database. It also fires the {$prefix}_update_settings_page
* hook for saving custom settings.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_load_settings_page() {
$prefix = hybrid_get_prefix();
@@ -131,7 +131,7 @@ function hybrid_load_settings_page() {
* Creates the default meta boxes for the theme settings page. Child theme and plugin developers
* should use add_meta_box() to create additional meta boxes.
*
- * @since 0.7
+ * @since 0.7.0
* @global string $hybrid The global theme object.
*/
function hybrid_create_settings_meta_boxes() {
@@ -161,7 +161,7 @@ function hybrid_create_settings_meta_boxes() {
* information about both the parent theme and child theme. If a child theme is active, this function
* will be called a second time.
*
- * @since 0.7
+ * @since 0.7.0
* @param $object Variable passed through the do_meta_boxes() call.
* @param array $box Specific information about the meta box being loaded.
*/
@@ -198,7 +198,7 @@ function hybrid_about_theme_meta_box( $object, $box ) {
* Creates a settings box that allows users to customize their footer. A basic textarea is given that
* allows HTML and shortcodes to be input.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_footer_settings_meta_box() {
$domain = hybrid_get_textdomain(); ?>
@@ -223,7 +223,7 @@ function hybrid_footer_settings_meta_box() {
* Displays the theme settings page and calls do_meta_boxes() to allow additional settings
* meta boxes to be added to the page.
*
- * @since 0.7
+ * @since 0.7.0
* @global string $hybrid The global theme object.
*/
function hybrid_settings_page() {
@@ -271,7 +271,7 @@ function hybrid_settings_page() {
* Loads the JavaScript files required for managing the meta boxes on the theme settings
* page, which allows users to arrange the boxes to their liking.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_settings_page_enqueue_script() {
wp_enqueue_script( 'common' );
@@ -282,7 +282,7 @@ function hybrid_settings_page_enqueue_script() {
/**
* Loads the JavaScript required for toggling the meta boxes on the theme settings page.
*
- * @since 0.7
+ * @since 0.7.0
* @global string $hybrid The global theme object.
*/
function hybrid_settings_page_load_scripts() {
View
12 functions/comments.php
@@ -4,13 +4,13 @@
* precise control over their display and makes more filter and action hooks available to developers
* to use in their customizations.
*
- * @package Hybrid
+ * @package HybridCore
* @subpackage Functions
*/
/**
* Filter the comment form defaults.
- * @since 0.8
+ * @since 0.8.0
*/
add_filter( 'comment_form_defaults', 'hybrid_comment_form_args' );
@@ -20,7 +20,7 @@
* $style should remain 'ol' since this is hardcoded into the theme and is the semantically correct
* element to use for listing comments.
*
- * @since 0.7
+ * @since 0.7.0
* @return array $args Arguments for listing comments.
*/
function hybrid_list_comments_args() {
@@ -80,7 +80,7 @@ function hybrid_comments_end_callback() {
* available. Adds a call to HYBRID_IMAGES . "/{$comment_type}.png" for the default avatars for
* trackbacks and pingbacks.
*
- * @since 0.2
+ * @since 0.2.0
* @global $comment The current comment's DB object.
* @global $hybrid The global Hybrid object.
*/
@@ -114,7 +114,7 @@ function hybrid_avatar() {
/**
* Function for displaying a comment's metadata.
*
- * @since 0.7
+ * @since 0.7.0
* @param string $metadata Custom metadata to use.
* @global $comment The global comment object.
* @global $post The global post object.
@@ -135,7 +135,7 @@ function hybrid_comment_meta( $metadata = '' ) {
* the theme to preserve some backwards compatibility with its old comment form. It also allows
* users to build custom comment forms by filtering 'comment_form_defaults' in their child theme.
*
- * @since 0.8
+ * @since 0.8.0
* @param array $args The default comment form arguments.
* @return array $args The filtered comment form arguments.
*/
View
10 functions/context.php
@@ -21,7 +21,7 @@
* based archives depending on several factors. For example, one could load an archive for a specific
* second during a specific minute within a specific hour on a specific day and so on.
*
- * @since 0.7
+ * @since 0.7.0
* @global $wp_query The current page's query object.
* @global $hybrid The global Hybrid object.
* @return array $hybrid->context Several contexts based on the current page.
@@ -116,7 +116,7 @@ function hybrid_get_context() {
* 'hentry'. Posts are given category, tag, and author classes. Alternate post classes of odd,
* even, and alt are added.
*
- * @since 0.5
+ * @since 0.5.0
* @global $post The current post's DB object.
* @param string|array $class Additional classes for more control.
* @return string $class
@@ -188,7 +188,7 @@ function hybrid_entry_class( $class = '', $post_id = null ) {
* and reader classes. Needs more work because WP, by default, assigns even/odd backwards
* (Odd should come first, even second).
*
- * @since 0.2
+ * @since 0.2.0
* @global $wpdb WordPress DB access object.
* @global $comment The current comment's DB object.
*/
@@ -237,7 +237,7 @@ function hybrid_comment_class( $class = '' ) {
/**
* Provides classes for the <body> element depending on page context.
*
- * @since 0.1
+ * @since 0.1.0
* @uses $wp_query
* @param string|array $class Additional classes for more control.
* @return string
@@ -303,7 +303,7 @@ function hybrid_body_class( $class = '' ) {
* Function for handling what the browser/search engine title should be. Tries to handle every
* situation to make for the best SEO.
*
- * @since 0.1
+ * @since 0.1.0
* @global $wp_query
*/
function hybrid_document_title() {
View
34 functions/core-seo.php
@@ -1,11 +1,14 @@
<?php
/**
- * Temporary file to hold SEO/<head> stuff until a permanent home is found.
+ * SEO and header functions. Not all things in this file are strictly for search engine optimization. Many
+ * of the functions handle basic <meta> elements for the <head> area of the site. This file is a catchall file
+ * for adding these types of things to themes.
*
* @package HybridCore
* @subpackage Functions
*/
+/* Add <meta> elements to the <head> area. */
add_action( 'wp_head', 'hybrid_meta_robots', 1 );
add_action( 'wp_head', 'hybrid_meta_author', 1 );
add_action( 'wp_head', 'hybrid_meta_copyright', 1 );
@@ -14,8 +17,8 @@
add_action( 'wp_head', 'hybrid_meta_keywords', 1 );
/**
- * Sets the default meta robots setting. If private, don't send meta info to the
- * header. Runs the hybrid_meta_robots filter hook at the end.
+ * Sets the default meta robots setting. If private, don't send meta info to the header. Runs the
+ * hybrid_meta_robots filter hook at the end.
*
* @since 0.2.3
*/
@@ -28,8 +31,8 @@ function hybrid_meta_robots() {
}
/**
- * Generates the meta author. On single posts and pages, use the author's name.
- * On the home page, use all authors. The hybrid_meta_author filter added in 0.6.
+ * Generates the meta author. On single posts and pages, use the author's name. On the home page, use
+ * all authors. The hybrid_meta_author filter added in 0.6.
*
* @since 0.3.3
*/
@@ -48,11 +51,10 @@ function hybrid_meta_author() {
}
/**
- * Add the meta tag for copyright information to the header. Single
- * posts and pages should display the date written. All other pages will
- * show the current year. The hybrid_meta_copyright filter added in 0.6.
+ * Add the meta tag for copyright information to the header. Single posts and pages should display the
+ * date written. All other pages will show the current year.
*
- * @since 0.4
+ * @since 0.4.0
*/
function hybrid_meta_copyright() {
$domain = hybrid_get_textdomain();
@@ -67,11 +69,10 @@ function hybrid_meta_copyright() {
}
/**
- * Add the revised meta tag on single posts and pages. This shows the
- * last time the post/page was modified. The hybrid_meta_revised filter
- * added in 0.6.
+ * Add the revised meta tag on single posts and pages (or any post type). This shows the last time the post
+ * was modified.
*
- * @since 0.4
+ * @since 0.4.0
*/
function hybrid_meta_revised() {
$revised = '';
@@ -83,8 +84,8 @@ function hybrid_meta_revised() {
}
/**
- * Generates the meta description. Checks theme settings for indexing, title,
- * and meta settings. Customize this with the hybrid_meta_description filter.
+ * Generates the meta description. Checks theme settings for indexing, title, and meta settings. Customize
+ * this with the hybrid_meta_description filter.
*
* @since 0.2.3
*/
@@ -129,8 +130,7 @@ function hybrid_meta_description() {
}
/**
- * Generates meta keywords/tags for the site. Checks theme settings.
- * Checks indexing settings. Customize with the hybrid_meta_keywords filter.
+ * Generates meta keywords/tags for the site.
*
* @since 0.2.3
*/
View
20 functions/core.php
@@ -4,7 +4,7 @@
* used across the entire framework to make various tasks faster. This file should be loaded
* prior to any other files because its functions are needed to run the framework.
*
- * @package Hybrid
+ * @package HybridCore
* @subpackage Functions
*/
@@ -14,7 +14,7 @@
* plugin to make it easier to use hooks across multiple themes without having to figure out
* each theme's hooks (assuming other themes used the same system).
*
- * @since 0.7
+ * @since 0.7.0
* @uses get_template() Defines the theme prefix, which is generally 'hybrid'.
* @global object $hybrid The global Hybrid object.
* @return string $hybrid->prefix The prefix of the theme.
@@ -34,7 +34,7 @@ function hybrid_get_prefix() {
* of the theme. Theme developers building from the framework should use their template name
* (i.e., directory name) as their textdomain within template files.
*
- * @since 0.7
+ * @since 0.7.0
* @uses get_template() Defines the theme textdomain, which is generally 'hybrid'.
* @global object $hybrid The global Hybrid object.
* @return string $hybrid->textdomain The textdomain of the theme.
@@ -54,7 +54,7 @@ function hybrid_get_textdomain() {
* of the mofile for translations. This allows child themes to have a folder called /languages with translations
* of their parent theme so that the translations aren't lost on a parent theme upgrade.
*
- * @since 0.9
+ * @since 0.9.0
* @param string $mofile File name of the .mo file.
* @param string $domain The textdomain currently being filtered.
*/
@@ -79,7 +79,7 @@ function hybrid_load_textdomain( $mofile, $domain ) {
* Major props to Ptah Dunbar for the do_atomic() function.
* @link http://ptahdunbar.com/wordpress/smarter-hooks-context-sensitive-hooks
*
- * @since 0.7
+ * @since 0.7.0
* @uses hybrid_get_prefix() Gets the theme prefix.
* @uses hybrid_get_context() Gets the context of the current page.
* @param string $tag Usually the location of the hook but defines what the base hook is.
@@ -112,7 +112,7 @@ function do_atomic( $tag = '', $arg = '' ) {
* that to give extra hooks such as 'hybrid_singular_entry_meta', 'hybrid_singular-post_entry_meta',
* and 'hybrid_singular-post-ID_entry_meta'.
*
- * @since 0.7
+ * @since 0.7.0
* @uses hybrid_get_prefix() Gets the theme prefix.
* @uses hybrid_get_context() Gets the context of the current page.
* @param string $tag Usually the location of the hook but defines what the base hook is.
@@ -147,7 +147,7 @@ function apply_atomic( $tag = '', $value = '' ) {
* context-aware functionality alongside shortcodes. Rather than adding a lot of code to the
* function itself, developers can create individual functions to handle shortcodes.
*
- * @since 0.7
+ * @since 0.7.0
* @param string $tag Usually the location of the hook but defines what the base hook is.
* @param mixed $value The value to be filtered.
* @return mixed $value The value after it has been filtered.
@@ -161,7 +161,7 @@ function apply_atomic_shortcode( $tag = '', $value = '' ) {
* like to show. Hybrid theme settings are added with 'autoload' set to 'yes', so the settings are
* only loaded once on each page load.
*
- * @since 0.7
+ * @since 0.7.0
* @uses get_option() Gets an option from the database.
* @uses hybrid_get_prefix() Gets the prefix of the theme.
* @global object $hybrid The global Hybrid object.
@@ -191,7 +191,7 @@ function hybrid_get_setting( $option = '' ) {
* The theme can save multiple things in a transient to help speed up page load times. We're
* setting a default of 12 hours or 43,200 seconds (60 * 60 * 12).
*
- * @since 0.8
+ * @since 0.8.0
* @return int Transient expiration time in seconds.
*/
function hybrid_get_transient_expiration() {
@@ -202,7 +202,7 @@ function hybrid_get_transient_expiration() {
* Function for formatting a hook name if needed. It automatically adds the theme's prefix to
* the hook, and it will add a context (or any variable) if it's given.
*
- * @since 0.7
+ * @since 0.7.0
* @param string $tag The basic name of the hook (e.g., 'before_header').
* @param string $context A specific context/value to be added to the hook.
*/
View
10 functions/media.php
@@ -13,7 +13,7 @@
* SCRIPT_DEBUG must be set to 'true' in the 'wp-config.php' file. This will check if a 'style.dev.css'
* file is present within the theme folder and use it if it exists. Else, it defaults to 'style.css'.
*
- * @since 0.9
+ * @since 0.9.0
*/
function hybrid_debug_stylesheet( $stylesheet_uri, $stylesheet_dir_uri ) {
@@ -36,7 +36,7 @@ function hybrid_debug_stylesheet( $stylesheet_uri, $stylesheet_dir_uri ) {
* If selected, the drop-downs.js file will be loaded, which is a bundled version of the
* Superfish jQuery plugin.
*
- * @since 0.1
+ * @since 0.1.0
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @link http://users.tpg.com.au/j_birch/plugins/superfish
*/
@@ -64,7 +64,7 @@ function hybrid_enqueue_script() {
* this could lead to messy template files. For now, we'll use separate functions for handling
* attachment content. The biggest issue here is with handling different video types.
*
- * @since 0.5
+ * @since 0.5.0
* @uses get_post_mime_type() Gets the mime type of the attachment.
* @uses wp_get_attachment_url() Gets the URL of the attachment file.
*/
@@ -91,7 +91,7 @@ function hybrid_attachment() {
* @todo Run a battery of tests on many different applications.
* @todo Figure out what to do with FLV files outside of the current functionality.
*
- * @since 0.3
+ * @since 0.3.0
* @param string $mime attachment mime type
* @param string $file attachment file URL
* @return string
@@ -108,7 +108,7 @@ function hybrid_application_attachment( $mime = '', $file = '' ) {
* Handles text attachments on their attachment pages.
* Uses the <object> element to embed media in the pages.
*
- * @since 0.3
+ * @since 0.3.0
* @param string $mime attachment mime type
* @param string $file attachment file URL
* @return string
View
32 functions/menus.php
@@ -1,40 +1,40 @@
<?php
/**
- * Functions for dealing with menus and menu items within the theme. WP menu items must be
- * unregistered. Hybrid menu items must be registered in their place. All menus are loaded
- * and registered with WP.
+ * The menus functions deal with registering nav menus within WordPress for the core framework. Theme
+ * developers may use the default menu(s) provided by the framework within their own themes, decide not
+ * to use them, or register additional menus.
*
* @package HybridCore
* @subpackage Functions
*/
-/**
- * Register menus.
- * @since 0.8
- */
+/* Register nav menus. */
add_action( 'init', 'hybrid_register_menus' );
/**
- * Registers the theme's menus.
+ * Registers the the framework's default menus. By default, the framework registers the 'primary' menu,
+ * which is technically a location within the theme for a user-created menu to be shown.
*
- * @since 0.8
- * @uses is_nav_menu() Checks if a menu exists.
- * @uses locate_template() Checks for template in child and parent theme.
+ * @since 0.8.0
+ * @uses register_nav_menu() Registers a nav menu with WordPress.
+ * @link http://codex.wordpress.org/Function_Reference/register_nav_menu
*/
function hybrid_register_menus() {
- if ( current_theme_supports( 'hybrid-core-menus' ) )
- register_nav_menu( 'primary', __( 'Primary Menu', hybrid_get_textdomain() ) );
+
+ /* Register the 'primary' menu. */
+ register_nav_menu( 'primary', __( 'Primary Menu', hybrid_get_textdomain() ) );
}
/**
* Loads the 'Primary Menu' template file. Users can overwrite menu-primary.php in their child
* theme folder.
*
- * @since 0.8
- * @uses locate_template() Checks for template in child and parent theme.
+ * @since 0.8.0
+ * @uses get_template_part() Checks for template in child and parent theme.
+ * @link http://codex.wordpress.org/Function_Reference/get_template_part
*/
function hybrid_get_primary_menu() {
- locate_template( array( 'menu-primary.php', 'menu.php' ), true );
+ get_template_part( 'menu', 'primary' );
}
?>
View
56 functions/shortcodes.php
@@ -1,22 +1,22 @@
<?php
/**
- * Shortcodes bundled for use with the theme. These shortcodes can be used in any shortcode-ready
- * area, which includes posts, pages, and various Hybrid theme areas.
+ * Shortcodes bundled for use with themes. These shortcodes can be used in any shortcode-ready area, which
+ * includes the post content area. Themes may optionally make alternate shortcode-aware areas where these
+ * shortcodes may be used. Note that some shortcodes are specific to posts and comments and would be useless
+ * outside of the post and comment loops.
*
* @package HybridCore
* @subpackage Functions
*/
-/**
- * Register shortcodes.
- * @since 0.8
- */
+/* Register shortcodes. */
add_action( 'init', 'hybrid_add_shortcodes' );
/**
- * Creates new shortcodes for use in any shortcode-ready area.
+ * Creates new shortcodes for use in any shortcode-ready area. This function uses the add_shortcode()
+ * function to register new shortcodes with WordPress.
*
- * @since 0.8
+ * @since 0.8.0
* @uses add_shortcode() to create new shortcodes.
* @link http://codex.wordpress.org/Shortcode_API
*/
@@ -52,7 +52,7 @@ function hybrid_add_shortcodes() {
/**
* Shortcode to display the current year.
*
- * @since 0.6
+ * @since 0.6.0
* @uses date() Gets the current year.
*/
function hybrid_the_year_shortcode() {
@@ -62,7 +62,7 @@ function hybrid_the_year_shortcode() {
/**
* Shortcode to display a link back to the site.
*
- * @since 0.6
+ * @since 0.6.0
* @uses get_bloginfo() Gets information about the install.
*/
function hybrid_site_link_shortcode() {
@@ -71,7 +71,7 @@ function hybrid_site_link_shortcode() {
/**
* Shortcode to display a link to WordPress.org.
- * @since 0.6
+ * @since 0.6.0
*/
function hybrid_wp_link_shortcode() {
return '<a class="wp-link" href="http://wordpress.org" title="' . __( 'Powered by WordPress, state-of-the-art semantic personal publishing platform', hybrid_get_textdomain() ) . '"><span>' . __( 'WordPress', hybrid_get_textdomain() ) . '</span></a>';
@@ -80,7 +80,7 @@ function hybrid_wp_link_shortcode() {
/**
* Shortcode to display a link to the Hybrid theme page.
*
- * @since 0.6
+ * @since 0.6.0
* @uses get_theme_data() Gets theme (parent theme) information.
*/
function hybrid_theme_link_shortcode() {
@@ -91,7 +91,7 @@ function hybrid_theme_link_shortcode() {
/**
* Shortcode to display a link to the child theme's page.
*
- * @since 0.6
+ * @since 0.6.0
* @uses get_theme_data() Gets theme (child theme) information.
*/
function hybrid_child_link_shortcode() {
@@ -102,7 +102,7 @@ function hybrid_child_link_shortcode() {
/**
* Shortcode to display a login link or logout link.
*
- * @since 0.6
+ * @since 0.6.0
* @uses is_user_logged_in() Checks if the current user is logged into the site.
* @uses wp_logout_url() Creates a logout URL.
* @uses wp_login_url() Creates a login URL.
@@ -120,7 +120,7 @@ function hybrid_loginout_link_shortcode() {
/**
* Displays query count and load time if the current user can edit themes.
*
- * @since 0.6
+ * @since 0.6.0
* @uses current_user_can() Checks if the current user can edit themes.
*/
function hybrid_query_counter_shortcode() {
@@ -132,7 +132,7 @@ function hybrid_query_counter_shortcode() {
/**
* Displays a nav menu that has been created from the Menus screen in the admin.
*
- * @since 0.8
+ * @since 0.8.0
* @uses wp_nav_menu() Displays the nav menu.
*/
function hybrid_nav_menu_shortcode( $attr ) {
@@ -162,7 +162,7 @@ function hybrid_nav_menu_shortcode( $attr ) {
/**
* Displays the edit link for an individual post.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $attr
*/
function hybrid_entry_edit_link_shortcode( $attr ) {
@@ -182,7 +182,7 @@ function hybrid_entry_edit_link_shortcode( $attr ) {
/**
* Displays the published date of an individual post.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $attr
*/
function hybrid_entry_published_shortcode( $attr ) {
@@ -196,7 +196,7 @@ function hybrid_entry_published_shortcode( $attr ) {
/**
* Displays a post's number of comments wrapped in a link to the comments area.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $attr
*/
function hybrid_entry_comments_link_shortcode( $attr ) {
@@ -226,7 +226,7 @@ function hybrid_entry_comments_link_shortcode( $attr ) {
/**
* Displays an individual post's author with a link to his or her archive.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $attr
*/
function hybrid_entry_author_shortcode( $attr ) {
@@ -238,7 +238,7 @@ function hybrid_entry_author_shortcode( $attr ) {
/**
* Displays a list of terms for a specific taxonomy.
*
- * @since 0.7
+ * @since 0.7.0
* @param array $attr
*/
function hybrid_entry_terms_shortcode( $attr ) {
@@ -255,7 +255,7 @@ function hybrid_entry_terms_shortcode( $attr ) {
/**
* Displays a post's title with a link to the post.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_entry_title_shortcode() {
global $post;
@@ -278,7 +278,7 @@ function hybrid_entry_title_shortcode() {
/**
* Displays the shortlinke of an individual entry.
*
- * @since 0.8
+ * @since 0.8.0
*/
function hybrid_entry_shortlink_shortcode( $attr ) {
global $post;
@@ -303,7 +303,7 @@ function hybrid_entry_shortlink_shortcode( $attr ) {
/**
* Displays the published date and time of an individual comment.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_comment_published_shortcode() {
$domain = hybrid_get_textdomain();
@@ -314,7 +314,7 @@ function hybrid_comment_published_shortcode() {
/**
* Displays the comment author of an individual comment.
*
- * @since 0.8
+ * @since 0.8.0
* @global $comment The current comment's DB object.
* @return string
*/
@@ -341,7 +341,7 @@ function hybrid_comment_author_shortcode( $attr ) {
/**
* Displays the permalink to an individual comment.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_comment_permalink_shortcode( $attr ) {
global $comment;
@@ -355,7 +355,7 @@ function hybrid_comment_permalink_shortcode( $attr ) {
/**
* Displays a comment's edit link to users that have the capability to edit the comment.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_comment_edit_link_shortcode( $attr ) {
global $comment;
@@ -377,7 +377,7 @@ function hybrid_comment_edit_link_shortcode( $attr ) {
/**
* Displays a reply link for the 'comment' comment_type if threaded comments are enabled.
*
- * @since 0.7
+ * @since 0.7.0
*/
function hybrid_comment_reply_link_shortcode( $attr ) {
$domain = hybrid_get_textdomain();
View
89 functions/template-hierarchy.php
@@ -1,10 +1,9 @@
<?php
/**
- * Functions for loading the correct template in the Hybrid system. Many of the default
- * WordPress templates are overridden to allow for a better template hierarchy, which
- * allows for more customizations and better structure.
- *
- * Other functions in this file are for template-specific outputs, such as the page menu.
+ * The framework has its own template hierarchy that can be used instead of the default WordPress
+ * template hierarchy. It is not much different than the default. It was built to extend the default by
+ * making it smarter and more flexible. The goal is to give theme developers and end users an
+ * easy-to-override system that doesn't involve massive amounts of conditional tags within files.
*
* @package HybridCore
* @subpackage Functions
@@ -26,11 +25,10 @@
add_filter( 'attachment_template', 'hybrid_singular_template' );
/**
- * Overrides WP's default template for date-based archives. Better abstraction of
- * templates than is_date() allows by checking for the year, month, week, day, hour,
- * and minute.
+ * Overrides WP's default template for date-based archives. Better abstraction of templates than
+ * is_date() allows by checking for the year, month, week, day, hour, and minute.
*
- * @since 0.6
+ * @since 0.6.0
* @uses locate_template() Checks for template in child and parent theme.
* @param string $template
* @return string $template Full path to file.
@@ -38,82 +36,118 @@
function hybrid_date_template( $template ) {
$templates = array();
+ /* If viewing a time-based archive. */
if ( is_time() ) {
+
+ /* If viewing a minutely archive. */
if ( get_query_var( 'minute' ) )
$templates[] = 'minute.php';
+
+ /* If viewing an hourly archive. */
elseif ( get_query_var( 'hour' ) )
$templates[] = 'hour.php';
+
+ /* Catchall for any time-based archive. */
$templates[] = 'time.php';
}
+
+ /* If viewing a daily archive. */
elseif ( is_day() )
$templates[] = 'day.php';
+
+ /* If viewing a weekly archive. */
elseif ( get_query_var( 'w' ) )
$templates[] = 'week.php';
+
+ /* If viewing a monthly archive. */
elseif ( is_month() )
$templates[] = 'month.php';
+
+ /* If viewing a yearly archive. */
elseif ( is_year() )
$templates[] = 'year.php';
+ /* Catchall template for date-based archives. */
$templates[] = 'date.php';
+
+ /* Fall back to the basic archive template. */
$templates[] = 'archive.php';
+ /* Return the found template. */
return locate_template( $templates );
}
/**
- * Overrides WP's default template for author-based archives. Better abstraction
- * of templates than is_author() allows by allowing themes to specify templates for
- * a specific author. The hierarchy is author-$author.php, author.php.
+ * Overrides WP's default template for author-based archives. Better abstraction of templates than
+ * is_author() allows by allowing themes to specify templates for a specific author. The hierarchy is
+ * user-$nicename.php, $user-role-$role.php, user.php, author.php, archive.php.
*
- * @since 0.7
+ * @since 0.7.0
* @uses locate_template() Checks for template in child and parent theme.
* @param string $template
* @return string Full path to file.
*/
function hybrid_user_template( $template ) {
$templates = array();
+
+ /* Get the user nicename. */
$name = get_the_author_meta( 'user_nicename', get_query_var( 'author' ) );
+
+ /* Get the user object. */
$user = new WP_User( absint( get_query_var( 'author' ) ) );
- $templates = array( "user-{$name}.php", "author-{$name}.php" );
+ /* Add the user nicename template. */
+ $templates[] = "user-{$name}.php";
+ /* Add role-based templates for the user. */
if ( is_array( $user->roles ) ) {
foreach ( $user->roles as $role )
$templates[] = "user-role-{$role}.php";
}
+
+ /* Add a basic user template. */
$templates[] = 'user.php';
+
+ /* Add backwards compatibility with the WordPress author template. */
$templates[] = 'author.php';
+
+ /* Fall back to the basic archive template. */
$templates[] = 'archive.php';
+ /* Return the found template. */
return locate_template( $templates );
}
/**
- * Overrides WP's default template for category- and tag-based archives. This allows
- * better organization of taxonomy template files by making categories and post tags
- * work the same way as other taxonomies. The hierarchy is taxonomy-$taxonomy-$term.php,
- * taxonomy-$taxonomy.php, taxonomy.php, archive.php.
+ * Overrides WP's default template for category- and tag-based archives. This allows better
+ * organization of taxonomy template files by making categories and post tags work the same way as
+ * other taxonomies. The hierarchy is taxonomy-$taxonomy-$term.php, taxonomy-$taxonomy.php,
+ * taxonomy.php, archive.php.
*
- * @since 0.7
+ * @since 0.7.0
* @uses locate_template() Checks for template in child and parent theme.
* @param string $template
* @return string Full path to file.
*/
function hybrid_taxonomy_template( $template ) {
global $wp_query;
+
+ /* Get the queried term object. */
$term = $wp_query->get_queried_object();
+
+ /* Return the available templates. */
return locate_template( array( "taxonomy-{$term->taxonomy}-{$term->slug}.php", "taxonomy-{$term->taxonomy}.php", 'taxonomy.php', 'archive.php' ) );
}
/**
- * Overrides the default single (singular post) template. Post templates can be
- * loaded using a custom post template, by slug, or by ID.
+ * Overrides the default single (singular post) template. Post templates can be loaded using a custom
+ * post template, by slug, or by ID.
*
* Attachment templates are handled slightly differently. Rather than look for the slug
* or ID, templates can be loaded by attachment-$mime[0]_$mime[1].php,
* attachment-$mime[1].php, or attachment-$mime[0].php.
*
- * @since 0.7
+ * @since 0.7.0
* @param string $template The default WordPress post template.
* @return string $template The theme post template after all templates have been checked for.
*/
@@ -127,6 +161,7 @@ function hybrid_singular_template( $template ) {
if ( $custom )
$templates[] = $custom;
+ /* If viewing an attachment page, handle the files by mime type. */
if ( is_attachment() ) {
/* Split the mime_type into two distinct parts. */
$type = explode( '/', get_post_mime_type() );
@@ -135,14 +170,24 @@ function hybrid_singular_template( $template ) {
$templates[] = "attachment-{$type[1]}.php";
$templates[] = "attachment-{$type[0]}.php";
}
+
+ /* If viewing any other type of singular page. */
else {
+
+ /* Add a post name (slug) template. */
$templates[] = "{$wp_query->post->post_type}-{$wp_query->post->post_name}.php";
+
+ /* Add a post ID template. */
$templates[] = "{$wp_query->post->post_type}-{$wp_query->post->ID}.php";
}
+ /* Add a template based off the post type name. */
$templates[] = "{$wp_query->post->post_type}.php";
+
+ /* Add a general template of singular.php. */
$templates[] = "singular.php";
+ /* Return the found template. */
return locate_template( $templates );
}
View
30 functions/utility.php
@@ -1,19 +1,13 @@
<?php
/**
- * Functions for loading the correct template in the Hybrid system. Many of the default
- * WordPress templates are overridden to allow for a better template hierarchy, which
- * allows for more customizations and better structure.
- *
- * Other functions in this file are for template-specific outputs, such as the page menu.
+ * Additional helper functions that the framework or themes may use. The functions in this file are functions
+ * that don't really have a home within any other parts of the framework.
*
* @package HybridCore
* @subpackage Functions
*/
-/**
- * Add extra support for post types.
- * @since 0.8
- */
+/* Add extra support for post types. */
add_action( 'init', 'hybrid_add_post_type_support' );
/**
@@ -22,7 +16,7 @@
* 'attachment' post type. Technically, these are already used for attachments in core, but
* they're not registered.
*
- * @since 0.8
+ * @since 0.8.0
*/
function hybrid_add_post_type_support() {
add_post_type_support( 'post', array( hybrid_get_prefix() . '-post-settings', 'entry-views' ) );
@@ -36,7 +30,7 @@ function hybrid_add_post_type_support() {
* template name prefix. The function looks for templates based on the context of the current page
* being viewed by the user.
*
- * @since 0.8
+ * @since 0.8.0
* @param string $template The slug of the template whose context we're searching for.
* @return string $template The full path of the located template.
*/
@@ -66,7 +60,7 @@ function get_atomic_template( $template ) {
* Adds the correct DOCTYPE to the theme. Defaults to XHTML 1.0 Strict.
* Child themes can overwrite this with the hybrid_doctype filter.
*
- * @since 0.4
+ * @since 0.4.0
*/
function hybrid_doctype() {
if ( !preg_match( "/MSIE 6.0/", esc_attr( $_SERVER['HTTP_USER_AGENT'] ) ) )
@@ -80,7 +74,7 @@ function hybrid_doctype() {
* Shows the content type in the header. Gets the site's defined HTML type
* and charset. Can be overwritten with the hybrid_meta_content_type filter.
*
- * @since 0.4
+ * @since 0.4.0
*/
function hybrid_meta_content_type() {
$content_type = '<meta http-equiv="Content-Type" content="' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) . '" />' . "\n";
@@ -92,7 +86,7 @@ function hybrid_meta_content_type() {
* Uses the theme name and version from style.css. In 0.6, added the hybrid_meta_template
* filter hook.
*
- * @since 0.4
+ * @since 0.4.0
*/
function hybrid_meta_template() {
$data = get_theme_data( TEMPLATEPATH . '/style.css' );
@@ -103,7 +97,7 @@ function hybrid_meta_template() {
/**
* Displays the pinkback URL.
*
- * @since 0.4
+ * @since 0.4.0
*/
function hybrid_head_pingback() {
$pingback = '<link rel="pingback" href="' . get_bloginfo( 'pingback_url' ) . '" />' . "\n";
@@ -116,7 +110,7 @@ function hybrid_head_pingback() {
* once the theme moves from XHTML to HTML 5 because HTML 5 allows for
* multiple <h1> elements in a single document.
*
- * @since 0.1
+ * @since 0.1.0
*/
function hybrid_site_title() {
$tag = ( is_front_page() ) ? 'h1' : 'div';
@@ -133,7 +127,7 @@ function hybrid_site_title() {
* change once the theme moves from XHTML to HTML 5 because HTML 5 has the
* <hgroup> element.
*
- * @since 0.1
+ * @since 0.1.0
*/
function hybrid_site_description() {
$tag = ( is_front_page() ) ? 'h2' : 'div';
@@ -148,7 +142,7 @@ function hybrid_site_description() {
* Displays the page's profile URI.
* @link http://microformats.org/wiki/profile-uris
*
- * @since 0.6
+ * @since 0.6.0
*/
function hybrid_profile_uri() {
echo apply_atomic( 'profile_uri', 'http://gmpg.org/xfn/11' );
View
69 functions/widgets.php
@@ -1,43 +1,34 @@
<?php
/**
- * Functions for dealing with widgets and sidebars within the theme. WP widgets must be
- * unregistered. Hybrid widgets must be registered in their place. All sidebars are loaded
- * and registered with WP.
+ * Widgets and sidebars functions file. The functions here register default sidebars and widgets for the
+ * core framework. It also unregisters default WordPress widgets if being replaced by the framework
+ * widgets. The framework's widgets are meant to extend the functionality of the base WordPress widgets
+ * by offering additional options to the end user. The framework sidebars provide a starting point for theme
+ * developers when developing themes off the framework.
*
* @package HybridCore
* @subpackage Functions
*/
-/**
- * Register widget areas
- * @since 0.7
- */
+/* Register widget areas. */
add_action( 'init', 'hybrid_register_sidebars' );
-/**
- * Unregister WP widgets
- * @since 0.3.2
- */
+/* Unregister WP widgets. */
add_action( 'widgets_init', 'hybrid_unregister_widgets' );
-/**
- * Register Hybrid Widgets
- * @since 0.6
- */
+/* Register Hybrid widgets. */
add_action( 'widgets_init', 'hybrid_register_widgets' );
-/**
- * Disables widget areas
- * @since 0.5
- */
+/* Disables widget areas. */
add_filter( 'sidebars_widgets', 'remove_sidebars' );
/**
- * Registers each widget area for the theme. This includes all of the asides
- * and the utility widget areas throughout the theme.
+ * Registers the default framework dynamic sidebars. Theme developers may optionally choose to support
+ * these sidebars within their themes or add more custom sidebars to the mix.
*
- * @since 0.7
- * @uses register_sidebar() Registers a widget area.
+ * @since 0.7.0
+ * @uses register_sidebar() Registers a sidebar with WordPress.
+ * @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
function hybrid_register_sidebars() {
@@ -54,18 +45,18 @@ function hybrid_register_sidebars() {
register_sidebar( array( 'name' => __( 'Subsidiary', $domain ), 'id' => 'subsidiary', 'description' => __( 'A widget area loaded in the footer of the site.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
/* Register utility widget areas. */
- register_sidebar( array( 'name' => __( 'Utility: Before Content', $domain ), 'id' => 'before-content', 'description' => __( 'Loaded before the page\'s main content area.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
- register_sidebar( array( 'name' => __( 'Utility: After Content', $domain ), 'id' => 'after-content', 'description' => __( 'Loaded after the page\'s main content area.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
- register_sidebar( array( 'name' => __( 'Utility: After Singular', $domain ), 'id' => 'after-singular', 'description' => __( 'Loaded on singular post (page, attachment, etc.) views before the comments area.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
+ register_sidebar( array( 'name' => __( 'Before Content', $domain ), 'id' => 'before-content', 'description' => __( 'Loaded before the page\'s main content area.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
+ register_sidebar( array( 'name' => __( 'After Content', $domain ), 'id' => 'after-content', 'description' => __( 'Loaded after the page\'s main content area.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
+ register_sidebar( array( 'name' => __( 'After Singular', $domain ), 'id' => 'after-singular', 'description' => __( 'Loaded on singular post (page, attachment, etc.) views before the comments area.', $domain ), 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
}
/**
- * Register Hybrid's extra widgets. Each widget is meant to replace or extend the
- * current default WordPress widgets.
+ * Registers the core frameworks widgets. These widgets typically overwrite the equivalent default WordPress
+ * widget by extending the available options of the widget.
*
- * @since 0.6
- * @uses register_widget() Registers individual widgets.
- * @link http://codex.wordpress.org/WordPress_Widgets_Api
+ * @since 0.6.0
+ * @uses register_widget() Registers individual widgets with WordPress
+ * @link http://codex.wordpress.org/Function_Reference/register_widget
*/
function hybrid_register_widgets() {
@@ -97,12 +88,12 @@ function hybrid_register_widgets() {
}
/**
- * Unregister default WordPress widgets we don't need. The theme adds its own
- * versions of these widgets.
+ * Unregister default WordPress widgets that are replaced by the framework's widgets. Widgets that
+ * aren't replaced are not unregistered.
*
* @since 0.3.2
- * @uses unregister_widget() Removes individual widgets.
- * @link http://codex.wordpress.org/WordPress_Widgets_Api
+ * @uses unregister_widget() Unregisters a preexisting widget.
+ * @link http://codex.wordpress.org/Function_Reference/unregister_widget
*/
function hybrid_unregister_widgets() {
@@ -155,7 +146,7 @@ function hybrid_get_subsidiary() {
* Loads the Utility: Before Content widget area. Users can overwrite
* 'sidebar-before-content.php' in child themes.
*
- * @since 0.4
+ * @since 0.4.0
* @uses get_sidebar() Checks for the template in the child and parent theme.
*/
function hybrid_get_utility_before_content() {
@@ -166,7 +157,7 @@ function hybrid_get_utility_before_content() {
* Loads the Utility: After Content widget area. Users can overwrite
* 'sidebar-after-content.php' in child themes.
*
- * @since 0.4
+ * @since 0.4.0
* @uses get_sidebar() Checks for the template in the child and parent theme.
*/
function hybrid_get_utility_after_content() {
@@ -177,7 +168,7 @@ function hybrid_get_utility_after_content() {
* Loads the Utility: After Singular widget area. Users can overwrite
* 'sidebar-after-singular.php' in child themes.
*
- * @since 0.7
+ * @since 0.7.0
* @uses get_sidebar() Checks for the template in the child and parent theme.
*/
function hybrid_get_utility_after_singular() {
@@ -189,7 +180,7 @@ function hybrid_get_utility_after_singular() {
* it on the No Widgets template. Users that need additional templates without widgets
* should create a simliar function in their child theme.
*
- * @since 0.5
+ * @since 0.5.0
* @uses sidebars_widgets Filter to remove all widget areas
*/
function remove_sidebars( $sidebars_widgets ) {
View
46 hybrid.php
@@ -1,27 +1,27 @@
<?php
/**
- * Hybrid Core is a framework for developing WordPress themes. The framework allows theme developers to
- * quickly build themes without having to handle all of the "logic" behind the theme or having to code complex
- * functionality for features that are often needed in themes. The framework does these things for developers
- * to allow them to get back to what matters the most: developing and designing themes. The framework
- * was built to make it easy for developers to include (or not include) specific, pre-coded features. Themes
- * handle all the markup, style, and scripts while the framework handles the logic.
+ * Hybrid Core is a framework for developing WordPress themes. The framework allows theme developers
+ * to quickly build themes without having to handle all of the "logic" behind the theme or having to code
+ * complex functionality for features that are often needed in themes. The framework does these things
+ * for developers to allow them to get back to what matters the most: developing and designing themes.
+ * The framework was built to make it easy for developers to include (or not include) specific, pre-coded
+ * features. Themes handle all the markup, style, and scripts while the framework handles the logic.
*
* @copyright 2008 - 2010
- * @version 1.0
+ * @version 1.0.0
* @author Justin Tadlock
* @link http://themehybrid.com
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
- * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation. You may NOT assume that you can
- * use any other version of the GPL.
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
+ * General Public License version 2, as published by the Free Software Foundation. You may NOT assume
+ * that you can use any other version of the GPL.
*
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
- * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
+ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
- * You should have received a copy of the GNU General Public License along with this program; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * You should have received a copy of the GNU General Public License along with this program; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package HybridCore
*/
@@ -36,14 +36,14 @@
* the 'after_setup_theme' hook with a priority of 11. This allows the class to load theme-supported features
* at the appropriate time, which is on the 'after_setup_theme' hook with a priority of 12.
*
- * @since 0.7
+ * @since 0.7.0
*/
class Hybrid {
/**
* Theme prefix (mostly used for hooks).
*
- * @since 0.7
+ * @since 0.7.0
* @var string
*/
var $prefix;
@@ -52,7 +52,7 @@ class Hybrid {
* PHP4 constructor method. This simply provides backwards compatibility for users with setups
* on older versions of PHP. Once WordPress no longer supports PHP4, this method will be removed.
*
- * @since 0.9
+ * @since 0.9.0
*/
function Hybrid() {
$this->__construct();
@@ -109,7 +109,7 @@ function __construct() {
* child theme. Constants prefixed with 'HYBRID_' are for use only within the core
* framework and don't reference other areas of the theme.
*
- * @since 0.7
+ * @since 0.7.0
*/
function constants() {
/* Sets the path to the parent theme directory. */
@@ -171,7 +171,7 @@ function core() {
* Loads the framework functions. Many of these functions are needed to properly run the
* framework. Some components are only loaded if the theme supports them.
*
- * @since 0.7
+ * @since 0.7.0
*/
function functions() {
@@ -209,7 +209,7 @@ function functions() {
* framework. Themes must use add_theme_support( $extension ) to use a specific extension
* within the theme. This should be declared on 'after_setup_theme' no later than a priority of 11.
*
- * @since 0.7
+ * @since 0.7.0
*/
function extensions() {
@@ -241,7 +241,7 @@ function extensions() {
/**
* Load admin files for the framework.
*
- * @since 0.7
+ * @since 0.7.0
*/
function admin() {
@@ -262,7 +262,7 @@ function admin() {
/**
* Adds the default theme actions.
*
- * @since 0.7
+ * @since 0.7.0
*/
function actions() {
@@ -281,7 +281,7 @@ function actions() {
/**
* Adds the default theme filters.
*
- * @since 0.7
+ * @since 0.7.0
*/
function filters() {
/* Filter the textdomain mofile to allow child themes to load the parent theme translation. */
Please sign in to comment.
Something went wrong with that request. Please try again.