diff --git a/blog/entry.php b/blog/entry.php index eba0f5b260aacaa4ddaf0ed5d17177df89759f2e..ca164459d74abd87a8ae16d3dd53cadd05e1e86e 100644 --- a/blog/entry.php +++ b/blog/entry.php @@ -151,3 +151,6 @@ 'nextSiblings' => $nextSiblings, 'MetaList' => $MetaList ]); + +$Author = new \QUI\Blog\Controls\Author(); +$Author->getBody(); diff --git a/bricks.xml b/bricks.xml new file mode 100644 index 0000000000000000000000000000000000000000..29b2c32c0f196c07ba883a27c6517e089116829f --- /dev/null +++ b/bricks.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<quiqqer> + <bricks> + + <!-- author --> + <brick control="\QUI\Blog\Controls\Author"> + + <title> + <locale group="quiqqer/blog" var="blog.control.author.title"/> + </title> + <description> + <locale group="quiqqer/blog" var="blog.control.author.description"/> + </description> + + </brick> + + </bricks> +</quiqqer> diff --git a/lib/QUI/Blog/Controls/Author.php b/lib/QUI/Blog/Controls/Author.php index cf3ac4de2f23811e8834054b2d6ec50ea66d8839..839b166a4ec1cce06b2959d6eb37325e235f0aa8 100644 --- a/lib/QUI/Blog/Controls/Author.php +++ b/lib/QUI/Blog/Controls/Author.php @@ -23,13 +23,6 @@ class Author extends QUI\Control */ public function __construct($attributes = []) { - // default options - $this->setAttributes([ - 'avatar' => false, - 'firstName' => false, - 'lastName' => false, - ]); - parent::__construct($attributes); $this->addCSSFile( diff --git a/locale.xml b/locale.xml index 55e58fa2b89de70e29db1936d45660cde12cde7b..654da800fb8c6c5c800b2fa37758778df3119a1e 100644 --- a/locale.xml +++ b/locale.xml @@ -397,5 +397,15 @@ <de><![CDATA[Weitere Blog-Einträge:]]></de> <en><![CDATA[More Blog-Entries:]]></en> </locale> + + <!-- author --> + <locale name="blog.control.author.title"> + <de><![CDATA[Blog: Autor]]></de> + <en><![CDATA[Blog: Author]]></en> + </locale> + <locale name="blog.control.author.description"> + <de><![CDATA[Abschnitt, der den Autor eines bestimmten Eintrags anzeigt]]></de> + <en><![CDATA[Section showing the author of a given entry]]></en> + </locale> </groups> </locales> \ No newline at end of file