Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Page Template
- *
- * This template is loaded when viewing a page.
- * @link http://codex.wordpress.org/Pages
- *
- * @package Hybrid
- * @subpackage Template
- */
- get_header(); global $nr_author; ?>
- <div class="hfeed content author">
- <?php hybrid_before_content(); // Before content hook ?>
- <div id="author">
- <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>
- <div class="entry-content entry">
- <?php if( can_now_reading_admin() ) : ?>
- <p>Admin: » <a href="<?php manage_library_url() ?>">Manage Books</a></p>
- <?php endif; ?>
- <?php library_search_form() ?>
- <p><a href="<?php library_url() ?>">← Back to library</a></p>
- <?php if( have_books("author={$GLOBALS['nr_author']}&num=-1") ) : ?>
- <ul>
- <?php while( have_books("author={$GLOBALS['nr_author']}&num=-1") ) : the_book(); ?>
- <li>
- <p><a href="<?php book_permalink() ?>"><img src="<?php book_image() ?>" alt="<?php book_title() ?>" /></a></p>
- <p class="booktitle"><?php book_title() ?></p>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php else : ?>
- <p>There are no books by this author!</p>
- <?php endif; ?>
- <?php do_action('nr_footer'); ?>
- <?php wp_link_pages( array( 'before' => '<p class="pages">' . __('Pages:', 'hybrid'), 'after' => '</p>' ) ); ?>
- </div><!-- .entry-content -->
- </div><!-- .hentry .post -->
- <?php hybrid_after_content(); // After content hook ?>
- </div><!-- .content .hfeed -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement