File "class-wpml-pp-google-maps.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements142/classes/wpml/class-wpml-pp-google-maps.php
File size: 883 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

class WPML_PP_Google_Maps extends WPML_Elementor_Module_With_Items
{
    public function get_items_field()
    {
        return 'pp_map_addresses';
    }
    public function get_fields()
    {
        return array('map_title', 'map_description');
    }
    protected function get_title($field)
    {
        switch ($field) {
            case 'map_title':
                return esc_html__('Google Maps - Title', 'powerpack');
            case 'map_description':
                return esc_html__('Google Maps - Description', 'powerpack');
            default:
                return '';
        }
    }
    protected function get_editor_type($field)
    {
        switch ($field) {
            case 'map_title':
                return 'LINE';
            case 'map_description':
                return 'AREA';
            default:
                return '';
        }
    }
}