Example #1
0
		
		<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>
		
	<?php else : ?>
		
		<p>Sorry, but there were no search results for your query.</p>
		
	<?php endif; ?>
	
	<?php do_action('nr_footer'); ?>
	
Example #2
0
global $nr_id;
?>

<div class="content">
	
	<div id="content" class="narrowcolumn primary now-reading">
	
	<div class="post">
		
		<?php 
if (have_books(intval($nr_id))) {
    ?>
			
			<?php 
    while (have_books(intval(nr_id))) {
        the_book();
        ?>
			
			<?php 
        if (can_now_reading_admin()) {
            ?>
			<p>Admin: &raquo; <a href="<?php 
            manage_library_url();
            ?>
">Manage Books</a> &raquo; <a href="<?php 
            book_edit_url();
            ?>
">Edit this book</a></p>
			<?php 
        }
        ?>
Example #3
0
		</ul>

	<?php else : ?>

		<p>None</p>

	<?php endif; ?>

	<h3>Recent books:</h3>

	<?php if( have_books('status=read&orderby=finished&order=desc') ) : ?>

		<ul>

		<?php while( have_books('status=read&orderby=finished&order=desc') ) : the_book(); ?>

			<li><a href="<?php book_permalink() ?>"><?php book_title() ?></a> by <?php book_author() ?></li>

		<?php endwhile; ?>

		</ul>

	<?php else : ?>

		<p>None</p>

	<?php endif; ?>

	<p><a href="<?php library_url() ?>">View full Library</a></p>
Example #4
0
<?php get_header(); global $nr_id; ?>

<div class="content">
	
	<div id="content" class="narrowcolumn primary now-reading">
	
	<div class="post">
		
		<?php if( have_books(intval($nr_id)) ) : ?>
			
			<?php while ( have_books(intval(nr_id)) ) : the_book(); ?>
			
			<?php if( can_now_reading_admin() ) : ?>
			<p>Admin: &raquo; <a href="<?php manage_library_url() ?>">Manage Books</a> &raquo; <a href="<?php book_edit_url() ?>">Edit this book</a></p>
			<?php endif; ?>
			
			<?php library_search_form() ?>
			
			<p><a href="<?php library_url() ?>">&larr; Back to library</a></p>
			
			<h2><?php book_title() ?></h2>
			<p>By <a href="<?php book_author_permalink() ?>"><?php book_author() ?></a></p>
			
			<p>
				<a href="<?php book_url() ?>"><img src="<?php book_image() ?>" alt="<?php book_title() ?>" /></a>
			</p>
			
			<?php if( !is_custom_book() ): ?>
				<p>You can view this book's Amazon detail page <a href="<?php book_url() ?>">here</a>.</p>
			<?php endif; ?>
			
Example #5
0
			
			<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>Search results for <?php search_query(); ?>:</p>
		
		<?php if( have_books("status=all&num=-1&search={$GLOBALS['query']}") ) : ?>
			
			<ul>
			
			<?php while( have_books("status=all&num=-1&search={$GLOBALS['query']}") ) : 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>
			
		<?php else : ?>
			
			<p>Sorry, but there were no search results for your query.</p>
			
		<?php endif; ?>
		
		<?php do_action('nr_footer'); ?>
		
Example #6
0
			
			<p>Admin: &raquo; <a href="<?php manage_library_url() ?>">Manage Books</a></p>
			
		<?php endif; ?>
		
		<?php library_search_form() ?>
		
		<p><a href="<?php library_url() ?>">&larr; Back to library</a></p>
		
		<h2>Books by <?php the_book_author() ?></h2>
		
		<?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><?php book_title() ?></p>
				</li>
				
			<?php endwhile; ?>
			
			</ul>
			
		<?php else : ?>
			
			<p>There are no books by this author!</p>
			
		<?php endif; ?>