Esempio n. 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Share Content', WR_PBL), 'id' => 'share_content', 'type' => 'tiny_mce', 'role' => 'content', 'rows' => '12', 'std' => WR_Pb_Helper_Type::lorem_text(12))), 'styling' => array(array('type' => 'preview'), array('name' => __('Align', WR_PBL), 'id' => 'share_align', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_share_type()), 'options' => WR_Pb_Helper_Type::get_share_type()), array('name' => __('Text Align', WR_PBL), 'id' => 'share_text_align', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_share_type()), 'options' => WR_Pb_Helper_Type::get_share_type()), array('name' => __('Height', WR_PBL), 'id' => 'share_height', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '300', 'append' => 'px', 'validate' => 'number'), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }
Esempio n. 2
0
 /**
  * DEFINE setting options of shortcode
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Heading', WR_PBL), 'id' => 'heading', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'role' => 'title', 'std' => __(WR_Pb_Utils_Placeholder::add_placeholder('List Item %s', 'index'), WR_PBL)), array('name' => __('Body', WR_PBL), 'id' => 'body', 'role' => 'content', 'type' => 'text_area', 'container_class' => 'wr_tinymce_replace', 'std' => WR_Pb_Helper_Type::lorem_text()), array('name' => __('Icon', WR_PBL), 'id' => 'icon', 'type' => 'icons', 'std' => '', 'role' => 'title_prepend', 'title_prepend_type' => 'icon')));
 }
Esempio n. 3
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()));
 }
Esempio n. 4
0
 /**
  * DEFINE setting options of shortcode
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Title', WR_PBL), 'id' => 'elm_title', 'type' => 'text_field', 'role' => 'title', 'std' => __(WR_Pb_Utils_Placeholder::add_placeholder('Testimonial Item %s', 'index'), WR_PBL)), array('name' => __('Client\'s Name', WR_PBL), 'type' => array(array('id' => 'name', 'type' => 'text_field', 'std' => '', 'placeholder' => 'John Doe', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'name_height', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '12', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'name_color', 'type' => 'color_picker', 'std' => '', 'parent_class' => 'combo-item')), 'tooltip' => __('Client\'s Name Description', WR_PBL), 'container_class' => 'combo-group'), array('name' => __('Client\'s Position', WR_PBL), 'id' => 'job_title', 'type' => 'text_field', 'std' => __('', WR_PBL), 'tooltip' => __('Client\'s Position Description', WR_PBL), 'placeholder' => 'CEO'), array('name' => __('Feedback Content', WR_PBL), 'id' => 'body', 'role' => 'content', 'type' => 'tiny_mce', 'std' => WR_Pb_Helper_Type::lorem_text()), array('name' => __('Country', WR_PBL), 'id' => 'country', 'type' => 'text_field', 'std' => __('', WR_PBL), 'tooltip' => __('Country Description', WR_PBL)), array('name' => __('Company', WR_PBL), 'id' => 'company', 'type' => 'text_field', 'std' => __('', WR_PBL), 'tooltip' => __('Company Description', WR_PBL)), array('name' => __('Website URL', WR_PBL), 'id' => 'web_url', 'type' => 'text_field', 'std' => __('http://', WR_PBL), 'tooltip' => __('Website URL Description', WR_PBL)), array('name' => __('Avatar', WR_PBL), 'id' => 'image_file', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', 'tooltip' => __('Image File for User', WR_PBL))));
 }
Esempio n. 5
0
 /**
  * DEFINE setting options of shortcode
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Image File', WR_PBL), 'id' => 'image_file', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid'), array('name' => __('Heading', WR_PBL), 'id' => 'heading', 'type' => 'text_field', 'class' => 'input-sm', 'role' => 'title', 'std' => __(WR_Pb_Utils_Placeholder::add_placeholder('Carousel Item %s', 'index'), WR_PBL)), array('name' => __('Alt Description', WR_PBL), 'id' => 'alt', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __(WR_Pb_Utils_Placeholder::add_placeholder('Item description  %s', 'index'), WR_PBL)), array('name' => __('Body', WR_PBL), 'id' => 'body', 'role' => 'content', 'type' => 'text_area', 'container_class' => 'wr_tinymce_replace', 'std' => WR_Pb_Helper_Type::lorem_text(12) . '<a href="#"> link</a>'), array('name' => __('Icon', WR_PBL), 'id' => 'icon', 'type' => 'icons', 'std' => '', 'role' => 'title_prepend', 'title_prepend_type' => 'icon')));
 }
Esempio n. 6
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()));
 }
Esempio n. 7
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()));
 }
Esempio n. 8
0
 /**
  * DEFINE setting options of shortcode
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Heading', WR_PBL), 'id' => 'heading', 'type' => 'text_field', 'class' => 'input-sm', 'role' => 'title', 'std' => __(WR_Pb_Utils_Placeholder::add_placeholder('Accordion Item %s', 'index'), WR_PBL)), array('name' => __('Body', WR_PBL), 'id' => 'body', 'role' => 'content', 'type' => 'text_area', 'container_class' => 'wr_tinymce_replace', 'std' => WR_Pb_Helper_Type::lorem_text()), array('name' => __('Icon', WR_PBL), 'id' => 'icon', 'type' => 'icons', 'std' => '', 'role' => 'title_prepend', 'title_prepend_type' => 'icon'), array('name' => __('Tag Name', WR_PBL), 'id' => 'tag', 'type' => 'tag', 'std' => '', 'tooltip' => __('Used for items filtering', WR_PBL))));
 }