You are here

entity-print.tpl.php in Entity Print 7

PDF template for printing.

Available variables are:

  • $entity - The entity itself.
  • $entity_array - The renderable array of this entity.
  • $entity_print_css - An array of stylesheets to be rendered.

File

templates/entity-print.tpl.php
View source
<?php

/**
 * @file
 * PDF template for printing.
 *
 * Available variables are:
 *  - $entity - The entity itself.
 *  - $entity_array - The renderable array of this entity.
 *  - $entity_print_css - An array of stylesheets to be rendered.
 */
?>

<html>
<head>
  <meta charset="UTF-8">
  <title>PDF</title>
  <?php

print drupal_get_css($entity_print_css);
?>
</head>
<body>
<div class="page">
  <?php

print render($entity_array);
?>
</div>
</body>
</html>