commercetools-8.x-1.2-alpha1/templates/commercetools-summary.html.twig

templates/commercetools-summary.html.twig
{# 
/**
 * @file
 * Template for displaying a commercetools project summary.
 *
 * Available variables:
 * - project_settings: Contains all project summary information.
 *   - key: The key of the project.
 *   - name: The name of the project.
 *   - countries: A list of countries associated with the project.
 *   - currencies: A list of currencies used in the project.
 *   - languages: A list of languages used in the project.
 *   - customer_groups: A list of customer groups in the project.
 *
 * @ingroup themeable
 */
#}
<div class="container">
  <h1>{{ 'Shop Summary'|t }}</h1>

  <table class="details">
    <tbody>
      <tr>
        <th>{{ 'Project Key:'|t }}</th>
        <td>{{ project_settings.key|e }}</td>
      </tr>
      <tr>
        <th>{{ 'Project Name:'|t }}</th>
        <td>{{ project_settings.name|e }}</td>
      </tr>
      {% if project_settings.countries %}
        <tr>
          <th>{{ 'Countries Supported:'|t }}</th>
          <td>{{ project_settings.countries|join(', ') }}</td>
        </tr>
      {% endif %}

      {% if project_settings.currencies %}
        <tr>
          <th>{{ 'Supported Currencies:'|t }}</th>
          <td>{{ project_settings.currencies|join(', ') }}</td>
        </tr>
      {% endif %}

      {% if project_settings.languages %}
        <tr>
          <th>{{ 'Supported Languages:'|t }}</th>
          <td>{{ project_settings.languages|join(', ')|upper }}</td>
        </tr>
      {% endif %}

      {% if project_settings.customerGroups %}
        <tr>
          <th>{{ 'Customer Groups:'|t }}</th>
          <td>{{ project_settings.customerGroups|join(', ')|upper }}</td>
        </tr>
      {% endif %}
    </tbody>
  </table>
</div>

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

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