Пример #1
0
>
			<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>
			<div class="booklisting">
<?php 
$nr_book_query = "author={$GLOBALS['nr_author']}&num=-1";
get_template_part('now-reading/nr-shelf');
?>
Пример #2
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>
Пример #3
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; ?>
			
Пример #4
0
?>

<div id="main-col">
<?php suffusion_before_begin_content(); ?>
	<div id="content">
<?php suffusion_after_begin_content(); ?>
		<div class="post fix nr-post">
			<h1 class="posttitle"><?php echo the_book_author(false); ?></h1>

			<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>
			<div class="booklisting">
<?php
$nr_book_query = "author={$GLOBALS['nr_author']}&num=-1";
get_template_part('now-reading/nr-shelf');
?>
			</div><!-- /.booklisting -->
		</div><!-- /.nr-post -->
	</div><!-- /#content -->
</div><!-- /#main-col -->
Пример #5
0
<?php wp_enqueue_script("jquery"); ?>

<?php get_header() ?>

<div class="content">

	<div id="content" class="now-reading primary narrowcolumn">

	<div class="post">

		<?php if( can_now_reading_admin() ) : ?>

			<p>Admin: &raquo; <a href="<?php manage_library_url() ?>"><?php __('Manage Books', NRTD);?></a></p>

		<?php endif; ?>

		<p><?php print_book_stats() ?></p>

		<?php library_search_form() ?>

		<h2>Currently Reading (<?php echo total_books('reading', 0) ?>):</h2>

		<?php if( have_books('status=reading&orderby=random&num=-1') ) : ?>

			<ul>

			<?php while( have_books('status=reading&orderby=random&num=-1') ) : the_book(); ?>

				<li>
					<p><a href="<?php book_permalink() ?>"><img src="<?php book_image() ?>" alt="<?php book_title() ?>" /></a></p>
					<p><a href="<?php book_permalink() ?>"><?php book_title() ?></a> by <a href="<?php book_author_permalink() ?>"><?php book_author() ?></a></p>