| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/web20/web/wp-content/themes/drogentest-online/ |
Upload File : |
<?php /** * Seiten-Template: HTML-Sitemap (für die Seite mit Slug "sitemap"). * * Erzeugt automatisch eine übersichtliche Liste aus Seiten, Kategorien und * Beiträgen. Aktualisiert sich von selbst, sobald Inhalte hinzukommen. * * @package drogentest-online */ get_header(); while ( have_posts() ) : the_post(); ?> <header class="dgt-pagehead"> <?php dgt_breadcrumb(); ?> <h1 class="dgt-pagehead-title"><?php the_title(); ?></h1> <p class="dgt-pagehead-lead">Alle Inhalte dieser Website auf einen Blick.</p> </header> <section class="dgt-content"> <div class="dgt-single"> <?php if ( trim( get_the_content() ) ) : ?> <div class="dgt-single-content" style="margin-bottom:2rem;"><?php the_content(); ?></div> <?php endif; ?> <div class="row g-4 dgt-sitemap"> <!-- Seiten --> <div class="col-md-6"> <h2 class="dgt-related-title">Seiten</h2> <ul class="dgt-sitemap-list"> <?php wp_list_pages( array( 'title_li' => '', 'sort_column' => 'menu_order, post_title', ) ); ?> </ul> </div> <!-- Kategorien --> <div class="col-md-6"> <h2 class="dgt-related-title">Kategorien</h2> <ul class="dgt-sitemap-list"> <?php wp_list_categories( array( 'title_li' => '', 'show_count' => true, ) ); ?> </ul> </div> <!-- Verkehrsmonitor --> <div class="col-md-6"> <h2 class="dgt-related-title">Verkehrsmonitor</h2> <ul class="dgt-sitemap-list"> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/' ) ); ?>">Übersicht</a></li> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/heute/' ) ); ?>">Tagesreport</a></li> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/statistiken/' ) ); ?>">Statistiken</a></li> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/archiv/' ) ); ?>">Archiv</a></li> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/alkohol-am-steuer/' ) ); ?>">Alkohol am Steuer</a></li> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/drogen-am-steuer/' ) ); ?>">Drogen am Steuer</a></li> <li><a href="<?php echo esc_url( home_url( '/verkehrsmonitor/unfaelle/' ) ); ?>">Unfälle</a></li> <?php if ( function_exists( 'dgt_vm_bundeslaender' ) ) : foreach ( dgt_vm_bundeslaender() as $bl_slug => $bl_name ) : printf( '<li><a href="%s">%s</a></li>', esc_url( home_url( '/verkehrsmonitor/' . $bl_slug . '/' ) ), esc_html( $bl_name ) ); endforeach; endif; ?> </ul> </div> <!-- Beiträge --> <div class="col-12"> <h2 class="dgt-related-title">Beiträge</h2> <?php $dgt_posts = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC', 'no_found_rows' => true, 'ignore_sticky_posts' => true, ) ); if ( $dgt_posts->have_posts() ) : ?> <ul class="dgt-sitemap-list dgt-sitemap-posts"> <?php while ( $dgt_posts->have_posts() ) : $dgt_posts->the_post(); printf( '<li><a href="%s">%s</a> <span class="dgt-sitemap-date">%s</span></li>', esc_url( get_permalink() ), esc_html( get_the_title() ), esc_html( get_the_date() ) ); endwhile; ?> </ul> <?php wp_reset_postdata(); else : echo '<p class="dgt-empty-text">Noch keine Beiträge vorhanden.</p>'; endif; ?> </div> </div> </div> </section> <?php endwhile; get_footer();