[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH][FIX] theme: Make the header optionally fixed width

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69c4299567cf0_3b18e05c-3bc@gitlab-sidekiq-low-urgency-cpu-bound-v2-559748c657-sfxc6.mail>

Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
26c0dd3e by Jonny Bradley at 2026-03-25T18:22:05+00:00
[ENH][FIX] theme: Make the header optionally fixed width
---
* [FIX] theme: Better wording

* [ENH][FIX] theme: Make the header (in social layout) optionally have the same fixed width as the rest of the content (restores the fix from !9743 which redressed a regresion from 24.x, since partially reverted in !9808)

See merge request tikiwiki/tiki!9853

- - - - -


3 changed files:

- lib/prefs/layout.php
- templates/admin/include_look.tpl
- templates/layouts/social/layout_view.tpl


Changes:

=====================================
lib/prefs/layout.php
=====================================
@@ -18,6 +18,18 @@ function prefs_layout_list()
             'tags' => ['basic'],
             'default' => '',
         ],
+        'layout_fixed_width_header' => [
+            'name' => tra('Layout fixed width header'),
+            'description' => tra('The width of the site\'s header will match the content area width.'),
+            'type' => 'flag',
+            'hint' => tra('The default is to use a full width header.'),
+            'dependencies' => [
+                'feature_fixed_width',
+                'layout_fixed_width',
+            ],
+            'tags' => ['basic'],
+            'default' => 'n',
+        ],
         'layout_tabs_optional' => [
             'name' => tra('Tabs optional'),
             'description' => tra('Users can choose not to have tabs. A <b>no tabs</b> button will be displayed.'),


=====================================
templates/admin/include_look.tpl
=====================================
@@ -127,6 +127,7 @@
             {preference name=feature_fixed_width}
             <div class="adminoptionboxchild" id="feature_fixed_width_childcontainer">
                 {preference name=layout_fixed_width}
+                {preference name=layout_fixed_width_header}
             </div>
             {preference name=site_layout}
             {preference name=site_layout_per_object}


=====================================
templates/layouts/social/layout_view.tpl
=====================================
@@ -37,7 +37,7 @@
         {if $prefs.theme_unified_admin_backend neq 'y' or $smarty.server.SCRIPT_NAME|strpos:'tiki-admin.php' === false}            
             <header
                 class="navbar navbar-expand-md tiki-top-nav-{$navbar_color_variant} navbar-{$navbar_color_variant} bg-{$navbar_color_variant} tiki-header-top fixed-top p-0">
-                <div class="container-fluid">
+                <div class="container{if $prefs.feature_fixed_width eq 'y' and $prefs.layout_fixed_width_header neq 'y'}-fluid{/if}">
                     {modulelist zone=top class="top_modules w-100 tiki-top-nav-{$navbar_color_variant} navbar-{$navbar_color_variant}-parent bg-{$navbar_color_variant}-parent" heading_text='{tr}Site identity, navigation, etc.{/tr}' role=banner}
                 </div>
             </header>



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/26c0dd3e2f17a651518a0f6a9bf19b265c0aeec4

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/26c0dd3e2f17a651518a0f6a9bf19b265c0aeec4
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.