} if ($suf_nr_single_meta_show == 'show') { ?> <?php print_book_meta(0); ?> <?php } ?> </p> </div> <div class="review"> <?php book_review(); if(book_has_post()) { ?> <p>This book is linked with the post <a href="<?php book_post_url() ?>">“<?php book_post_title() ?>”</a>.</p> <?php } ?> </div><!--/.review --> <?php $tags = print_book_tags(false); if (trim($tags) != "") { ?> <div class="post-footer postdata fix"> <span class="tags"><?php _e('Tagged with: ', 'suffusion'); print_book_tags(1); ?></span> </div><!--/.post-footer --> <?php } ?>
<p>You can view this book's Amazon detail page <a href="<?php book_url(); ?> ">here</a>.</p> <?php } ?> <?php if (book_has_post()) { ?> <p>This book is linked with the post <a href="<?php book_post_url(); ?> ">“<?php book_post_title(); ?> ”</a>.</p> <?php } ?> <p>Tags: <?php print_book_tags(1); ?> </p> <dl> <dt>Started reading:</dt> <dd><?php book_started();
/** * If the current book is linked to a post, prints an HTML link to said post. * @param bool $echo Whether or not to echo the results. */ function book_post_link($echo = true) { global $book; if (!book_has_post()) { return; } $link = '<a href="' . book_post_url(0) . '">' . book_post_title(0) . '</a>'; if ($echo) { echo $link; } return $link; }