You are here

epub_info.tpl.php in Epub 6

Template to display epub nodes.

Fields available:

  • $book_outline
  • $author_name
  • $language_code
  • $identifier
  • $identifier_type
  • $creation_date
  • $publisher_name
  • $publisher_site
  • $rights
  • $language_code
  • $language_code
  • $source_url

File

epub_info.tpl.php
View source
<?php

/**
 * @file
 * Template to display epub nodes.
 *
 * Fields available:
 * - $book_outline
 * - $author_name
 * - $language_code
 * - $identifier
 * - $identifier_type
 * - $creation_date
 * - $publisher_name
 * - $publisher_site
 * - $rights
 * - $language_code
 * - $language_code
 * - $source_url
 *
 */
?>
<div class="epub_info">
  <?php

$headers = array(
  t('Field'),
  t('Value'),
);
$rows = array(
  array(
    t('Book outline'),
    $book_outline,
  ),
  array(
    t('Author'),
    $author_name,
  ),
  array(
    t('Language code'),
    $language_code,
  ),
  array(
    t('Identifier'),
    $identifier,
  ),
  array(
    t('Identifier type'),
    $identifier_type,
  ),
  array(
    t('Creation date'),
    $creation_date,
  ),
  array(
    t("Publisher' s name"),
    $publisher_name,
  ),
  array(
    t("Publisher' s site"),
    $publisher_site,
  ),
  array(
    t('Rights'),
    $rights,
  ),
  array(
    t('Source URL'),
    $source_url,
  ),
);
print theme('table', $headers, $rows);
?>
</div>