You are here

function theme_quote in Quote 6.2

Same name and namespace in other branches
  1. 5 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 333
The quote module provides a filter and appropriate links that allow users to quote nodes and other comments in their own comments.

Code

function theme_quote($quote_content, $quote_author, $nest) {
  $quote_output = '<div class="quote-msg quote-nest-' . $nest . '">';
  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;
}