Mercurial > hg > isophonics-drupal-site
annotate core/themes/classy/templates/field/link-formatter-link-separate.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 * Theme override of a link with separate title and URL elements. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - link: The link that has already been formatted by l(). |
Chris@0 | 8 * - title: (optional) A descriptive or alternate title for the link, which may |
Chris@0 | 9 * be different than the actual link text. |
Chris@0 | 10 * |
Chris@0 | 11 * @see template_preprocess() |
Chris@0 | 12 * @see template_preprocess_link_formatter_link_separate() |
Chris@0 | 13 */ |
Chris@0 | 14 #} |
Chris@0 | 15 {% spaceless %} |
Chris@0 | 16 <div class="link-item"> |
Chris@0 | 17 {% if title %} |
Chris@0 | 18 <div class="link-title">{{ title }}</div> |
Chris@0 | 19 {% endif %} |
Chris@0 | 20 <div class="link-url">{{ link }}</div> |
Chris@0 | 21 </div> |
Chris@0 | 22 {% endspaceless %} |