Commit 1e8d02ce authored by Jakob Moser's avatar Jakob Moser
Browse files

Move some static HTML out of the php block

parent a07253df
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -20,15 +20,13 @@ get_header();
?>
<main>
    <article>
        <header
        <?php
            echo ' style="background-image:url(\'';
            if ( has_post_thumbnail($post->ID) ) {
        <header style="background-image:url('
            <?php if ( has_post_thumbnail($post->ID) ) {
                echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
            } else {
                echo get_header_image();
            }
            echo '\');"';?> >
            } ?>
        ')">
            <h1><?php the_title(); ?></h1>
        </header>
        <div class="content">
+4 −6
Original line number Diff line number Diff line
@@ -22,15 +22,13 @@ get_header();
?>
<main>
    <article>
        <header
        <?php
            echo ' style="background-image:url(\'';
            if ( has_post_thumbnail($post->ID) ) {
        <header style="background-image:url('
            <?php if ( has_post_thumbnail($post->ID) ) {
                echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
            } else {
                echo get_header_image();
            }
            echo '\');"';?> >
            } ?>
        ')">
            <h1><?php the_title(); ?></h1>
        </header>
        <div class="content">