diff --git a/locale.xml b/locale.xml
index 48d20a145c5bc6327952504a0649684037e4abd1..6331548a6fdde1b46cde2e55d9a2818e4840fd46 100644
--- a/locale.xml
+++ b/locale.xml
@@ -151,18 +151,25 @@
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
-
+
+
@@ -175,8 +182,10 @@
- quiqqer/captcha installiert ist!)]]>
- quiqqer/captcha to be installed!)]]>
+
+ quiqqer/captcha installiert ist!)]]>
+
+ quiqqer/captcha to be installed!)]]>
@@ -464,36 +473,36 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -615,6 +624,14 @@
+
+
+
+
@@ -965,17 +982,20 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?
]]>
Bausteine-Tour.
Fertige Bausteine werden in Template-Zonen eingesetzt. Diese können sich von Template zu Template unterscheiden.
Nehmen Sie sich die Zeit folgendes Bild kurz zu studieren. Es zeigt die Bezeichnung der einzelnen Zonen. Mit einem Klick darauf lässt es sich vergrößern.
]]>
- Block Tour.
Finished bricks are used in template zones. These may differ from template to template.
Take the time to briefly study the following picture. It shows the names of the individual zones. With a click on it the picture can be enlarged.
]]>
+
+ Block Tour.
Finished bricks are used in template zones. These may differ from template to template.
Take the time to briefly study the following picture. It shows the names of the individual zones. With a click on it the picture can be enlarged.
]]>
FAQ - Bausteinzonen ]]>
-
FAQ - Block zones ]]>
+
+
FAQ - Block zones ]]>
Das Menü für die Verwaltung von Bausteinen finden sie unter Verwaltung]]>
- The menu for the management of bricks can be found under Administration]]>
+
+ The menu for the management of bricks can be found under Administration]]>
Bausteine...]]>
@@ -984,7 +1004,8 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Hier können Sie mittels einer Auflistung Ihre Bausteine verwalten.]]>
- Here you can manage your bricks by means of a list.]]>
+
+ Here you can manage your bricks by means of a list.]]>
Baustein hinzufügen um einen Baustein zu erstellen.]]>
@@ -993,7 +1014,8 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Titel und Typ des Bausteins zu wählen...]]>
- Title and Type of the brick...]]>
+
+ Title and Type of the brick...]]>
Baustein:
Einfaches Kontaktformular ...]]>
@@ -1010,17 +1032,20 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
-
+
+
Information finden Sie: - erneut die Angabe zum Titel des Bausteins
- die Möglichkeit eine Beschreibung zu hinterlegen
- und einen Vermerk von welchem Bausteintyp der Baustein ist
]]>
- Information you will find: - again the information about the Title of the brick
- the possibility to store a Description
- and a note of which Block type the brick is
]]>
+
+ Information you will find: - again the information about the Title of the brick
- the possibility to store a Description
- and a note of which Block type the brick is
]]>
Eigenschaften können Sie festlegen: - Welche Zonen den Baustein aufnehmen können sollen
- Welche Einstellungen von Benutzern des Inhaltsverwaltungssystem (CMS) geändert werden dürfen
]]>
- Properties you can define: - Which Areas should be able to include the brick
- Which settings can be changed by users of the Content Management System (CMS)
]]>
+
+ Properties you can define: - Which Areas should be able to include the brick
- Which settings can be changed by users of the Content Management System (CMS)
]]>
Bausteinzone hinzufügen ... ]]>
@@ -1029,7 +1054,8 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Bausteinzonen-Popup gibt ihnen eine Übersicht über alle verfügbaren Bausteinzonen. Mit gedrückter STRG-Taste ist eine Mehrfachauswahl möglich.]]>
- brick areas popup gives you an overview of all available brick areas. Press and hold the CTRL key to make multiple selections.]]>
+
+ brick areas popup gives you an overview of all available brick areas. Press and hold the CTRL key to make multiple selections.]]>
Footer Bausteinzone ...]]>
@@ -1042,12 +1068,14 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Einstellungen sind bausteinspezifisch. D.h. je nach Bausteintyp sind verschiedene Einstellungen verfügbar. Diese beinhalten ua.: - den Titel benutzerseitig ändern
- Die Größe des Bausteins über Höhe und Breite bestimmen
- Spezielle CSS Klassen anfügen (besonders mächtig in Verbindung mit Custom CSS)
- Bei Google-Maps Baustein: kommen beispielsweise Einstellungen zu Straße PLZ und Stadt und Zoom hinzu.
]]>
- Settings are brick-specific. This means that different settings are available depending on the brick type. These include among others: - the title
- the size of the brick determine height and width
- special CSS add classes (especially powerful in connection with Custom CSS)
- for Google Maps brick: for example, settings for street postcode and city and zoom are added.
]]>
+
+ Settings are brick-specific. This means that different settings are available depending on the brick type. These include among others: - the title
- the size of the brick determine height and width
- special CSS add classes (especially powerful in connection with Custom CSS)
- for Google Maps brick: for example, settings for street postcode and city and zoom are added.
]]>
Inhalt befindet sich ein WYSIWYG-Editor mit dem Sie die Inhalte dieses Bausteins gestalten können.]]>
- Content menu item to design the contents of this brick.]]>
+
+ Content menu item to design the contents of this brick.]]>
speichern ...]]>
@@ -1060,7 +1088,8 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Dazu begeben wir uns in die Startseite ihres Standart-Projektes (Main-Project)]]>
- We go to the start page of your standard project (Main-Project).]]>
+
+ We go to the start page of your standard project (Main-Project).]]>
@@ -1072,8 +1101,10 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Bricks.]]>
-
-
+
+
+
+
@@ -1092,7 +1123,8 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
In diesem Fall sind dies alle Seiten des Projektes, da Seiten des Projektes Unterseiten der Startseite sind.]]>
- In this case these are all pages of the project, because pages of the project are subpages of the home page.]]>
+
+ In this case these are all pages of the project, because pages of the project are subpages of the home page.]]>
@@ -1110,7 +1142,8 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
Dann vergessen Sie nicht die Änderungen zu speichern ]]>
- Then don't forget to save the changes.]]>
+
+ Then don't forget to save the changes.]]>
Gratulation.
Sie haben erfolgreich die Bausteine-Tour absolviert ]]>
@@ -1237,14 +1270,14 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -1253,14 +1286,14 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -1312,21 +1345,22 @@ Möchten Sie die Bausteine aus der Bausteinzone entfernen?]]>
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/QUI/Bricks/Manager.php b/src/QUI/Bricks/Manager.php
index 98394e5a093245ef02b191db27febf0bea9f8b19..43c8515fbd0d735107e8d2ea7fe3ce9a950c45b1 100644
--- a/src/QUI/Bricks/Manager.php
+++ b/src/QUI/Bricks/Manager.php
@@ -887,13 +887,37 @@ class Manager
}
}
+ $type = $Brick->getAttribute('type');
+
+ $checkType = function ($type) {
+ if ($type === 'content') {
+ return true;
+ }
+
+ if (\is_callable($type)) {
+ return true;
+ }
+
+ if (\class_exists($type)) {
+ return true;
+ }
+
+ throw new QUI\Exception(
+ 'quiqqer/bricks',
+ 'exception.type.is.not.allowed'
+ );
+ };
+
+ $checkType($type);
+
+
// update
QUI::getDataBase()->update($this->getTable(), [
'title' => $Brick->getAttribute('title'),
'frontendTitle' => $Brick->getAttribute('frontendTitle'),
'description' => $Brick->getAttribute('description'),
'content' => $Brick->getAttribute('content'),
- 'type' => $Brick->getAttribute('type'),
+ 'type' => $type,
'settings' => \json_encode($Brick->getSettings()),
'customfields' => \json_encode($customfields),
'areas' => $areaString,