PATH:
home
/
letacommog
/
broderie
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
module
<?php class ET_Builder_Module_Map_Item extends ET_Builder_Module { function init() { $this->name = esc_html__( 'Pin', 'et_builder' ); $this->plural = esc_html__( 'Pins', 'et_builder' ); $this->slug = 'et_pb_map_pin'; $this->vb_support = 'on'; $this->type = 'child'; $this->child_title_var = 'title'; $this->custom_css_tab = false; $this->advanced_setting_title_text = esc_html__( 'New Pin', 'et_builder' ); $this->settings_text = esc_html__( 'Pin Settings', 'et_builder' ); $this->settings_modal_toggles = array( 'general' => array( 'toggles' => array( 'main_content' => esc_html__( 'Text', 'et_builder' ), 'map' => esc_html__( 'Map', 'et_builder' ), ), ), ); $this->advanced_fields = false; } function get_fields() { $fields = array( 'title' => array( 'label' => esc_html__( 'Title', 'et_builder' ), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__( 'The title will be used within the tab button for this tab.', 'et_builder' ), 'toggle_slug' => 'main_content', 'dynamic_content' => 'text', ), 'pin_address' => array( 'label' => esc_html__( 'Map Pin Address', 'et_builder' ), 'type' => 'text', 'option_category' => 'basic_option', 'class' => array( 'et_pb_pin_address' ), 'description' => esc_html__( 'Enter an address for this map pin, and the address will be geocoded and displayed on the map below.', 'et_builder' ), 'additional_button' => sprintf( '<a href="#" class="et_pb_find_address button">%1$s</a>', esc_html__( 'Find', 'et_builder' ) ), 'toggle_slug' => 'map', ), 'zoom_level' => array( 'type' => 'hidden', 'class' => array( 'et_pb_zoom_level' ), 'default' => '18', 'default_on_front' => '', ), 'pin_address_lat' => array( 'type' => 'hidden', 'class' => array( 'et_pb_pin_address_lat' ), ), 'pin_address_lng' => array( 'type' => 'hidden', 'class' => array( 'et_pb_pin_address_lng' ), ), 'map_center_map' => array( 'type' => 'center_map', 'option_category' => 'basic_option', 'use_container_wrapper' => false, 'toggle_slug' => 'map', ), 'content' => array( 'label' => esc_html__( 'Content', 'et_builder' ), 'type' => 'tiny_mce', 'option_category' => 'basic_option', 'description' => esc_html__( 'Here you can define the content that will be placed within the infobox for the pin.', 'et_builder' ), 'toggle_slug' => 'main_content', 'dynamic_content' => 'text', ), ); return $fields; } function render( $attrs, $content = null, $render_slug ) { global $et_pb_tab_titles; $title = $this->_esc_attr( 'title' ); $pin_address_lat = $this->props['pin_address_lat']; $pin_address_lng = $this->props['pin_address_lng']; $replace_htmlentities = array( '”' => '', '″' => '' ); if ( ! empty( $pin_address_lat ) ) { $pin_address_lat = strtr( $pin_address_lat, $replace_htmlentities ); } if ( ! empty( $pin_address_lng ) ) { $pin_address_lng = strtr( $pin_address_lng, $replace_htmlentities ); } $content = $this->content; $output = sprintf( '<div class="et_pb_map_pin" data-lat="%1$s" data-lng="%2$s" data-title="%5$s"> <h3 style="margin-top: 10px;">%3$s</h3> %4$s </div>', esc_attr( $pin_address_lat ), esc_attr( $pin_address_lng ), et_core_esc_previously( $title ), ( ! ( empty( $content ) && empty( $title ) ) ? sprintf( '<div class="infowindow">%1$s</div>', $content ) : '' ), esc_attr( $title ) ); return $output; } } new ET_Builder_Module_Map_Item;
[+]
..
[-] TeamMember.php
[edit]
[+]
type
[-] FullwidthPortfolio.php
[edit]
[-] BarCounters.php
[edit]
[-] Code.php
[edit]
[-] VideoSlider.php
[edit]
[-] FullwidthPostTitle.php
[edit]
[-] PostSlider.php
[edit]
[-] Gallery.php
[edit]
[-] CountdownTimer.php
[edit]
[-] MapItem.php
[edit]
[-] PricingTables.php
[edit]
[-] Image.php
[edit]
[-] BarCountersItem.php
[edit]
[-] Divider.php
[edit]
[-] VideoSliderItem.php
[edit]
[-] FilterablePortfolio.php
[edit]
[-] Map.php
[edit]
[-] Sidebar.php
[edit]
[-] Search.php
[edit]
[-] AccordionItem.php
[edit]
[-] Tabs.php
[edit]
[-] Video.php
[edit]
[-] Text.php
[edit]
[-] PostsNavigation.php
[edit]
[-] Slider.php
[edit]
[-] Testimonial.php
[edit]
[-] TabsItem.php
[edit]
[-] Blurb.php
[edit]
[-] FullwidthPostSlider.php
[edit]
[-] FullwidthMap.php
[edit]
[-] FullwidthSlider.php
[edit]
[-] FullwidthMenu.php
[edit]
[-] Portfolio.php
[edit]
[+]
settings
[-] SignupItem.php
[edit]
[-] PricingTablesItem.php
[edit]
[-] SocialMediaFollow.php
[edit]
[-] Toggle.php
[edit]
[+]
field
[-] SliderItem.php
[edit]
[-] CircleCounter.php
[edit]
[-] Blog.php
[edit]
[-] ContactForm.php
[edit]
[-] Audio.php
[edit]
[-] NumberCounter.php
[edit]
[-] PostTitle.php
[edit]
[-] SocialMediaFollowItem.php
[edit]
[-] FullwidthImage.php
[edit]
[-] Button.php
[edit]
[-] Comments.php
[edit]
[+]
helpers
[-] Signup.php
[edit]
[-] Cta.php
[edit]
[-] FullwidthHeader.php
[edit]
[-] FullwidthCode.php
[edit]
[-] Login.php
[edit]
[-] ContactFormItem.php
[edit]
[-] Shop.php
[edit]
[-] Accordion.php
[edit]