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
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Title', WR_PBL), 'id' => 'prtbl_item_title', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'role' => 'title', 'std' => '', 'tooltip' => __('Title', WR_PBL)), array('name' => __('Description', WR_PBL), 'id' => 'prtbl_item_desc', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => __('', WR_PBL), 'tooltip' => __('Description Tooltip', WR_PBL)), array('name' => __('Image', WR_PBL), 'id' => 'prtbl_item_image', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', 'tooltip' => __('Image File', WR_PBL)), array('name' => __('Currency', WR_PBL), 'id' => 'prtbl_item_currency', 'type' => 'text_field', 'std' => __('', WR_PBL), 'class' => 'jsn-input-large-fluid', 'tooltip' => __('Currency', WR_PBL)), array('name' => __('Price', WR_PBL), 'id' => 'prtbl_item_price', 'type' => 'text_field', 'std' => __('', WR_PBL), 'class' => 'jsn-input-large-fluid wr_pb_price', 'tooltip' => __('Price', WR_PBL)), array('name' => __('Time Limits', WR_PBL), 'id' => 'prtbl_item_time', 'type' => 'text_field', 'std' => __('', WR_PBL), 'class' => 'jsn-input-large-fluid', 'tooltip' => __('Time Limits', WR_PBL)), array('name' => __('Button Text', WR_PBL), 'id' => 'prtbl_item_button_text', 'type' => 'text_field', 'class' => 'jsn-input-large-fluid wr-pb-limit-length', 'std' => __('Buy now', WR_PBL), 'tooltip' => __('Button Text', WR_PBL)), array('name' => __('Button Link', WR_PBL), 'id' => 'link_type', 'type' => 'select', 'std' => __('url', WR_PBL), 'options' => WR_Pb_Helper_Type::get_link_types(), 'tooltip' => __('Button Link', WR_PBL), 'has_depend' => '1'), array('name' => __('URL', WR_PBL), 'id' => 'button_type_url', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => 'http://', 'tooltip' => __('URL', WR_PBL), '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', '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')), array('id' => 'prtbl_item_attributes', 'type' => 'text_field', 'std' => '', 'input-type' => 'hidden', 'container_class' => 'hidden'), array('name' => __('Attributes', WR_PBL), 'id' => 'prtbl_attr', 'type' => 'group_table', 'class' => 'has_childsubmodal unsortable', 'shortcode' => ucfirst(__CLASS__), 'sub_item_type' => $this->config['has_subshortcode'], 'sub_items' => array(WR_Pricing_Table::get_option('max_domains', true), WR_Pricing_Table::get_option('storage', true), WR_Pricing_Table::get_option('ssl_support', true)), 'extract_title' => 'prtbl_item_attr_title'), array('name' => __('Featured', WR_PBL), 'id' => 'prtbl_item_feature', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', WR_PBL), 'no' => __('No', WR_PBL)), 'tooltip' => 'Featured')));
 }
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
  */
 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.º 5
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Text', WR_PBL), 'id' => 'button_text', 'type' => 'text_field', 'std' => __(WR_Pb_Utils_Placeholder::add_placeholder('ButtonBar Item %s', 'index'), 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', 'class' => 'select2-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'), 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(), 'has_depend' => '1'), array('name' => __('Custom dimensions', WR_PBL), 'id' => 'custom_dimensions', 'type' => array(array('id' => 'button_width', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'jsn-input-number input-mini', 'parent_class' => 'input-group-inline', 'std' => '', 'append_before' => '<i class="input-mini wr-label-prefix">' . __('Width', WR_PBL) . '</i>', 'append' => 'px', 'validate' => 'number'), array('id' => 'button_height', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'jsn-input-number input-mini', 'parent_class' => 'input-group-inline', 'std' => '', 'append_before' => '<i class="input-mini wr-label-prefix">' . __('Height', WR_PBL) . '</i>', 'append' => 'px', 'validate' => 'number')), 'container_class' => 'combo-group', 'dependency' => array('button_size', '=', 'custom')), 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))));
 }