<?

add_theme_support( 'post-thumbnails' );

add_action( 'add_meta_boxes', 'bequadrat_action_add_meta_boxes', 10, 2 );

function bequadrat_action_add_meta_boxes() {
	global $_wp_post_type_features;
	if (isset($_wp_post_type_features['page']['editor']) && $_wp_post_type_features['page']['editor']) {
		unset($_wp_post_type_features['page']['editor']);
		add_meta_box(
			'description_sectionid',
			__('Editor'),
			'bequadrat_inner_custom_box',
			'page', 'normal', 'default'
		);
	}
}

function bequadrat_inner_custom_box( $post ) {
	wp_editor($post->post_content, 'content');
}

add_action( 'after_setup_theme', 'bequadrat_setup' );

function bequadrat_setup() {

	register_nav_menus(
		array(
			'Navi' => 'Navigation',
		)
	);

	register_sidebar(
		array(
		'name' => 'Fußleiste',
		'id' => 'Fußleiste',
		'description' => 'Hier kann der Text für den Footer angepasst werden...',
		'before_widget' => '<li id="%1$s">',
		'after_widget' => '</li>',
		'before_title' => '<h2>',
		'after_title' => '</h2>',
	)
	);

	register_sidebar(
		array(
		'name' => 'FußleisteBottom',
		'id' => 'FußleisteBottom',
		'description' => 'Hier kann der Text für den Footer angepasst werden...',
		'before_widget' => '<li id="%1$s">',
		'after_widget' => '</li>',
		'before_title' => '<h2>',
		'after_title' => '</h2>',
	)
	);

function the_breadcrumb() {
	if (!is_home()) {
		if (is_category() || is_single()) {
			the_category('title_li=');
			if (is_single()) {
				echo " » ";
				the_title();
			}
} elseif (is_page()) {
$ancestors = get_ancestors( get_the_ID(), 'page' ) ;
$i = count( $ancestors ) ;
while ( $i > 0 ) {
$page_data = get_page( $ancestors[$i-1] ) ;
echo ' <a href="'.get_permalink( $page_data->ID ).'">'.$page_data->post_title.'</a> » ' ;
$i-- ;
}
echo the_title();
}
	}
}



}

?><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.elkebrandner.at/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.elkebrandner.at/wp-sitemap-posts-page-1.xml</loc></sitemap></sitemapindex>
