[ Index ]

PHP Cross Reference of zeList

title

Body

[close]

/style/ -> link-category.php (source)

   1  <?php
   2  /*
   3  Template Name: Links Category
   4  Fallback for missing link-category.php in theme directory
   5  DO NOT MODIFY this file. Instead, add a 'link-category.php' file to your theme directory, copy the code below and modify it.
   6  */
   7  get_header(); ?>
   8      <div id="content" class="narrowcolumn">
   9      <?php if(is_link_category()) : ?><h1 class="link_category"><?php breadcrumbs(); ?></h1>
  10      <?php // or : printf(__('Archive for the &#8216;%s&#8217; Category','zelist'), single_link_cat_title('', false)); ?>
  11      <?php elseif(is_link_tag()) : ?><h1 class="link_tag"><?php printf(__('Links Tagged &#8216;%s&#8217;', 'zelist'), single_link_tag_title('', false) ); ?></h1>
  12      <?php elseif(is_link_search()) : ?><h1 class="link_search"><?php printf(__('Search Results for &#8216;%s&#8217;', 'zelist'), wp_specialchars(get_search_query(), true)); ?></h1>
  13      <?php endif; ?>
  14  
  15      <?php if((is_link_category() && get_categories('type=link&child_of='.$link_category_id)) || is_link_home()) : ?>
  16      <ul id="categories">
  17      <?php wp_list_categories('type=link&depth=2&show_count=1&pad_counts=1&title_li=0&child_of='.$link_category_id); ?>
  18      </ul>
  19      <?php endif; ?>
  20  
  21  
  22      <?php if (have_links()) : ?>
  23      <div id="links">
  24  
  25          <?php while (have_links()) : the_link(); ?>
  26  
  27              <div <?php link_class(); ?> id="link-<?php the_ID(); ?>">
  28                  <h2><a href="<?php the_link_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'zelist'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
  29                  <div class="entry">
  30                      <a href="<?php the_link_permalink() ?>"><?php the_image('width=120'); ?></a>
  31                      <?php the_excerpt(__('Read the rest of this entry &raquo;', 'zelist')); ?>
  32                  </div>
  33  
  34                  <p class="link_metas">
  35                  <?php the_tags(__('Tags:', 'zelist') . ' ', ', ', '<br />'); ?>
  36                  <?php printf(__('Published on %s, in %s','zelist'),get_the_link_time(__('F jS, Y', 'zelist')),get_the_link_category_list(', ')); ?>
  37                  <?php edit_link_link(__('Edit'), '<br />', ''); ?>
  38  
  39                  </p>
  40              </div>
  41  
  42          <?php endwhile; ?>
  43      </div>
  44          <div class="navigation">
  45              <div class="alignleft"><?php next_links_link(__('&laquo; Older Entries', 'zelist')) ?></div>
  46              <div class="alignright"><?php previous_links_link(__('Newer Entries &raquo;', 'zelist')) ?></div>
  47          </div>
  48  
  49      <?php else : ?>
  50  
  51          <h2 class="center"><?php _e('Not Found', 'zelist'); ?></h2>
  52          <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'zelist'); ?></p>
  53          <?php the_link_searchform() ?>
  54  
  55      <?php endif; ?>
  56  
  57      <?php printf(__('Powered by %s', 'zelist'), '<a href="http://www.zelist.net/">zeList, WordPress Directory</a>'); ?>
  58      </div>
  59  
  60  <?php get_sidebar(); ?>
  61  <?php get_footer(); ?>


Generated: Sat May 30 23:51:06 2009 Cross-referenced by PHPXref 0.7