Exemplo n.º 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Image File', WR_PBL), 'id' => 'image_file', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid'), array('name' => __('Image Size', WR_PBL), 'id' => 'image_size', 'type' => 'large_image', 'tooltip' => __('Set image size', WR_PBL)), array('name' => __('Alt Text', WR_PBL), 'id' => 'image_alt', 'type' => 'text_field', 'class' => 'input-sm', 'std' => '', 'tooltip' => __('Set alt text for image', WR_PBL)), array('name' => __('On Click', WR_PBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_image_link_types()), 'options' => WR_Pb_Helper_Type::get_image_link_types(), 'tooltip' => __('Set link type of image', WR_PBL), 'has_depend' => '1'), array('name' => __('Large Image Size', WR_PBL), 'id' => 'image_image_size', 'type' => 'large_image', 'tooltip' => __('Choose image size', WR_PBL), 'dependency' => array('link_type', '=', 'large_image')), array('name' => __('URL', WR_PBL), 'id' => 'image_type_url', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'http://', 'dependency' => array('link_type', '=', 'url'), 'tooltip' => __('Url of link when click on image', WR_PBL)), 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', 'ul_wrap' => false))), array('name' => __('Open in', WR_PBL), 'id' => 'open_in', 'type' => 'select', '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'), 'tooltip' => __('Select type of opening action when click on element', WR_PBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Container Style', WR_PBL), 'id' => 'image_container_style', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_container_style()), 'options' => WR_Pb_Helper_Type::get_container_style()), array('name' => __('Alignment', WR_PBL), 'id' => 'image_alignment', 'class' => 'input-sm', '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()), array('name' => __('Margin', WR_PBL), 'container_class' => 'combo-group', 'id' => 'image_margin', 'type' => 'margin', 'extended_ids' => array('image_margin_top', 'image_margin_right', 'image_margin_bottom', 'image_margin_left'), 'image_margin_top' => array('std' => ''), 'image_margin_bottom' => array('std' => ''), 'tooltip' => __('External spacing with other elements', WR_PBL)), 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' => 'carousel_to_tab'), array('std' => __('Accordion', WR_PBL), 'action_type' => 'convert', 'action' => 'carousel_to_accordion'), array('std' => __('List', WR_PBL), 'action_type' => 'convert', 'action' => 'carousel_to_list')))), 'content' => array(array('id' => 'carousel_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' => __('Alignment', WR_PBL), 'id' => 'align', 'class' => 'input-sm', 'std' => 'center', 'type' => 'radio_button_group', 'options' => WR_Pb_Helper_Type::get_text_align()), array('name' => __('Dimension', WR_PBL), 'container_class' => 'combo-group dimension-inline', 'id' => 'dimension', 'type' => 'dimension', 'extended_ids' => array('dimension_width', 'dimension_height', 'dimension_width_unit'), 'dimension_width' => array('std' => ''), 'dimension_height' => array('std' => ''), 'dimension_width_unit' => array('options' => array('px' => 'px', '%' => '%'), 'std' => 'px'), 'tooltip' => __('Set width and height of element', WR_PBL)), array('name' => __('Show Indicator', WR_PBL), 'id' => 'show_indicator', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'tooltip' => __('Round Pagination buttons', WR_PBL)), array('name' => __('Show Arrows', WR_PBL), 'id' => 'show_arrows', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'tooltip' => __('Previous & Next buttons', WR_PBL)), array('name' => __('Automatic Cycling', WR_PBL), 'id' => 'automatic_cycling', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'has_depend' => '1', 'tooltip' => __('Automatically run carousel', WR_PBL)), array('name' => __('Cycling Interval', WR_PBL), 'type' => array(array('id' => 'cycling_interval', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '5', 'append' => 'second(s)', 'validate' => 'number')), 'dependency' => array('automatic_cycling', '=', 'yes'), 'tooltip' => __('Set interval for each cycling', WR_PBL)), array('name' => __('Pause on mouse over', WR_PBL), 'id' => 'pause_mouseover', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'dependency' => array('automatic_cycling', '=', 'yes'), 'tooltip' => __('Pause cycling on mouse over', WR_PBL)), 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('name' => __('Text', WR_PBL), 'id' => 'button_text', 'type' => 'text_field', 'std' => __('Button', WR_PBL), 'role' => 'title'), array('name' => __('On Click', WR_PBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'url', 'options' => WR_Pb_Helper_Type::get_link_types(), 'has_depend' => '1', 'tooltip' => __('Select link types: link to post, page, category...', WR_PBL)), array('name' => __('URL', WR_PBL), 'id' => 'button_type_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', 'ul_wrap' => false))), array('name' => __('Open in', WR_PBL), 'id' => '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'), 'tooltip' => __('Select type of opening action when click on element', WR_PBL)), array('name' => __('Icon', WR_PBL), 'id' => 'icon', 'type' => 'icons', 'std' => '', 'role' => 'title_prepend', 'title_prepend_type' => 'icon')), 'styling' => array(array('type' => 'preview'), array('name' => __('Alignment', WR_PBL), 'id' => 'button_alignment', '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' => 'button_margin', 'type' => 'margin', 'extended_ids' => array('button_margin_top', 'button_margin_right', 'button_margin_bottom', 'button_margin_left'), 'button_margin_top' => array('std' => '0'), 'button_margin_right' => array('std' => '0'), 'button_margin_bottom' => array('std' => '0'), 'button_margin_left' => array('std' => '0'), 'tooltip' => __('External spacing with other elements', WR_PBL)), array('name' => __('Size', WR_PBL), 'id' => 'button_size', 'type' => 'select', 'class' => 'input-sm', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_button_size()), 'options' => WR_Pb_Helper_Type::get_button_size()), array('name' => __('Color', WR_PBL), '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(), 'container_class' => 'color_select2', 'tooltip' => __('Select the color of the button', WR_PBL)), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }
Exemplo n.º 4
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Data', WR_PBL), 'id' => 'qr_content', 'type' => 'text_area', 'class' => 'input-sm', 'std' => 'http://www.woorockets.com', 'tooltip' => __('Here you can input names, urls, phone numbers, email addresses or plain text', WR_PBL), 'exclude_quote' => '1'), array('name' => __('Image ALT Text', WR_PBL), 'id' => 'qr_alt', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('Wordpress themes from www.woorockets.com', WR_PBL), 'tooltip' => __('Text tooltip appears when QR box is hovered through', WR_PBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Container Style', WR_PBL), 'id' => 'qr_container_style', 'type' => 'radio', 'std' => WR_Pb_Helper_Type::get_first_option(WR_Pb_Helper_Type::get_qr_container_style()), 'options' => WR_Pb_Helper_Type::get_qr_container_style()), array('name' => __('Alignment', WR_PBL), 'id' => 'qr_alignment', 'class' => 'input-sm', '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()), array('name' => __('QR Code Size', WR_PBL), 'id' => 'qrcode_sizes', 'type' => 'select', 'class' => 'input-mini-m input-sm wr-select2-editor', 'std' => '150', 'options' => array('150' => __('150', WR_PBL), '200' => __('200', WR_PBL), '250' => __('250', WR_PBL), '300' => __('300', WR_PBL), '350' => __('350', WR_PBL)), 'parent_class' => 'combo-item input-append select-append input-group input-select-append wr-input-append', 'append_text' => 'px', 'container_class' => 'combo-group', 'disable_select2' => true), 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('id' => 'buttonbar_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' => __('Alignment', WR_PBL), 'id' => 'buttonbar_alignment', '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()), array('name' => __('Margin', WR_PBL), 'container_class' => 'combo-group', 'id' => 'buttonbar_margin', 'type' => 'margin', 'extended_ids' => array('buttonbar_margin_top', 'buttonbar_margin_right', 'buttonbar_margin_bottom', 'buttonbar_margin_left'), 'buttonbar_margin_top' => array('std' => '0'), 'buttonbar_margin_right' => array('std' => '0'), 'buttonbar_margin_bottom' => array('std' => '0'), 'buttonbar_margin_left' => array('std' => '0'), 'tooltip' => __('External spacing with other elements', WR_PBL)), array('name' => __('Distance between items', WR_PBL), 'type' => array(array('id' => 'distance_between', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '0', 'append' => 'px', 'validate' => 'number'))), array('name' => __('', WR_PBL), 'container_class' => 'group-checkbox', 'id' => 'buttonbar_show_title', 'type' => 'checkbox', 'std' => 'yes', 'options' => array('yes' => __('Show Title', WR_PBL))), array('name' => __('', WR_PBL), 'container_class' => 'group-checkbox', 'id' => 'buttonbar_show_icon', 'type' => 'checkbox', 'std' => 'yes', 'options' => array('yes' => __('Show Icon', WR_PBL))), array('name' => __('', WR_PBL), 'container_class' => 'group-checkbox', 'id' => 'buttonbar_group', 'type' => 'checkbox', 'std' => '', 'options' => array('yes' => __('Show Group Buttons', WR_PBL))), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }
Exemplo n.º 6
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()));
 }