</span>
<div class="jsQuote">
- <label for="quote_{@$quoteID}">{@$quote}</label>
+ <label for="quote_{@$quoteID}">
+ {if $message->isFullQuote($quoteID)}
+ {@$quote}
+ {else}
+ {$quote}
+ {/if}
+ </label>
</div>
<div class="jsFullQuote">
{$message->getFullQuote($quoteID)}
return null;
}
+ /**
+ * Returns true if given quote id represents a full quote.
+ *
+ * @param string $quoteID
+ * @return boolean
+ */
+ public function isFullQuote($quoteID) {
+ if (isset($this->fullQuotes[$quoteID]) && $this->quotes[$quoteID] != $this->fullQuotes[$quoteID]) {
+ // full quotes are parsed and differ from their original
+ return true;
+ }
+
+ return false;
+ }
+
/**
* @see \Countable::count()
*/