Exemplo n.º 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Parent Element Text', WR_PBL), 'id' => 'text', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('Your text', WR_PBL)), array('name' => __('Tooltip Content', WR_PBL), 'id' => 'tooltip_content', 'role' => 'content', 'type' => 'tiny_mce', 'std' => __('Your tooltip content', WR_PBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Tooltip Position', WR_PBL), 'id' => 'position', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_full_positions()), 'options' => WR_Pb_Helper_Type::get_full_positions()), array('name' => __('Make Parent Element a Button', WR_PBL), 'id' => 'tooltips_button', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'has_depend' => '1', 'tooltip' => __('Create button from text', WR_PBL)), array('name' => __('Button Color', WR_PBL), 'type' => array(array('id' => 'button_color', 'type' => 'select', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_button_color()), 'options' => WR_Pb_Helper_Type::get_button_color())), 'dependency' => array('tooltips_button', '=', 'yes'), 'container_class' => 'color_select2'), array('name' => __('Delay', WR_PBL), 'container_class' => 'combo-group', 'type' => array(array('id' => 'show', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '500', 'append_before' => 'Show', 'append' => 'ms', 'parent_class' => 'input-group-inline', 'validate' => 'number'), array('id' => 'hide', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '100', 'append_before' => 'Hide', 'append' => 'ms', 'parent_class' => 'input-group-inline', 'validate' => 'number')), 'tooltip' => __('Set time (ms) to show/ hide tooltip when hover/ leave', WR_PBL))));
 }