????

Your IP : 18.218.27.145


Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/framework/hooks/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/framework/hooks/actions.php

<?php
/**
 * All core theme actions.
 * DO NOT EDIT THIS FILE EVER!
 * You can remove any action via a child theme using remove_action()
 *
 * @package Wanderfuls WordPress Theme
 * @subpackage Hooks
 */

/* Wrap > Top
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_wrap_top', 'tb_mobile_menu_fixed_top', 1 );
add_action( 'tb_hook_wrap_top', 'tb_top_bar', 5 );
add_action( 'tb_hook_wrap_top', 'tb_header' );

/* Topbar > Before
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_topbar_before', 'tb_post_slider' );

/* Header > Before
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_header_before', 'tb_toggle_bar_button' );
add_action( 'tb_hook_header_before', 'tb_post_slider' );

/* Header > Top
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_header_top', 'tb_header_menu' );

/* Header > Inner
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_header_inner', 'tb_header_logo' );
add_action( 'tb_hook_header_inner', 'tb_header_aside' );
add_action( 'tb_hook_header_inner', 'tb_header_menu' );
add_action( 'tb_hook_header_inner', 'tb_mobile_menu_icons' );
add_action( 'tb_hook_header_inner', 'tb_search_dropdown' );
add_action( 'tb_hook_header_inner', 'tb_search_header_replace' );

/* Header > Bottom
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_header_bottom', 'tb_post_slider' );
add_action( 'tb_hook_header_bottom', 'tb_header_menu' );

/* Menu > Bottom
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_main_menu_bottom', 'tb_search_dropdown' );

/* Main > Top
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_main_top', 'tb_page_header' );
add_action( 'tb_hook_main_top', 'tb_post_slider' );

/* Main > Bottom
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_main_bottom', 'tb_next_prev' );

/* Primary > Before
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_primary_before', 'tb_blog_single_media_above' );

/* Primary > After
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_primary_after', 'tb_get_sidebar_template' );

/* Content > Top
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_content_top', 'tb_term_description' );

/* Content > Bottom
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_content_bottom', 'tb_post_edit' );

/* Page Header > Before
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_page_header_before', 'tb_post_slider' );

/* Page Header > Inner
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_page_header_inner', 'tb_page_header_title' );
add_action( 'tb_hook_page_header_inner', 'tb_display_breadcrumbs' );
add_action( 'tb_hook_page_header_inner', 'tb_page_header_subheading' );

/* Page Header > Bottom
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_page_header_bottom', 'tb_page_header_overlay' );

/* Sidebar > Inner
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_sidebar_inner', 'tb_display_sidebar' );

/* Wrap > Bottom
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_wrap_bottom', 'tb_footer' );

/* Footer > Before
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_footer_before', 'tb_footer_reveal_open', 0 );
add_action( 'tb_hook_footer_before', 'tb_footer_callout' );

/* Footer > Inner
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_footer_inner', 'tb_footer_widgets' );

/* Footer > After
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_footer_after', 'tb_footer_bottom' );
add_action( 'tb_hook_footer_after', 'tb_footer_reveal_close', 99 );

/* Wrap > After
-------------------------------------------------------------------------------*/
add_action( 'tb_hook_wrap_after', 'tb_toggle_bar' );

/* WP_Footer
-------------------------------------------------------------------------------*/
add_action( 'wp_footer', 'tb_mobile_menu_alt' );
add_filter( 'wp_footer', 'tb_mobile_searchform' );
add_action( 'wp_footer', 'tb_scroll_top' );
add_action( 'wp_footer', 'tb_search_overlay' );

/* REMOVE ACTIONS !!!
-------------------------------------------------------------------------------*/

// Helper function to remove all actions
function tb_remove_actions() {
	$hooks = tb_theme_hooks();
	foreach ( $hooks as $section => $array ) {
		if ( ! empty( $array['hooks'] ) && is_array( $array['hooks'] ) ) {
			foreach ( $array['hooks'] as $hook ) {
				remove_all_actions( $hook, false );
			}
		}
	}
}

// Remove actions for landing page
function tb_landing_page_remove_actions() {
	if ( is_page_template( 'templates/landing-page.php' ) ) {
		tb_remove_actions();
	}
}
add_action( 'wp_head', 'tb_landing_page_remove_actions' );