<?php /** * @var string $my_url * @var Text $text * @var bool $show_title * @var bool $insert_tooltips */ $html_text = preg_replace_callback("/CREATE_URL\\((?<url>[^\\)]+)\\)/siu", function ($matches) { return CHtml::encode(Yii::app()->createUrl($matches["url"])); }, $text->text); if ($insert_tooltips) { $html_text = RISTools::insertTooltips($html_text); } ?> <?php if ($this->binContentAdmin()) { ?> <a href="#" style="display: inline; float: right;" id="text_edit_caller"> <span class="mdi-content-create"></span> Bearbeiten </a> <a href="#" style="display: none; float: right;" id="text_edit_aborter"> <span class="mdi-content-clear"></span> Abbrechen </a> <?php } if ($show_title) { echo '<h1>' . CHtml::encode($text->titel) . '</h1>'; } if ($this->binContentAdmin()) {