Skip to content

Commit

Permalink
Merge pull request #1482 from CuBoulder/issue/1453
Browse files Browse the repository at this point in the history
Adds missing regions to search pages
  • Loading branch information
jcsparks authored and web-flow committed Nov 18, 2024
2 parents a43d2b8 + 8b6ce61 commit 8ec14af
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Adds missing regions to search pages
Previously, some regions were missing from search pages, such as the sidebar regions. This update adds those regions to search pages to match our other pages, allowing blocks to be placed in the sidebar using block layout. This fix is needed ASAP for the homepage site.

[bug] Resolves CuBoulder/tiamat-theme#1453
---

- ### Change footer to be sorted into rows
Changes the direction of the footer to be flexed into rows instead.
---
Expand Down
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 8ec14af

Please sign in to comment.