Advertisement
Guest User

Untitled

a guest
Apr 30th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. <?php /* Template Name: homepage */ ?>
  2. <?php get_header(); ?>
  3.  
  4. <div id="content">
  5.  
  6. <div class="padder">
  7.  
  8. <?php do_action( 'bp_before_blog_page' ); ?>
  9.  
  10. <div class="page" id="blog-page" role="main">
  11.  
  12. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13.  
  14. <h2 class="pagetitle"><?php the_title(); ?></h2>
  15.  
  16. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  17.  
  18. <div class="entry">
  19.  
  20. <?php the_content( __( '<p class="serif">Read the rest of this page →</p>', 'buddypress' ) ); ?>
  21.  
  22. <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  23.  
  24. <?php edit_post_link( __( 'Edit this page.', 'buddypress' ), '<p class="edit-link">', '</p>'); ?>
  25.  
  26. </div>
  27.  
  28. </div>
  29.  
  30.  
  31.  
  32. <?php endwhile; endif; ?>
  33.  
  34. <ul id="latestnews">
  35. <li>
  36.  
  37. <?php query_posts('category_name=bodyboard&showposts=1');
  38. while (have_posts()) : the_post();
  39. // do whatever you want
  40. ?>
  41. <b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
  42. <?php the_excerpt(); ?>
  43. <?php
  44. endwhile;
  45. ?>
  46. </li>
  47.  
  48. <li>
  49.  
  50. <?php query_posts('category_name=sup&showposts=1');
  51. while (have_posts()) : the_post();
  52. // do whatever you want
  53. ?>
  54. <b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
  55. <?php the_excerpt(); ?>
  56. <?php
  57. endwhile;
  58. ?>
  59. </li>
  60.  
  61.  
  62.  
  63. <li>
  64.  
  65. <?php query_posts('category_name=longboarders&showposts=1');
  66. while (have_posts()) : the_post();
  67. // do whatever you want
  68. ?>
  69. <b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
  70. <?php the_excerpt(); ?>
  71. <?php
  72. endwhile;
  73. ?>
  74. </li>
  75.  
  76. <li>
  77.  
  78. <?php query_posts('category_name=shortboarding&showposts=1');
  79. while (have_posts()) : the_post();
  80. // do whatever you want
  81. ?>
  82. <b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
  83. <?php the_excerpt(); ?>
  84. <?php
  85. endwhile;
  86. ?>
  87. </li>
  88.  
  89. <li>
  90.  
  91. <?php query_posts('category_name=fit&showposts=1');
  92. while (have_posts()) : the_post();
  93. // do whatever you want
  94. ?>
  95. <b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
  96. <?php the_excerpt(); ?>
  97. <?php
  98. endwhile;
  99. ?>
  100. </li>
  101.  
  102. <li>
  103.  
  104. <?php query_posts('category_name=windsurfers&showposts=1');
  105. while (have_posts()) : the_post();
  106. // do whatever you want
  107. ?>
  108. <b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
  109. <?php the_excerpt(); ?>
  110. <?php
  111. endwhile;
  112. ?>
  113. </li>
  114. </ul>
  115. </div><!-- .page -->
  116.  
  117. <?php do_action( 'bp_after_blog_page' ); ?>
  118.  
  119. </div><!-- .padder -->
  120.  
  121. </div><!-- #content -->
  122.  
  123. <?php get_sidebar(); ?>
  124.  
  125. <?php get_footer(); ?>``
  126. and here is my css:`#latestnews li
  127. {
  128. display: inline;
  129. list-style-type: none;
  130. padding: 20px;
  131.  
  132. }
  133.  
  134. #latestnews li a
  135. {
  136. color:#FC0;
  137. text-decoration:none;
  138. }
  139.  
  140. #latestnews li a:hover
  141. {
  142. color: #00F;
  143. text-decoration:none;
  144. }`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement