aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-30 22:39:33 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-30 22:39:33 -0700
commite23f86faa91f6b12ad499d27d3a06a6873230714 (patch)
treed138176054706c0b7a22cb4acf038b8d5c9ea028
parent7ba1217a13422ce967439c07b4ba0445bc526de1 (diff)
downloadvolse-hubzilla-e23f86faa91f6b12ad499d27d3a06a6873230714.tar.gz
volse-hubzilla-e23f86faa91f6b12ad499d27d3a06a6873230714.tar.bz2
volse-hubzilla-e23f86faa91f6b12ad499d27d3a06a6873230714.zip
more work on doco search
-rw-r--r--doc/Widgets.md3
-rw-r--r--include/widgets.php12
-rw-r--r--mod/help.php5
-rw-r--r--view/pdl/mod_help.pdl3
-rw-r--r--view/theme/redbasic/css/style.css8
5 files changed, 30 insertions, 1 deletions
diff --git a/doc/Widgets.md b/doc/Widgets.md
index 5cc7eab2f..a225f5ef3 100644
--- a/doc/Widgets.md
+++ b/doc/Widgets.md
@@ -104,6 +104,9 @@ Some/many of these widgets have restrictions which may restrict the type of page
* all - display completed tasks if all is non-zero.
<br />&nbsp;<br />
+* forums - provide a list of connected public forums with unseen counts for the current logged-in channel.
+<br />&nbsp;<br />
+
Creating New Widgets
====================
diff --git a/include/widgets.php b/include/widgets.php
index 5e70730a3..96727cf0a 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -1063,3 +1063,15 @@ function widget_tasklist($arr) {
}
+
+function widget_helpindex($arr) {
+ $o .= '<div class="widget">' . '<h3>' . t('Documentation') . '</h3>';
+ $o .= '<ul class="nav nav-pills nav-stacked">';
+ $o .= '<li><a href="help/general">' . t('Project/Site Information') . '</li>';
+ $o .= '<li><a href="help/members">' . t('For Members') . '</li>';
+ $o .= '<li><a href="help/admins">' . t('For Administrators') . '</li>';
+ $o .= '<li><a href="help/develop">' . t('For Developers') . '</li>';
+ $o .= '</ul></div>';
+ return $o;
+
+} \ No newline at end of file
diff --git a/mod/help.php b/mod/help.php
index dd1dc9cd8..16ec069a7 100644
--- a/mod/help.php
+++ b/mod/help.php
@@ -143,9 +143,12 @@ function help_content(&$a) {
nav_set_selected('help');
if($_REQUEST['search']) {
+
+ $o .= '<h2>' . t('Documentation Search') . ' - ' . htmlspecialchars($_REQUEST['search']) . '</h2>';
+
$r = search_doc_files($_REQUEST['search']);
if($r) {
- $o .= '<ul>';
+ $o .= '<ul class="help-searchlist">';
foreach($r as $rr) {
$dirname = dirname($rr['sid']);
$fname = basename($rr['sid']);
diff --git a/view/pdl/mod_help.pdl b/view/pdl/mod_help.pdl
new file mode 100644
index 000000000..bafad3839
--- /dev/null
+++ b/view/pdl/mod_help.pdl
@@ -0,0 +1,3 @@
+[region=aside]
+[widget=helpindex][/widget]
+[/region]
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 702c7238e..25436db5f 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -2296,3 +2296,11 @@ nav .badge.mail-update:hover {
/*.channels_ckbx, .pending_ckbx, .users_ckbx {
margin-top: -5px !important;
}*/
+
+.help-searchlist {
+ list-style-type: none;
+}
+
+.help-searchlist a {
+ font-size: 130%;
+} \ No newline at end of file