para() public method

### Options - escape Whether or not the contents should be html_entity escaped.
public para ( string $class, string $text, array $options = [] ) : string
$class string CSS class name of the p element.
$text string String content that will appear inside the p element.
$options array Additional HTML attributes of the P tag
return string The formatted P element
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function para($class, $text, array $options = array())
 {
     if ('text' == $this->getType()) {
         return $this->_eol() . $this->_eol() . $text . $this->_eol() . $this->_eol();
     }
     return parent::para($class, $text, $this->_mergeAttributes($options, $this->config('attributes.para')));
 }
Ejemplo n.º 2
0
 /**
  * Returns a formatted `<p>` tag.
  * @param string $class Class name
  * @param string $text Paragraph text
  * @param array $options Array of options and HTML attributes
  * @return string
  */
 public function para($class = null, $text = null, array $options = [])
 {
     list($text, $options) = $this->addIconToText($text, $options);
     $options = $this->addTooltip($options);
     return parent::para($class, is_null($text) ? '' : $text, $options);
 }