Skip to content

Commit

Permalink
Reordered header and sidebar variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoreno.rodriguez committed Jan 8, 2024
1 parent 80aac5b commit 65aedb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
{# Define if sidebar is shown in the page #}
{% set show_sidebar = header_var('show_sidebar')|defined(false) %}

{# Configuration of header and sidebar buttons #}
{% set icon_lang = theme_var('menu_langswitcher')|defined('false') %}
{% set icon_search = theme_var('menu_search')|defined('false') %}
{% set icon_login = theme_var('menu_login')|defined('false') %}
{% set logoImageHeader = theme_var('type_logo_header')|defined('text') %}

{# Define if the primary image and the attributes of width and height are shown #}
{% set show_image = header_var('show_pageimage')|defined(true) %}
{% set image = page.media[page.header.primaryImage] ?: page.media.all|filter((v, k) => k != page.header.avatarImage and (v.type == 'image' or v.type == 'vector'))|first %}
Expand Down
5 changes: 0 additions & 5 deletions templates/partials/header.html.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{# Configuration of navbar buttons #}
{% set icon_lang = theme_var('menu_langswitcher')|defined('false') %}
{% set icon_search = theme_var('menu_search')|defined('false') %}
{% set icon_login = theme_var('menu_login')|defined('false') %}
{% set logoImageHeader = theme_var('type_logo_header')|defined('text') %}
<header id="header">

<div class="logo">
Expand Down

0 comments on commit 65aedb5

Please sign in to comment.