Advertisement
Guest User

Ovidiu

a guest
Jun 18th, 2009
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.69 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Page Template
  4.  *
  5.  * This template is loaded when viewing a page.
  6.  * @link http://codex.wordpress.org/Pages
  7.  *
  8.  * @package Hybrid
  9.  * @subpackage Template
  10.  */
  11.  
  12. get_header(); global $nr_author; ?>
  13.  
  14.     <div class="hfeed content author">
  15.  
  16.         <?php hybrid_before_content(); // Before content hook ?>
  17.             <div id="author">
  18. <h2 class="post-title entry-title"><a href="http://pacura.ru/library/<?php book_author_permalink(); ?>/" title="Recently read books by <?php book_author(); ?>" rel="bookmark">Recently read books by <?php book_author(); ?></a></h2>
  19.                 <div class="entry-content entry">
  20.                     <?php if( can_now_reading_admin() ) : ?>
  21.                     <p>Admin: &raquo; <a href="<?php manage_library_url() ?>">Manage Books</a></p>
  22.                     <?php endif; ?>
  23.                     <?php library_search_form() ?>
  24.                     <p><a href="<?php library_url() ?>">&larr; Back to library</a></p>
  25.                     <?php if( have_books("author={$GLOBALS['nr_author']}&num=-1") ) : ?>
  26.                     <ul>
  27.                         <?php while( have_books("author={$GLOBALS['nr_author']}&num=-1") ) : the_book(); ?>
  28.                             <li>
  29.                             <p><a href="<?php book_permalink() ?>"><img src="<?php book_image() ?>" alt="<?php book_title() ?>" /></a></p>
  30.                             <p class="booktitle"><?php book_title() ?></p>
  31.                             </li>
  32.                         <?php endwhile; ?>
  33.                     </ul>
  34.                     <?php else : ?>
  35.                 <p>There are no books by this author!</p>
  36.  
  37.         <?php endif; ?>
  38.        
  39.         <?php do_action('nr_footer'); ?>
  40.                 <?php wp_link_pages( array( 'before' => '<p class="pages">' . __('Pages:', 'hybrid'), 'after' => '</p>' ) ); ?>
  41.                 </div><!-- .entry-content -->      
  42.             </div><!-- .hentry .post -->
  43.         <?php hybrid_after_content(); // After content hook ?>
  44.  
  45.     </div><!-- .content .hfeed -->
  46.  
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement