towfiqi

layout1

Feb 25th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.98 KB | None | 0 0
  1.  
  2. <?php $option =  get_option('scl_options'); ?>
  3. <div id="content">
  4.         <!--Slider-->
  5.         <div id="slide_wrap">
  6.         <?php if($option["scl_diss_rbn"] == "1"){ ?><?php } else { ?><div class="ribbon"><?php echo $option['scl_rbn_txt'] ?></div><?php } ?>
  7.         <?php if($option['scl_slider']== "Easyslider") { ?>
  8.         <?php get_template_part('easyslider'); ?>
  9.         <?php }?>
  10.         <?php if ($option['scl_slider'] == "Nivo Slider") { ?>
  11.         <?php get_template_part('nivo'); ?>
  12.         <?php } ?>
  13.         </div>
  14.  
  15.        
  16.         <!--POSTS-->
  17.         <div id="posts">
  18.        
  19.             <div id="lay1">
  20.             <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
  21.                 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  22.                
  23.             <!--THE Date Badge-->    
  24.             <?php if($option["scl_diss_date"] == "1"){ ?>
  25.             <?php } else { ?>
  26.  
  27.             <div class="date"><div class="date_content"><?php the_time('dS'); ?> <?php the_time('M'); ?><span><?php the_time('Y'); ?></span></div></div>       
  28.             <?php }?>
  29.                
  30.                      <div class="post_image">
  31.                      <!--CALL TO POST IMAGE-->
  32.                     <?php if ( has_post_thumbnail() ) : ?>
  33.                     <div class="imgwrap"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
  34.                    
  35.                     <?php elseif($photo = scl_get_images('numberposts=1', true)): ?>
  36.    
  37.                     <div class="imgwrap">
  38.                     <a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
  39.                
  40.                     <?php else : ?>
  41.                    
  42.                     <div class="imgwrap"><a href="<?php the_permalink();?>"><img src="<?php echo get_template_directory_uri(); ?>/images/blank_img.png" alt="<?php the_title_attribute(); ?>" class="thumbnail"/></a></div>  
  43.                              
  44.                     <?php endif; ?>
  45.  
  46.                 </div>
  47.                
  48.                 <div class="post_content">
  49.                     <h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
  50.                     <?php scylla_wpe_excerpt('wpe_excerptlength_teaser', 'wpe_excerptmore'); ?>
  51.                 </div>
  52.                
  53.                 <div class="post_meta"><div class="block_comm"><?php if (!empty($post->post_password)) { ?>
  54.             <?php } else { ?><div class="comments"><?php comments_popup_link('0 <span>Comm</span>', '1 <span>Comm</span>', '% <span>Comm</span>', '', __('Off')); ?></div><?php } ?></div></div>
  55.                
  56.                 </div>
  57.                
  58.              <?php endwhile ?>
  59.             <?php if (function_exists("scylla_paginate")) {
  60.                 scylla_paginate();
  61.                  } ?>  
  62.             <?php endif ?>
  63.             </div>
  64.            
  65.         </div>
  66. </div>
  67.  
  68.     <!--Sidebar-->
  69. <?php get_sidebar(); ?>
Add Comment
Please, Sign In to add comment