Commit 899ea5a4 authored by Jakob Moser's avatar Jakob Moser
Browse files

Re-arrange tags in header, improve title logic

parent 4c26362d
Loading
Loading
Loading
Loading
+16 −10
Original line number Diff line number Diff line
@@ -10,25 +10,31 @@ get_header();
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
    <head>
        <meta charset="<?php bloginfo('charset'); ?>"/>
        <title>
            <?php
            if ( is_front_page() ) {
                bloginfo('name');
            } elseif (is_home()) {
                echo 'Blog | '.get_bloginfo('name');
                if(is_home()) {
                    echo 'Blog | ';
                } elseif(is_search()) {
                echo 'Suchergebnisse | '.get_bloginfo('name');
            } else {
                echo get_the_title($post->ID).' | '.get_bloginfo('name');
                    echo 'Suchergebnisse | ';
                } elseif(!is_front_page()) {
                    // get_the_title does not escape the returned values
                    // (see https://developer.wordpress.org/reference/functions/get_the_title/#comment-1653)
                    // So, to be on the safe side, we escape it here.
                    echo esc_html(get_the_title($post->ID)).' | ';
                }
        ?></title>
                bloginfo('name');
            ?>
        </title>
		
        <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri();?>" />
		<link rel="shortcut icon" href="<?php echo get_template_directory_uri();?>/img/favicon.png" />
        <link rel="alternate" type="application/rss+xml" title="fscoli blog" href="<?php bloginfo('rss2_url'); ?>" />
        <meta name="copyright" content="Fachschaft Computerlinguistik">
        
        <meta charset="<?php bloginfo('charset'); ?>" />
        <meta name="copyright" content="Fachschaft Computerlinguistik" />
        <meta name="description" content="<?php bloginfo('description');?>" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <?php wp_head(); ?>
    </head>
    <body class="<?php echo is_admin_bar_showing() ? 'has-admin-bar' : '';?>">
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
 * Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version und Design); Jakob Moser (Code-Anpassungen und Responsiveness)
 * Author URI: https://personads.me/
 *
 * Version: 1.00-snapshot-41
 * Version: 1.00-snapshot-42
 * 
 * License: GNU General Public License v3.0
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html