]> git.mxchange.org Git - friendica.git/commitdiff
Refactor display page
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 1 Apr 2020 22:39:40 +0000 (18:39 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 1 Apr 2020 23:06:11 +0000 (19:06 -0400)
- Fix header hierarchy
- Fix panel display

view/templates/settings/display.tpl
view/theme/frio/templates/settings/display.tpl

index a9f82c16b1f36837b2199cce437de96643b20fae..15247d874910c24fe05594d483d51fabba36c08f 100644 (file)
@@ -1,35 +1,34 @@
-
 <h1>{{$ptitle}}</h1>
 
-<form action="settings/display" id="settings-form" method="post" autocomplete="off" >
-<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+<form action="settings/display" id="settings-form" method="post" autocomplete="off">
+       <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
 
-{{include file="field_themeselect.tpl" field=$theme}}
-{{include file="field_input.tpl" field=$itemspage_network}}
+       {{include file="field_themeselect.tpl" field=$theme}}
+       {{include file="field_input.tpl" field=$itemspage_network}}
 
-{{* Show the mobile theme selection only if mobile themes are available *}}
-{{if count($mobile_theme.4) > 1}}
-{{include file="field_themeselect.tpl" field=$mobile_theme}}
-{{/if}}
+       {{* Show the mobile theme selection only if mobile themes are available *}}
+       {{if count($mobile_theme.4) > 1}}
+               {{include file="field_themeselect.tpl" field=$mobile_theme}}
+       {{/if}}
 
-{{include file="field_input.tpl" field=$itemspage_mobile_network}}
-{{include file="field_input.tpl" field=$ajaxint}}
-{{include file="field_checkbox.tpl" field=$no_auto_update}}
-{{include file="field_checkbox.tpl" field=$nosmile}}
-{{include file="field_checkbox.tpl" field=$infinite_scroll}}
-{{include file="field_checkbox.tpl" field=$no_smart_threading}}
-{{include file="field_checkbox.tpl" field=$hide_dislike}}
+       {{include file="field_input.tpl" field=$itemspage_mobile_network}}
+       {{include file="field_input.tpl" field=$ajaxint}}
+       {{include file="field_checkbox.tpl" field=$no_auto_update}}
+       {{include file="field_checkbox.tpl" field=$nosmile}}
+       {{include file="field_checkbox.tpl" field=$infinite_scroll}}
+       {{include file="field_checkbox.tpl" field=$no_smart_threading}}
+       {{include file="field_checkbox.tpl" field=$hide_dislike}}
 
-<h2>{{$calendar_title}}</h2>
-{{include file="field_select.tpl" field=$first_day_of_week}}
+       <h2>{{$calendar_title}}</h2>
+       {{include file="field_select.tpl" field=$first_day_of_week}}
 
-<div class="settings-submit-wrapper" >
-<input type="submit" name="submit" class="settings-submit" value="{{$submit}}" />
-</div>
+       <div class="settings-submit-wrapper">
+               <input type="submit" name="submit" class="settings-submit" value="{{$submit}}"/>
+       </div>
 
-{{if $theme_config}}
-<h2>{{$stitle}}</h2>
-{{$theme_config nofilter}}
-{{/if}}
+       {{if $theme_config}}
+               <h2>{{$stitle}}</h2>
+               {{$theme_config nofilter}}
+       {{/if}}
 
 </form>
index f67bb3f4079d5a45749cb58ddd8aa27f7790ccfc..95dde620e87a8d52de573ee4ab935c81ffd1be73 100644 (file)
@@ -1,71 +1,65 @@
-
 <div class="generic-page-wrapper">
-       {{* include the title template for the settings title *}}
-       {{include file="section_title.tpl" title=$ptitle }}
-
-
+       <h1>{{$ptitle}}</h1>
        <form action="settings/display" id="settings-form" method="post" autocomplete="off" >
-               <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
+               <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
 
                <div class="panel-group panel-group-settings" id="settings" role="tablist" aria-multiselectable="true">
                        <div class="panel">
-                               <div class="section-subtitle-wrapper" role="tab" id="theme-settings-title">
-                                       <h4>
+                               <div class="section-subtitle-wrapper panel-heading" role="tab" id="theme-settings-title">
+                                       <h2>
                                                <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#theme-settings-content" aria-expanded="true" aria-controls="theme-settings-content">
                                                        {{$d_tset}}
                                                </a>
-                                       </h4>
+                                       </h2>
                                </div>
 
                                <div id="theme-settings-content" class="panel-collapse collapse" role="tabpanel" aria-labelledby="theme-settings">
-                                       <div class="section-content-tools-wrapper">
-
+                                       <div class="panel-body">
                                                {{include file="field_themeselect.tpl" field=$theme}}
 
                                                {{* Show the mobile theme selection only if mobile themes are available *}}
                                                {{if count($mobile_theme.4) > 1}}
                                                {{include file="field_themeselect.tpl" field=$mobile_theme}}
                                                {{/if}}
-
-                                               <div class="form-group pull-right settings-submit-wrapper" >
-                                                       <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
-                                               </div>
-                                               <div class="clear"></div>
-
+                                       </div>
+                                       <div class="panel-footer">
+                                               <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
                                        </div>
                                </div>
                        </div>
 
                        <div class="panel">
-                               <div class="section-subtitle-wrapper" role="tab" id="custom-settings-title">
-                                       <h4>
+                               <div class="section-subtitle-wrapper panel-heading" role="tab" id="custom-settings-title">
+                                       <h2>
                                                <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#custom-settings-content" aria-expanded="false" aria-controls="custom-settings-content">
                                                        {{$d_ctset}}
                                                </a>
-                                       </h4>
+                                       </h2>
                                </div>
                                <div id="custom-settings-content" class="panel-collapse collapse{{if !$theme && !$mobile_theme}} in{{/if}}" role="tabpanel" aria-labelledby="custom-settings">
-                                       <div class="section-content-tools-wrapper">
+                                       <div class="panel-body">
 
                                        {{if $theme_config}}
                                                {{$theme_config nofilter}}
                                        {{/if}}
 
                                        </div>
+                                       <div class="panel-footer">
+                                               <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
+                                       </div>
                                </div>
                        </div>
 
                        <div class="panel">
-                               <div class="section-subtitle-wrapper" role="tab" id="content-settings-title">
-                                       <h4>
+                               <div class="section-subtitle-wrapper panel-heading" role="tab" id="content-settings-title">
+                                       <h2>
                                                <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#content-settings-content" aria-expanded="false" aria-controls="content-settings-content">
                                                        {{$d_cset}}
                                                </a>
-                                       </h4>
+                                       </h2>
                                </div>
                                <div id="content-settings-content" class="panel-collapse collapse{{if !$theme && !$mobile_theme && !$theme_config}} in{{/if}}" role="tabpanel" aria-labelledby="content-settings">
-                                       <div class="section-content-wrapper">
-
+                                       <div class="panel-body">
                                                {{include file="field_input.tpl" field=$itemspage_network}}
                                                {{include file="field_input.tpl" field=$itemspage_mobile_network}}
                                                {{include file="field_input.tpl" field=$ajaxint}}
                                                {{include file="field_checkbox.tpl" field=$infinite_scroll}}
                                                {{include file="field_checkbox.tpl" field=$no_smart_threading}}
                                                {{include file="field_checkbox.tpl" field=$hide_dislike}}
-
-                                               <div class="form-group pull-right settings-submit-wrapper" >
-                                                       <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
-                                               </div>
-                                               <div class="clear"></div>
+                                       </div>
+                                       <div class="panel-footer">
+                                               <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
                                        </div>
                                </div>
                        </div>
 
                        <div class="panel">
-                               <div class="section-subtitle-wrapper" role="tab" id="calendar-settings-title">
-                                       <h4>
+                               <div class="section-subtitle-wrapper panel-heading" role="tab" id="calendar-settings-title">
+                                       <h2>
                                                <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#calendar-settings-content" aria-expanded="false" aria-controls="calendar-settings-content">
                                                        {{$calendar_title}}
                                                </a>
-                                       </h4>
+                                       </h2>
                                </div>
                                <div id="calendar-settings-content" class="panel-collapse collapse{{if !$theme && !$mobile_theme && !$theme_config}} in{{/if}}" role="tabpanel" aria-labelledby="calendar-settings">
-                                       <div class="section-content-wrapper">
-
+                                       <div class="panel-body">
                                                {{include file="field_select.tpl" field=$first_day_of_week}}
-
-                                               <div class="form-group pull-right settings-submit-wrapper" >
-                                                       <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
-                                               </div>
-                                               <div class="clear"></div>
+                                       </div>
+                                       <div class="panel-footer">
+                                               <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
                                        </div>
                                </div>
                        </div>