echo CSRFProtection::tokenTag(); ?> <input type="hidden" name="comsubmit" value="<?php echo $new['news_id']; ?> "> <div align="center"> <textarea class="add_toolbar wysiwyg" name="comment_content" style="width:70%" rows="8" cols="38" wrap="virtual" placeholder="<?php echo _('Geben Sie hier Ihren Kommentar ein!'); ?> "></textarea> <br> <?php echo Studip\Button::createAccept(_('Absenden')); ?> </div> </form> <? endif ?> <? else: ?> <a href="<?php echo ContentBoxHelper::href($new['news_id'], array("comments" => 1)); ?> "> <?php echo sprintf(_('Kommentare lesen (%s) / Kommentar schreiben'), StudipComment::NumCommentsForObject($new['news_id'])); ?> </a> <? endif; ?> </footer> <? endif; ?>
</span> <? if (Config::get()->NEWS_DISPLAY >= 2 || $new->havePermission('edit')): ?> <span title="<?php echo _('Aufrufe'); ?> " class='news_visits' style="color: #050"> <?php echo object_return_views($new['news_id']); ?> </span> <? endif; ?> <? if ($new['allow_comments']) : $num = StudipComment::NumCommentsForObject($new['news_id']); $visited = object_get_visit($new['news_id'], 'news', false, false); $isnew = StudipComment::NumCommentsForObjectSinceLastVisit($new['news_id'], $visited, $GLOBALS['user']->id); ?> <? if ($num): ?> <? if ($isnew): ?> <span class="news_comments_indicator" title="<?php echo sprintf(_('%s neue(r) Kommentar(e)'), $isnew); ?> "> <?php echo Icon::create("chat", "new")->asImg(); ?> <? else: ?> <span class="news_comments_indicator" title="<?php echo sprintf(_('%s Kommentare'), $num);