public function getDecode(Comm $item, $lead = null)
    {
        $comt = json_decode($item->comment);
        if ($comt->frontmatter->title) {
            $til = $comt->frontmatter->title;
        } else {
            $til = $item->title;
        }
        $comt = $comt->text;
        if ($lead) {
            return '<h3>' . $til . '</h3><p>' . $comt . '</p>';
        }
        return '<h4>' . $til . '</h4><p>' . $comt . '</p>';
    }
public function getDecode(Comm $item, $lead = null)
    {
        $comt = json_decode($item->comment);
        if ($comt->frontmatter->title) {
            $til = $comt->frontmatter->title;
        } else {
            $til = $item->title;
        }
        $comt = $comt->text;
        if ($lead) {
            return '<h3>' . $til . '</h3><p>' . $comt . '</p>';
        }
        return '<h4>' . $til . '</h4><p>' . $comt . '</p>';
    }
public function getDecode ( Comm $ item , $ lead = null ) { $ comt = json_decode ( $ item -> comment ) ; if ( $ comt -> frontmatter -> title ) { $ til = $ comt -> frontmatter -> title ; } else { $ til = $ item -> title ; } $ comt = $ comt -> text ; if ( $ lead ) { return '<h3>' . $ til . '</h3><p>' . $ comt . '</p>' ; } return '<h4>' . $ til . '</h4><p>' . $ comt . '</p>' ; }
Returns json_decoded title and text
If lead text, headline is larger font
@param object $item
@return string htmlcode
Returns json_decoded title and text If lead text headline is larger font