examples-3.x-dev/modules/js_example/templates/description.html.twig

modules/js_example/templates/description.html.twig
{#
/**
 * @file
 * Default theme implementation for the JavaScript Example module's description.
 */
#}

{% set js_colors = path('js_example.colors') %}
{% set js_accordion = path('js_example.accordion') %}

{% trans %}

<p>Drupal includes jQuery and jQuery UI.</p>

<p>We have two examples of using these:</p>

<ol>
  <li>
    <p><a href={{ js_accordion }}>An accordion-style section reveal effect</a>:
        This demonstrates calling a JavaScript function using Drupal rendering
        system.
  </li>
  <li>
    <p><a href={{ js_colors }}>Sorting according to numeric weight</a>: This
        demonstrates attaching your own JavaScript code to individual page
        elements using Drupal rendering system.</p>
  </li>
</ol>

{% endtrans %}

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

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