Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Feb 17, 2023
1 parent 5abdb0d commit c5ec9a6
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

{% import "@ibexadesign/content/parts/macros.html.twig" as macros %}

{# {% set image = content.fieldValue('image') %}
{% set image_mobile = content.fieldValue('image_mobile') %} #}

{% block content %}
<article class="view-component view-component-quote quote-style-1">
{% if not content.fields.title.empty %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
{% endblock %}

{% block structuredData %}
{# structured data #}
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
{% endblock %}

{% block structuredData %}
{# structured data #}
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand Down
1 change: 0 additions & 1 deletion templates/themes/app/content/views/full/ng_news.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
{% endblock %}

{% block structuredData %}
{# structured data #}
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
{% endblock %}

{% block structuredData %}
{# structured data #}
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand Down
3 changes: 0 additions & 3 deletions templates/themes/app/content/views/zigzag/ng_banner.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
<div class="short">
{{ ng_render_field(content.fields.description) }}
</div>
{# {% if not content.fields.link_label.empty %}
<a class="btn btn-default" href="#">{{ content.fields.link_label.value.text }}</a>
{% endif %} #}
</div>

</article>
2 changes: 0 additions & 2 deletions templates/themes/app/emails/info_collection/email.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
{{ site_name }} – {{ ibexa_content_name(content) }} [{{ collected_fields.sender_email.value }}]
{% endapply %}{% endblock %}

{#% block sender %}{{ collected_fields.sender_email.value }}{% endblock %#}

{% block recipient %}{{ ibexa_field_value(content, 'recipient') }}{% endblock %}

{% block email %}
Expand Down
5 changes: 0 additions & 5 deletions templates/themes/app/forms/info_collection_base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
{% else %}
<p>{{ 'ngsite.collected_info.success_text'|trans }}</p>
{% endif %}

{# <p>{{ 'ngsite.collected_info.information_collected'|trans }}:</p>#}
{# {% for collected_field, collected_field_value in collected_fields %}#}
{# <p><strong>{{ content.fields[collected_field].name }}:</strong> {{ collected_field_value }}</p>#}
{# {% endfor %}#}
</div>
{% endblock %}
{% endif %}
13 changes: 5 additions & 8 deletions templates/themes/app/forms/theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
{%- endblock form_widget_simple -%}

{%- block hidden_row -%}
{#{{- form_label(form) -}}#}
{{ block('hidden_widget') }}
{{- form_errors(form) -}}
{%- endblock hidden_row -%}
Expand Down Expand Up @@ -163,13 +162,11 @@
{% endblock %} #}

{%- block form_widget_compound -%}
{# <div {{ block('widget_container_attributes') }}>#}
{%- if form is rootform -%}
{{ form_errors(form) }}
{%- endif -%}
{{- block('form_rows') -}}
{{- form_rest(form) -}}
{#</div>#}
{%- if form is rootform -%}
{{ form_errors(form) }}
{%- endif -%}
{{- block('form_rows') -}}
{{- form_rest(form) -}}
{%- endblock form_widget_compound -%}

{%- block checkbox_widget -%}
Expand Down
8 changes: 7 additions & 1 deletion templates/themes/app/modules/knp_menu/menu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
{% if item.displayed %}
{# building the class of the item #}
{%- set classes = item.attribute('class') is not empty ? [item.attribute('class')] : [] %}

{# NGSTACK-448 comment out default matcher so it doesn't add current/active class on any items #}
{#{%- if matcher.isCurrent(item) %}#}
{#{%- set classes = classes|merge([options.currentClass]) %}#}
{#{%- elseif matcher.isAncestor(item, options.matchingDepth) %}#}
{# END NGSTACK-448 #}

{%- if matcher.isAncestor(item, options.matchingDepth) %}
{%- set classes = classes|merge([options.ancestorClass]) %}
{%- endif %}
Expand All @@ -34,11 +36,13 @@
{%- if classes is not empty %}
{%- set attributes = attributes|merge({'class': classes|join(' ')}) %}
{%- endif %}

{# NGSTACK-448 add data-location-id parameter to all menu items with Ibexa location #}
{%- if item.extras.ibexa_location is defined and item.extras.ibexa_location is not empty %}
{%- set attributes = attributes|merge({'data-location-id': item.extras.ibexa_location.id}) %}
{%- endif %}
{# END NGSTACK-448 #}

{# displaying the item #}
{% import _self as knp_menu %}
<li{{ knp_menu.attributes(attributes) }}>
Expand All @@ -47,10 +51,12 @@
{%- else %}
{{ block('spanElement') }}
{%- endif %}
{# render the list of children#}

{# render the list of children #}
{%- set childrenClasses = item.childrenAttribute('class') is not empty ? [item.childrenAttribute('class')] : [] %}
{%- set childrenClasses = childrenClasses|merge(['menu_level_' ~ item.level]) %}
{%- set listAttributes = item.childrenAttributes|merge({'class': childrenClasses|join(' ') }) %}

{{ block('list') }}
</li>
{% endif %}
Expand Down

0 comments on commit c5ec9a6

Please sign in to comment.