Ejemplo n.º 1
0
    /**
     * Add map canvas
     *
     * @param \WP_Post $post
     * @return string
     */
    protected function get_field(\WP_Post $post)
    {
        $field = parent::get_field($post);
        $automatic = $this->original_callback ? ' original' : '';
        $geocder = $this->show_geocoder ? $this->geocoder() : '';
        return <<<HTML
            {$field}
            <div id="{$this->name}-map" class="wpametu-map{$automatic}"></div>
            {$geocder}
HTML;
    }