You are here

function theme_nodewords_content in Nodewords: D6 Meta Tags 5

Displays the defined meta tags $tags as content, eg in a block or body.

Parameters

$tags: Associative array of defined tags. No need to 'check_plain' on content.

Return value

Formatted HTML.

1 theme call to theme_nodewords_content()
nodewords_block in ./nodewords.module
Implementation of hook_block().

File

./nodewords.module, line 535
Assign META tags to nodes, vocabularies, terms and pages.

Code

function theme_nodewords_content($tags) {
  $output = '';
  foreach ($tags as $name => $content) {
    if (!empty($content)) {
      $class = "meta-tags-{$name}";
      $output .= '<dt class="' . $class . '">' . $name . '</dt>';
      $output .= '<dd class="' . $class . '">' . $content . '</dd>';
    }
  }
  if (!empty($output)) {
    $output = '<dl class="meta-tags">' . $output . '</dl>';
  }
  return $output;
}