Example #1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', IGPBL), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('', IGPBL), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', IGPBL)), array('name' => __('Alert Content', IGPBL), 'id' => 'alert_content', 'type' => 'editor', 'role' => 'content', 'rows' => '12', 'std' => IG_Pb_Helper_Type::lorem_text(), 'tooltip' => __('Set content of elementm', IGPBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Style', IGPBL), 'id' => 'alert_style', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_alert_type()), 'options' => IG_Pb_Helper_Type::get_alert_type(), 'tooltip' => __('Set style for item', IGPBL)), array('name' => __('Allow to close', IGPBL), 'id' => 'alert_close', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', IGPBL), 'no' => __('No', IGPBL)), 'tooltip' => __('Whether the customers can close the alert or not', IGPBL))));
 }