Plugin Directory

Changeset 888350


Ignore:
Timestamp:
04/06/2014 02:30:20 PM (12 years ago)
Author:
kerli81
Message:

add zoom as a new field

Location:
wp-flexible-map-options/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • wp-flexible-map-options/trunk/class.FlxMapOptions_Map.php

    r830427 r888350  
    2525    function setDefaults($attrs) {
    2626        $defaults = $this->pluginOptions->getValues();
     27       
     28        if ($defaults["zoom"] == "auto") {
     29            unset($defaults["zoom"]);
     30        }
     31       
    2732        $attrsInclDefaults = wp_parse_args($attrs, $defaults);
    2833       
  • wp-flexible-map-options/trunk/class.FlxMapOptions_Options.php

    r830708 r888350  
    102102        $this->addSingleOption('width', '400', 'text');
    103103        $this->addSingleOption('height', '400', 'text');
     104        $this->addSingleOption('zoom', 'auto', 'text');
    104105        $this->addSingleOption('maptype', 'roadmap', 'list', 'roadmap,satellite');
    105106        $this->addSingleOption('hidemaptype', 'false');
  • wp-flexible-map-options/trunk/flexible-map-options.php

    r830713 r888350  
    33Plugin Name: Flexible Map Options
    44Description: Provides an option page for the plugin WP Flexible Map to define the default values globally.
    5 Version: 1.0.1
     5Version: 1.0.2
    66Author: Kerli
    77Domain Path: /languages
  • wp-flexible-map-options/trunk/languages/default.pot

    r830708 r888350  
    22msgstr ""
    33"Project-Id-Version: flxmapoptions\n"
    4 "POT-Creation-Date: 2013-12-31 10:15+0100\n"
    5 "PO-Revision-Date: 2013-12-31 10:15+0100\n"
     4"POT-Creation-Date: 2014-04-06 16:25+0100\n"
     5"PO-Revision-Date: 2014-04-06 16:25+0100\n"
    66"Last-Translator: Kerli81 <@kerli81>\n"
    77"Language-Team: \n"
     
    5454
    5555#: ../page.optionpage.php:71
     56msgid "Default zoom of the map (Values: auto, 1-16)"
     57msgstr ""
     58
     59#: ../page.optionpage.php:72
    5660msgid "Type of map to show"
    5761msgstr ""
    5862
    59 #: ../page.optionpage.php:72
     63#: ../page.optionpage.php:73
    6064msgid "Hide the map type controls"
    6165msgstr ""
    6266
    63 #: ../page.optionpage.php:73
     67#: ../page.optionpage.php:74
    6468msgid "Hide the panning controls"
    6569msgstr ""
    6670
    67 #: ../page.optionpage.php:74
     71#: ../page.optionpage.php:75
    6872msgid "Hide the zoom controls"
    6973msgstr ""
    7074
    71 #: ../page.optionpage.php:75
     75#: ../page.optionpage.php:76
    7276msgid "Hide the street view control"
    7377msgstr ""
    7478
    75 #: ../page.optionpage.php:76
     79#: ../page.optionpage.php:77
    7680msgid "Which zoom control style"
    7781msgstr ""
    7882
    79 #: ../page.optionpage.php:77
     83#: ../page.optionpage.php:78
    8084msgid "Hide the map scale"
    8185msgstr ""
    8286
    83 #: ../page.optionpage.php:78
     87#: ../page.optionpage.php:79
    8488msgid "Enable zoom with mouse scroll wheel"
    8589msgstr ""
    8690
    87 #: ../page.optionpage.php:79
     91#: ../page.optionpage.php:80
    8892msgid "Enable dragging to pan"
    8993msgstr ""
    9094
    91 #: ../page.optionpage.php:80
     95#: ../page.optionpage.php:81
    9296msgid "Enable double-clicking to zoom"
    9397msgstr ""
    9498
    95 #: ../page.optionpage.php:81
     99#: ../page.optionpage.php:82
    96100msgid "show directions link in text bubble"
    97101msgstr ""
    98102
    99 #: ../page.optionpage.php:82
     103#: ../page.optionpage.php:83
    100104msgid "allow directions to be draggable"
    101105msgstr ""
    102106
    103 #: ../page.optionpage.php:83
     107#: ../page.optionpage.php:84
    104108msgid "suppress start and end markers when showing directions"
    105109msgstr ""
    106110
    107 #: ../page.optionpage.php:84
     111#: ../page.optionpage.php:85
    108112msgid "show or suppress directions steps when showing directions"
    109113msgstr ""
    110114
    111 #: ../page.optionpage.php:85
     115#: ../page.optionpage.php:86
    112116msgid "show or suppress directions search form when showing directions"
    113117msgstr ""
    114118
    115 #: ../page.optionpage.php:86
     119#: ../page.optionpage.php:87
    116120msgid ""
    117121"specify region to help localise address searches for street address map and "
     
    119123msgstr ""
    120124
    121 #: ../page.optionpage.php:87
     125#: ../page.optionpage.php:88
    122126msgid ""
    123127"use a specific locale (language) for messages like the text of the "
     
    125129msgstr ""
    126130
    127 #: ../page.optionpage.php:92
     131#: ../page.optionpage.php:93
    128132msgid "Additional parameters for centre coordinates map"
    129133msgstr ""
    130134
    131 #: ../page.optionpage.php:95
     135#: ../page.optionpage.php:96
    132136msgid "URL to icon for the marker"
    133137msgstr ""
    134138
    135 #: ../page.optionpage.php:96
     139#: ../page.optionpage.php:97
    136140msgid "show directions when the map loads"
    137141msgstr ""
    138142
    139 #: ../page.optionpage.php:97
     143#: ../page.optionpage.php:98
    140144msgid "initial from: location for directions"
    141145msgstr ""
    142146
    143 #: ../page.optionpage.php:98
     147#: ../page.optionpage.php:99
    144148msgid "show the marker's info window when the map loads"
    145149msgstr ""
    146150
    147 #: ../page.optionpage.php:103
     151#: ../page.optionpage.php:104
    148152msgid "Additional parameters for KML map"
    149153msgstr ""
    150154
    151 #: ../page.optionpage.php:106
     155#: ../page.optionpage.php:107
    152156msgid "Prevent links from opening in new window"
    153157msgstr ""
  • wp-flexible-map-options/trunk/languages/flxmapoptions-de.po

    r830708 r888350  
    22msgstr ""
    33"Project-Id-Version: flxmapoptions\n"
    4 "POT-Creation-Date: 2013-12-31 10:08+0100\n"
    5 "PO-Revision-Date: 2013-12-31 10:17+0100\n"
     4"POT-Creation-Date: 2014-04-06 16:26+0100\n"
     5"PO-Revision-Date: 2014-04-06 16:26+0100\n"
    66"Last-Translator: Kerli81 <@kerli81>\n"
    77"Language-Team: \n"
     
    5858
    5959#: ../page.optionpage.php:71
     60msgid "Default zoom of the map (Values: auto, 1-16)"
     61msgstr "Standard Zoom bei Karten (Werte: auto, 1-16)"
     62
     63#: ../page.optionpage.php:72
    6064msgid "Type of map to show"
    6165msgstr "anzuzeigender Kartentyp"
    6266
    63 #: ../page.optionpage.php:72
     67#: ../page.optionpage.php:73
    6468msgid "Hide the map type controls"
    6569msgstr "Kartentyp-Element verstecken"
    6670
    67 #: ../page.optionpage.php:73
     71#: ../page.optionpage.php:74
    6872msgid "Hide the panning controls"
    6973msgstr "Navigation-Element verstecken"
    7074
    71 #: ../page.optionpage.php:74
     75#: ../page.optionpage.php:75
    7276msgid "Hide the zoom controls"
    7377msgstr "Zoom-Element verstecken"
    7478
    75 #: ../page.optionpage.php:75
     79#: ../page.optionpage.php:76
    7680msgid "Hide the street view control"
    7781msgstr "Street View-Element verstecken"
    7882
    79 #: ../page.optionpage.php:76
     83#: ../page.optionpage.php:77
    8084msgid "Which zoom control style"
    8185msgstr "Zoom Kontroll Typ"
    8286
    83 #: ../page.optionpage.php:77
     87#: ../page.optionpage.php:78
    8488msgid "Hide the map scale"
    8589msgstr "Karten-Skala verstecken"
    8690
    87 #: ../page.optionpage.php:78
     91#: ../page.optionpage.php:79
    8892msgid "Enable zoom with mouse scroll wheel"
    8993msgstr "Zoomen mit Mausrad erlauben"
    9094
    91 #: ../page.optionpage.php:79
     95#: ../page.optionpage.php:80
    9296msgid "Enable dragging to pan"
    9397msgstr "Verschieben der Karte per Mausklick erlauben"
    9498
    95 #: ../page.optionpage.php:80
     99#: ../page.optionpage.php:81
    96100msgid "Enable double-clicking to zoom"
    97101msgstr "Zoomen mit Doppelklick erlauben"
    98102
    99 #: ../page.optionpage.php:81
     103#: ../page.optionpage.php:82
    100104msgid "show directions link in text bubble"
    101105msgstr "Zeige Routen-Link in Textblase"
    102106
    103 #: ../page.optionpage.php:82
     107#: ../page.optionpage.php:83
    104108msgid "allow directions to be draggable"
    105109msgstr "Verschieben der Routen-Karte per Mausklick erlauben"
    106110
    107 #: ../page.optionpage.php:83
     111#: ../page.optionpage.php:84
    108112msgid "suppress start and end markers when showing directions"
    109113msgstr "Start- und End-Marker bei Routen unterdrücken"
    110114
    111 #: ../page.optionpage.php:84
     115#: ../page.optionpage.php:85
    112116msgid "show or suppress directions steps when showing directions"
    113117msgstr "Anzeigen der Schritte bei Routen"
    114118
    115 #: ../page.optionpage.php:85
     119#: ../page.optionpage.php:86
    116120msgid "show or suppress directions search form when showing directions"
    117121msgstr "Anzeigen der Suche bei Routen"
    118122
    119 #: ../page.optionpage.php:86
     123#: ../page.optionpage.php:87
    120124msgid ""
    121125"specify region to help localise address searches for street address map and "
     
    123127msgstr "Eingeschränkte Region für die Suche von Adressen bei Routen"
    124128
    125 #: ../page.optionpage.php:87
     129#: ../page.optionpage.php:88
    126130msgid ""
    127131"use a specific locale (language) for messages like the text of the "
     
    129133msgstr "Sprachangabe für Texte bei Routen"
    130134
    131 #: ../page.optionpage.php:92
     135#: ../page.optionpage.php:93
    132136msgid "Additional parameters for centre coordinates map"
    133137msgstr "Zusätzliche Parameter für koordinatsbasierte Karten"
    134138
    135 #: ../page.optionpage.php:95
     139#: ../page.optionpage.php:96
    136140msgid "URL to icon for the marker"
    137141msgstr "URL zu einem Marker"
    138142
    139 #: ../page.optionpage.php:96
     143#: ../page.optionpage.php:97
    140144msgid "show directions when the map loads"
    141145msgstr "Route anzeigen wenn Karte geladen wird"
    142146
    143 #: ../page.optionpage.php:97
     147#: ../page.optionpage.php:98
    144148msgid "initial from: location for directions"
    145149msgstr "Initiale von:-Adresse bei Routen"
    146150
    147 #: ../page.optionpage.php:98
     151#: ../page.optionpage.php:99
    148152msgid "show the marker's info window when the map loads"
    149153msgstr "Anzeige der Marker-Info beim Laden der Karte"
    150154
    151 #: ../page.optionpage.php:103
     155#: ../page.optionpage.php:104
    152156msgid "Additional parameters for KML map"
    153157msgstr "Zusätzliche Parameter für KML-Karten"
    154158
    155 #: ../page.optionpage.php:106
     159#: ../page.optionpage.php:107
    156160msgid "Prevent links from opening in new window"
    157161msgstr "Öffnen von Links in einem neuen Fenster verhindern"
  • wp-flexible-map-options/trunk/languages/flxmapoptions-de_DE.po

    r830708 r888350  
    22msgstr ""
    33"Project-Id-Version: flxmapoptions\n"
    4 "POT-Creation-Date: 2013-12-31 10:08+0100\n"
    5 "PO-Revision-Date: 2013-12-31 10:17+0100\n"
     4"POT-Creation-Date: 2014-04-06 16:26+0100\n"
     5"PO-Revision-Date: 2014-04-06 16:26+0100\n"
    66"Last-Translator: Kerli81 <@kerli81>\n"
    77"Language-Team: \n"
     
    5858
    5959#: ../page.optionpage.php:71
     60msgid "Default zoom of the map (Values: auto, 1-16)"
     61msgstr "Standard Zoom bei Karten (Werte: auto, 1-16)"
     62
     63#: ../page.optionpage.php:72
    6064msgid "Type of map to show"
    6165msgstr "anzuzeigender Kartentyp"
    6266
    63 #: ../page.optionpage.php:72
     67#: ../page.optionpage.php:73
    6468msgid "Hide the map type controls"
    6569msgstr "Kartentyp-Element verstecken"
    6670
    67 #: ../page.optionpage.php:73
     71#: ../page.optionpage.php:74
    6872msgid "Hide the panning controls"
    6973msgstr "Navigation-Element verstecken"
    7074
    71 #: ../page.optionpage.php:74
     75#: ../page.optionpage.php:75
    7276msgid "Hide the zoom controls"
    7377msgstr "Zoom-Element verstecken"
    7478
    75 #: ../page.optionpage.php:75
     79#: ../page.optionpage.php:76
    7680msgid "Hide the street view control"
    7781msgstr "Street View-Element verstecken"
    7882
    79 #: ../page.optionpage.php:76
     83#: ../page.optionpage.php:77
    8084msgid "Which zoom control style"
    8185msgstr "Zoom Kontroll Typ"
    8286
    83 #: ../page.optionpage.php:77
     87#: ../page.optionpage.php:78
    8488msgid "Hide the map scale"
    8589msgstr "Karten-Skala verstecken"
    8690
    87 #: ../page.optionpage.php:78
     91#: ../page.optionpage.php:79
    8892msgid "Enable zoom with mouse scroll wheel"
    8993msgstr "Zoomen mit Mausrad erlauben"
    9094
    91 #: ../page.optionpage.php:79
     95#: ../page.optionpage.php:80
    9296msgid "Enable dragging to pan"
    9397msgstr "Verschieben der Karte per Mausklick erlauben"
    9498
    95 #: ../page.optionpage.php:80
     99#: ../page.optionpage.php:81
    96100msgid "Enable double-clicking to zoom"
    97101msgstr "Zoomen mit Doppelklick erlauben"
    98102
    99 #: ../page.optionpage.php:81
     103#: ../page.optionpage.php:82
    100104msgid "show directions link in text bubble"
    101105msgstr "Zeige Routen-Link in Textblase"
    102106
    103 #: ../page.optionpage.php:82
     107#: ../page.optionpage.php:83
    104108msgid "allow directions to be draggable"
    105109msgstr "Verschieben der Routen-Karte per Mausklick erlauben"
    106110
    107 #: ../page.optionpage.php:83
     111#: ../page.optionpage.php:84
    108112msgid "suppress start and end markers when showing directions"
    109113msgstr "Start- und End-Marker bei Routen unterdrücken"
    110114
    111 #: ../page.optionpage.php:84
     115#: ../page.optionpage.php:85
    112116msgid "show or suppress directions steps when showing directions"
    113117msgstr "Anzeigen der Schritte bei Routen"
    114118
    115 #: ../page.optionpage.php:85
     119#: ../page.optionpage.php:86
    116120msgid "show or suppress directions search form when showing directions"
    117121msgstr "Anzeigen der Suche bei Routen"
    118122
    119 #: ../page.optionpage.php:86
     123#: ../page.optionpage.php:87
    120124msgid ""
    121125"specify region to help localise address searches for street address map and "
     
    123127msgstr "Eingeschränkte Region für die Suche von Adressen bei Routen"
    124128
    125 #: ../page.optionpage.php:87
     129#: ../page.optionpage.php:88
    126130msgid ""
    127131"use a specific locale (language) for messages like the text of the "
     
    129133msgstr "Sprachangabe für Texte bei Routen"
    130134
    131 #: ../page.optionpage.php:92
     135#: ../page.optionpage.php:93
    132136msgid "Additional parameters for centre coordinates map"
    133137msgstr "Zusätzliche Parameter für koordinatsbasierte Karten"
    134138
    135 #: ../page.optionpage.php:95
     139#: ../page.optionpage.php:96
    136140msgid "URL to icon for the marker"
    137141msgstr "URL zu einem Marker"
    138142
    139 #: ../page.optionpage.php:96
     143#: ../page.optionpage.php:97
    140144msgid "show directions when the map loads"
    141145msgstr "Route anzeigen wenn Karte geladen wird"
    142146
    143 #: ../page.optionpage.php:97
     147#: ../page.optionpage.php:98
    144148msgid "initial from: location for directions"
    145149msgstr "Initiale von:-Adresse bei Routen"
    146150
    147 #: ../page.optionpage.php:98
     151#: ../page.optionpage.php:99
    148152msgid "show the marker's info window when the map loads"
    149153msgstr "Anzeige der Marker-Info beim Laden der Karte"
    150154
    151 #: ../page.optionpage.php:103
     155#: ../page.optionpage.php:104
    152156msgid "Additional parameters for KML map"
    153157msgstr "Zusätzliche Parameter für KML-Karten"
    154158
    155 #: ../page.optionpage.php:106
     159#: ../page.optionpage.php:107
    156160msgid "Prevent links from opening in new window"
    157161msgstr "Öffnen von Links in einem neuen Fenster verhindern"
  • wp-flexible-map-options/trunk/page.optionpage.php

    r830708 r888350  
    6969                optionRow($options["width"], __('Width in Pixel/Percent', FLXMAPOPTIONS_TEXT_DOMAIN));
    7070                optionRow($options["height"], __('Height in Pixel/Percent', FLXMAPOPTIONS_TEXT_DOMAIN));
     71                optionRow($options["zoom"], __('Default zoom of the map (Values: auto, 1-16)', FLXMAPOPTIONS_TEXT_DOMAIN));
    7172                optionRow($options["maptype"], __('Type of map to show', FLXMAPOPTIONS_TEXT_DOMAIN));
    7273                optionRow($options["hidemaptype"], __('Hide the map type controls', FLXMAPOPTIONS_TEXT_DOMAIN));
  • wp-flexible-map-options/trunk/readme.txt

    r830713 r888350  
    55Requires at least: 3.2.1
    66Tested up to: 3.8
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2929
    3030== Changelog ==
     31= 1.0.2 =
     32* added 'zoom' as a new field
     33
    3134= 1.0.1 =
    3235* fix translation error
Note: See TracChangeset for help on using the changeset viewer.