Exemplo n.º 1
0
<?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: &raquo; <a href="<?php manage_library_url() ?>">Manage Books</a></p>
		
	<?php endif; ?>
	
	<p><a href="<?php library_url() ?>">&larr; Back to library</a></p>
	
	<?php library_search_form() ?>
	
	<p>Viewing books tagged with &ldquo;<?php the_tag(); ?>&rdquo;:</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>
Exemplo n.º 2
0
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">&nbsp;</span>
					<a href="<?php 
    manage_library_url();
    ?>
"><?php 
    _e('Manage Books', 'suffusion');
    ?>
</a>
				</div>
<?php 
}
?>
			</div>
Exemplo n.º 3
0
/**
 * 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'] . '&amp;action=editsingle&amp;id=' . $book->id);
    }
}