annotate core/modules/forum/templates/forum-icon.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation to display a status icon for a forum post.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - attributes: HTML attributes to be applied to the wrapper element.
Chris@0 8 * - class: HTML classes that determine which icon to display. May be one of
Chris@0 9 * 'hot', 'hot-new', 'new', 'default', 'closed', or 'sticky'.
Chris@0 10 * - title: Text alternative for the forum icon.
Chris@0 11 * - icon_title: Text alternative for the forum icon, same as above.
Chris@0 12 * - new_posts: '1' when this topic contains new posts, otherwise '0'.
Chris@0 13 * - first_new: '1' when this is the first topic with new posts, otherwise '0'.
Chris@0 14 * - icon_status: Indicates which status icon should be used.
Chris@0 15 *
Chris@0 16 * @see template_preprocess_forum_icon()
Chris@0 17 *
Chris@0 18 * @ingroup themeable
Chris@0 19 */
Chris@0 20 #}
Chris@0 21 <div{{ attributes }}>
Chris@0 22 {% if first_new -%}
Chris@0 23 <a id="new"></a>
Chris@0 24 {%- endif %}
Chris@0 25 <span class="visually-hidden">{{ icon_title }}</span>
Chris@0 26 </div>