"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.9/core/themes/bartik/templates/classy/content/mark.html.twig" (18 Nov 2020, 503 Bytes) of package /linux/www/drupal-8.9.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {#
    2 /**
    3  * @file
    4  * Theme override for a marker for new or updated content.
    5  *
    6  * Available variables:
    7  * - status: Number representing the marker status to display. Use the constants
    8  *   below for comparison:
    9  *   - MARK_NEW
   10  *   - MARK_UPDATED
   11  *   - MARK_READ
   12  */
   13 #}
   14 {% if logged_in %}
   15   {% if status is constant('MARK_NEW') %}
   16     <span class="marker">{{ 'New'|t }}</span>
   17   {% elseif status is constant('MARK_UPDATED') %}
   18     <span class="marker">{{ 'Updated'|t }}</span>
   19   {% endif %}
   20 {% endif %}