Example #1
0
 /**
  * @param bool $smaller
  * @return null|string
  */
 function renderDescriptionPanel($smaller = false)
 {
     $description = $this->renderDescription();
     if (!$description) {
         return null;
     }
     $output = getPanelStart($smaller, 'textPanelSpacing');
     $output .= $description;
     $output .= getPanelEnd();
     return $output;
 }
Example #2
0
 public function showDescriptionPanel($smaller = false)
 {
     $description = trim($this->showDescription());
     if (!$description) {
         return null;
     }
     $output = getPanelStart($smaller, 'textPanelSpacing');
     $output .= "<i>";
     $output .= htmlentities($description);
     $output .= "</i>";
     $output .= getPanelEnd();
     return $output;
 }