Templating - totally booked


Totally booked has been designed to be easy to use for the end user, as well as flexible for any developer.

If you want to template the output of any of the templates included in the plugin, please follow the steps outlined here.

  1. Create a directory in your theme called totally booked in a "plugins" directory. themepath/plugins/totally-booked/
  2. Copy the file you want to use from the plugin themes directory to the one you just created. Keeping the same directory structure from the plugin. themepath/plugins/totally-booked/book_widget.php
  3. Edit that file to your hearts content. The following example would change the HTML tag of the title from a H4 to a span with a custom class and remove the excerpt from the widget display.
 * Template for the book widget.
 * @version 0.1
 * @package totally-booked
global $post;
<div class="tb_book_widget">

    <div class="book_cover">
        <?php if( has_post_thumbnail() ) the_post_thumbnail(); ?>

    <span class="cool_title_class"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>

    <div class="tb-entry-actions">

        <?php echo tb_get_buynow_link(); ?>

        <a class="tb_button" href="<?php the_permalink(); ?>"><?php _e( 'Read More', 'totally-booked' ); ?></a>

        <div class="tb_clear"></div>