Esempio n. 1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('id' => 'gmap_items', 'type' => 'group', 'shortcode' => ucfirst(__CLASS__), 'sub_item_type' => $this->config['has_subshortcode'], 'sub_items' => array(array('std' => '[wr_item_googlemap gmi_title="Apple Store, Fifth Avenue" gmi_desc_content="767 5th Ave New York, NY 10153, United States  1 212-336-1440" gmi_url="https://plus.google.com/105794202623216829535/about?gl=vn" gmi_image="https://lh6.googleusercontent.com/-kRHmUypT7rk/UWuDd_MbjsI/AAAAAACMJTw/0Bk8Pszwyls/s250-c-k-no/Apple Store, Fifth Avenue" gmi_long="-73.989637" gmi_lat="40.741220" gmi_enable_direct="no" gmi_destination=""]767 5th Ave New York, NY 10153, United States  1 212-336-1440[/wr_item_googlemap]'), array('std' => '[wr_item_googlemap gmi_title="Paley Park" gmi_desc_content="New York, NY 10022 United States" gmi_url="https://plus.google.com/101814405146294453824/about?gl=vn" gmi_image="https://lh6.googleusercontent.com/-pEEYVRCcoXg/T5UfT58tJ3I/AAAAAAAAZa8/sfiH6w8_R5g/s90/berlin-wall-manhattan-ny-nyc_thumb.jpg" gmi_long="-73.975152" gmi_lat="40.760196" gmi_enable_direct="no" gmi_destination=""]New York, NY 10022 United States[/wr_item_googlemap]')), 'label_item' => 'Marker ', 'add_item_text' => 'Add Marker')), 'styling' => array(array('type' => 'preview'), array('name' => __('Container Style', WR_PBL), 'id' => 'gmap_container_style', 'type' => 'select', 'class' => 'input-sm', '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' => 'gmap_alignment', 'class' => 'input-sm', 'std' => 'center', 'type' => 'radio_button_group', 'options' => WR_Pb_Helper_Type::get_map_align()), array('name' => __('Dimension', WR_PBL), 'container_class' => 'combo-group', 'type' => 'dimension', 'id' => 'gmap_dimension', 'extended_ids' => array('gmap_dimension_width', 'gmap_dimension_width_unit', 'gmap_dimension_height'), 'gmap_dimension_width' => array('std' => '500'), 'gmap_dimension_height' => array('std' => '300'), 'gmap_dimension_width_unit' => array('options' => array('px' => 'px', '%' => '%'), 'std' => 'px')), array('name' => __('Margin', WR_PBL), 'container_class' => 'combo-group', 'id' => 'gmap_margin', 'type' => 'margin', 'extended_ids' => array('gmap_margin_top', 'gmap_margin_right', 'gmap_margin_bottom', 'gmap_margin_left'), 'gmap_margin_top' => array('std' => '10'), 'gmap_margin_bottom' => array('std' => '10'), 'tooltip' => __('Margin', WR_PBL)), array('type' => 'hr'), array('name' => __('Zoom Level', WR_PBL), 'id' => 'gmap_zoom', 'class' => 'wr-slider', 'type' => 'slider', 'std_max' => '14', 'std' => '12'), array('name' => __('Map Type', WR_PBL), 'id' => 'gmap_type', 'type' => 'select', 'class' => 'input-sm', 'std' => 'ROADMAP', 'options' => WR_Pb_Helper_Type::get_gmap_type()), array('name' => __('Elements', WR_PBL), 'id' => 'gmap_elements', 'type' => 'checkbox', 'class' => 'jsn-column-item checkbox', 'container_class' => 'jsn-columns-container jsn-columns-count-two', 'std' => 'streetViewControl__#__zoomControl__#__panControl__#__mapTypeControl__#__scaleControl__#__overviewMapControl__#__scrollwheel', 'options' => array('streetViewControl' => __('Street View', WR_PBL), 'zoomControl' => __('Zoom Controls', WR_PBL), 'panControl' => __('Pan Controls', WR_PBL), 'mapTypeControl' => __('Map Type Controls', WR_PBL), 'scaleControl' => __('Scale Controls', WR_PBL), 'overviewMapControl' => __('Overview Map Controls', WR_PBL), 'scrollwheel' => __('Scrollwheel Zooming', WR_PBL))), WR_Pb_Helper_Type::get_apprearing_animations(), WR_Pb_Helper_Type::get_animation_speeds()));
 }