You are here

function theme_print_footer in Printer, email and PDF versions 7.2

Returns HTML for the footer of the print template.

Parameters

array $vars: An empty associative array.

Return value

string HTML text with the footer

Related topics

1 theme call to theme_print_footer()
print.tpl.php in ./print.tpl.php
Default theme implementation to display a printer-friendly version page.

File

./print.pages.inc, line 277

Code

function theme_print_footer($vars) {
  $footer = '';
  switch (variable_get('print_footer_options', PRINT_FOOTER_OPTIONS_DEFAULT)) {

    // Theme footer.
    case 1:
      $footer_blocks = block_get_blocks_by_region('footer');
      $footer = variable_get('site_footer', FALSE) . "\n" . drupal_render($footer_blocks);
      break;

    // User-specified footer.
    case 2:
      $footer = variable_get('print_footer_user', PRINT_FOOTER_USER_DEFAULT);
      break;
  }

  // Delete the contextual links.
  $footer = preg_replace('!\\s*<div class="contextual-links-wrapper">.*?</div>!sim', '', $footer);
  return filter_xss_admin($footer);
}