Skip to content
Snippets Groups Projects
Commit 39785e88 authored by Alberto Siles's avatar Alberto Siles Committed by Alberto Siles
Browse files

Recover templates

parent 99a0b7b7
No related branches found
No related tags found
No related merge requests found
Showing
with 541 additions and 0 deletions
{% extends "@classy/block/block--system-menu-block.html.twig" %}
{#
/**
* @file
* Bartik's theme implementation for a menu block.
*
* @ingroup themeable
*/
#}
{% set show_anchor = "show-" ~ attributes.id|clean_id %}
{% set hide_anchor = "hide-" ~ attributes.id|clean_id %}
{% block content %}
<div{{ content_attributes.addClass('content') }}>
{# When rendering a menu without label, render a menu toggle. #}
<div class="menu-toggle-target menu-toggle-target-show" id="{{ show_anchor }}"></div>
<div class="menu-toggle-target" id="{{ hide_anchor }}"></div>
<a class="menu-toggle" href="#{{ show_anchor }}">{{ 'Menu'|t }}</a>
<a class="menu-toggle menu-toggle--hide" href="#{{ hide_anchor }}">{{ 'Menu'|t }}</a>
{{ content }}
</div>
{% endblock %}
{#
/**
* @file
* Default theme implementation to display a block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: array of HTML attributes populated by modules, intended to
* be added to the main container tag of this template.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - content_attributes: Same as attributes, except applied to the main content
* tag that appears in the template.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
*
* @see template_preprocess_block()
*
* @ingroup themeable
*/
#}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
'card',
]
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<div class="card-header">
<h2{{ title_attributes }}>{{ label }}</h2>
</div>
{% endif %}
{{ title_suffix }}
{% block content %}
<div{{ content_attributes.addClass(['content', 'card-body']) }}>
{{ content }}
</div>
{% endblock %}
</div>
{% extends "@bootstrap_barrio/block/block.html.twig" %}
{#
/**
* @file
* Theme override for local actions (primary admin actions.)
*/
#}
{% block content %}
{% if content %}
<nav class="action-links">{{ content }}</nav>
{% endif %}
{% endblock %}
{# extends @bootstrap_barrio/layout/block.html.twig
/**
* @file
* Theme override for tabs.
*/
#}
{% block content %}
{% if content %}
<nav class="tabs" role="navigation" aria-label="{{ 'Tabs'|t }}">
{{ content }}
</nav>
{% endif %}
{% endblock %}
{% extends "@bootstrap_barrio/block/block.html.twig" %}
{#
/**
* @file
* Bartik's theme implementation for a search form block. Extends Classy's
* search form block template.
*
* Available variables:
* - content: The content of this block.
* - content_attributes: A list of HTML attributes applied to the main content
* tag that appears in the template.
*
* @see template_preprocess_block()
* @see search_preprocess_block()
*
* @ingroup themeable
*/
#}
{% block content %}
<div{{ content_attributes.addClass('content', 'container-inline') }}>
{{ parent() }}
</div>
{% endblock %}
{#
/**
* @file
* Bootstrap Barrio's theme implementation for a branding block.
*
* Each branding element variable (logo, name, slogan) is only available if
* enabled in the block configuration.
*
* Available variables:
* - site_logo: Logo for site as defined in Appearance or theme settings.
* - site_name: Name for site as defined in Site information settings.
* - site_slogan: Slogan for site as defined in Site information settings.
*/
#}
{% set attributes = attributes.addClass('site-branding') %}
{% if site_logo or site_name %}
<a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="navbar-brand">
{% if site_logo %}
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" class="img-fluid d-inline-block align-top" />
{% endif %}
{{ site_name }}
</a>
{% endif %}
{% if site_slogan %}
<div class="d-inline-block align-top site-name-slogan">
{{ site_slogan }}
</div>
{% endif %}
{#
/**
* @file
* Theme override for a menu block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: HTML attributes for the containing element.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: HTML attributes for the title element.
* - content_attributes: HTML attributes for the content element.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
*
* Headings should be used on navigation menus that consistently appear on
* multiple pages. When this menu block's label is configured to not be
* displayed, it is automatically made invisible using the 'visually-hidden' CSS
* class, which still keeps it visible for screen-readers and assistive
* technology. Headings allow screen-reader and keyboard only users to navigate
* to or skip the links.
* See http://juicystudio.com/article/screen-readers-display-none.php and
* http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
*/
#}
{%
set classes = [
'block',
'block-menu',
'navigation',
'menu--' ~ derivative_plugin_id|clean_class,
]
%}
{% set heading_id = attributes.id ~ '-menu'|clean_id %}
<nav role="navigation" aria-labelledby="{{ heading_id }}"{{ attributes.addClass(classes)|without('role', 'aria-labelledby') }}>
{# Label. If not displayed, we still provide it for screen readers. #}
{% if not configuration.label_display %}
{% set title_attributes = title_attributes.addClass('sr-only') %}
{% endif %}
{{ title_prefix }}
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2>
{{ title_suffix }}
{# Menu. #}
{% block content %}
{{ content }}
{% endblock %}
</nav>
{#
/**
* @file
* Default theme implementation to display a block.
*
* Available variables:
* - plugin_id: The ID of the block implementation.
* - label: The configured label of the block if visible.
* - configuration: A list of the block's configuration values.
* - label: The configured label for the block.
* - label_display: The display settings for the label.
* - provider: The module or other provider that provided this block plugin.
* - Block plugin specific settings will also be stored here.
* - content: The content of this block.
* - attributes: array of HTML attributes populated by modules, intended to
* be added to the main container tag of this template.
* - id: A valid HTML ID and guaranteed unique.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - content_attributes: Same as attributes, except applied to the main content
* tag that appears in the template.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
*
* @see template_preprocess_block()
*
* @ingroup themeable
*/
#}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
{% block content %}
<div{{ content_attributes.addClass('content') }}>
{{ content }}
</div>
{% endblock %}
</div>
{#
/**
* @file
* Default theme implementation for a 'form' element.
*
* Available variables:
* - attributes: A list of HTML attributes for the wrapper element.
* - children: The child elements of the form.
*
* @see template_preprocess_form()
*/
#}
<form{{ attributes.addClass('search-form', 'search-block-form', 'form-row') }}>
{{ children }}
</form>
{#
/**
* @file
* Default template for the 'plain' address formatter.
*
* Available variables:
* - given_name: Given name.
* - additional_name: Additional name.
* - family_name: Family name.
* - organization: Organization.
* - address_line1: First address line.
* - address_line2: Second address line.
* - postal_code: Postal code.
* - sorting_code: Sorting code.
* - dependent_locality: The dependent locality.
* - dependent_locality.code: Dependent locality code.
* - dependent_locality.name: Dependent locality name.
* - locality: The locality subdivision.
* - locality.code: Locality code.
* - locality.name: Locality name.
* - administrative_area: The administrative area subdivision.
* - administrative_area.code: Administrative area code.
* - administrative_area.name: Administrative area name.
* - country: The country.
* - country.code: Country code.
* - country.name: Country name.
*
* if a subdivision (dependent_locality, locality, administrative_area) was
* entered, the array will always have a code. If it's a predefined subdivision,
* it will also have a name. The code is always prefered.
*
* @ingroup themeable
*/
#}
<div class="address" translate="no">
{% if given_name or family_name %}
<h2>{{ given_name }} {{ family_name }}</h2>
{% endif %}
<dl class="row">
{% if organization %}
<dt class="col-sm-3">{% trans %}Organization{% endtrans %}:</dt>
<dd class="col-sm-9">{{ organization }}</dd>
{% endif %}
{% if address_line1 %}
<dt class="col-sm-3">{% trans %}Address{% endtrans %}:</dt>
<dd class="col-sm-9">
<p>{{ address_line1 }}</p>
{% if address_line2 %}
<p>{{ address_line2 }}</p>
{% endif %}
</dd>
{% endif %}
<dt class="col-sm-3">{% trans %}Locality{% endtrans %}:</dt>
<dd class="col-sm-9">
{% if dependent_locality.code %}
<p>{{ dependent_locality.code }}</p>
{% endif %}
{% if locality.code or postal_code or administrative_area.code %}
<p>{{ locality.code }} {{ postal_code }} {{ administrative_area.code }}</p>
{% endif %}
<p>{{ country.name }}</p>
</dd>
</dl>
</div>
<div{{ attributes}}>
<div class="cart-block--summary">
<a class="cart-block--link__expand" href="{{ url }}">
<span class="cart-block--summary__icon">{{ icon }}</span>
<span class="cart-block--summary__count">{{ count_text }}</span>
</a>
</div>
{% if content %}
<div class="cart-block--contents">
<div class="cart-block--contents__inner">
<div class="cart-block--contents__items">
{{ content }}
</div>
<div class="cart-block--contents__links">
{{ links }}
</div>
</div>
</div>
{% endif %}
</div>
{#
/**
* @file
*
* Empty cart page template.
*
* @ingroup themeable
*/
#}
<div class="cart-empty-page">
{{ 'Your shopping cart is empty.'|t }}
</div>
{#
/**
* @file
* Default theme implementation for the completion message.
*
* Available variables:
* - order_entity: The order entity.
* - payment_instructions: The payment instructions, if provided.
*
* @ingroup themeable
*/
#}
<div class="checkout-complete">
{{ 'Your order number is @number.'|t({'@number': order_entity.getOrderNumber}) }} <br>
{{ 'You can view your order on your account page when logged in.'|t }} <br>
{% if payment_instructions %}
<div class="checkout-complete__payment-instructions">
<h2>{{ 'Payment instructions'|t }}</h2>
{{ payment_instructions }}
</div>
{% endif %}
</div>
{#
/**
* @file
* A layout for the checkout registration form
*
* Available variables:
* - form: The form.
*
* @ingroup themeable
*/
#}
<div class="commerce-checkout-completion-register">
<div class="commerce-checkout-completion-register__text">
<h2>{%trans%}Create your account{%endtrans%}</h2>
<p>{%trans%}Set a password to save your details for next time.{%endtrans%}</p>
</div>
<div class="commerce-checkout-completion-register__form">
{{ form }}
</div>
</div>
{#
/**
* @file
* Two column template for the checkout form.
*
* Available variables:
* - form: The form.
*
* @ingroup themeable
*/
#}
<div class="layout-checkout-form">
<div class="row">
<div class="col-sm-6">
{{ form|without('sidebar', 'actions') }}
</div>
<div class="col-sm-6">
<h3>{% trans %} Order Summary {% endtrans %}</h3>
{{ form.sidebar }}
</div>
</div>
<div class="layout-region-checkout-footer">
{{ form.actions }}
</div>
</div>
{#
/**
* @file
* Two column template for the checkout form.
*
* Available variables:
* - form: The form.
*
* @ingroup themeable
*/
#}
<div class="layout-checkout-form clearfix">
{{ form }}
</div>
{#
/**
* @file
* Default theme implementation for the checkout order summary.
*
* The rendered order totals come from commerce-order-total-summary.html.twig.
* See commerce-order-receipt.html.twig for examples of manual total theming.
*
* Available variables:
* - order_entity: The order entity.
* - checkout_step: The current checkout step.
* - totals: An array of order total values with the following keys:
* - subtotal: The order subtotal price.
* - adjustments: An array of adjustment totals:
* - type: The adjustment type.
* - label: The adjustment label.
* - total: The adjustment total price.
* - weight: The adjustment weight, taken from the adjustment type.
* - total: The order total price.
* - rendered_totals: The rendered order totals.
*/
#}
<div{{ attributes.addClass('checkout-order-summary', 'table-responsive-sm') }}>
{% block order_items %}
<table class="table table-striped table-hover table-sm">
<tbody>
{% for order_item in order_entity.getItems %}
<tr>
<td>{{ order_item.getQuantity|number_format }}&nbsp;x</td>
{% if order_item.hasPurchasedEntity %}
<td>{{ order_item.getPurchasedEntity|commerce_entity_render('summary') }}</td>
{% else %}
<td>{{- order_item.label -}}</td>
{% endif %}
<td>{{- order_item.getTotalPrice|commerce_price_format -}}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block totals %}
{{ rendered_totals }}
{% endblock %}
</div>
\ No newline at end of file
{#
/**
* @file
* Default theme implementation for checkout panes.
*
* Available variables:
* - elements: The checkout pane's form elements.
*
* @ingroup themeable
*/
#}
{{ elements }}
{#
/**
* @file
* Default theme implementation for the checkout progress.
*
* Available variables:
* - steps: An array of steps, where each step has the following keys:
* - id: The step ID.
* - label: The step label.
* - position: 'previous', 'current' or 'next'.
*
* @ingroup themeable
*/
#}
<ol class="checkout-progress clearfix">
{% for step in steps %}
<li class="checkout-progress--step checkout-progress--step__{{ step.position }}">{{ step.label }}</li>
{% endfor %}
</ol>
<fieldset class="fieldgroup form-composite required js-form-item form-item js-form-wrapper form-wrapper" aria-required="true">
<legend>
<span class="fieldset-legend js-form-required form-required"><%= label %></span>
</legend>
<div class="fieldset-wrapper">
<div class="form-radios">
<% _.each(attributeValues, function(currentValue, key) { %>
<div class="custom-control custom-radio js-form-item form-item js-form-type-radio form-type-radio js-form-item-purchased-entity-attributes-attribute-<%= attributeId %> form-item-purchased-entity-attributes-attribute-<%= attributeId %>">
<input type="radio" class="custom-control-input form-radio" name="attribute_<%= attributeId %>" id="attribute_<%= attributeId %>_<%= currentValue.attribute_value_id %>" value="<%= currentValue.attribute_value_id %>" <%= (activeValue === currentValue.attribute_value_id) ? 'checked' : '' %>/>
<label class="custom-control-label control-label option" for="attribute_<%= attributeId %>_<%= currentValue.attribute_value_id %>">
<%= currentValue.name %>
</label>
</div>
<% }); %>
</div>
</div>
</fieldset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment