You are here

function theme_quote in Quote 5

Same name and namespace in other branches
  1. 6.2 quote.module \theme_quote()
  2. 6 quote.module \theme_quote()
  3. 7 quote.module \theme_quote()

Theme a quote with its content and author - default theme function.

Parameters

$quote_content: The quote's string content.

$quote_author: The quote author's name.

Return value

$output_quote Themed quote.

1 theme call to theme_quote()
_quote_filter_process_callback in ./quote.module
Generate and return the quote theming for a quote occurence found by _quote_filter_process.

File

./quote.module, line 307

Code

function theme_quote($quote_content, $quote_author) {
  $quote_output = '<div class="quote-msg">';
  if ($quote_author != '') {
    $quote_output .= '<div class="quote-author">' . t('%name wrote:', array(
      '%name' => $quote_author,
    )) . '</div>';
  }
  else {
    $quote_output .= '<div class="quote-author">' . t('Quote:') . '</div>';
  }
  $quote_output .= $quote_content;
  $quote_output .= '</div>';
  return $quote_output;
}