Exemple #1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', IGPBL), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('', IGPBL), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', IGPBL)), array('name' => __('Image File', IGPBL), 'id' => 'image_file', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', 'tooltip' => __('Choose image', IGPBL)), array('name' => __('Image Size', IGPBL), 'id' => 'image_size', 'type' => 'large_image', 'tooltip' => __('Set image size', IGPBL)), array('name' => __('Alt Text', IGPBL), 'id' => 'image_alt', 'type' => 'text_field', 'class' => 'input-sm', 'std' => '', 'tooltip' => __('Set alt text for image', IGPBL)), array('name' => __('On Click', IGPBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_image_link_types()), 'options' => IG_Pb_Helper_Type::get_image_link_types(), 'tooltip' => __('Set link type of image', IGPBL), 'has_depend' => '1'), array('name' => __('Large Image Size', IGPBL), 'id' => 'image_image_size', 'type' => 'large_image', 'tooltip' => __('Choose image size', IGPBL), 'dependency' => array('link_type', '=', 'large_image')), array('name' => __('URL', IGPBL), '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', IGPBL)), array('name' => __('Single Item', IGPBL), 'id' => 'single_item', 'type' => 'type_group', 'std' => '', 'items' => IG_Pb_Helper_Type::get_single_item_button_bar('link_type', array('type' => 'items_list', 'options_type' => 'select', 'ul_wrap' => false)), 'tooltip' => __('Choose item to link to', IGPBL)), array('name' => __('Open in', IGPBL), 'id' => 'open_in', 'type' => 'select', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_open_in_options()), 'options' => IG_Pb_Helper_Type::get_open_in_options(), 'dependency' => array('link_type', '!=', 'no_link'), 'tooltip' => __('Select type of opening action when click on element', IGPBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Container Style', IGPBL), 'id' => 'image_container_style', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_container_style()), 'options' => IG_Pb_Helper_Type::get_container_style(), 'tooltip' => __('Set Container Style', IGPBL)), array('name' => __('Alignment', IGPBL), 'id' => 'image_alignment', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_text_align()), 'options' => IG_Pb_Helper_Type::get_text_align(), 'tooltip' => __('Setting position: right, left, center, inherit parent style', IGPBL)), array('name' => __('Margin', IGPBL), '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' => '10'), 'image_margin_bottom' => array('std' => '10'), 'tooltip' => __('Set margin size', IGPBL)), array('name' => __('Fade in Animations', IGPBL), 'id' => 'image_effect', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', IGPBL), 'no' => __('No', IGPBL)), 'tooltip' => 'Whether to fading in or not')));
 }
Exemple #2
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', IGPBL), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('', IGPBL), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', IGPBL)), array('id' => 'pb_title', 'name' => __('Promotion Title', IGPBL), 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('Promotion Box Title', IGPBL), 'tooltip' => __('Set the promotion title', IGPBL)), array('id' => 'pb_content', 'role' => 'content', 'name' => __('Promotion Content', IGPBL), 'type' => 'editor', 'rows' => '12', 'std' => IG_Pb_Helper_Type::lorem_text(), 'tooltip' => __('Set Promotion Content', IGPBL)), array('name' => __('Button Title', IGPBL), 'id' => 'pb_button_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'Button Title', 'tooltip' => __('Set Button Title', IGPBL)), array('name' => __('Button Link', IGPBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'url', 'options' => IG_Pb_Helper_Type::get_link_types(), 'tooltip' => __('Set the link to access', IGPBL), 'has_depend' => '1'), array('name' => __('URL', IGPBL), 'id' => 'pb_button_url', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'http://', 'tooltip' => __('URL of button link', IGPBL), 'dependency' => array('link_type', '=', 'url')), array('name' => __('Single Item', IGPBL), 'id' => 'single_item', 'type' => 'type_group', 'std' => '', 'items' => IG_Pb_Helper_Type::get_single_item_button_bar('link_type', array('type' => 'items_list', 'options_type' => 'select', 'class' => 'select2-select', 'ul_wrap' => false)), 'tooltip' => __('Choose item to link to', IGPBL)), array('name' => __('Open in', IGPBL), 'id' => 'pb_button_open_in', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_open_in_options()), 'options' => IG_Pb_Helper_Type::get_open_in_options(), 'tooltip' => __('Open in', IGPBL), 'dependency' => array('link_type', '!=', 'no_link'))), 'styling' => array(array('type' => 'preview'), array('name' => __('Background Color', IGPBL), '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')), 'tooltip' => __('Choose the background color', IGPBL), 'container_class' => 'combo-group'), array('name' => __('Border', IGPBL), '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'), 'tooltip' => __('Set the width of the border', IGPBL)), array('name' => __('Border Color', IGPBL), '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')), 'tooltip' => __('Set the color of the border', IGPBL), 'container_class' => 'combo-group'), array('name' => __('Show Shadow', IGPBL), 'id' => 'pb_show_drop', 'type' => 'radio', 'std' => 'yes', 'options' => array('yes' => __('Yes', IGPBL), 'no' => __('No', IGPBL)), 'tooltip' => __('Show/hide the shadow of the promotion box', IGPBL)), array('name' => __('Elements', IGPBL), 'id' => 'elements', 'type' => 'items_list', 'std' => 'title__#__content__#__button', 'options' => array('title' => __('Title', IGPBL), 'content' => __('Content', IGPBL), 'button' => __('Button', IGPBL)), 'options_type' => 'checkbox', 'popover_items' => array('title', 'button'), 'tooltip' => __('Select elements which you want to display in the promotion box', IGPBL), 'style' => array('height' => '200px'), 'container_class' => 'unsortable'), array('name' => __('Font', IGPBL), 'id' => 'title_font', 'type' => 'select', 'std' => 'inherit', 'options' => array('inherit' => __('Inherit', IGPBL), 'custom' => __('Custom', IGPBL)), 'has_depend' => '1', 'class' => 'input-medium', 'tooltip' => __('Select Font Type', IGPBL), 'container_class' => 'hidden', 'data_wrap_related' => 'title'), array('name' => __('Font Face', IGPBL), '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' => IG_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', IGPBL), 'container_class' => 'combo-group hidden', 'data_wrap_related' => 'title'), array('name' => __('Font Attributes', IGPBL), '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 ig-mini-input input-sm', 'std' => 'bold', 'options' => IG_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', IGPBL), 'container_class' => 'combo-group hidden', 'data_wrap_related' => 'title'), array('name' => __('Bottom Padding', IGPBL), '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', IGPBL), 'container_class' => 'hidden', 'data_wrap_related' => 'title'), array('name' => __('Bottom Margin', IGPBL), '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', IGPBL), 'container_class' => 'hidden', 'data_wrap_related' => 'title'), array('name' => __('Size', IGPBL), 'id' => 'pb_button_size', 'type' => 'select', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_button_size()), 'options' => IG_Pb_Helper_Type::get_button_size(), 'tooltip' => __('Set Button Size', IGPBL), 'container_class' => 'hidden', 'data_wrap_related' => 'button'), array('name' => __('Button Color', IGPBL), 'id' => 'pb_button_color', 'type' => 'select', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_button_color()), 'options' => IG_Pb_Helper_Type::get_button_color(), 'tooltip' => __('Set Button Color', IGPBL), 'container_class' => 'hidden color_select2', 'data_wrap_related' => 'button')));
 }
Exemple #3
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('Notab' => array(array('name' => __('Text', IGPBL), 'id' => 'button_text', 'type' => 'text_field', 'std' => __(IG_Pb_Utils_Placeholder::add_placeholder('ButtonBar Item %s', 'index'), IGPBL), 'role' => 'title', 'tooltip' => __('Set the text on the button', IGPBL)), array('name' => __('On Click', IGPBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'url', 'options' => IG_Pb_Helper_Type::get_link_types(), 'has_depend' => '1', 'tooltip' => __('Select link types: link to post, page, category...', IGPBL)), array('name' => __('URL', IGPBL), 'id' => 'button_type_url', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'http://', 'dependency' => array('link_type', '=', 'url'), 'tooltip' => __('Set url of button', IGPBL)), array('name' => __('Single Item', IGPBL), 'id' => 'single_item', 'type' => 'type_group', 'std' => '', 'items' => IG_Pb_Helper_Type::get_single_item_button_bar('link_type', array('type' => 'items_list', 'options_type' => 'select', 'class' => 'select2-select', 'ul_wrap' => false)), 'tooltip' => __('Choose item to link to', IGPBL)), array('name' => __('Open in', IGPBL), 'id' => 'open_in', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_open_in_options()), 'options' => IG_Pb_Helper_Type::get_open_in_options(), 'dependency' => array('link_type', '!=', 'no_link'), 'tooltip' => __('Select type of opening action when click on element', IGPBL)), array('name' => __('Icon', IGPBL), 'id' => 'icon', 'type' => 'icons', 'std' => '', 'role' => 'title_prepend', 'title_prepend_type' => 'icon', 'tooltip' => __('Select an icon', IGPBL)), array('name' => __('Size', IGPBL), 'id' => 'button_size', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_button_size()), 'options' => IG_Pb_Helper_Type::get_button_size(), 'tooltip' => __('Set the size of the button', IGPBL)), array('name' => __('Color', IGPBL), 'id' => 'button_color', 'type' => 'select', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_button_color()), 'options' => IG_Pb_Helper_Type::get_button_color(), 'container_class' => 'color_select2', 'tooltip' => __('Select the color of the button', IGPBL))));
 }
Exemple #4
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', IGPBL), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('', IGPBL), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', IGPBL)), array('name' => __('Text', IGPBL), 'id' => 'button_text', 'type' => 'text_field', 'std' => __('Button', IGPBL), 'role' => 'title', 'tooltip' => __('Set the text on the button', IGPBL)), array('name' => __('On Click', IGPBL), 'id' => 'link_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'url', 'options' => IG_Pb_Helper_Type::get_link_types(), 'has_depend' => '1', 'tooltip' => __('Select link types: link to post, page, category...', IGPBL)), array('name' => __('URL', IGPBL), 'id' => 'button_type_url', 'type' => 'text_field', 'class' => 'input-sm', 'std' => 'http://', 'dependency' => array('link_type', '=', 'url'), 'tooltip' => __('Set url of button', IGPBL)), array('name' => __('Single Item', IGPBL), 'id' => 'single_item', 'type' => 'type_group', 'std' => '', 'items' => IG_Pb_Helper_Type::get_single_item_button_bar('link_type', array('type' => 'items_list', 'options_type' => 'select', 'ul_wrap' => false)), 'tooltip' => __('Choose item to link to', IGPBL)), array('name' => __('Open in', IGPBL), 'id' => 'open_in', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_open_in_options()), 'options' => IG_Pb_Helper_Type::get_open_in_options(), 'dependency' => array('link_type', '!=', 'no_link'), 'tooltip' => __('Select type of opening action when click on element', IGPBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Size', IGPBL), 'id' => 'button_size', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_button_size()), 'options' => IG_Pb_Helper_Type::get_button_size(), 'tooltip' => __('Set the size of the button', IGPBL)), array('name' => __('Color', IGPBL), 'id' => 'button_color', 'type' => 'select', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_button_color()), 'options' => IG_Pb_Helper_Type::get_button_color(), 'container_class' => 'color_select2', 'tooltip' => __('Select the color of the button', IGPBL))));
 }