Plugin Directory

Changeset 2629217


Ignore:
Timestamp:
11/13/2021 08:37:37 PM (4 years ago)
Author:
intelchip
Message:

Updates to V1.0.11 by @youngmedianetwork

  • Tagged v1.0.10
  • Added Static Popup Label (with and without Close Button)
  • Added Title Alignment Option
  • Added Stamen Toner map tile
  • Added Stamen Terrain map tile
  • Added Stamen Watercolor map tile
Location:
osm-map-elementor
Files:
1767 added
4 edited

Legend:

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

    r2622955 r2629217  
    22define('OSM_MAP_SLUG', 'osm-map-elementor');
    33define('OSM_PLUGIN_FOLDER', basename(__DIR__) != 'trunk' ? basename(__DIR__) : OSM_MAP_SLUG);
    4 define('OSM_MAP_VERSION', '1.0.10');
     4define('OSM_MAP_VERSION', '1.0.11');
  • osm-map-elementor/trunk/osm-map-elementor.php

    r2622955 r2629217  
    55 * Author:          ACT Innovate
    66 * Author URI:      https://github.com/flopperj/elementor-osm-map
    7  * Version:         1.0.10
     7 * Version:         1.0.11
    88 */
    99
  • osm-map-elementor/trunk/osm-map.php

    r2622955 r2629217  
    200200                    'popup' => 'Popup',
    201201                    'tooltip' => 'Tooltip',
     202                    'static_close_on' => 'Static with close',
     203                    'static_close_off' => 'Static without close',
    202204                    'none' => 'None'
    203205                ]
     
    332334            ]
    333335        );
    334 
    335336
    336337        $this->add_control(
     
    423424                    'dark-matter-purple-roads' => __('Dark Matter Purple Roads', self::$slug),
    424425                    'dark-matter-yellow-roads' => __('Dark Matter Yellow Roads', self::$slug),
     426                    'stamen-toner' => __('Stamen Toner (Free)', self::$slug),
     427                    'stamen-terrain' => __('Stamen Terrain (Free)', self::$slug),
     428                    'stamen-watercolor' => __('Stamen Watercolor (Free)', self::$slug),
    425429                    'custom-tile' => __('Custom Map Tile', self::$slug),
    426430                ]
     
    10001004        );
    10011005
    1002         $this->add_control(
    1003             'title_color',
    1004             [
    1005                 'label' => __('Text Color', self::$slug),
    1006                 'type' => Controls_Manager::COLOR,
    1007                 'global' => [
    1008                     'default' => Global_Colors::COLOR_SECONDARY,
    1009                 ],
    1010                 'selectors' => [
    1011                     '{{WRAPPER}} .marker-title .elementor-heading-title' => 'color: {{VALUE}};',
    1012                 ],
    1013             ]
    1014         );
    1015 
    1016         $this->add_group_control(
    1017             Group_Control_Typography::get_type(),
    1018             [
    1019                 'name' => 'title_typography',
    1020                 'global' => [
    1021                     'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
    1022                 ],
    1023                 'selector' => '{{WRAPPER}} .marker-title .elementor-heading-title',
    1024             ]
    1025         );
    1026 
    1027         $this->add_group_control(
    1028             Group_Control_Text_Shadow::get_type(),
    1029             [
    1030                 'name' => 'title_text_shadow',
    1031                 'selector' => '{{WRAPPER}} .marker-title .elementor-heading-title',
    1032             ]
    1033         );
    1034 
    10351006        $this->add_responsive_control(
    1036             'title_padding',
    1037             [
    1038                 'label' => __('Padding', self::$slug),
    1039                 'type' => Controls_Manager::DIMENSIONS,
    1040                 'size_units' => ['px', 'em', '%'],
    1041                 'selectors' => [
    1042                     '{{WRAPPER}} .marker-title .elementor-heading-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    1043                 ],
    1044                 'separator' => 'before',
    1045             ]
    1046         );
    1047 
    1048         $this->add_responsive_control(
    1049             'title_margin',
    1050             [
    1051                 'label' => __('Margin', self::$slug),
    1052                 'type' => Controls_Manager::DIMENSIONS,
    1053                 'size_units' => ['px', 'em', '%'],
    1054                 'default' => [
    1055                     'top' => 0,
    1056                     'right' => 0,
    1057                     'bottom' => 0,
    1058                     'left' => 0,
    1059                     'unit' => 'px'
    1060                 ],
    1061                 'selectors' => [
    1062                     '{{WRAPPER}} .marker-title .elementor-heading-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    1063                 ],
    1064                 'separator' => 'before',
    1065             ]
    1066         );
    1067 
    1068         $this->end_controls_section();
    1069         // END Marker Title Section
    1070 
    1071         // START Marker Content  Section
    1072         $this->start_controls_section(
    1073             'section_marker_content_style',
    1074             [
    1075                 'label' => __('Marker Content', self::$slug),
    1076                 'tab' => Controls_Manager::TAB_STYLE,
    1077             ]
    1078         );
    1079         $this->add_responsive_control(
    1080             'content_align',
     1007            'title_align',
    10811008            [
    10821009                'label' => __('Alignment', self::$slug),
     
    11011028                ],
    11021029                'selectors' => [
     1030                    '{{WRAPPER}} .marker-tooltip .marker-title' => 'text-align: {{VALUE}};',
     1031                ],
     1032            ]
     1033        );
     1034       
     1035        $this->add_control(
     1036            'title_color',
     1037            [
     1038                'label' => __('Text Color', self::$slug),
     1039                'type' => Controls_Manager::COLOR,
     1040                'global' => [
     1041                    'default' => Global_Colors::COLOR_SECONDARY,
     1042                ],
     1043                'selectors' => [
     1044                    '{{WRAPPER}} .marker-title .elementor-heading-title' => 'color: {{VALUE}};',
     1045                ],
     1046            ]
     1047        );
     1048
     1049        $this->add_group_control(
     1050            Group_Control_Typography::get_type(),
     1051            [
     1052                'name' => 'title_typography',
     1053                'global' => [
     1054                    'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
     1055                ],
     1056                'selector' => '{{WRAPPER}} .marker-title .elementor-heading-title',
     1057            ]
     1058        );
     1059
     1060        $this->add_group_control(
     1061            Group_Control_Text_Shadow::get_type(),
     1062            [
     1063                'name' => 'title_text_shadow',
     1064                'selector' => '{{WRAPPER}} .marker-title .elementor-heading-title',
     1065            ]
     1066        );
     1067
     1068        $this->add_responsive_control(
     1069            'title_padding',
     1070            [
     1071                'label' => __('Padding', self::$slug),
     1072                'type' => Controls_Manager::DIMENSIONS,
     1073                'size_units' => ['px', 'em', '%'],
     1074                'selectors' => [
     1075                    '{{WRAPPER}} .marker-title .elementor-heading-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     1076                ],
     1077                'separator' => 'before',
     1078            ]
     1079        );
     1080
     1081        $this->add_responsive_control(
     1082            'title_margin',
     1083            [
     1084                'label' => __('Margin', self::$slug),
     1085                'type' => Controls_Manager::DIMENSIONS,
     1086                'size_units' => ['px', 'em', '%'],
     1087                'default' => [
     1088                    'top' => 0,
     1089                    'right' => 0,
     1090                    'bottom' => 0,
     1091                    'left' => 0,
     1092                    'unit' => 'px'
     1093                ],
     1094                'selectors' => [
     1095                    '{{WRAPPER}} .marker-title .elementor-heading-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     1096                ],
     1097                'separator' => 'before',
     1098            ]
     1099        );
     1100
     1101        $this->end_controls_section();
     1102        // END Marker Title Section
     1103
     1104        // START Marker Content  Section
     1105        $this->start_controls_section(
     1106            'section_marker_content_style',
     1107            [
     1108                'label' => __('Marker Content', self::$slug),
     1109                'tab' => Controls_Manager::TAB_STYLE,
     1110            ]
     1111        );
     1112        $this->add_responsive_control(
     1113            'content_align',
     1114            [
     1115                'label' => __('Alignment', self::$slug),
     1116                'type' => Controls_Manager::CHOOSE,
     1117                'options' => [
     1118                    'left' => [
     1119                        'title' => __('Left', self::$slug),
     1120                        'icon' => 'eicon-text-align-left',
     1121                    ],
     1122                    'center' => [
     1123                        'title' => __('Center', self::$slug),
     1124                        'icon' => 'eicon-text-align-center',
     1125                    ],
     1126                    'right' => [
     1127                        'title' => __('Right', self::$slug),
     1128                        'icon' => 'eicon-text-align-right',
     1129                    ],
     1130                    'justify' => [
     1131                        'title' => __('Justified', self::$slug),
     1132                        'icon' => 'eicon-text-align-justify',
     1133                    ],
     1134                ],
     1135                'selectors' => [
    11031136                    '{{WRAPPER}} .marker-content .marker-description' => 'text-align: {{VALUE}};',
    11041137                ],
     
    14741507                L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    14751508                    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
     1509                    maxZoom: 18
     1510                }).addTo(map);
     1511
     1512                <?php elseif( $settings['geoapify_tile'] == 'stamen-toner'):?>
     1513                L.tileLayer('https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', {
     1514                    attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
     1515                    maxZoom: 18
     1516                }).addTo(map);
     1517
     1518                <?php elseif( $settings['geoapify_tile'] == 'stamen-terrain'):?>
     1519                L.tileLayer('https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.jpg', {
     1520                    attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
     1521                    maxZoom: 18
     1522                }).addTo(map);
     1523
     1524                <?php elseif( $settings['geoapify_tile'] == 'stamen-watercolor'):?>
     1525                L.tileLayer('https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg', {
     1526                    attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.',
    14761527                    maxZoom: 18
    14771528                }).addTo(map);
     
    16561707                                    marker.bindPopup(tooltipContent);
    16571708                                    break;
     1709
     1710                                case 'static_close_on':
     1711                                    marker.bindPopup(tooltipContent,{closeOnClick: false, autoClose: false, closeOnEscapeKey: false}).openPopup();
     1712                                    break;
     1713                               
     1714                                case 'static_close_off':
     1715                                    marker.bindPopup(tooltipContent,{closeOnClick: false, autoClose: false, closeButton: false, closeOnEscapeKey: false}).openPopup();
     1716                                    break;
     1717                                   
    16581718                                case 'tooltip':
    16591719
  • osm-map-elementor/trunk/readme.txt

    r2622955 r2629217  
    11=== OSM Map Widget for Elementor ===
    22Plugin Name: OSM Map Widget for Elementor
    3 Version: 1.0.9
     3Version: 1.0.11
    44Author: ACT Innovate
    55Author URI: https://github.com/flopperj/osm-map-elementor
     6Contributors: intelchip, garbowza, youngmedianetwork
    67Tags: elementor, elementor widget, map widget, open street map, addons
    78Requires at least: 5.0
    89Tested up to: 5.8
    910Requires PHP: 5.6
    10 Stable tag: 1.0.10
     11Stable tag: 1.0.11
    1112License: GPLv3
    1213License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.