Mercurial > hg > isophonics-drupal-site
view core/modules/forum/templates/forum-icon.html.twig @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
{# /** * @file * Default theme implementation to display a status icon for a forum post. * * Available variables: * - attributes: HTML attributes to be applied to the wrapper element. * - class: HTML classes that determine which icon to display. May be one of * 'hot', 'hot-new', 'new', 'default', 'closed', or 'sticky'. * - title: Text alternative for the forum icon. * - icon_title: Text alternative for the forum icon, same as above. * - new_posts: '1' when this topic contains new posts, otherwise '0'. * - first_new: '1' when this is the first topic with new posts, otherwise '0'. * - icon_status: Indicates which status icon should be used. * * @see template_preprocess_forum_icon() * * @ingroup themeable */ #} <div{{ attributes }}> {% if first_new -%} <a id="new"></a> {%- endif %} <span class="visually-hidden">{{ icon_title }}</span> </div>