countdown-8.x-1.8/templates/countdown-meta.html.twig

templates/countdown-meta.html.twig
{#
/**
 * @file
 * Default theme implementation for countdown meta information.
 *
 * Available variables:
 * - attributes: HTML attributes for the meta container.
 * - meta: The meta information array containing:
 *   - method: The loading method ('local' or 'cdn').
 *   - plugin_label: The library label.
 *   - installed: Boolean indicating if library is installed (local only).
 *   - path: The library path (local only, when installed).
 *   - version: The library version (local only, when installed).
 *   - cdn_provider: The CDN provider (cdn only).
 *   - rtl: Boolean indicating RTL support.
 *   - debug: Boolean indicating debug mode.
 *
 * @see template_preprocess_countdown_meta()
 *
 * @ingroup themeable
 */
#}
<div{{ attributes }}>
  <div class="countdown-meta-info">
    <dl class="countdown-meta-list">
      <dt>{{ 'Loading Method'|t }}</dt>
      <dd>{{ meta.method == 'cdn' ? 'CDN'|t : 'Local'|t }}</dd>

      <dt>{{ 'Active Library'|t }}</dt>
      <dd>{{ meta.plugin_label }}</dd>

      {% if meta.method == 'local' %}
        <dt>{{ 'Status'|t }}</dt>
        <dd>
          {% if meta.installed %}
            <strong class="color-success">{{ 'Installed'|t }}</strong>
          {% else %}
            <strong class="color-error">{{ 'Not Installed'|t }}</strong>
          {% endif %}
        </dd>

        {% if meta.installed and meta.path %}
          <dt>{{ 'Path'|t }}</dt>
          <dd><code>{{ meta.path }}</code></dd>
        {% endif %}

        {% if meta.installed and meta.version %}
          <dt>{{ 'Version'|t }}</dt>
          <dd><strong>{{ meta.version }}</strong></dd>
        {% endif %}
      {% endif %}

      {% if meta.method == 'cdn' and meta.cdn_provider %}
        <dt>{{ 'CDN Provider'|t }}</dt>
        <dd>{{ meta.cdn_provider|capitalize }}</dd>
      {% endif %}

      <dt>{{ 'RTL Support'|t }}</dt>
      <dd>{{ meta.rtl ? 'Enabled'|t : 'Disabled'|t }}</dd>

      <dt>{{ 'Debug Mode'|t }}</dt>
      <dd>{{ meta.debug ? 'Enabled'|t : 'Disabled'|t }}</dd>
    </dl>
  </div>
</div>

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

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