/*
Theme Name: Bright Light
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/



/*Add your own styles here:*/

.special-heading-inner-border{display:none!important;}

// Jaar toevoegen met [year]
function year_shortcode() {
	$year = date('Y');
	return $year;
}
add_shortcode('year', 'year_shortcode');

// Remove Enfold Portfolio Post Type
add_action( 'after_setup_theme', 'remove_portfolio' );
function remove_portfolio()
{
remove_action( 'init', 'portfolio_register' );
}

// Remove Kriesi link Add ineendag.online link
function new_nolink(){
$kriesi_at_backlink = " door <a href='https://ineendag.online'>ineendag.online</a>";
return $kriesi_at_backlink;
}
add_filter("kriesi_backlink","new_nolink");

// Hide Enfold top menu bar items
//add_action( 'admin_init', function () {remove_menu_page( 'avia' );}); // Hide in Backend Menu
add_action( 'admin_bar_menu', function ( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'avia' );}, 999 ); // Hide in Admin Bar
add_action( 'admin_bar_menu', function ( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'avia_ext' );}, 999 ); // Hide Theme Extensions in Admin Bar