Esempio n. 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('styling' => array(array('type' => 'preview'), array('name' => __('Border', WR_PBL), 'type' => array(array('id' => 'div_border_width', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '2', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'combo-item input-append-inline'), array('id' => 'div_border_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' => 'div_border_color', 'type' => 'color_picker', 'std' => '#E0DEDE', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group'), array('name' => __('Divider Width', WR_PBL), 'id' => 'divider_width', 'type' => 'select', 'class' => 'input-mini-m input-sm wr-select2-editor', 'std' => '100', 'options' => array('100' => __('100', WR_PBL), '80' => __('80', WR_PBL), '70' => __('70', WR_PBL), '60' => __('60', WR_PBL), '50' => __('50', WR_PBL)), 'parent_class' => 'combo-item input-append select-append input-group input-select-append wr-input-append', 'append_text' => '%', 'container_class' => 'combo-group', 'disable_select2' => true)));
 }
Esempio n. 2
0
 /**
  * contain setting items of this element ( use for modal box )
  *
  */
 function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Width', WR_PBL), 'id' => 'width', 'type' => 'radio', 'std' => 'boxed', 'options' => array('boxed' => __('Boxed', WR_PBL), 'full' => __('Full', WR_PBL))), array('name' => __('Background', WR_PBL), 'id' => 'background', 'type' => 'select', 'std' => 'none', 'class' => 'input-sm', 'options' => array('none' => __('None', WR_PBL), 'solid' => __('Solid Color', WR_PBL), 'gradient' => __('Gradient Color', WR_PBL), 'pattern' => __('Pattern', WR_PBL), 'image' => __('Image', WR_PBL), 'video' => __('Video', WR_PBL)), 'has_depend' => '1'), array('name' => __('Solid Color', WR_PBL), 'type' => array(array('id' => 'solid_color_value', 'type' => 'text_field', 'class' => 'input-small', 'std' => '#FFFFFF', 'parent_class' => 'combo-item'), array('id' => 'solid_color_color', 'type' => 'color_picker', 'std' => '#ffffff', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group', 'dependency' => array('background', '=', 'solid')), array('name' => __('Gradient Color', WR_PBL), 'id' => 'gradient_color', 'type' => 'gradient_picker', 'std' => '0% #FFFFFF,100% #000000', 'dependency' => array('background', '=', 'gradient')), array('id' => 'gradient_color_css', 'type' => 'text_field', 'std' => '', 'type_input' => 'hidden', 'container_class' => 'hidden', 'dependency' => array('background', '=', 'gradient')), array('name' => __('Gradient Direction', WR_PBL), 'id' => 'gradient_direction', 'type' => 'select', 'std' => 'vertical', 'options' => array('vertical' => __('Vertical', WR_PBL), 'horizontal' => __('Horizontal', WR_PBL)), 'dependency' => array('background', '=', 'gradient')), array('name' => __('Pattern', WR_PBL), 'id' => 'pattern', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', 'dependency' => array('background', '=', 'pattern')), array('name' => __('Repeat', WR_PBL), 'id' => 'repeat', 'type' => 'radio_button_group', 'std' => 'full', 'options' => array('full' => __('Full', WR_PBL), 'vertical' => __('Vertical', WR_PBL), 'horizontal' => __('Horizontal', WR_PBL)), 'dependency' => array('background', '=', 'pattern')), array('name' => __('Image', WR_PBL), 'id' => 'image', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', 'dependency' => array('background', '=', 'image')), array('name' => __('Repeat', WR_PBL), 'id' => 'img_repeat', 'type' => 'radio_button_group', 'std' => 'full', 'options' => array('full' => __('Full', WR_PBL), 'vertical' => __('Vertical', WR_PBL), 'horizontal' => __('Horizontal', WR_PBL)), 'dependency' => array('background', '=', 'image')), array('name' => __('Video url', WR_PBL), 'id' => 'video_url', 'type' => 'text_field', 'std' => '', 'placeholder' => 'Youtube video url', 'dependency' => array('background', '=', 'video')), array('name' => __('Autoplay', WR_PBL), 'id' => 'autoplay', 'type' => 'radio', 'std' => 'yes', 'options' => array('1' => __('Yes', WR_PBL), '0' => __('No', WR_PBL)), 'dependency' => array('background', '=', 'video')), array('name' => __('Position', WR_PBL), 'id' => 'position', 'type' => 'radio', 'label_type' => 'image', 'dimension' => array(23, 23), 'std' => 'center center', 'options' => array('left top' => array('left top'), 'center top' => array('center top'), 'right top' => array('right top', 'linebreak' => true), 'left center' => array('left center'), 'center center' => array('center center'), 'right center' => array('right center', 'linebreak' => true), 'left bottom' => array('left bottom'), 'center bottom' => array('center bottom'), 'right bottom' => array('right bottom')), 'dependency' => array('background', '=', 'image')), array('name' => __('Enable Paralax', WR_PBL), 'id' => 'paralax', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'dependency' => array('background', '=', 'pattern__#__image')), array('name' => __('Border', WR_PBL), 'type' => array(array('id' => 'border_width_value_', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '0', 'append' => 'px', 'validate' => 'number', 'parent_class' => 'input-group-inline'), array('id' => 'border_style', 'type' => 'select', 'class' => 'input-sm wr-border-style', 'std' => 'solid', 'options' => WR_Pb_Helper_Type::get_border_styles(), 'parent_class' => 'combo-item'), array('id' => 'border_color', 'type' => 'color_picker', 'std' => '#000', 'parent_class' => 'combo-item')), 'container_class' => 'combo-group'), array('name' => __('Padding', WR_PBL), 'container_class' => 'combo-group', 'id' => 'div_padding', 'type' => 'margin', 'extended_ids' => array('div_padding_top', 'div_padding_bottom', 'div_padding_right', 'div_padding_left'), 'div_padding_top' => array('std' => '10'), 'div_padding_bottom' => array('std' => '10'), 'div_padding_right' => array('std' => '10'), 'div_padding_left' => array('std' => '10')), array('name' => __('Custom CSS', WR_PBL), 'id' => '', 'type' => 'fieldset'), array('name' => __('Class', WR_PBL), 'id' => 'css_suffix', 'type' => 'text_field', 'std' => __('', WR_PBL), 'tooltip' => __('Custom CSS Class for the wrapper div of this element', WR_PBL)), array('name' => __('ID', WR_PBL), 'id' => 'id_wrapper', 'type' => 'text_field', 'std' => __('', WR_PBL), 'tooltip' => __('Custom CSS ID for the wrapper div of this element', WR_PBL))));
 }
Esempio n. 3
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()));
 }