flippy.html.twig in Flippy 8
Default theme implementation for the flippy pager.
Available variables:
- node: The current node.
- first: The first pager link.
- prev: The previous pager link.
- random: The random pager link.
- next: The first pager link.
- last: The last pager link.
See also
2 theme calls to flippy.html.twig
- FlippyBlock::build in src/
Plugin/ Block/ FlippyBlock.php - Implements \Drupal\block\BlockBase::build().
- flippy_node_view in ./
flippy.module - Implements hook_ENTITY_TYPE_view() for node entities.
File
templates/flippy.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the flippy pager.
- *
- * Available variables:
- * - node: The current node.
- * - first: The first pager link.
- * - prev: The previous pager link.
- * - random: The random pager link.
- * - next: The first pager link.
- * - last: The last pager link.
- *
- * @see template_preprocess_flippy()
- *
- * @ingroup themeable
- */
- #}
- <ul class="flippy">
- {% if first %}
- <li class="flippy-first">{{ first }}</li>
- {% endif %}
- {% if prev %}
- <li class="flippy-previous">{{ prev }}</li>
- {% endif %}
- {% if random %}
- <li class="flippy-random">{{ random }}</li>
- {% endif %}
- {% if next %}
- <li class="flippy-next">{{ next }}</li>
- {% endif %}
- {% if last %}
- <li class="flippy-last">{{ last }}</li>
- {% endif %}
- </ul>