<?php /* Template Name: Upgrade */ ?>
<?php 
    global $theme_logo_image_name;    
    global $theme_logo_image_url;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> data-trailing-slash="<?php echo user_trailingslashit(''); ?>">
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
        <meta name="viewport" content="width=device-width" />
        <title><?php wp_title( ' | ', true, 'right' ); ?></title>
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />

        <?php echo do_shortcode('[fp-freshop]'); ?>
    </head>

    <body <?php body_class(); ?>>
        <style type="text/css">
            body {
                font-family: Arial,Helvetica Neue,Helvetica,sans-serif;
            }
            a {
                text-decoration: underline !important;
            }
            .logo-wrap {
                display: inline-block;
                padding: 10px;
            }
        </style>

        <div class="container" style="text-align: center">
            <a href="<?php echo home_url(); ?>" class="logo-wrap"><img src="<?= $theme_logo_image_url ?>" width="200" alt="<?php bloginfo( 'name' ); ?>" /></a>
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <section>
                    <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>

                    <?php the_content(); ?>
                </section>
            </article>

            <?php endwhile; endif; ?>
        </div>
    </body>
</html>
