Beispiel #1
0
 /**
  * Initializes the PanelRow instance.
  *
  * @param mixed $options [optional] the display options for the panel.
  * @param Callable $block [optional] Block to generate inside panel row content.
  */
 public function __construct($options, $block = null)
 {
     Base::set_panel_column_class(is_array($options) && isset($options['column_class']) ? $options['column_class'] : null);
     $panel_row = new ContentTag('div', call_user_func($block), $this->set_panel_row_options($options));
     $this->set_html_object($panel_row->get_html_object());
 }