]> git.mxchange.org Git - friendica.git/commitdiff
frio: settings_display.tpl + rise frio to 0.2 Alpha
authorrabuzarus <>
Mon, 13 Jun 2016 08:57:42 +0000 (10:57 +0200)
committerrabuzarus <>
Mon, 13 Jun 2016 08:57:42 +0000 (10:57 +0200)
mod/settings.php
view/theme/frio/templates/settings_display.tpl [new file with mode: 0644]
view/theme/frio/templates/theme_settings.tpl
view/theme/frio/theme.php

index 5168589f7974a758e27d8b730e1f43594900ad83..89406b7072bfc179e6577c7da56c250493ab262e 100644 (file)
@@ -989,6 +989,9 @@ function settings_content(&$a) {
                        '$infinite_scroll'      => array('infinite_scroll', t("Infinite scroll"), $infinite_scroll, ''),
                        '$no_auto_update'       => array('no_auto_update', t("Automatic updates only at the top of the network page"), $no_auto_update, 'When disabled, the network page is updated all the time, which could be confusing while reading.'),
 
+                       '$d_tset' => t('General Theme Settings'),
+                       '$d_ctset' => t('Custom Theme Settings'),
+                       '$d_cset' => t('Content Settings'),
                        'stitle' => t('Theme settings'),
                        '$theme_config' => $theme_config,
                ));
diff --git a/view/theme/frio/templates/settings_display.tpl b/view/theme/frio/templates/settings_display.tpl
new file mode 100644 (file)
index 0000000..585ea51
--- /dev/null
@@ -0,0 +1,104 @@
+
+<div class="generic-page-wrapper">
+       {{* include the title template for the settings title *}}
+       {{include file="section_title.tpl" title=$ptitle }}
+
+
+       <form action="settings/display" id="settings-form" method="post" autocomplete="off" >
+               <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>
+                                               <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>
+                               </div>
+
+                               <div id="theme-settings-content" class="panel-collapse collapse" role="tabpanel" aria-labelledby="theme-settings">
+                                       <div class="section-content-tools-wrapper">
+
+                                               {{include file="field_themeselect.tpl" field=$theme}}
+
+                                               {{include file="field_themeselect.tpl" field=$mobile_theme}}
+
+                                               <div class="form-group pull-right settings-submit-wrapper" >
+                                                       <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
+                                               </div>
+                                               <div class="clear"></div>
+
+                                       </div>
+                               </div>
+                       </div>
+
+                       <div class="panel">
+                               <div class="section-subtitle-wrapper" role="tab" id="custom-settings-title">
+                                       <h4>
+                                               <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#custom-settings-content" aria-expanded="true" aria-controls="custom-settings-content">
+                                                       {{$d_ctset}}
+                                               </a>
+                                       </h4>
+                               </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">
+
+                                               {{if $theme_config}}
+                                               {{$theme_config}}
+                                               {{/if}}
+
+                                       </div>
+                               </div>
+                       </div>
+
+                       <div class="panel">
+                               <div class="section-subtitle-wrapper" role="tab" id="content-settings-title">
+                                       <h4>
+                                               <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#content-settings-content" aria-expanded="true" aria-controls="content-settings-content">
+                                                       {{$d_cset}}
+                                               </a>
+                                       </h4>
+                               </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">
+
+                                               {{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=$no_auto_update}}
+                                               {{include file="field_checkbox.tpl" field=$nosmile}}
+                                               {{include file="field_checkbox.tpl" field=$noinfo}}
+                                               {{include file="field_checkbox.tpl" field=$infinite_scroll}}
+
+                                               <div class="form-group pull-right settings-submit-wrapper" >
+                                                       <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
+                                               </div>
+                                               <div class="clear"></div>
+                                       </div>
+                               </div>
+                       </div>
+
+                       <div class="panel">
+                               <div class="section-subtitle-wrapper" role="tab" id="calendar-settings-title">
+                                       <h4>
+                                               <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#calendar-settings-content" aria-expanded="true" aria-controls="calendar-settings-content">
+                                                       {{$calendar_title}}
+                                               </a>
+                                       </h4>
+                               </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">
+
+                                               {{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|escape:'html'}}">{{$submit}}</button>
+                                               </div>
+                                               <div class="clear"></div>
+                                       </div>
+                               </div>
+                       </div>
+               </div>
+       </form>
+</div>
index ebedfcfb5749a9083e01c8ca4c6e5d100502c0d7..aa0b6ca56a640905969aee237be503912fd24275 100644 (file)
@@ -63,8 +63,8 @@
        });
 </script>
 
-<div class="settings-submit-wrapper pull-right">
-       <button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit"><i class="fa fa-slideshare"></i>&nbsp;{{$submit}}</button>
+<div class="settings-submit-wrapper form-group pull-right">
+       <button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit">{{$submit}}</button>
 </div>
 <div class="clearfix"></div>
 
index a7c3b0c5dc4f54548a00af96fdb3c565400ba8e6..bab2d696aae3bc6c146ebe62ca54158a03bbd746 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 /*
  * Name: frio
- * Description: Bootstrap V3 theme. The theme is currently under construction, so it is far from finished. For further information have a look at the <a href="https://github.com/rabuzarus/frio/blob/master/README.md">ReadMe</a> and <a href="https://github.com/rabuzarus/frio">GitHub</a>.
- * Version: V.0.1 Alpha
+ * Description: Bootstrap V3 theme. The theme is currently under construction, so it is far from finished. For further information have a look at the <a href="https://github.com/friendica/friendica/tree/develop/view/theme/frio/README.md">ReadMe</a>.
+ * Version: V.0.2 Alpha
  * Author: Rabuzarus <https://friendica.kommune4.de/profile/rabuzarus>
  * 
  */