Skip to content

Commit

Permalink
#1453 Adds missing regions to search page
Browse files Browse the repository at this point in the history
  • Loading branch information
timurtripp committed Nov 18, 2024
1 parent 7033ad1 commit 8b6ce61
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 25 deletions.
23 changes: 8 additions & 15 deletions templates/layout/page--search.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,12 @@
*/
#}

{{ attach_library('boulder_base/ucb-search-page') }}

<div class="layout-container ucb-page-container">
{{ block("page_header", "page.html.twig") }}
<div{{ create_attribute({ class: ['ucb-page-content', ucb_heading_font == 'normal' ? 'ucb-heading-font-normal'] }) }}>
{{ page.highlighted }}
{{ page.help }}
<main role="main">
<div class="ucb-content-wrapper ucb-search-page-content container">
<h1>Search</h1>
{{ page.content }}
</div>
</main>
{% extends 'page.html.twig' %}
{% block breadcrumb_region %}{% endblock %}
{% block content %}
{{ attach_library('boulder_base/ucb-search-page') }}
<div class="container ucb-content-wrapper ucb-search-page-content ucb-contained-row">
<h1>Search</h1>
{{ page.content }}
</div>
{{ block("page_footer", "page.html.twig") }}
</div>
{% endblock %}
23 changes: 13 additions & 10 deletions templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,13 @@

{# MAIN PAGE CONTENT #}
<div{{ create_attribute({ class: ['ucb-page-content', ucb_heading_font == 'normal' ? 'ucb-heading-font-normal'] }) }}>
{% if (show_breadcrumb) and (page.breadcrumb|render|striptags|trim|length > 0) %}
<div class="ucb-breadcrumb-region">
{{ page.breadcrumb }}
</div>
{% endif %}
{% block breadcrumb_region %}
{% if show_breadcrumb and page.breadcrumb|render|striptags|trim|length > 0 %}
<div class="ucb-breadcrumb-region">
{{ page.breadcrumb }}
</div>
{% endif %}
{% endblock %}

{{ page.highlighted }}

Expand Down Expand Up @@ -254,15 +256,15 @@
{{ page.sidebar }}
</div>
<div class="ucb-layout-main col-12 col-lg-8 ucb-has-sidebar">
{{ page.content }}
{{ block('content') }}
</div>
</div>
</div>
{% else %}
<div class="ucb-layout-container ucb-sidebar-container container">
<div class="layout-row row">
<div class="ucb-layout-main col-12 col-lg-8 ucb-has-sidebar">
{{ page.content }}
{{ block('content') }}
</div>
<div class="ucb-left-right ucb-sidebar col-12 col-lg-4">
{{ page.sidebar }}
Expand All @@ -272,7 +274,9 @@
{% endif %}
{% else %}
<div class="clearfix">
{{ page.content }}
{% block content %}
{{ page.content }}
{% endblock %}
</div>
{% endif %}
{% endblock %}
Expand Down Expand Up @@ -309,8 +313,7 @@
{% block page_footer %}
<footer class="ucb-homepage-footer background-black">
{% if page.footer|render or ucb_footer_menu_default_links %}
<div
class="ucb-footer-top">
<div class="ucb-footer-top">
{# {% if page.footer_cta|render %}
<div class="ucb-footer-container footer-cta-block container">
{{ page.footer_cta }}
Expand Down

0 comments on commit 8b6ce61

Please sign in to comment.