epub_reader_framework-2.0.0-alpha2/tests/modules/epub_reader_framework_implementation_test/templates/node--reader-chapter.html.twig

tests/modules/epub_reader_framework_implementation_test/templates/node--reader-chapter.html.twig
{#
/**
 * @file
 * Theme override to display a node reader-publication.
 *
 *   - Wrap the entire content for a chapter in
 *     `<div id="js-epub-reader-framework-content">` and `</div>`. This
 *     will eventually be fully replaced by the next chapter then.
 *
 * @see core/themes/classy/templates/content/node.html.twig
 */
#}
{% set classes = [
  'node',
  'node--type-' ~ node.bundle|clean_class,
  node.isPromoted() ? 'node--promoted',
  node.isSticky() ? 'node--sticky',
  not node.isPublished() ? 'node--unpublished',
  view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
] %}
{{ attach_library('classy/node') }}

<div id="js-epub-reader-framework-content">
  <article{{ attributes.addClass(classes) }}>

    {{ title_prefix }}
    {% if label %}
      <h2{{ title_attributes }}>
        <a href="{{ url }}" rel="bookmark">{{ label }}</a>
      </h2>
    {% endif %}
    {{ title_suffix }}

    {% if display_submitted %}
      <footer class="node__meta">
        {{ author_picture }}
        <div{{ author_attributes.addClass('node__submitted') }}>
          {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
          {{ metadata }}
        </div>
      </footer>
    {% endif %}

    <div{{ content_attributes.addClass('node__content') }}>
      {{ content }}

      <div class="node__previous-next">
        {{ reader_previous_next }}
      </div>
    </div>

  </article>
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc