function theme_recipe_description in Recipe 7
Returns HTML for displaying the recipe description.
1 string reference to 'theme_recipe_description'
- recipe_theme in ./
recipe.module - Implements hook_theme().
1 theme call to theme_recipe_description()
- recipe_view in ./
recipe.module - Implements hook_view().
File
- ./
recipe.module, line 900 - Contains functions for Recipe node CRUD and display.
Code
function theme_recipe_description($variables) {
$node = $variables['node'];
// Wrap description in RDFa markup.
if (!empty($node->rdf_mapping['recipe_description'])) {
$attributes = rdf_rdfa_attributes($node->rdf_mapping['recipe_description']);
$attributes['class'] = array(
'recipe-section',
);
$node->recipe_description = theme('rdf_template_variable_wrapper', array(
'content' => $node->recipe_description,
'attributes' => $attributes,
'inline' => FALSE,
));
}
$output = '<div class="recipe-description recipe-section">';
$output .= '<h2 class="title">' . t('Description') . '</h2>';
$output .= '<div class="section">' . $node->recipe_description . '</div>';
$output .= '</div>';
return $output;
}