Exemplo n.º 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('id' => 'testimonial_items', 'type' => 'group', 'shortcode' => ucfirst(__CLASS__), 'sub_item_type' => $this->config['has_subshortcode'], 'sub_items' => array(array('std' => ''), array('std' => ''), array('std' => '')))), 'styling' => array(array('type' => 'preview'), array('name' => __('Items per Slide', WR_PBL), 'id' => 'items_per_slide', 'type' => 'text_number', 'std' => '2', 'class' => 'input-mini', 'validate' => 'number'), array('name' => __('Slider Elements', WR_PBL), 'id' => 'slider_elements', 'type' => 'checkbox', 'class' => 'jsn-column-item checkbox', 'container_class' => 'jsn-columns-container jsn-columns-count-two', 'std' => 'arrows__#__indicator', 'options' => array('arrows' => __('Arrows', WR_PBL), 'indicator' => __('Indicator', WR_PBL))), array('name' => __('Content Elements', WR_PBL), 'id' => 'content_elements', 'type' => 'items_list', 'std' => 'content__#__image__#__name__#__job_title__#__country__#__company', 'options' => array('content' => __('Feedback Content', WR_PBL), 'image' => __('Avatar', WR_PBL), 'name' => __('Client\'s Name', WR_PBL), 'job_title' => __('Client\'s Position', WR_PBL), 'country' => __('Country', WR_PBL), 'company' => __('Company', WR_PBL)), 'options_type' => 'checkbox', 'popover_items' => array('image', 'content'), 'style' => array('height' => '200px'), 'container_class' => 'unsortable content-elements'), array('name' => __('Container Style', WR_PBL), 'id' => 'author_image_style', 'type' => 'select', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_container_style()), 'options' => WR_Pb_Helper_Type::get_container_style(), 'container_class' => 'hidden', 'data_wrap_related' => 'image'), array('name' => __('Length Limitation', WR_PBL), 'id' => 'content_length', 'type' => array(array('id' => 'content_count', 'type' => 'text_number', 'std' => '', 'class' => 'input-mini', 'options' => WR_Pb_Helper_Type::get_fonts(), 'parent_class' => 'combo-item'), array('id' => 'content_type', 'type' => 'select', 'class' => 'input-medium', 'std' => 'words', 'options' => array('words' => __('Words', WR_PBL), 'characters' => __('Characters', WR_PBL)), 'parent_class' => 'combo-item')), 'container_class' => 'combo-group hidden', 'data_wrap_related' => 'content'), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }
Exemplo n.º 2
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()));
 }
Exemplo n.º 3
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('id' => 'pb_title', 'name' => __('Promotion Title', WR_PBL), 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('Promotion Box Title', WR_PBL)), array('id' => 'pb_content', 'role' => 'content', 'name' => __('Promotion Content', WR_PBL), 'type' => 'tiny_mce', 'rows' => '12', 'std' => WR_Pb_Helper_Type::lorem_text(12)), array('name' => __('Button Title', WR_PBL), 'id' => 'pb_button_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'Button Title'), array('name' => __('Button Link', WR_PBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'url', 'options' => WR_Pb_Helper_Type::get_link_types(), 'has_depend' => '1'), array('name' => __('URL', WR_PBL), 'id' => 'pb_button_url', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'http://', 'dependency' => array('link_type', '=', 'url')), array('name' => __('Single Item', WR_PBL), 'id' => 'single_item', 'type' => 'type_group', 'std' => '', 'items' => WR_Pb_Helper_Type::get_single_item_button_bar('link_type', array('type' => 'items_list', 'options_type' => 'select', 'class' => 'select2-select', 'ul_wrap' => false))), array('name' => __('Open in', WR_PBL), 'id' => 'pb_button_open_in', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_open_in_options()), 'options' => WR_Pb_Helper_Type::get_open_in_options(), 'dependency' => array('link_type', '!=', 'no_link'))), 'styling' => array(array('type' => 'preview'), array('name' => __('Background Color', WR_PBL), 'type' => array(array('id' => 'pb_bg_value', 'type' => 'text_field', 'class' => 'input-small', 'std' => '#F6F6F6', 'parent_class' => 'combo-item'), array('id' => 'pb_bg_color', 'type' => 'color_picker', 'std' => '#F6F6F6', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group'), array('name' => __('Border Width', WR_PBL), 'container_class' => 'combo-group', 'id' => 'pb_border', 'type' => 'margin', 'extended_ids' => array('pb_border_top', 'pb_border_right', 'pb_border_bottom', 'pb_border_left'), 'pb_border_top' => array('std' => '5'), 'pb_border_right' => array('std' => '5'), 'pb_border_bottom' => array('std' => '5'), 'pb_border_left' => array('std' => '5')), array('name' => __('Border Color', WR_PBL), 'type' => array(array('id' => 'pb_border_value', 'type' => 'text_field', 'class' => 'input-small', 'std' => '#A0CE4E', 'parent_class' => 'combo-item'), array('id' => 'pb_border_color', 'type' => 'color_picker', 'std' => '#A0CE4E', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group'), array('name' => __('Show Shadow', WR_PBL), 'id' => 'pb_show_drop', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'tooltip' => __('Shadow of Promotion Box', WR_PBL)), array('name' => __('Elements', WR_PBL), 'id' => 'elements', 'type' => 'items_list', 'std' => 'title__#__content__#__button', 'options' => array('title' => __('Title', WR_PBL), 'content' => __('Content', WR_PBL), 'button' => __('Button', WR_PBL)), 'options_type' => 'checkbox', 'popover_items' => array('title', 'button'), 'tooltip' => __('Elements to display on promotion box', WR_PBL), 'style' => array('height' => '200px'), 'container_class' => 'unsortable content-elements'), array('name' => __('Font', WR_PBL), 'id' => 'title_font', 'type' => 'select', 'std' => 'inherit', 'options' => array('inherit' => __('Inherit', WR_PBL), 'custom' => __('Custom', WR_PBL)), 'has_depend' => '1', 'class' => 'input-medium', 'tooltip' => __('Select Font Type', WR_PBL), 'container_class' => 'hidden', 'data_wrap_related' => 'title'), array('name' => __('Font Face', WR_PBL), 'id' => 'title_font_family', 'type' => array(array('id' => 'title_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' => 'title_font_face_value', 'type' => 'jsn_select_font_value', 'class' => 'input-medium input-sm', 'std' => 'Verdana', 'options' => '', 'parent_class' => 'combo-item')), 'dependency' => array('title_font', '=', 'custom'), 'tooltip' => __('Select Font Face', WR_PBL), 'container_class' => 'combo-group hidden', 'data_wrap_related' => 'title'), array('name' => __('Font Attributes', WR_PBL), 'type' => array(array('id' => 'title_font_size', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'title_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' => 'title_font_color', 'type' => 'color_picker', 'std' => '#000000', 'parent_class' => 'combo-item')), 'dependency' => array('title_font', '=', 'custom'), 'tooltip' => __('Set Font Attribute', WR_PBL), 'container_class' => 'combo-group hidden', 'data_wrap_related' => 'title'), array('name' => __('Bottom Padding', WR_PBL), 'type' => array(array('id' => 'title_padding_bottom', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number')), 'tooltip' => __('Set Bottom Padding', WR_PBL), 'container_class' => 'hidden', 'data_wrap_related' => 'title'), array('name' => __('Bottom Margin', WR_PBL), 'type' => array(array('id' => 'title_margin_bottom', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number')), 'tooltip' => __('Set Bottom Margin', WR_PBL), 'container_class' => 'hidden', 'data_wrap_related' => 'title'), array('name' => __('Size', WR_PBL), 'id' => 'pb_button_size', 'type' => 'select', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_button_size()), 'options' => WR_Pb_Helper_Type::get_button_size(), 'tooltip' => __('Set Button Size', WR_PBL), 'container_class' => 'hidden', 'data_wrap_related' => 'button'), array('name' => __('Button Color', WR_PBL), 'id' => 'pb_button_color', 'type' => 'select', 'std' => 'btn-danger', 'options' => WR_Pb_Helper_Type::get_button_color(), 'tooltip' => __('Set Button Color', WR_PBL), 'container_class' => 'hidden color_select2', 'data_wrap_related' => 'button'), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }
Exemplo n.º 4
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Parent Element Text', WR_PBL), 'desc' => __('Enter some content for this textblock', WR_PBL), 'id' => 'text', 'type' => 'tiny_mce', 'role' => 'content', 'std' => WR_Pb_Helper_Type::lorem_text(), 'rows' => 15)), 'styling' => array(array('type' => 'preview'), array('name' => __('Margin', WR_PBL), 'container_class' => 'combo-group', 'id' => 'text_margin', 'type' => 'margin', 'extended_ids' => array('text_margin_top', 'text_margin_right', 'text_margin_bottom', 'text_margin_left'), 'text_margin_top' => array('std' => '0'), 'text_margin_bottom' => array('std' => '0'), 'tooltip' => __('External spacing with other elements', WR_PBL)), array('name' => __('Enable Dropcap', WR_PBL), 'id' => 'enable_dropcap', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'tooltip' => __('The first letter of paragraph that is enlarged', WR_PBL), 'has_depend' => '1'), array('name' => __('Font Face', WR_PBL), 'id' => 'dropcap_font_family', 'type' => array(array('id' => 'dropcap_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' => 'dropcap_font_face_value', 'type' => 'jsn_select_font_value', 'class' => 'input-medium input-sm', 'std' => 'Verdana', 'options' => '', 'parent_class' => 'combo-item')), 'dependency' => array('enable_dropcap', '=', 'yes'), 'tooltip' => __('Set Font Face', WR_PBL), 'container_class' => 'combo-group'), array('name' => __('Font Attributes', WR_PBL), 'type' => array(array('id' => 'dropcap_font_size', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '64', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-mini-inline'), array('id' => 'dropcap_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' => 'dropcap_font_color', 'type' => 'color_picker', 'std' => '#000000', 'parent_class' => 'combo-item')), 'dependency' => array('enable_dropcap', '=', 'yes'), 'tooltip' => __('Set Font Attribute', WR_PBL), 'container_class' => 'combo-group'), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }
Exemplo n.º 5
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Tag', WR_PBL), 'id' => 'tag', 'type' => 'select', 'class' => 'input-sm wr-heading-type', 'std' => 'h1', 'options' => array('h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6'), 'tooltip' => __('Support tags: H1, H2, H3, H4, H5, H6', WR_PBL)), array('name' => __('Text', WR_PBL), 'id' => 'text', 'type' => 'text_field', 'role' => 'content', 'class' => 'input-sm', 'std' => __('Your heading text', WR_PBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Alignment', WR_PBL), 'id' => 'text_align', 'type' => 'radio_button_group', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_text_align()), 'options' => WR_Pb_Helper_Type::get_text_align(), 'class' => 'input-sm'), array('name' => __('Margin', WR_PBL), 'container_class' => 'combo-group', 'id' => 'heading_margin', 'type' => 'margin', 'extended_ids' => array('heading_margin_top', 'heading_margin_right', 'heading_margin_bottom', 'heading_margin_left'), 'heading_margin_top' => array('std' => '5'), 'heading_margin_bottom' => array('std' => '25'), 'tooltip' => __('External spacing with other elements', WR_PBL)), array('name' => __('Font', WR_PBL), 'id' => 'font', 'type' => 'radio', 'std' => 'inherit', 'options' => array('inherit' => __('Inherit', WR_PBL), 'custom' => __('Custom', WR_PBL)), 'has_depend' => '1'), array('name' => __('Font Face', WR_PBL), 'id' => 'font_family', 'type' => array(array('id' => 'font_face_type', 'type' => 'jsn_select_font_type', 'class' => '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-sm', 'std' => 'Verdana', 'options' => '', 'parent_class' => 'combo-item')), 'dependency' => array('font', '=', 'custom'), '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', 'std' => '18', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'font_style', 'type' => 'select', 'class' => 'input-sm wr-mini-input', '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'), 'container_class' => 'combo-group'), array('name' => __('Enable Underline', WR_PBL), 'id' => 'enable_underline', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'has_depend' => '1'), array('name' => __('Underline Style', WR_PBL), 'type' => array(array('id' => 'border_bottom_width_value_', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'border_bottom_style', 'type' => 'select', 'class' => 'input-sm wr-border-type', 'std' => 'solid', 'options' => WR_Pb_Helper_Type::get_border_styles(), 'parent_class' => 'combo-item'), array('id' => 'border_bottom_color', 'type' => 'color_picker', 'std' => '', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group', 'dependency' => array('enable_underline', '=', 'yes')), array('name' => __('Underline Padding', WR_PBL), 'type' => array(array('id' => 'padding_bottom_value_', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '', 'append' => 'px', 'validate' => 'number')), 'dependency' => array('enable_underline', '=', 'yes')), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }