public static function prepareQuote($post, $quote = '')
    {
        if (Podium::getInstance()->podiumConfig->get('use_wysiwyg') == '0') {
            $content = !empty($quote) ? '[...] ' . HtmlPurifier::process($quote) . ' [...]' : $post->content;
            return '> ' . $post->author->podiumTag . ' @ ' . Podium::getInstance()->formatter->asDatetime($post->created_at) . "\n> " . $content . "\n";
        }
        $content = !empty($quote) ? '[...] ' . nl2br(HtmlPurifier::process($quote)) . ' [...]' : $post->content;
        return Html::tag('blockquote', $post->author->podiumTag . ' @ ' . Podium::getInstance()->formatter->asDatetime($post->created_at) . '<br>' . $content) . '<br>';
    }
public static function prepareQuote($post, $quote = '')
    {
        if (Podium::getInstance()->podiumConfig->get('use_wysiwyg') == '0') {
            $content = !empty($quote) ? '[...] ' . HtmlPurifier::process($quote) . ' [...]' : $post->content;
            return '> ' . $post->author->podiumTag . ' @ ' . Podium::getInstance()->formatter->asDatetime($post->created_at) . "\n> " . $content . "\n";
        }
        $content = !empty($quote) ? '[...] ' . nl2br(HtmlPurifier::process($quote)) . ' [...]' : $post->content;
        return Html::tag('blockquote', $post->author->podiumTag . ' @ ' . Podium::getInstance()->formatter->asDatetime($post->created_at) . '<br>' . $content) . '<br>';
    }
public static function prepareQuote ( $ post , $ quote = '' ) { if ( Podium :: getInstance ( ) -> podiumConfig -> get ( 'use_wysiwyg' ) == '0' ) { $ content = ! empty ( $ quote ) ? '[...] ' . HtmlPurifier :: process ( $ quote ) . ' [...]' : $ post -> content ; return '> ' . $ post -> author -> podiumTag . ' @ ' . Podium :: getInstance ( ) -> formatter -> asDatetime ( $ post -> created_at ) . "\n> " . $ content . "\n" ; } $ content = ! empty ( $ quote ) ? '[...] ' . nl2br ( HtmlPurifier :: process ( $ quote ) ) . ' [...]' : $ post -> content ; return Html :: tag ( 'blockquote' , $ post -> author -> podiumTag . ' @ ' . Podium :: getInstance ( ) -> formatter -> asDatetime ( $ post -> created_at ) . '<br>' . $ content ) . '<br>' ; }
Returns quote HTML.
@param Post $post post model to be quoted
@param string $quote partial text to be quoted
@return string
Returns quote HTML .