Plugin Directory

Changeset 2542743


Ignore:
Timestamp:
06/04/2021 05:37:23 PM (5 years ago)
Author:
intelchip
Message:

Bugfixes and Feature add

  • Fixed parse error that was introduced by an unnecessary space
  • Added ability to open marker links on the same window or new tab/window
Location:
osm-map-elementor
Files:
1770 added
4 edited

Legend:

Unmodified
Added
Removed
  • osm-map-elementor/trunk/constants.php

    r2499825 r2542743  
    11<?php
    22define('OSM_MAP_SLUG', 'osm-map-elementor');
    3 define('OSM_PLUGIN_FOLDER', basename(__DIR__));
    4 define('OSM_MAP_VERSION', '1.0.7');
     3define('OSM_PLUGIN_FOLDER', basename(__DIR__) != 'trunk' ? basename(__DIR__) : OSM_MAP_SLUG);
     4define('OSM_MAP_VERSION', '1.0.8');
  • osm-map-elementor/trunk/osm-map-elementor.php

    r2499825 r2542743  
    55 * Author:          ACT Innovate
    66 * Author URI:      https://github.com/flopperj/elementor-osm-map
    7  * Version:         1.0.7
     7 * Version:         1.0.8
    88 */
    99
  • osm-map-elementor/trunk/osm-map.php

    r2499825 r2542743  
    225225                'input_type' => 'url',
    226226                'placeholder' => __('https://your-link.com', self::$slug),
     227            ]
     228        );
     229
     230        $repeater->add_control(
     231            'button_url_target',
     232            [
     233                'label' => __('URL target', self::$slug),
     234                'type' => \Elementor\Controls_Manager::SELECT,
     235                'options' => [
     236                        '_self' => 'Same Window',
     237                        '_blank' => 'New Window/Tab'
     238                ],
     239                'default' => '_blank',
     240                'condition' => [
     241                    'button_url!' => ''
     242                ]
    227243            ]
    228244        );
     
    12671283            [
    12681284                'label' => __('Border Color', self::$slug),
    1269                 'type' => \Elementor\ Controls_Manager::COLOR,
     1285                'type' => \Elementor\Controls_Manager::COLOR,
    12701286                'condition' => [
    12711287                    'border_border!' => '',
     
    15981614                        // add marker button
    15991615                        if (this.marker.show_button === 'yes' && this.marker.button_text) {
     1616                            let button_url_target = this.marker.hasOwnProperty('button_url_target') && this.marker.button_url_target ? this.marker.button_url_target : '_blank';
    16001617                            tooltipContent += `<div class="marker-button elementor-button-wrapper">
    1601                                                 <a class="elementor-button elementor-button-link" target="_blank" href='${this.marker.button_url}' role="button">
     1618                                                <a class="elementor-button elementor-button-link" target="${button_url_target}" href='${this.marker.button_url}' role="button">
    16021619                                                    <span class="elementor-button-content-wrapper">
    16031620                                                        <span class="elementor-button-text">
  • osm-map-elementor/trunk/readme.txt

    r2499825 r2542743  
    11=== OSM Map Widget for Elementor ===
    22Plugin Name: OSM Map Widget for Elementor
    3 Version: 1.0.7
     3Version: 1.0.8
    44Author: ACT Innovate
    55Author URI: https://github.com/flopperj/osm-map-elementor
    66Tags: elementor, elementor widget, map widget, open street map, addons
    77Requires at least: 5.0
    8 Tested up to: 5.6
     8Tested up to: 5.7.2
    99Requires PHP: 5.6
    10 Stable tag: 1.0.7
     10Stable tag: 1.0.8
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.