<?php get_header(); ?> <div class="content"> <div id="content" class="narrowcolumn primary now-reading"> <div class="post"> <?php if( can_now_reading_admin() ) : ?> <p>Admin: » <a href="<?php manage_library_url() ?>">Manage Books</a></p> <?php endif; ?> <p><a href="<?php library_url() ?>">← Back to library</a></p> <?php library_search_form() ?> <p>Viewing books tagged with “<?php the_tag(); ?>”:</p> <?php if( have_books("tag={$GLOBALS['nr_tag']}&num=-1") ) : ?> <ul> <?php while( have_books("tag={$GLOBALS['nr_tag']}&num=-1") ) : the_book(); ?> <li><a href="<?php book_permalink() ?>"><?php book_title() ?></a> by <a href="<?php book_author_permalink() ?>"><?php book_author() ?></a></li> <?php endwhile; ?> </ul>
suffusion_after_begin_content(); ?> <article <?php post_class('post nr-post'); ?> > <header class="post-header"> <h1 class="posttitle"><?php echo the_book_author(false); ?> </h1> </header> <div class="bookdata fix"> <?php if (can_now_reading_admin()) { ?> <div class="manage"> <span class="icon"> </span> <a href="<?php manage_library_url(); ?> "><?php _e('Manage Books', 'suffusion'); ?> </a> </div> <?php } ?> </div>
/** * If the user has the correct permissions, prints a URL to the review-writing screen for the current book. * @param bool $echo Whether or not to echo the results. */ function book_edit_url($echo = true) { global $book, $nr_url; if (can_now_reading_admin()) { echo apply_filters('book_edit_url', $nr_url->urls['manage'] . '&action=editsingle&id=' . $book->id); } }