Lines Matching refs:news
16 public function render(string $innerHtml, string $formHtml, ModelNews $news): string { argument
19 $html .= '<div class="bs-callout mb-3 bs-callout-' . $news->category . '">';
150 protected function getText(ModelNews $news): ?string { argument
151 return $news->renderText();
154 protected function getSignature(ModelNews $news): string { argument
156 …'<a href="mailto:' . hsc($news->authorEmail) . '" class="mail" title="' . hsc($news->authorEmail) .
157 '"><span class="fa fa-envelope"></span>' . hsc($news->authorName) . '</a>' .
161 protected function getHeader(ModelNews $news): string { argument
162 return '<h4>' . $news->title .
163 '<small class="float-right">' . $news->getLocalDate(function ($key) {
168 protected function getLink(ModelNews $news): string { argument
169 if ($news->hasLink()) {
170 if (preg_match('|^https?://|', $news->linkHref)) {
171 $href = hsc($news->linkHref);
173 $href = wl($news->linkHref, null, true);
175 … return '<p><a class="btn btn-secondary" href="' . $href . '">' . $news->linkTitle . '</a></p>';