links.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. Template Name: Links
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
  8. <div class="post">
  9. <?php the_title('<h1 class="post-title entry-title">', '</h1>'); ?>
  10. <div class="info">
  11. <?php if ( $user_ID ) : ?>
  12. <span class="editpost"><a href="<?php echo get_settings('home'); ?>/wp-admin/link-manager.php"><?php _e('Edit links', 'philna'); ?></a></span>
  13. <?php endif; ?>
  14. <?php if(comments_open()) : ?>
  15. <span class="comments-link addcomment"><a href="#respond" title="<?php _e('Add a comment', 'philna') ?>"><?php _e('Add a comment', 'philna') ?></a></span>
  16. <?php endif;?>
  17. <span class="published"><?php the_time(__('F jS, Y', 'philna')) ?></span>
  18. </div>
  19. <div class="entry-content">
  20. <div id="linkcat">
  21. <ul><?php wp_list_bookmarks('title_li=&categorize=0&orderby=rand'); ?></ul>
  22. <div class="fixed"></div>
  23. </div>
  24. <?php the_content(); ?>
  25. <?php wp_link_pages("before=<p class='pages'>".__('Pages:','philna')."&after=</p>"); ?>
  26. <div class="fixed"></div>
  27. </div>
  28. </div>
  29. <?php endwhile; ?>
  30. <?php else: ?>
  31. <p class="no-data"><?php _e('Sorry, no posts matched your criteria.','philna'); ?></p>
  32. <?php endif; ?>
  33. <?php comments_template(); ?>
  34. <?php get_footer(); ?>