Skip to content

Instantly share code, notes, and snippets.

@pinscript
Forked from anonymous/index
Created February 7, 2012 15:13
Show Gist options
  • Save pinscript/1760152 to your computer and use it in GitHub Desktop.
Save pinscript/1760152 to your computer and use it in GitHub Desktop.
TJOCK NICE FIL!!
<?php get_header(); ?>
<?php if(is_front_page()): ?>
<div id="text" style="width: 600px;">
<?php else: ?>
<div id="text">
<?php endif; ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if(!is_front_page()): ?>
<h1><?php the_title(); ?></h1>
<?php endif; ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
<?php if (is_front_page()): ?>
<div id="me">
<p><a target="_blank" href="http://www.me.se/"> <img src="<?php echo bloginfo('template_url'); ?>/images/me_logo.gif"></a></p>
<p>Vi är medlemmar i Maskinentreprenörerna, en garanti för kunskap och kvalitet!</p>
</div>
<?php endif; ?>
<?php get_footer(); ?>
@pinscript
Copy link
Author

<?php if(is_front_page() || the_ID() == "9"): ?>
    <div id="text" style="width: 600px;">
<?php else: ?>
    <div id="text">
<?php endif; ?>
     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

        <?php if(!is_front_page()): ?>
            <h1><?php the_title(); ?></h1>
        <?php endif; ?>

        <?php the_content(); ?>
     <?php endwhile; endif; ?>

</div>

<?php if (is_front_page() || the_ID() == "9"): ?>
    <div id="me">
        <p><a target="_blank" href="http://www.me.se/"> <img src="<?php echo bloginfo('template_url'); ?>/images/me_logo.gif"></a></p>
        <p>Vi är medlemmar i Maskinentreprenörerna, en garanti för kunskap och kvalitet!</p>
    </div>
<?php endif; ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment