You are here

function theme_recipe_export_html_page in Recipe 6

How the recipe's HTML export should be themed.

1 string reference to 'theme_recipe_export_html_page'
recipe_html_theme in plugins/recipe_html.module
Implementation of hook_theme().
1 theme call to theme_recipe_export_html_page()
recipe_html_export_single in plugins/recipe_html.module
Example implementation of hook_perm(). If you need special permissions for a format, use this and match the permission name to the access arguments above.

File

plugins/recipe_html.module, line 107
recipe_recipeML.module - Enables importing and exporting of recipeML format recipes.

Code

function theme_recipe_export_html_page($node = NULL) {
  global $base_url;
  $html = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
  $html .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">';
  $html .= "<head>\n<title>" . check_plain($node->title) . "</title>\n";
  $html .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
  $html .= '<base href="' . $base_url . '/" />' . "\n";
  $html .= "<style type=\"text/css\">\n@import url(" . drupal_get_path('module', 'recipe') . "/recipe.css);\n</style>\n";

  # 'title' is exception to "all recipe titles in recipe CSS namespace" rule
  $html .= "</head>\n<body>\n" . theme('recipe_html_node', $node, FALSE, TRUE) . "\n</body>\n</html>\n";
  return $html;
}