/var/www/vhosts/che.de/indikatorenportal.che.de/wp-content/themes/indikatorenportal/inc/wp-generals.php
} elseif ( is_single() && !is_attachment() ) {
if ( get_post_type() != 'post' ) {
$post_type = get_post_type_object(get_post_type());
$slug = $post_type->rewrite;
if(!empty($post->post_parent)){
echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->label . '</a> ' . $delimiter . ' ';
echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/' . get_the_title($post->post_parent) . '/">' . get_the_title($post->post_parent) . '</a> ' . $delimiter . ' ';
}else{
echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->label. '</a> ' . $delimiter . ' ';
}
echo $before . get_the_title() . $after;
} else {
$cat = get_the_category(); $cat = $cat[0];
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo $before . get_the_title() . $after;
}
} elseif( is_archive() ) {
$post_type = get_post_type_object(get_post_type());
echo $post_type->label;
} elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() && !is_search() ) {
$post_type = get_post_type_object(get_post_type());
echo $before . $post_type->labels->singular_name . $after;
} elseif ( is_attachment() ) {
$parent = get_post($post->post_parent);
$cat = get_the_category($parent->ID); $cat = $cat[0];
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a> ' . $delimiter . ' ';
echo $before . get_the_title() . $after;
} elseif ( is_page() && !$post->post_parent ) {
echo $before . get_the_title() . $after;
} elseif ( is_page() && $post->post_parent ) {
$parent_id = $post->post_parent;
$breadcrumbs = array();
while ($parent_id) {
$page = get_page($parent_id);
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-content/themes/indikatorenportal/inc/wp-generals.php
} elseif ( is_single() && !is_attachment() ) {
if ( get_post_type() != 'post' ) {
$post_type = get_post_type_object(get_post_type());
$slug = $post_type->rewrite;
if(!empty($post->post_parent)){
echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->label . '</a> ' . $delimiter . ' ';
echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/' . get_the_title($post->post_parent) . '/">' . get_the_title($post->post_parent) . '</a> ' . $delimiter . ' ';
}else{
echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->label. '</a> ' . $delimiter . ' ';
}
echo $before . get_the_title() . $after;
} else {
$cat = get_the_category(); $cat = $cat[0];
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo $before . get_the_title() . $after;
}
} elseif( is_archive() ) {
$post_type = get_post_type_object(get_post_type());
echo $post_type->label;
} elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() && !is_search() ) {
$post_type = get_post_type_object(get_post_type());
echo $before . $post_type->labels->singular_name . $after;
} elseif ( is_attachment() ) {
$parent = get_post($post->post_parent);
$cat = get_the_category($parent->ID); $cat = $cat[0];
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a> ' . $delimiter . ' ';
echo $before . get_the_title() . $after;
} elseif ( is_page() && !$post->post_parent ) {
echo $before . get_the_title() . $after;
} elseif ( is_page() && $post->post_parent ) {
$parent_id = $post->post_parent;
$breadcrumbs = array();
while ($parent_id) {
$page = get_page($parent_id);
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-content/themes/indikatorenportal/template-parts/header-banner.php
<div class="header-banner">
<div class="container">
<?php if(is_404()):?>
<h1 class="page-title">Fehler 404</h1>
<?php elseif(is_search()):?>
<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'indikatorenportal' ), '<span>' . get_search_query() . '</span>' );?></h1>
<?php elseif(is_post_type_archive()):?>
<h1 class="page-title"><?php post_type_archive_title();?></h1>
<?php elseif(get_post_type() == 'prozessschritt'):?>
<h1 class="page-title"><?php echo 'Prozessschritt ' . get_the_title();?></h1>
<?php elseif(get_post_type() == 'facette'):?>
<h1 class="page-title"><?php echo 'Facette ' . get_the_title();?></h1>
<?php elseif(get_post_type() == 'leistungsbereich'):?>
<h1 class="page-title"><?php echo 'Leistungsbereich ' . get_the_title();?></h1>
<?php else:?>
<h1 class="page-title"><?php single_post_title();?></h1>
<?php endif;?>
<div class="breadcrumbs">
<?php if (function_exists('nav_breadcrumb')) nav_breadcrumb(); ?>
</div>
</div>
</div>
<style>
.header-banner{
padding-top: var(--wp--custom--spacing--x-large);
padding-bottom: var(--wp--custom--spacing--x-large);
background: var(--wp--custom--color--header-banner-bg);
}
.header-banner .container{
margin-top: 0px;
}
.header-banner .breadcrumbs{
font-size: 18px;
}
.header-banner .breadcrumbs a{
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-includes/template.php
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
/**
* Fires before a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
if ( $load_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
/**
* Fires after a template file is loaded.
*
* @since 6.1.0
*
* @param string $_template_file The full path to the template file.
* @param bool $load_once Whether to require_once or require.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-includes/template.php
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
$located = $wp_stylesheet_path . '/' . $template_name;
break;
} elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
$located = $wp_template_path . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' !== $located ) {
load_template( $located, $load_once, $args );
}
return $located;
}
/**
* Requires the template file with WordPress environment.
*
* The globals are set up for the template file to ensure that the WordPress
* environment is available from within the function. The query variables are
* also available.
*
* @since 1.5.0
* @since 5.5.0 The `$args` parameter was added.
*
* @global array $posts
* @global WP_Post $post Global post object.
* @global bool $wp_did_header
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Rewrite $wp_rewrite WordPress rewrite component.
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-includes/general-template.php
$templates[] = "{$slug}-{$name}.php";
}
$templates[] = "{$slug}.php";
/**
* Fires before an attempt is made to locate and load a template part.
*
* @since 5.2.0
* @since 5.5.0 The `$args` parameter was added.
*
* @param string $slug The slug name for the generic template.
* @param string $name The name of the specialized template or an empty
* string if there is none.
* @param string[] $templates Array of template files to search for, in order.
* @param array $args Additional arguments passed to the template.
*/
do_action( 'get_template_part', $slug, $name, $templates, $args );
if ( ! locate_template( $templates, true, false, $args ) ) {
return false;
}
}
/**
* Displays search form.
*
* Will first attempt to locate the searchform.php file in either the child or
* the parent, then load it. If it doesn't exist, then the default search form
* will be displayed. The default search form is HTML, which will be displayed.
* There is a filter applied to the search form HTML in order to edit or replace
* it. The filter is {@see 'get_search_form'}.
*
* This function is primarily used by themes which want to hardcode the search
* form into the sidebar and also by the search widget in WordPress.
*
* There is also an action that is called whenever the function is run called,
* {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
* search relies on or various formatting that applies to the beginning of the
* search. To give a few examples of what it can be used for.
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-content/themes/indikatorenportal/archive.php
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package indikatorenportal
*/
get_header();
?>
<main id="primary" class="site-main">
<?php get_template_part('template-parts/header-banner');?>
<div class="container">
<div class="row">
<?php if ( have_posts() ) : ?>
<?php
/* Start the Loop */
while ( have_posts() ) :
the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
get_template_part( 'template-parts/archive-element', get_post_type() );
endwhile;
the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
/var/www/vhosts/che.de/indikatorenportal.che.de/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/var/www/vhosts/che.de/indikatorenportal.che.de/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';