ymel

index.php

Jun 6th, 2011
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4. <?php include (TEMPLATEPATH . '/slide.php'); ?>
  5. <div id="subox">
  6.  
  7. <div class="sboxleft sblist">
  8. <h3 class="sidetitl"> Popular Posts </h30>
  9. <ul>
  10. <?php popular_posts();?>
  11. </ul>
  12. <div class="clear"></div>
  13. </div>
  14.  
  15. <div class="sboxright sblist">
  16. <h3 class="sidetitl"> Random Posts </h3>
  17. <ul>
  18.  
  19. <?php
  20. $myposts = get_posts('numberposts=10&orderby=rand');
  21. foreach($myposts as $post) :
  22. ?>
  23. <li><a href="<?php the_permalink(); ?>"><?php the_title();
  24. ?></a></li>
  25. <?php endforeach; ?>
  26. </ul>
  27. <div class="clear"></div>
  28. </div>
  29.  
  30. </div>
  31.  
  32. <div class="clear"></div>
  33. <h3 class="mytitle"> Recent Posts </h3>
  34. <?php if (have_posts()) : ?>
  35. <?php while (have_posts()) : the_post(); ?>
  36.  
  37. <div class="box" id="post-<?php the_ID(); ?>" id="post-<?php the_ID(); ?>">
  38. <?php asts_home_image();?>
  39. <div class="boxtitle">
  40. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  41.  
  42.  
  43. </div>
  44.  
  45. <div class="cover">
  46. <div class="entry">
  47.  
  48. <p><?php the_content_rss('', TRUE, '', 30); ?> </p>
  49.  
  50. </div>
  51. <div class="data">
  52. <span class="author"> Posted by <?php the_author(); ?></span>
  53. <span class="clock"> On <?php the_time('F - j - Y'); ?></span>
  54. <span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span>
  55. </div>
  56.  
  57.  
  58. </div>
  59.  
  60.  
  61.  
  62. </div>
  63.  
  64. <?php endwhile; ?>
  65.  
  66. <div class="clear"></div>
  67.  
  68. <div id="navigation">
  69. <?php if(function_exists('wp_pagenavi')) : ?>
  70. <?php wp_pagenavi() ?>
  71. <?php else : ?>
  72. <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','arclite')) ?></div>
  73. <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;','arclite')) ?></div>
  74. <div class="clear"></div>
  75. <?php endif; ?>
  76.  
  77. </div>
  78.  
  79. <div id="subox">
  80.  
  81. <div class="sboxleft sblist">
  82. <h3 class="sidetitl"> Twitter updates </h3>
  83. <?php
  84. $twit = get_option('asts_twit');
  85. include('twitter.php');?>
  86. <?php if(function_exists('Twitter_messages')) : ?>
  87. <?php Twitter_messages("$twit") ?>
  88. <?php endif; ?>
  89. <div class="clear"></div>
  90. </div>
  91. <div class="sboxright sblist">
  92. <h3 class="sidetitl"> Recent Comments </h3>
  93. <ul>
  94. <?php dp_recent_comments(); ?>
  95. </ul>
  96.  
  97.  
  98.  
  99. <div class="clear"></div>
  100. </div>
  101.  
  102. </div>
  103.  
  104. <?php else : ?>
  105. <h1 class="title">Not Found</h1>
  106. <p>Sorry, but you are looking for something that isn't here.</p>
  107. <?php endif; ?>
  108.  
  109. </div>
  110.  
  111.  
  112.  
  113. <?php get_sidebar(); ?>
  114.  
  115. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment