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()));
 }