";
do_action( 'Easy_before_cat_nav' );
echo apply_filters( 'Easy_cat_nav', Easy_category_menu( 'echo=0' ) );
do_action( 'Easy_after_cat_nav' );
echo '';
}
/**
* Menu listing for categories.
*
* @deprecated 0.6 Themes should add menus with the wp_nav_menu() function.
* @internal This function needs to stay for the long haul (post-1.0).
*
* @since 0.2.3
* @uses wp_list_categories() Creates a list of the site's categories
* @link http://codex.wordpress.org/Template_Tags/wp_list_categories
* @param array $args
*/
function Easy_category_menu( $args = array() ) {
_deprecated_function( __FUNCTION__, '0.6', 'wp_nav_menu()' );
$defaults = array( 'menu_class' => 'cat-nav', 'style' => 'list', 'hide_empty' => 1, 'use_desc_for_title' => 0, 'depth' => 4, 'hierarchical' => true, 'echo' => 1 );
$args = wp_parse_args( apply_filters( 'Easy_category_menu_args', $args ), $defaults );
extract( $args );
$args['title_li'] = false;
$args['echo'] = false;
$menu = str_replace( array( "\t", "\n", "\r" ), '', wp_list_categories( $args ) );
$menu = '
';
$menu = apply_filters( 'Easy_category_menu', $menu );
if ( $echo )
echo $menu;
else
return $menu;
}
/**
* Loads the theme search form.
*
* @deprecated 0.6 Users should add get_search_form() whenever needed.
* @since 0.1
*/
function Easy_search_form() {
_deprecated_function( __FUNCTION__, '0.6', 'get_search_form()' );
$search = apply_filters( 'Easy_search_form', false );
if ( empty( $search ) )
get_search_form();
else
echo $search;
}
/**
* After single posts but before the comments template.
* @since 0.2
* @deprecated 0.7
*/
function Easy_after_single() {
_deprecated_function( __FUNCTION__, '0.7', "apply_atomic( 'after_singular' )" );
Easy_after_singular();
}
/**
* After page content but before the comments template.
* @since 0.2
* @deprecated 0.7
*/
function Easy_after_page() {
_deprecated_function( __FUNCTION__, '0.7', "apply_atomic( 'after_singular' )" );
Easy_after_singular();
}
/**
* Loads the Utility: After Single widget area.
* @since 0.4
* @deprecated 0.7
*/
function Easy_get_utility_after_single() {
_deprecated_function( __FUNCTION__, '0.7', 'get_sidebar()' );
Easy_get_utility_after_singular();
}
/**
* Loads the Utility: After Page widget area.
* @since 0.4
* @deprecated 0.7
*/
function Easy_get_utility_after_page() {
_deprecated_function( __FUNCTION__, '0.7', 'get_sidebar()' );
Easy_get_utility_after_singular();
}
/**
* Displays the page navigation menu.
* @since 0.1
* @deprecated 0.8
*/
function Easy_page_nav() {
_deprecated_function( __FUNCTION__, '0.8', 'wp_nav_menu()' );
echo '';
do_atomic( 'before_page_nav' );
$args = array( 'show_home' => __( 'Home', Easy_get_textdomain() ), 'menu_class' => 'page-nav', 'sort_column' => 'menu_order', 'depth' => 4, 'echo' => 0 );
$nav = str_replace( array( "\r", "\n", "\t" ), '', wp_page_menu( $args ) );
$nav = str_replace( '
', $nav, 1 );
do_atomic( 'after_page_nav' );
echo "\n\t
\n";
}
/**
* Check for widgets in widget-ready areas.
* @since 0.2
* @deprecated 0.6.1
*/
function is_sidebar_active( $index = 1 ) {
_deprecated_function( __FUNCTION__, '0.6.1', 'is_active_sidebar()' );
return is_active_sidebar( $index );
}
/**
* Loads the comment form.
* @since 0.7
* @deprecated 0.8
*/
function Easy_get_comment_form() {
_deprecated_function( __FUNCTION__, '0.8', 'comment_form()' );
comment_form();
}
/**
* Fires before the comment form.
* @since 0.6
* @deprecated 0.8
*/
function Easy_before_comment_form() {
_deprecated_function( __FUNCTION__, '0.8' );
do_atomic( 'before_comment_form' );
}
/**
* Fires after the comment form.
* @since 0.6
* @deprecated 0.8
*/
function Easy_after_comment_form() {
_deprecated_function( __FUNCTION__, '0.8' );
do_atomic( 'after_comment_form' );
}
/**
* Displays an individual comment author.
* @since 0.2.2
* @deprecated 0.8
*/
function Easy_comment_author() {
_deprecated_function( __FUNCTION__, '0.8', 'Easy_comment_author_shortcode()' );
return Easy_comment_author_shortcode();
}
/**
* Simply not used anymore. But, the function name may come in handy later.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_enqueue_style() {
_deprecated_function( __FUNCTION__, '1.0.0', '' );
}
/**
* This function creates all of the default theme settings and adds them to a single array.
* @since 0.4
* @deprecated 1.0.0
*/
function Easy_theme_settings() {
_deprecated_function( __FUNCTION__, '1.0.0', 'Easy_get_default_theme_settings()' );
return apply_filters( Easy_get_prefix() . '_settings_args', Easy_get_default_theme_settings() );
}
/**
* Loads the admin.css stylesheet for the theme settings page.
* @since 0.7
* @deprecated 1.0.0
*/
function Easy_settings_page_enqueue_style() {
_deprecated_function( __FUNCTION__, '1.0.0', 'Easy_admin_enqueue_style()' );
Easy_admin_enqueue_style();
}
/**
* This function is for adding extra support for theme features to the theme.
* @since 0.8
* @deprecated 1.0.0
*/
function Easy_add_theme_support() {
_deprecated_function( __FUNCTION__, '1.0.0', 'add_theme_support()' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'Easy-core-theme-settings' );
}
/**
* Per-post stylesheets. Moved to the post-stylesheets.php extension.
* @since 0.9
* @deprecated 1.0.0
*/
function Easy_post_stylesheets( $deprecated_1 = '', $deprecated_2 = '') {
_deprecated_function( __FUNCTION__, '1.0.0', 'post_stylesheets_stylesheet_uri()' );
return post_stylesheets_stylesheet_uri( $deprecated_1, $deprecated_2 );
}
/**
* Adds the correct DOCTYPE to the theme.
* @since 0.4.0
* @deprecated 1.0.0
*/
function Easy_doctype() {
_deprecated_function( __FUNCTION__, '1.0.0', '' );
if ( !preg_match( "/MSIE 6.0/", esc_attr( $_SERVER['HTTP_USER_AGENT'] ) ) )
$doctype = '<' . '?xml version="1.0" encoding="' . get_bloginfo( 'charset' ) . '"?>' . "\n";
$doctype .= '' . "\n";
echo apply_atomic( 'doctype', $doctype );
}
/**
* Shows the content type in the header.
* @since 0.4.0
* @deprecated 1.0.0
*/
function Easy_meta_content_type() {
_deprecated_function( __FUNCTION__, '1.0.0', '' );
$content_type = '
' . "\n";
echo apply_atomic( 'meta_content_type', $content_type );
}
/**
* Displays the pinkback URL.
* @since 0.4.0
* @deprecated 1.0.0
*/
function Easy_head_pingback() {
_deprecated_function( __FUNCTION__, '1.0.0', '' );
$pingback = '
' . "\n";
echo apply_atomic( 'head_pingback', $pingback );
}
/**
* Displays the page's profile URI.
* @since 0.6.0
* @deprecated 1.0.0
*/
function Easy_profile_uri() {
_deprecated_function( __FUNCTION__, '1.0.0', '' );
echo apply_atomic( 'profile_uri', 'http://gmpg.org/xfn/11' );
}
/**
* Before HTML.
* @since 0.3.2
* @deprecated 1.0.0
*/
function Easy_before_html() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_html' )" );
do_atomic( 'before_html' );
}
/**
* After HTML.
* @since 0.3.2
* @deprecated 1.0.0
*/
function Easy_after_html() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_html' )" );
do_atomic( 'after_html' );
}
/**
* Added to the header before wp_head().
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_head() {
_deprecated_function( __FUNCTION__, '1.0.0', 'wp_head' );
do_atomic( 'head' );
}
/**
* Before the header.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_before_header() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_header' )" );
do_atomic( 'before_header' );
}
/**
* Header.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_header() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'header' )" );
do_atomic( 'header' );
}
/**
* After the header.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_after_header() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_header' )" );
do_atomic( 'after_header' );
}
/**
* Before primary menu.
* @since 0.8
* @deprecated 1.0.0
*/
function Easy_before_primary_menu() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_primary_menu' )" );
do_atomic( 'before_primary_menu' );
}
/**
* After primary menu.
* @since 0.8
* @deprecated 1.0.0
*/
function Easy_after_primary_menu() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_primary_menu' )" );
do_atomic( 'after_primary_menu' );
}
/**
* Before the container.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_before_container() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_container' )" );
do_atomic( 'before_container' );
}
/**
* Before the content.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_before_content() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_content' )" );
do_atomic( 'before_content' );
}
/**
* After the content.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_after_content() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_content' )" );
do_atomic( 'after_content' );
}
/**
* Before each entry.
* @since 0.5
* @deprecated 1.0.0
*/
function Easy_before_entry() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_entry' )" );
do_atomic( 'before_entry' );
}
/**
* After each entry.
* @since 0.5
* @deprecated 1.0.0
*/
function Easy_after_entry() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_entry' )" );
do_atomic( 'after_entry' );
}
/**
* After singular views but before the comments template.
* @since 0.7
* @deprecated 1.0.0
*/
function Easy_after_singular() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_singular' )" );
if ( is_singular( 'post' ) && !is_attachment() )
do_action( 'Easy_after_single' );
elseif ( is_page() )
do_action( 'Easy_after_page' );
do_atomic( 'after_singular' );
}
/**
* Before the primary widget area content.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_before_primary() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_primary' )" );
do_atomic( 'before_primary' );
}
/**
* After the primary widget area content.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_after_primary() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_primary' )" );
do_atomic( 'after_primary' );
}
/**
* Before the secondary widget area.
* @since 0.2
* @deprecated 1.0.0
*/
function Easy_before_secondary() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_secondary' )" );
do_atomic( 'before_secondary' );
}
/**
* After the secondary widget area.
* @since 0.2
* @deprecated 1.0.0
*/
function Easy_after_secondary() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_secondary' )" );
do_atomic( 'after_secondary' );
}
/**
* Before the subsidiary widget area.
* @since 0.3.1
* @deprecated 1.0.0
*/
function Easy_before_subsidiary() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_subsidiary' )" );
do_atomic( 'before_subsidiary' );
}
/**
* After the subsidiary widget area.
* @since 0.3.1
* @deprecated 1.0.0
*/
function Easy_after_subsidiary() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_subsidiary' )" );
do_atomic( 'after_subsidiary' );
}
/**
* After the container area.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_after_container() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_container' )" );
do_atomic( 'after_container' );
}
/**
* Before the footer.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_before_footer() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_footer' )" );
do_atomic( 'before_footer' );
}
/**
* The footer.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_footer() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'footer' )" );
do_atomic( 'footer' );
}
/**
* After the footer.
* @since 0.1
* @deprecated 1.0.0
*/
function Easy_after_footer() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_footer' )" );
do_atomic( 'after_footer' );
}
/**
* Fires before each comment's information.
* @since 0.5
* @deprecated 1.0.0
*/
function Easy_before_comment() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_comment' )" );
do_atomic( 'before_comment' );
}
/**
* Fires after each comment's information.
* @since 0.5
* @deprecated 1.0.0
*/
function Easy_after_comment() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_comment' )" );
do_atomic( 'after_comment' );
}
/**
* Fires before the comment list.
* @since 0.6
* @deprecated 1.0.0
*/
function Easy_before_comment_list() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'before_comment_list' )" );
do_atomic( 'before_comment_list' );
}
/**
* Fires after the comment list.
* @since 0.6
* @deprecated 1.0.0
*/
function Easy_after_comment_list() {
_deprecated_function( __FUNCTION__, '1.0.0', "do_atomic( 'after_comment_list' )" );
do_atomic( 'after_comment_list' );
}
/* @deprecated 1.0.0. Backwards compatibility with old theme settings. */
add_action( 'check_admin_referer', 'Easy_back_compat_update_settings' );
/**
* Backwards compatibility function for updating child theme settings. Do not use this function or the
* available hook in development.
*
* @since 1.0.0
*/
function Easy_back_compat_update_settings( $action ) {
$prefix = Easy_get_prefix();
if ( "{$prefix}_theme_settings-options" == $action )
do_action( "{$prefix}_update_settings_page" );
}
/* === Removed Functions === */
/* Functions removed in the 0.5 branch. */
function Easy_all_tags() {
Easy_function_removed( 'Easy_all_tags' );
}
function Easy_get_users() {
Easy_function_removed( 'Easy_get_users' );
}
function Easy_footnote() {
Easy_function_removed( 'Easy_footnote' );
}
function Easy_related_posts() {
Easy_function_removed( 'Easy_related_posts' );
}
function Easy_insert() {
Easy_function_removed( 'Easy_insert' );
}
/* Functions removed in the 0.6 branch. */
function Easy_get_authors() {
Easy_function_removed( 'Easy_get_authors' );
}
function Easy_credit() {
Easy_function_removed( 'Easy_credit' );
}
function Easy_query_counter() {
Easy_function_removed( 'Easy_query_counter' );
}
function Easy_copyright() {
Easy_function_removed( 'Easy_copyright' );
}
function Easy_series() {
Easy_function_removed( 'Easy_series' );
}
/* Functions removed in the 0.7 branch. */
function Easy_all_cats() {
Easy_function_removed( 'Easy_all_cats' );
}
function Easy_all_cat_slugs() {
Easy_function_removed( 'Easy_all_cat_slugs' );
}
function Easy_all_tag_slugs() {
Easy_function_removed( 'Easy_all_tag_slugs' );
}
function Easy_mime_type_icon() {
Easy_function_removed( 'Easy_mime_type_icon' );
}
function Easy_attachment_icon() {
Easy_function_removed( 'Easy_attachment_icon' );
}
function Easy_widow() {
Easy_function_removed( 'Easy_widow' );
}
function Easy_dash() {
Easy_function_removed( 'Easy_dash' );
}
function Easy_text_filter() {
Easy_function_removed( 'Easy_text_filter' );
}
function Easy_allowed_tags() {
Easy_function_removed( 'Easy_allowed_tags' );
}
function Easy_typography() {
Easy_function_removed( 'Easy_typography' );
}
function Easy_before_cat_nav() {
Easy_function_removed( 'Easy_before_cat_nav' );
}
function Easy_after_cat_nav() {
Easy_function_removed( 'Easy_after_cat_nav' );
}
function Easy_first_paragraph() {
Easy_function_removed( 'Easy_first_paragraph' );
}
function Easy_category_term_link() {
Easy_function_removed( 'Easy_category_term_link' );
}
function Easy_post_tag_term_link() {
Easy_function_removed( 'Easy_post_tag_term_link' );
}
function Easy_search_highlight() {
Easy_function_removed( 'Easy_search_highlight' );
}
function Easy_primary_inserts() {
Easy_function_removed( 'Easy_primary_inserts' );
}
function Easy_secondary_inserts() {
Easy_function_removed( 'Easy_secondary_inserts' );
}
function Easy_subsidiary_inserts() {
Easy_function_removed( 'Easy_subsidiary_inserts' );
}
function Easy_utility_inserts() {
Easy_function_removed( 'Easy_utility_inserts' );
}
function Easy_widget_init() {
Easy_function_removed( 'Easy_widget_init' );
}
function Easy_primary_var() {
Easy_function_removed( 'Easy_primary_var' );
}
function Easy_secondary_var() {
Easy_function_removed( 'Easy_secondary_var' );
}
function Easy_subsidiary_var() {
Easy_function_removed( 'Easy_subsidiary_var' );
}
function Easy_legacy_comments() {
Easy_function_removed( 'Easy_legacy_comments' );
}
function Easy_head_feeds() {
Easy_function_removed( 'Easy_head_feeds' );
}
function Easy_legacy_functions() {
Easy_function_removed( 'Easy_legacy_functions' );
}
function Easy_capability_check() {
Easy_function_removed( 'Easy_capability_check' );
}
function Easy_template_in_use() {
Easy_function_removed( 'Easy_template_in_use' );
}
function Easy_get_utility_404() {
Easy_function_removed( 'Easy_get_utility_404' );
}
function Easy_before_comments() {
Easy_function_removed( 'Easy_before_comments' );
}
function Easy_meta_abstract() {
Easy_function_removed( 'Easy_meta_abstract' );
}
function Easy_child_settings() {
Easy_function_removed( 'Easy_child_settings' );
}
function Easy_post_meta_boxes() {
Easy_function_removed( 'Easy_post_meta_boxes' );
}
function Easy_page_meta_boxes() {
Easy_function_removed( 'Easy_page_meta_boxes' );
}
function post_meta_boxes() {
Easy_function_removed( 'post_meta_boxes' );
}
function page_meta_boxes() {
Easy_function_removed( 'page_meta_boxes' );
}
function Easy_create_meta_box() {
Easy_function_removed( 'Easy_create_meta_box' );
}
function Easy_save_meta_data() {
Easy_function_removed( 'Easy_save_meta_data' );
}
function get_meta_text_input() {
Easy_function_removed( 'get_meta_text_input' );
}
function get_meta_select() {
Easy_function_removed( 'get_meta_select' );
}
function get_meta_textarea() {
Easy_function_removed( 'get_meta_textarea' );
}
function Easy_error() {
Easy_function_removed( 'Easy_error' );
}
function Easy_head_canonical() {
Easy_function_removed( 'Easy_head_canonical' );
}
function Easy_disable_pagenavi_style() {
Easy_function_removed( 'Easy_disable_pagenavi_style' );
}
function Easy_comments_feed() {
Easy_function_removed( 'Easy_comments_feed' );
}
function Easy_before_page_nav() {
Easy_function_removed( 'Easy_before_page_nav' );
}
function Easy_after_page_nav() {
Easy_function_removed( 'Easy_after_page_nav' );
}
function Easy_comment_published_link_shortcode() {
Easy_function_removed( 'Easy_comment_published_link_shortcode' );
}
/* Functions removed in the 0.8 branch. */
function Easy_content_wrapper() {
Easy_function_removed( 'Easy_content_wrapper' );
}
function Easy_handle_attachment() {
Easy_function_removed( 'Easy_handle_attachment' );
}
function Easy_widget_class() {
Easy_function_removed( 'Easy_widget_class' );
}
function Easy_before_ping_list() {
Easy_function_removed( 'Easy_before_ping_list' );
}
function Easy_after_ping_list() {
Easy_function_removed( 'Easy_after_ping_list' );
}
function Easy_pings_callback() {
Easy_function_removed( 'Easy_pings_callback' );
}
function Easy_pings_end_callback() {
Easy_function_removed( 'Easy_pings_end_callback' );
}
/** c
* Message to display for removed functions.
* @since 0.5
*/
function Easy_function_removed( $func = '' ) {
die( sprintf( __( '
%1$s
— This function has been removed or replaced by another function.', Easy_get_textdomain() ), $func ) );
}
?>