Esempio n. 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Alert Content', WR_PBL), 'id' => 'alert_content', 'type' => 'tiny_mce', 'role' => 'content', 'rows' => '12', 'std' => WR_Pb_Helper_Type::lorem_text(12))), 'styling' => array(array('type' => 'preview'), array('name' => __('Type', WR_PBL), 'id' => 'alert_style', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_alert_type()), 'options' => WR_Pb_Helper_Type::get_alert_type()), array('name' => __('Show Icon', WR_PBL), 'id' => 'show_icon', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'has_depend' => 1), array('name' => __('Icon Size', WR_PBL), 'type' => array(array('id' => 'icon_size', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '16', 'append' => 'px', 'validate' => 'number')), 'dependency' => array('show_icon', '=', 'yes')), array('name' => __('Allow to close', WR_PBL), 'id' => 'alert_close', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'tooltip' => __('Whether the customers can close the alert or not', WR_PBL)), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }