Esempio n. 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('action' => array(array('id' => 'btn_convert', 'type' => 'button_group', 'bound' => 0, 'actions' => array(array('std' => __('Tab', WR_PBL), 'action_type' => 'convert', 'action' => 'list_to_tab'), array('std' => __('Accordion', WR_PBL), 'action_type' => 'convert', 'action' => 'list_to_accordion'), array('std' => __('Carousel', WR_PBL), 'action_type' => 'convert', 'action' => 'list_to_carousel')))), 'content' => array(array('id' => 'list_items', 'type' => 'group', 'shortcode' => ucfirst(__CLASS__), 'sub_item_type' => $this->config['has_subshortcode'], 'sub_items' => array(array('std' => ''), array('std' => '')))), 'styling' => array(array('type' => 'preview'), array('name' => __('Show Icon', WR_PBL), 'id' => 'show_icon', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'has_depend' => '1'), array('name' => __('Layout', WR_PBL), 'id' => 'icon_position', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_icon_position()), 'options' => WR_Pb_Helper_Type::get_icon_position(), 'dependency' => array('show_icon', '=', 'yes')), array('name' => __('Icon Background', WR_PBL), 'type' => array(array('id' => 'icon_size_value', 'type' => 'select', 'class' => 'input-mini input-sm', 'std' => '32', 'options' => WR_Pb_Helper_Type::get_icon_sizes(), 'parent_class' => 'combo-item input-append select-append input-group input-select-append', 'append_text' => 'px'), array('id' => 'icon_background_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'circle', 'options' => WR_Pb_Helper_Type::get_icon_background(), 'parent_class' => 'combo-item'), array('id' => 'icon_background_color', 'type' => 'color_picker', 'std' => '#0088CC', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group', 'dependency' => array('show_icon', '=', 'yes')), array('name' => __('Icon Color', WR_PBL), 'type' => array(array('id' => 'icon_c_value', 'type' => 'text_field', 'std' => '#FFFFFF', 'parent_class' => 'combo-item'), array('id' => 'icon_c_color', 'type' => 'color_picker', 'std' => '#ffffff', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group', 'dependency' => array('show_icon', '=', 'yes')), array('name' => __('Show Heading', WR_PBL), 'id' => 'show_heading', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'has_depend' => '1'), array('name' => __('Heading Font', WR_PBL), 'id' => 'font', 'type' => 'select', 'std' => 'inherit', 'options' => array('inherit' => __('Inherit', WR_PBL), 'custom' => __('Custom', WR_PBL)), 'has_depend' => '1', 'class' => 'input-medium', 'dependency' => array('show_heading', '=', 'yes')), array('name' => __('Font Face', WR_PBL), 'id' => 'font-family', 'type' => array(array('id' => 'font_face_type', 'type' => 'jsn_select_font_type', 'class' => 'input-medium input-sm', 'std' => 'standard fonts', 'options' => WR_Pb_Helper_Type::get_fonts(), 'parent_class' => 'combo-item'), array('id' => 'font_face_value', 'type' => 'jsn_select_font_value', 'class' => 'input-medium input-sm', 'std' => 'Verdana', 'options' => '', 'parent_class' => 'combo-item')), 'dependency' => array('font', '=', 'custom'), 'tooltip' => __('Select Font Face', WR_PBL), 'container_class' => 'combo-group'), array('name' => __('Font Attributes', WR_PBL), 'type' => array(array('id' => 'font_size_value', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini input-sm', 'std' => '', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'font_style', 'type' => 'select', 'class' => 'input-medium wr-mini-input input-sm', 'std' => 'bold', 'options' => WR_Pb_Helper_Type::get_font_styles(), 'parent_class' => 'combo-item'), array('id' => 'color', 'type' => 'color_picker', 'std' => '#000000', 'parent_class' => 'combo-item')), 'dependency' => array('font', '=', 'custom'), 'tooltip' => __('Set size and text style for your heading', WR_PBL), 'container_class' => 'combo-group'), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }