Exemplo n.º 1
0
		<div class="bookdata fix">
			<div class="author">
				<span class="icon">&nbsp;</span>
				<a href="<?php book_author_permalink() ?>"><?php book_author() ?></a>
			</div>

			<div class="rating">
				Rating: <?php echo book_rating(false); ?>
<!--				<img src="<?php echo get_template_directory_uri(); ?>/images/<?php book_rating() ?>.png" height="20px" title="Rating: <?php book_rating()?>" alt="Rating: <?php book_rating()?>" />-->
			</div>
<?php
		if( can_now_reading_admin() ) {
?>
			<div class="edit">
				<span class="icon">&nbsp;</span>
				<a href="<?php book_edit_url(); ?>">Edit this book</a>
			</div>

			<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="bookentry fix">
			<div class="stats">
				<a href="<?php book_url(); ?>" title="<?php if (!is_custom_book()) { ?>Buy <?php echo esc_attr(book_title(false));?> from Amazon<?php }?>"><img src="<?php book_image(); ?>" alt="<?php echo esc_attr(book_title(false)); ?>" /></a>
				<br />
Exemplo n.º 2
0
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 
        }
        ?>
			
			<?php 
        library_search_form();
        ?>
			
			<p><a href="<?php 
        library_url();
        ?>
">&larr; Back to library</a></p>
			
Exemplo n.º 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; ?>