Ejemplo n.º 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')));
 }
Ejemplo n.º 2
0
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', 'plumtree'), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => __('Banner', 'plumtree'), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', 'plumtree')), array('name' => __('Image File', 'plumtree'), 'id' => 'image_file', 'type' => 'select_media', 'std' => '', 'class' => 'jsn-input-large-fluid', 'tooltip' => __('Choose image', 'plumtree')), array('name' => __('Image Size', IGPBL), 'id' => 'image_size', 'type' => 'large_image', 'tooltip' => __('Set image size', IGPBL)), array('name' => __('Alt Text', 'plumtree'), 'id' => 'image_alt', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => '', 'tooltip' => __('Set alt text for image', 'plumtree')), array('name' => __('Image Type', 'plumtree'), 'id' => 'image_type', 'type' => 'select', 'std' => 'normal', 'options' => array('normal' => 'Regular Image', 'banner' => 'Banner Image', 'banner_wel' => 'Welcome Banner'), 'tooltip' => __('Set alt text for image', 'plumtree'), 'has_depend' => '1'), array('name' => __('Banner Image Text', 'plumtree'), 'id' => 'banner_text', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => '', 'tooltip' => __('Set banner text for image', 'plumtree'), 'dependency' => array('image_type', '=', 'banner')), array('name' => __('Welcome Text', 'plumtree'), 'desc' => __('Enter some content for the welcome block', 'plumtree'), 'id' => 'welcome_text', 'type' => 'editor', 'mce' => true, 'std' => '', 'rows' => 15, 'tooltip' => __('Set content of element', 'plumtree'), 'dependency' => array('image_type', '=', 'banner_wel')), array('name' => __('Link Type', 'plumtree'), 'id' => 'link_type', 'type' => 'select', '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', 'plumtree'), 'has_depend' => '1'), array('name' => __('Large Image Size', 'plumtree'), 'id' => 'image_image_size', 'type' => 'large_image', 'tooltip' => __('Choose image size', 'plumtree'), 'dependency' => array('link_type', '=', 'large_image')), array('name' => __('URL', 'plumtree'), 'id' => 'image_type_url', 'type' => 'text_field', 'class' => 'jsn-input-xxlarge-fluid', 'std' => 'http://', 'dependency' => array('link_type', '=', 'url'), 'tooltip' => __('Url of link when click on image', 'plumtree')), array('name' => __('Open in', 'plumtree'), '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', 'plumtree'))), 'styling' => array(array('name' => __('Container Style', 'plumtree'), 'id' => 'image_container_style', 'type' => 'select', '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', 'plumtree')), array('name' => __('Alignment', 'plumtree'), 'id' => 'image_alignment', 'type' => 'select', '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', 'plumtree')), array('name' => __('Margin', 'plumtree'), 'container_class' => 'combo-group', 'id' => 'image_margin', 'type' => 'margin', 'extended_ids' => array('image_margin_top', 'image_margin_right', 'image_margin_bottom', 'image_margin_left'), 'tooltip' => __('Set margin size', 'plumtree')), array('name' => __('Fade in Animations', 'plumtree'), 'id' => 'image_effect', 'type' => 'radio', 'std' => 'no', 'options' => array('yes' => __('Yes', 'plumtree'), 'no' => __('No', 'plumtree')), 'tooltip' => 'Whether to fading in or not')));
 }