August 9, 2015 at 1:34 am
#14087
Bratt
Participant
<?php if(is_user_logged_in())
wp_redirect(apply_filters(‘login_redirect’, ‘/’));
else
wp_redirect(‘/wp-login.php’); ?>
<?php
get_header(); ?>
<div id="primary" class="row-fluid">
<div id="content" role="main" class="span8 offset2">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<article class="post">
<h1 class="title"><img class="img-responsive aligncenter title" alt="DSV" src="http://xxxxxxxx.xxx/xxx_b.png"><?php the_title(); ?></h1>
<div class="the-content">
<?php the_content();
?>
<?php wp_link_pages(); ?>
</div><!-- the-content -->
</article>
<?php endwhile; ?>
<?php else : ?>
<article class="post error">
<h1 class="404">Här var det tomt.</h1>
</article>
<?php endif; ?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_footer(); ?>