aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-09-14 12:30:14 +0000
committerMario <mario@mariovavti.com>2023-09-14 12:30:14 +0000
commit0cb5d0d63e3150331999c51c5807603d74b7d4dc (patch)
treebd283d840db8479335d1313c86a3d86468b55ffb
parent526c85e2ca5f4ab60b6a922f4829f3d8126a6571 (diff)
downloadvolse-hubzilla-0cb5d0d63e3150331999c51c5807603d74b7d4dc.tar.gz
volse-hubzilla-0cb5d0d63e3150331999c51c5807603d74b7d4dc.tar.bz2
volse-hubzilla-0cb5d0d63e3150331999c51c5807603d74b7d4dc.zip
also look for widgets in view/theme/themename/widget
-rw-r--r--Zotlabs/Module/Pdledit_gui.php3
-rw-r--r--include/plugin.php1
-rw-r--r--view/tpl/conv_item.tpl2
3 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Pdledit_gui.php b/Zotlabs/Module/Pdledit_gui.php
index 45a06c00a..ebb2d558a 100644
--- a/Zotlabs/Module/Pdledit_gui.php
+++ b/Zotlabs/Module/Pdledit_gui.php
@@ -268,7 +268,8 @@ class Pdledit_gui extends Controller {
$checkpaths = [
- 'Zotlabs/Widget/*.php'
+ 'Zotlabs/Widget/*.php',
+ 'view/theme/' . lcfirst(App::$theme_info['name']) . '/widget/*.php'
];
$addons = plugins_installed_list();
diff --git a/include/plugin.php b/include/plugin.php
index ae73a847c..648e1953c 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -1074,6 +1074,7 @@ function theme_include($file, $root = '') {
$paths = array(
"{$root}view/theme/$thname/$ext/$file",
+ "{$root}view/theme/$thname/widget/$file",
"{$root}view/theme/$parent/$ext/$file",
"{$root}view/site/$ext/$file",
"{$root}view/$ext/$file",
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index 041140879..930137be8 100644
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -4,7 +4,7 @@
</div>
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
{{/if}}
- <div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} generic-content-wrapper h-entry {{else}} u-comment h-cite{{/if}}" data-b64mids='{{$item.mids}}'>
+ <div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} generic-content-wrapper h-entry {{else}} u-comment h-cite{{/if}} clearfix" data-b64mids='{{$item.mids}}'>
<a name="item_{{$item.id}}" ></a>
<div class="wall-item-outside-wrapper{{if $item.is_comment}} comment{{/if}}{{if $item.previewing}} preview{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
<div class="rounded wall-item-content-wrapper{{if $item.is_comment}} comment{{/if}}" id="wall-item-content-wrapper-{{$item.id}}">