Browse Source

views fix

master
rdrew 3 weeks ago
parent
commit
3910870913
  1. 4
      css/components/footer.css
  2. 28
      templates/views/views-view-fields--solr-search-content.html.twig

4
css/components/footer.css

@ -84,9 +84,13 @@ footer.site-footer .block {
.lmmi_logo { .lmmi_logo {
margin-bottom: 1em; margin-bottom: 1em;
} }
@media ((min-width:700px)) {
.lmmi_logo, .lmmi_logo,
.upei_logo, .upei_logo,
.social_icons { .social_icons {
padding-right: 4em; padding-right: 4em;
} }
}

28
templates/views/views-view-fields--solr-search-content.html.twig

@ -1,23 +1,25 @@
<div class="grid-item"> <div class="grid-item">
{% for field in fields -%} {% for field in fields -%}
{{ field.separator }} {{ field.separator }}
{%- if field.wrapper_element -%} {%- if field.wrapper_element -%}
<{{ field.wrapper_element }}{{ field.wrapper_attributes }}> <{{ field.wrapper_element }}{{ field.wrapper_attributes }}>
{%- endif %} {%- endif %}
{%- if field.label -%} {# {%- if field.label -%} #}
{%- if field.label and field.content|striptags|trim is not empty -%}
{%- if field.label_element -%} {%- if field.label_element -%}
<{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{ field.label_element }}> <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{
field.label_element }}>
{%- else -%} {%- else -%}
{{ field.label }}{{ field.label_suffix }} {{ field.label }}{{ field.label_suffix }}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if field.element_type -%} {%- if field.element_type -%}
<{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }}</{{ field.element_type }}> <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }}</{{ field.element_type }}>
{%- else -%} {%- else -%}
{{ field.content }} {{ field.content }}
{%- endif %}
{%- if field.wrapper_element -%}
</{{ field.wrapper_element }}>
{%- endif %} {%- endif %}
{%- if field.wrapper_element -%} {%- endfor %}
</{{ field.wrapper_element }}>
{%- endif %}
{%- endfor %}
</div> </div>

Loading…
Cancel
Save