element. One other * pages, wrap it in a
element. * * @since 0.1.0 * @deprecated 0.9.0 * @access public * @return void */ function hybrid_site_title() { _deprecated_function( __FUNCTION__, '0.9.0', '' ); /* If viewing the front page of the site, use an

tag. Otherwise, use a
tag. */ $tag = ( is_front_page() ) ? 'h1' : 'div'; /* Get the site title. If it's not empty, wrap it with the appropriate HTML. */ if ( $title = get_bloginfo( 'name' ) ) $title = sprintf( '<%1$s id="site-title">%4$s', tag_escape( $tag ), home_url(), esc_attr( $title ), $title ); /* Display the site title and apply filters for developers to overwrite. */ echo apply_atomic( 'site_title', $title ); } /** * Dynamic element to wrap the site description in. If it is the front page, wrap it in an

element. * On other pages, wrap it in a
element. * * @since 0.1.0 * @access public * @return void */ function hybrid_site_description() { _deprecated_function( __FUNCTION__, '0.9.0', '' ); /* If viewing the front page of the site, use an

tag. Otherwise, use a
tag. */ $tag = ( is_front_page() ) ? 'h2' : 'div'; /* Get the site description. If it's not empty, wrap it with the appropriate HTML. */ if ( $desc = get_bloginfo( 'description' ) ) $desc = sprintf( '<%1$s id="site-description">%2$s', tag_escape( $tag ), $desc ); /* Display the site description and apply filters for developers to overwrite. */ echo apply_atomic( 'site_description', $desc ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_body_attributes() { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'body' )" ); omega_attr( 'body' ); } /** * @since 0.1.0 * @deprecated 0.9.0 */ function hybrid_body_class( $class = '' ) { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'body' )" ); omega_attr( 'body' ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_get_body_class( $class = '' ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_body_class' ); return get_body_class( $class ); } /** * @since 1.4.0 * @deprecated 0.9.0 */ function hybrid_footer_content() { _deprecated_function( __FUNCTION__, '0.9.0', '' ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_post_attributes() { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'post' )" ); omega_attr( 'post' ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_post_class( $class = '', $post_id = null ) { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'post' )" ); echo join( ' ', get_post_class( $class, $post_id ) ); } /** * @since 0.5.0 * @deprecated 0.9.0 */ function hybrid_entry_class( $class = '', $post_id = null ) { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'post' )" ); echo join( ' ', get_post_class( $class, $post_id ) ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_get_post_class( $class = '', $post_id = null ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_post_class' ); return get_post_class( $class, $post_id ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_comment_attributes() { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'comment' )" ); omega_attr( 'comment' ); } /** * @since 0.2.0 * @deprecated 0.9.0 */ function hybrid_comment_class( $class = '' ) { _deprecated_function( __FUNCTION__, '0.9.0', "omega_attr( 'comment' )" ); omega_attr( 'comment' ); } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_get_comment_class( $class = '' ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_comment_class' ); return get_comment_class( $class ); } /** * @since 0.2.0 * @deprecated 0.9.0 */ function hybrid_avatar() { global $comment, $omega; _deprecated_function( __FUNCTION__, '0.9.0', 'get_avatar' ); /* Make sure avatars are allowed before proceeding. */ if ( !get_option( 'show_avatars' ) ) return false; /* Get the avatar provided by the get_avatar() function. */ $avatar = get_avatar( $comment, 80, '', get_comment_author( $comment->comment_ID ) ); /* Display the avatar and allow it to be filtered. Note: Use the get_avatar filter hook where possible. */ echo apply_filters( 'omega_avatar', $avatar ); } /** * @since 0.1.0 * @deprecated 0.9.0 */ function hybrid_document_title() { _deprecated_function( __FUNCTION__, '0.9.0', 'wp_title' ); wp_title(); } /** * @since 0.6.0 * @deprecated 0.9.0 */ function hybrid_loginout_link_shortcode() { _deprecated_function( __FUNCTION__, '0.9.0', 'wp_loginout' ); return wp_loginout( '', false ); } /** * @since 0.6.0 * @deprecated 0.9.0 */ function hybrid_query_counter_shortcode() { _deprecated_function( __FUNCTION__, '0.9.0', '' ); return ''; } /** * @since 0.8.0 * @deprecated 0.9.0 */ function hybrid_nav_menu_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'wp_nav_menu' ); return ''; } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_entry_edit_link_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'edit_post_link' ); $attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr, 'entry-edit-link' ); ob_start(); edit_post_link( null, $attr['before'], $attr['after'] ); return ob_get_clean(); } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_entry_published_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_the_date' ); $attr = shortcode_atts( array( 'before' => '', 'after' => '', 'format' => get_option( 'date_format' ), 'human_time' => '' ), $attr, 'entry-published' ); /* If $human_time is passed in, allow for '%s ago' where '%s' is the return value of human_time_diff(). */ if ( !empty( $attr['human_time'] ) ) $time = sprintf( $attr['human_time'], human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); /* Else, just grab the time based on the format. */ else $time = get_the_time( $attr['format'] ); $published = ''; return $attr['before'] . $published . $attr['after']; } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_entry_comments_link_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'comments_popup_link' ); $attr = shortcode_atts( array( 'zero' => false, 'one' => false, 'more' => false, 'css_class' => 'comments-link', 'none' => '', 'before' => '', 'after' => '' ), $attr, 'entry-comments-link' ); ob_start(); echo $attr['before']; comments_popup_link( $attr['zero'], $attr['one'], $attr['more'], $attr['css_class'], $attr['none'] ); echo $attr['after']; return ob_get_clean(); } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_entry_author_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'the_author_posts_link' ); $post_type = get_post_type(); if ( post_type_supports( $post_type, 'author' ) ) { $attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr, 'entry-author' ); $author = ''; return $attr['before'] . $author . $attr['after']; } return ''; } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_entry_terms_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'the_terms' ); $attr = shortcode_atts( array( 'id' => get_the_ID(), 'taxonomy' => 'post_tag', 'separator' => ', ', 'before' => '', 'after' => '' ), $attr, 'entry-terms' ); $attr['before'] = ( empty( $attr['before'] ) ? '' : '' . $attr['before'] . '' ); $attr['after'] = ( empty( $attr['after'] ) ? '' : '' . $attr['after'] . '' ); return get_the_term_list( $attr['id'], $attr['taxonomy'], $attr['before'], $attr['separator'], $attr['after'] ); } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_entry_title_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'the_title' ); $attr = shortcode_atts( array( 'permalink' => true, 'tag' => is_singular() ? 'h1' : 'h2' ), $attr, 'entry-title' ); $tag = tag_escape( $attr['tag'] ); $class = sanitize_html_class( get_post_type() ) . '-title entry-title'; if ( false == (bool)$attr['permalink'] ) $title = the_title( "<{$tag} class='{$class}'>", "", false ); else $title = the_title( "<{$tag} class='{$class}'>", "", false ); return $title; } /** * @since 0.8.0 * @deprecated 0.9.0 */ function hybrid_entry_shortlink_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', '' ); return ''; } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_entry_permalink_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_permalink' ); $attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr, 'entry-permalink' ); return $attr['before'] . '' . $attr['after']; } /** * @since 0.9.0 * @deprecated 0.9.0 */ function hybrid_post_format_link_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_post_format_link' ); $attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr, 'post-format-link' ); $format = get_post_format(); $url = ( empty( $format ) ? get_permalink() : get_post_format_link( $format ) ); return $attr['before'] . '' . get_post_format_string( $format ) . '' . $attr['after']; } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_comment_published_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_comment_date' ); $attr = shortcode_atts( array( 'human_time' => '', 'before' => '', 'after' => '', ), $attr, 'comment-published' ); /* If $human_time is passed in, allow for '%s ago' where '%s' is the return value of human_time_diff(). */ if ( !empty( $attr['human_time'] ) ) $published = ''; /* Else, just return the default. */ else $published = ''; return $attr['before'] . $published . $attr['after']; } /** * @since 0.8.0 * @deprecated 0.9.0 */ function hybrid_comment_author_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'comment_author_link' ); global $comment; $attr = shortcode_atts( array( 'before' => '', 'after' => '', 'tag' => 'span' // @deprecated 0.9.0 Back-compatibility. Please don't use this argument. ), $attr, 'comment-author' ); $author = esc_html( get_comment_author( $comment->comment_ID ) ); $url = esc_url( get_comment_author_url( $comment->comment_ID ) ); /* Display link and cite if URL is set. Also, properly cites trackbacks/pingbacks. */ if ( $url ) $output = '' . $author . ''; else $output = '' . $author . ''; $output = '<' . tag_escape( $attr['tag'] ) . ' class="comment-author vcard">' . $attr['before'] . apply_filters( 'get_comment_author_link', $output ) . $attr['after'] . ''; return $output; } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_comment_permalink_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'get_comment_link' ); global $comment; $attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr, 'comment-permalink' ); $link = ''; return $attr['before'] . $link . $attr['after']; } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_comment_edit_link_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'edit_comment_link' ); $attr = shortcode_atts( array( 'before' => '', 'after' => '' ), $attr, 'comment-edit-link' ); ob_start(); edit_comment_link( null, $attr['before'], $attr['after'] ); return ob_get_clean(); } /** * @since 0.7.0 * @deprecated 0.9.0 */ function hybrid_comment_reply_link_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.9.0', 'omega_get_comment_reply_link' ); return omega_get_comment_reply_link( $attr ); } /** * @since 0.8.0 * @deprecated 0.9.0 */ function hybrid_get_transient_expiration() { _deprecated_function( __FUNCTION__, '0.9.0', '' ); return 43200; } /* === Removed Functions (note that functions removed prior to the 1.5 branch are gone). === */ /** * Message to display for removed functions. * @since 0.5.0 */ function hybrid_function_removed( $func = '' ) { die( sprintf( __( '%1$s — This function has been removed or replaced by another function.', 'omega' ), $func ) ); } ?>