aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}}