From 5bfc8fde6a00f5f99e51fe30eddac5585af43958 Mon Sep 17 00:00:00 2001
From: "michael.daniel" <michael.danielczok@gmail.com>
Date: Tue, 26 Sep 2017 12:12:52 +0200
Subject: [PATCH] =?UTF-8?q?Issue=20#67=20refactor:=20Der=20Wrapper=20bei?=
 =?UTF-8?q?=20Google=20Maps=20"Zum=20Aktivieren=20klicken"=20wurde=20gel?=
 =?UTF-8?q?=C3=B6scht.=20refactor:=20=C3=9Cbersetzung=20f=C3=BCr=20Google?=
 =?UTF-8?q?=20Maps=20erg=C3=A4nzt=20(polnisch).?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 bin/Controls/SimpleGoogleMaps.js              | 51 -------------------
 locale.xml                                    | 14 +++--
 src/QUI/Bricks/Controls/SimpleGoogleMaps.css  | 48 -----------------
 src/QUI/Bricks/Controls/SimpleGoogleMaps.html |  4 +-
 src/QUI/Bricks/Controls/SimpleGoogleMaps.php  |  2 +-
 5 files changed, 11 insertions(+), 108 deletions(-)
 delete mode 100644 bin/Controls/SimpleGoogleMaps.js

diff --git a/bin/Controls/SimpleGoogleMaps.js b/bin/Controls/SimpleGoogleMaps.js
deleted file mode 100644
index 7efa92d..0000000
--- a/bin/Controls/SimpleGoogleMaps.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * QUIQQER Simple Google Map Control
- *
- * @author www.pcsg.de (Michael Danielczok)
- * @module Bricks\Controls\SimpleGoogleMaps
- *
- * @require qui/QUI
- * @require qui/controls/Control
- */
-define('package/quiqqer/bricks/bin/Controls/SimpleGoogleMaps', [
-
-    'qui/QUI',
-    'qui/controls/Control'
-
-], function (QUI, QUIControl)
-{
-    "use strict";
-
-    return new Class({
-
-        Extends: QUIControl,
-        Type   : 'Controls/SimpleGoogleMaps',
-
-        Binds: [
-            '$onImport'
-        ],
-
-        initialize: function (options)
-        {
-            this.parent(options);
-
-            this.mapWrapper = null;
-
-            this.addEvents({
-                onImport: this.$onImport
-            });
-        },
-
-        /**
-         * event : on import
-         */
-        $onImport: function ()
-        {
-            this.mapWrapper = document.getElement('.simpleGoogleMap-wrapper');
-
-            this.mapWrapper.addEvent('click', function() {
-                this.mapWrapper.addClass('simpleGoogleMap-hideWrapper');
-            }.bind(this));
-        }
-    });
-});
diff --git a/locale.xml b/locale.xml
index c3ee69a..0d3e61c 100644
--- a/locale.xml
+++ b/locale.xml
@@ -788,44 +788,48 @@ M&ouml;chten Sie die Bausteine aus der Bausteinzone entfernen?</p>]]></de>
         <locale name="brick.control.simplegooglemaps.title">
             <de><![CDATA[Bausteine: Einfache Google Maps Karte]]></de>
             <en><![CDATA[Bricks: Simple Google Maps]]></en>
+            <pl><![CDATA[Bricks: Simple Google Maps]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.description">
             <de><![CDATA[Einstellungen fĂĽr Karten]]></de>
             <en><![CDATA[Maps settings]]></en>
-        </locale>
-        <locale name="brick.control.simplegooglemaps.clickToActivate">
-            <de><![CDATA[Zum Aktivieren klicken]]></de>
-            <en><![CDATA[Click to activate]]></en>
-            <pl><![CDATA[Kliknij, zeby aktywowac]]></pl>
+            <pl><![CDATA[Ustawienia mapy]]></pl>
         </locale>
 
         <locale name="brick.control.simplegooglemaps.settings.place">
             <de><![CDATA[Google Place]]></de>
             <en><![CDATA[Google Place]]></en>
+            <pl><![CDATA[Google Place]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.settings.title">
             <de><![CDATA[Title]]></de>
             <en><![CDATA[Title]]></en>
+            <pl><![CDATA[Tytuł]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.settings.street">
             <de><![CDATA[StraĂźe]]></de>
             <en><![CDATA[Street]]></en>
+            <pl><![CDATA[Ulica]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.settings.zip">
             <de><![CDATA[PLZ]]></de>
             <en><![CDATA[ZIP code]]></en>
+            <pl><![CDATA[Kod pocztowy]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.settings.city">
             <de><![CDATA[Stadt]]></de>
             <en><![CDATA[City]]></en>
+            <pl><![CDATA[Miejscowość]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.settings.zoom">
             <de><![CDATA[Zoom]]></de>
             <en><![CDATA[Zoom]]></en>
+            <pl><![CDATA[Zoom]]></pl>
         </locale>
         <locale name="brick.control.simplegooglemaps.settings.api">
             <de><![CDATA[API Key]]></de>
             <en><![CDATA[API Key]]></en>
+            <pl><![CDATA[Klucz API]]></pl>
         </locale>
 
         <!-- Box Content -->
diff --git a/src/QUI/Bricks/Controls/SimpleGoogleMaps.css b/src/QUI/Bricks/Controls/SimpleGoogleMaps.css
index 202f8e7..0020072 100644
--- a/src/QUI/Bricks/Controls/SimpleGoogleMaps.css
+++ b/src/QUI/Bricks/Controls/SimpleGoogleMaps.css
@@ -11,52 +11,4 @@
     min-height: 300px;
     position: relative;
     width: 100%;
-}
-
-.simpleGoogleMap-wrapper {
-    position: absolute;
-    width: 100%;
-    height: 100%;
-    top: 0;
-    left: 0;
-    background: rgba(0, 0, 0, 0.4);
-    z-index: 1;
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    opacity: 0;
-    transition: 0.3s all ease-in-out;
-}
-
-.simpleGoogleMap-wrapper span {
-    text-align: center;
-    display: inline-block;
-    font-size: 1.7em;
-    color: #fff;
-    padding: 10px 20px;
-    border: 2px solid rgba(255, 255, 255, 0.7);
-    cursor: default;
-    transition: 0.3s all ease-in-out;
-    margin: 0 10px;
-}
-
-.simpleGoogleMap-wrapper span:hover {
-    box-shadow: 0 0 6px 0 #fff;
-    background: rgba(255, 255, 255, 0);
-
-}
-
-.simpleGoogleMap-wrapper:hover {
-    opacity: 1;
-    transition-delay: 350ms;
-}
-
-.simpleGoogleMap-wrapper.simpleGoogleMap-hideWrapper {
-    display: none;
-}
-
-@media screen and (max-width: 767px) {
-    .simpleGoogleMap-wrapper {
-        display: none;
-    }
 }
\ No newline at end of file
diff --git a/src/QUI/Bricks/Controls/SimpleGoogleMaps.html b/src/QUI/Bricks/Controls/SimpleGoogleMaps.html
index 1768d70..eb6ea80 100644
--- a/src/QUI/Bricks/Controls/SimpleGoogleMaps.html
+++ b/src/QUI/Bricks/Controls/SimpleGoogleMaps.html
@@ -9,9 +9,7 @@
     {$this->getAttribute('content')}
 </div>
 {/if}
+
 <div class="simpleGoogleMap">
-    <div class="simpleGoogleMap-wrapper">
-        <span>{locale group='quiqqer/bricks' var='brick.control.simplegooglemaps.clickToActivate'}</span>
-    </div>
     <iframe class="simpleGoogleMap-iframe" src="{$url}"></iframe>
 </div>
\ No newline at end of file
diff --git a/src/QUI/Bricks/Controls/SimpleGoogleMaps.php b/src/QUI/Bricks/Controls/SimpleGoogleMaps.php
index 847733d..a2c140f 100644
--- a/src/QUI/Bricks/Controls/SimpleGoogleMaps.php
+++ b/src/QUI/Bricks/Controls/SimpleGoogleMaps.php
@@ -33,7 +33,7 @@ public function __construct($attributes = array())
             dirname(__FILE__) . '/SimpleGoogleMaps.css'
         );
 
-        $this->setAttribute('qui-class', "package/quiqqer/bricks/bin/Controls/SimpleGoogleMaps");
+//        $this->setAttribute('qui-class', "package/quiqqer/bricks/bin/Controls/SimpleGoogleMaps");
     }
 
     /**
-- 
GitLab