[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [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 <69d4fbb0ec0b8_3b1a74698272ea@gitlab-sidekiq-low-urgency-cpu-bound-v2-7fd4f585b8-zmhpp.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
48d3449a by Jonny Bradley at 2026-04-07T12:34:55+00:00
[ENH][FIX] theme: Make the header optionally fixed width
---
* [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


(cherry picked from commit 26c0dd3e2f17a651518a0f6a9bf19b265c0aeec4)

b2e07d5e [ENH][FIX] theme: Make the header (in social layout) optionally have the same...
86a39293 [FIX] theme: Better wording

Co-authored-by: Jonny Bradley <[email protected]>

See merge request tikiwiki/tiki!9964

- - - - -


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/48d3449a4577ed78264bfd086e9dfcef0c2fa32b

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/48d3449a4577ed78264bfd086e9dfcef0c2fa32b
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.