diff --git a/bin/Site/Category.js b/bin/Site/Category.js index 55b30b13cc2f4378d5dfd8faeeea7d4b7ac4b1d4..400b4dc543e5931bd795ab267526b146ecbd2cc0 100644 --- a/bin/Site/Category.js +++ b/bin/Site/Category.js @@ -82,6 +82,9 @@ define('package/quiqqer/bricks/bin/Site/Category', [ areas = JSON.decode( areas ); } + console.log( areas ); + console.warn( bricks ); + for ( i = 0, len = bricks.length; i < len; i++ ) { AC = self.$insertBrickAreaEdit( bricks[ i ] ); @@ -123,7 +126,7 @@ define('package/quiqqer/bricks/bin/Site/Category', [ }, /** - * Return the available for the site + * Return the available areas for the site * @param {Function} callback - callback function */ getBrickAreas : function(callback) diff --git a/composer.json b/composer.json index 21f4486cde1bb097b9538728692f90cb1719938d..13b0e811a1106573bc697e45905dea849d6c1105 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name" : "quiqqer/bricks", "type" : "quiqqer-plugin", - "description" : "QUI Brick Plugin", + "description" : "Bricks Module", "version" : "dev-dev", "license" : "MIT", diff --git a/lib/QUI/Bricks/Manager.php b/lib/QUI/Bricks/Manager.php index c9f8deb163e4526b6d676e3c508162efa6e50569..b959cadcb13cd4e7af3099374a829318ad02c312 100644 --- a/lib/QUI/Bricks/Manager.php +++ b/lib/QUI/Bricks/Manager.php @@ -112,6 +112,8 @@ public function getAreasByProject(Project $Project, $siteType=false) $templates[] = $vhost['template']; } + $templates = array_unique( $templates ); + // get bricks foreach ( $templates as $template ) { @@ -127,6 +129,8 @@ public function getAreasByProject(Project $Project, $siteType=false) ); } +// QUI\System\Log::writeRecursive( $bricks ); + return $bricks; } diff --git a/locale.xml b/locale.xml index f279dee0b2c1f60d271e4efe31207e8904262bc6..d69b8ffd2685d378fc03c58b16a27452bb297780 100644 --- a/locale.xml +++ b/locale.xml @@ -2,6 +2,23 @@ <locales> <groups name="quiqqer/bricks" datatype="php,js"> + <locale name="package.title"> + <de><![CDATA[Baustein Modul / Bricks]]></de> + <en><![CDATA[Bricks Module]]></en> + </locale> + <locale name="package.description"> + <de><![CDATA[ + Platzieren Sie hiermit Grafiken, Texte, Videos etc. + innerhalb eines Tamplates (einer Seite Ihrer Homepage) + beliebig und immer wieder neu, bis Sie mit dem Ergebnis zufrieden sind. + ]]> + </de> + <en><![CDATA[ + + ]]></en> + </locale> + + <locale name="menu.bricks.text"> <de><![CDATA[Bausteine]]></de> <en><![CDATA[Bricks-Manager]]></en>