Advertisement
kilikiapeto

index.php

Sep 1st, 2011
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.69 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php if(is_home()){    ?>
  4.     <style type='text/css'>
  5.     #header .categories {
  6.         clear: both;
  7.         list-style-type: none;
  8.         height: 40px;
  9.         overflow: hidden;
  10.         display: block;
  11.         background: url('<?php bloginfo('template_url'); ?>/images/head_menu_bg.png') no-repeat left top !important;
  12.     }
  13.     </style>
  14.  <?php }?>
  15.  
  16.  
  17. <!-- begin featured -->
  18. <div id="featured">
  19.     <div class="bg_1">
  20.    
  21.         <div class="slideshow">
  22.             <? include('sidebar_custom.php'); ?>
  23.         </div>
  24.         <div class="flash">
  25.             <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="490" height="300" id="map" align="middle">
  26.                 <param name="allowScriptAccess" value="sameDomain" />
  27.                 <param name="allowFullScreen" value="false" />
  28.                 <param name="movie" value="/map.swf" />
  29.                 <param name="quality" value="high" />
  30.                 <param name="wmode" value="transparent" />
  31.                 <param name="flashvars" value="lng=en" />
  32.                 <embed src="/map.swf" flashvars="lng=en" quality="high" wmode="transparent" width="490" height="300" name="map" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
  33.             </object>
  34.         </div>
  35.         <div class="ac clear"></div>
  36.        
  37.     </div>
  38. </div>
  39. <!-- end featured -->
  40.  
  41. <div class="ac"></div>
  42. <div class="main_bg">
  43. <div class="content_and_sidebar">
  44. <? include('left_sidebar.php'); ?>
  45. <!-- BEGIN content -->
  46. <div id="content">
  47. <div class="breadcrumbs">
  48. <?php
  49. if(function_exists('bcn_display'))
  50. {
  51.    bcn_display();
  52. }
  53. ?>
  54. </div>
  55.    
  56.     <!-- begin recent posts -->
  57.     <div class="recent">
  58.    
  59.         <?php
  60.         $wp_query = $tmp_query;
  61.         $odd = false;
  62.         query_posts('showposts=10&cat=1');
  63.  
  64.         if (have_posts()) :
  65.         while (have_posts()) : the_post();
  66.         $odd = !$odd;
  67.         ?>
  68.    
  69.         <!-- begin post -->
  70.         <div class="<?php if ($odd) echo 'o '; ?>post">
  71.         <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
  72.         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  73.         <p><?php echo dp_clean($post->post_content, 300); ?></p>
  74.         <p class="readmore"><a href="<?php the_permalink(); ?>">read more</a></p>
  75.         <div class="break"></div>
  76.         </div>
  77.         <!-- end post -->
  78.        
  79.         <?php endwhile; ?>
  80.        
  81.        
  82.             <?php wp_pagenavi(); ?>
  83.        
  84.        
  85.         <?php else : ?>
  86.         <div class="notfound">
  87.         <h2>Not Found</h2>
  88.         <p>Sorry, but you are looking for something that is not here.</p>
  89.         </div>
  90.         <?php endif; ?>
  91.    
  92.     </div>
  93.     <!-- end recent posts -->
  94.  
  95. </div>
  96. <!-- END content -->
  97.  
  98. <?php get_sidebar(); get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement