????
| Current Path : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/framework/hooks/ |
| Current File : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/framework/hooks/hooks.php |
<?php
/**
* Setup theme hooks
*
* @package Wanderfuls WordPress Theme
* @subpackage Hooks
*/
/**
* Array of theme hooks
*
* @since 2.0.0
*/
function tb_theme_hooks() {
return array(
'outer_wrap' => array(
'label' => _x( 'Outer Wrap', 'Theme Hook Section Label', 'tb' ),
'hooks' => array(
'tb_outer_wrap_before',
'tb_outer_wrap_after',
),
),
'wrap' => array(
'label' => _x( 'Wrap', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_wrap_before',
'tb_hook_wrap_top',
'tb_hook_wrap_bottom',
'tb_hook_wrap_after'
),
),
'topbar' => array(
'label' => _x( 'Top Bar', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_topbar_before',
'tb_hook_topbar_after'
),
),
'header' => array(
'label' => _x( 'Header', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_header_before',
'tb_hook_header_top',
'tb_hook_header_inner',
'tb_hook_header_bottom',
'tb_hook_header_after',
),
),
'main_menu' => array(
'label' => _x( 'Main Menu', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_main_menu_before',
'tb_hook_main_menu_top',
'tb_hook_main_menu_bottom',
'tb_hook_main_menu_after',
),
),
'main' => array(
'label' => _x( 'Main', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_main_before',
'tb_hook_main_top',
'tb_hook_main_bottom',
'tb_hook_main_after',
),
),
'primary' => array(
'label' => _x( 'Primary Wrap', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_primary_before',
'tb_hook_primary_after',
),
),
'content' => array(
'label' => _x( 'Content Wrap', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_content_before',
'tb_hook_content_top',
'tb_hook_content_bottom',
'tb_hook_content_after',
),
),
'sidebar' => array(
'label' => _x( 'Sidebar', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_sidebar_before',
'tb_hook_sidebar_top',
'tb_hook_sidebar_inner',
'tb_hook_sidebar_bottom',
'tb_hook_sidebar_after',
),
),
'footer' => array(
'label' => _x( 'Footer', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_footer_before',
'tb_hook_footer_top',
'tb_hook_footer_inner',
'tb_hook_footer_bottom',
'tb_hook_footer_after',
),
),
'page_header' => array(
'label' => _x( 'Page Header', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_page_header_before',
'tb_hook_page_header_top',
'tb_hook_page_header_inner',
'tb_hook_page_header_bottom',
'tb_hook_page_header_after',
),
),
'social_share' => array(
'label' => _x( 'Social Share', 'Theme Hook Location', 'tb' ),
'hooks' => array(
'tb_hook_social_share_before',
'tb_hook_social_share_inner',
'tb_hook_social_share_after',
),
),
);
}
/**
* Outer Wrap Hooks
*
* @since 2.0.0
*/
function tb_outer_wrap_before() {
do_action( 'tb_outer_wrap_before' );
}
function tb_outer_wrap_after() {
do_action( 'tb_outer_wrap_after' );
}
/**
* Topbar Hooks
*
* @since 2.0.0
*/
function tb_hook_topbar_before() {
do_action( 'tb_hook_topbar_before' );
}
function tb_hook_topbar_after() {
do_action( 'tb_hook_topbar_after' );
}
/**
* Main Header Hooks
*
* @since 1.0.0
*/
function tb_hook_header_before() {
do_action( 'tb_hook_header_before' );
}
function tb_hook_header_top() {
do_action( 'tb_hook_header_top' );
}
function tb_hook_header_inner() {
do_action( 'tb_hook_header_inner' );
}
function tb_hook_header_bottom() {
do_action( 'tb_hook_header_bottom' );
}
function tb_hook_header_after() {
do_action( 'tb_hook_header_after' );
}
/**
* Wrap Hooks
*
* @since 1.0.0
*/
function tb_hook_wrap_before() {
do_action( 'tb_hook_wrap_before' );
}
function tb_hook_wrap_top() {
do_action( 'tb_hook_wrap_top' );
}
function tb_hook_wrap_bottom() {
do_action( 'tb_hook_wrap_bottom' );
}
function tb_hook_wrap_after() {
do_action( 'tb_hook_wrap_after' );
}
/**
* Main Hooks
*
* @since 1.0.0
*/
function tb_hook_main_before() {
do_action( 'tb_hook_main_before' );
}
function tb_hook_main_top() {
do_action( 'tb_hook_main_top' );
}
function tb_hook_main_bottom() {
do_action( 'tb_hook_main_bottom' );
}
function tb_hook_main_after() {
do_action( 'tb_hook_main_after' );
}
/**
* Primary Hooks
*
* @since 2.0.0
*/
function tb_hook_primary_before() {
do_action( 'tb_hook_primary_before' );
}
function tb_hook_primary_after() {
do_action( 'tb_hook_primary_after' );
}
/**
* Content Hooks
*
* @since 1.0.0
*/
function tb_hook_content_before() {
do_action( 'tb_hook_content_before' );
}
function tb_hook_content_top() {
do_action( 'tb_hook_content_top' );
}
function tb_hook_content_bottom() {
do_action( 'tb_hook_content_bottom' );
}
function tb_hook_content_after() {
do_action( 'tb_hook_content_after' );
}
/**
* Sidebar Hooks
*
* @since 1.0.0
*/
function tb_hook_sidebar_before() {
do_action( 'tb_hook_sidebars_before' );
}
function tb_hook_sidebar_after() {
do_action( 'tb_hook_sidebars_after' );
}
function tb_hook_sidebar_top() {
do_action( 'tb_hook_sidebar_top' );
}
function tb_hook_sidebar_bottom() {
do_action( 'tb_hook_sidebar_bottom' );
}
function tb_hook_sidebar_inner() {
do_action( 'tb_hook_sidebar_inner' );
}
/**
* Footer Hooks
*
* @since 1.0.0
*/
function tb_hook_footer_before() {
do_action( 'tb_hook_footer_before' );
}
function tb_hook_footer_top() {
do_action( 'tb_hook_footer_top' );
}
function tb_hook_footer_inner() {
do_action( 'tb_hook_footer_inner' );
}
function tb_hook_footer_bottom() {
do_action( 'tb_hook_footer_bottom' );
}
function tb_hook_footer_after() {
do_action( 'tb_hook_footer_after' );
}
/**
* Main Menu Hooks
*
* @since 1.0.0
*/
function tb_hook_main_menu_before() {
do_action( 'tb_hook_main_menu_before' );
}
function tb_hook_main_menu_top() {
do_action( 'tb_hook_main_menu_top' );
}
function tb_hook_main_menu_bottom() {
do_action( 'tb_hook_main_menu_bottom' );
}
function tb_hook_main_menu_after() {
do_action( 'tb_hook_main_menu_after' );
}
/**
* Page Header Hooks
*
* @since 1.0.0
*/
function tb_hook_page_header_before() {
do_action( 'tb_hook_page_header_before' );
}
function tb_hook_page_header_top() {
do_action( 'tb_hook_page_header_top' );
}
function tb_hook_page_header_inner() {
do_action( 'tb_hook_page_header_inner' );
}
function tb_hook_page_header_bottom() {
do_action( 'tb_hook_page_header_bottom' );
}
function tb_hook_page_header_after() {
do_action( 'tb_hook_page_header_after' );
}