Advertisement
Guest User

WOrldPerfect

a guest
Mar 1st, 2011
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.55 KB | None | 0 0
  1.  
  2. <?php  get_header(); ?>
  3.  
  4.   <?php if (have_posts()) : $count = 0; ?>
  5.     <ol id="posts">
  6.     <div id="slideshow1" style="height: 460px;">
  7.    
  8.   <?php while (have_posts()) : the_post(); $count++; ?>
  9.   <?php if($count <3): ?>
  10.            
  11.         <div style="margin-bottom:0px;" class="fluidContainer <?php the_category_unlinked(''); ?>">
  12.             <div class="topicImage">
  13.            
  14.             <img src="<?php echo get_post_meta($post->ID, 'postimageBig', true); ?>">
  15.             <div class="imgOverlay transparens">
  16.             <div class="preOverlay" id="<?php the_category_unlinked(''); ?>">&nbsp;</div>
  17.                 <div style="padding: 8px 0 8px 0">
  18.                 <a href="<?php the_permalink() ?>" rel="bookmark"><h1><?php the_title(); ?></h1></a>
  19.                 </div>
  20.             </div> 
  21.             </div>
  22.            
  23.             <div class="subContent frontPage <?php the_category_unlinked(' '); ?>" style:>
  24.             <a href="<?php the_permalink() ?>" rel="bookmark"><h1><?php the_title(); ?></h1></a>
  25.             <p><?php the_content('L&aelig;s mere...'); ?></p>
  26.             </div>
  27.            
  28.         </div>
  29.         <?php else:
  30.         if ($count ===3) { echo '</div>'; }?>
  31.         <!-- TOPIC START-->
  32.         <div class="topicContainer smallPost" id="<?php the_category_unlinked(''); ?>">
  33.         <a href="<?php the_permalink() ?>" rel="bookmark"><h2><?php the_category_unlinked(''); ?>: </h2><h1><?php the_title(); ?></h1></a>
  34.         </div>
  35.         <!-- TOPIC END-->
  36.         <?php endif; ?>    
  37.     <?php endwhile; ?>
  38.     </ol>
  39.    
  40.      <?php else: ?>
  41.  
  42.     <p style="color:#000; font-size: 60px;"><?php _e('Ups, der er slet ingen indl&aelig;g. Pr&oslash;v igen...'); ?></p>
  43.  
  44. <?php   endif;  ?>
  45.  
  46. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement