function theme_recipe_export_html in Recipe 5
How the recipe's HTML export should be themed
1 theme call to theme_recipe_export_html()
- recipe_export_html in ./
recipe.module - This function is called by recipe_export() to generate HTML for export.
File
- ./
recipe.module, line 1541 - recipe.module - share recipes for drupal 5.x
Code
function theme_recipe_export_html($title, $content) {
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>" . $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";
$html .= "</head>\n<body>\n<h1 class=title>" . $title . "</h1>\n" . $content . "\n</body>\n</html>\n";
return $html;
}