<?php // add autogenerated meta description $this->headMeta()->setName('description', \Website\Tool\Text::cutStringRespectingWhitespace(\Website\Tool\Text::getStringAsOneLine(strip_tags($this->wysiwyg("content")->getData())), 160)); ?> <section class="area-wysiwyg"> <?php $this->glossary()->start(); ?> <?php echo $this->wysiwyg("content"); ?> <?php $this->glossary()->stop(); ?> </section>
<?php // set page meta-data $this->headTitle()->set($this->article->getTitle()); $description = strip_tags($this->article->getText()); $description = \Website\Tool\Text::getStringAsOneLine($description); $description = \Website\Tool\Text::cutStringRespectingWhitespace($description, 160); $this->headMeta($description, "description"); ?> <section class="area-wysiwyg"> <div class="page-header"> <h1><?php echo $this->article->getTitle(); ?> </h1> </div> <?php $this->template("blog/meta.php"); ?> <hr /> <?php if ($this->article->getPosterImage()) { ?> <?php echo $this->article->getPosterImage()->getThumbnail("content")->getHTML(); ?> <br /><br />