aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-17 12:10:54 +0000
committerMario <mario@mariovavti.com>2021-06-17 12:10:54 +0000
commit5ca352a6c362ac1b452460ebbb07fbf56bb76417 (patch)
treeec9cdd1bb5c8de9f35048347ff7ea0dd3428e07a
parenta34bd3b013887786f5f958450b4823cfd00cd562 (diff)
downloadvolse-hubzilla-5ca352a6c362ac1b452460ebbb07fbf56bb76417.tar.gz
volse-hubzilla-5ca352a6c362ac1b452460ebbb07fbf56bb76417.tar.bz2
volse-hubzilla-5ca352a6c362ac1b452460ebbb07fbf56bb76417.zip
allow to add a wrapper class to the hq_controls widget
-rw-r--r--Zotlabs/Widget/Hq_controls.php5
-rw-r--r--view/css/widgets.css9
-rw-r--r--view/tpl/hq_controls.tpl2
3 files changed, 13 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Hq_controls.php b/Zotlabs/Widget/Hq_controls.php
index 8c36b8d3a..8b532defe 100644
--- a/Zotlabs/Widget/Hq_controls.php
+++ b/Zotlabs/Widget/Hq_controls.php
@@ -7,7 +7,7 @@ use Zotlabs\Lib\Apps;
class Hq_controls {
- function widget($arr) {
+ function widget($options) {
if (! local_channel())
return;
@@ -38,7 +38,8 @@ class Hq_controls {
return replace_macros(get_markup_template('hq_controls.tpl'),
[
- '$entries' => $entries
+ '$entries' => $entries,
+ '$wrapper_class' => $options['class']
]
);
}
diff --git a/view/css/widgets.css b/view/css/widgets.css
index a677bb457..f9e0770f8 100644
--- a/view/css/widgets.css
+++ b/view/css/widgets.css
@@ -242,3 +242,12 @@ a.wikilist {
#cid-filter-wrapper {
position: relative;
}
+
+/* hq_controls */
+.hq_controls_fixed_bottom_center {
+ z-index: 1090;
+ position: fixed;
+ bottom: 0px;
+ left: 50%;
+ transform: translateX(-50%);
+}
diff --git a/view/tpl/hq_controls.tpl b/view/tpl/hq_controls.tpl
index f46b7b298..87accb5e0 100644
--- a/view/tpl/hq_controls.tpl
+++ b/view/tpl/hq_controls.tpl
@@ -1,4 +1,4 @@
-<div class="d-grid gap-2 mb-3">
+<div class="d-grid gap-2 mb-3{{if $wrapper_class}} {{$wrapper_class}}{{/if}}">
{{foreach $entries as $e}}
<button id="{{$e.id}}" class="{{$e.class}} rounded-circle" type="{{$e.type}}" title="{{$e.label}}"{{if $e.extra}} {{$e.extra}}{{/if}}>
{{if $e.icon}}<i class="fa fa-{{$e.icon}}"></i>{{/if}}