Lines Matching refs:news
15 public function render(string $innerHtml, string $formHtml, ModelNews $news): string { argument
18 … $html .= '<div class="card card-outline-' . $news->category . ' card-outline-vyfuk-orange">';
29 protected function getHeader(ModelNews $news) { argument
30 return '<h4 class="card-title">' . $news->title . '</h4>' .
32 '<small class="text-muted">' . $news->getLocalDate(function ($key) {
170 protected function getText(ModelNews $news) { argument
171 return $news->renderText();
178 protected function getSignature(ModelNews $news) { argument
180 … <a href="mailto:' . hsc($news->authorEmail) . '" class="mail" title="' . hsc($news->authorEmail) .
181 '"><span class="fa fa-envelope"></span>' . hsc($news->authorName) . '</a>
189 protected function getLink(ModelNews $news) { argument
190 if ($news->hasLink()) {
191 if (preg_match('|^https?://|', $news->linkHref)) {
192 $href = hsc($news->linkHref);
194 $href = wl($news->linkHref, null, true);
196 … return '<p><a class="btn btn-secondary" href="' . $href . '">' . $news->linkTitle . '</a></p>';