if ($filename !== "Home") {
// create TOC but not for home
$lines = explode("\n", $html);
- $toc="<style>aside ul {padding-left: 1em;}aside h1{font-size:2em}</style><h2>TOC</h2><ul id='toc'>";
+ $toc="<h2>TOC</h2><ul id='toc'>";
$lastlevel=1;
$idnum = [0,0,0,0,0,0,0];
foreach($lines as &$line){
for($k=0;$k<$lastlevel; $k++) $toc.="</ul>";
$html = implode("\n",$lines);
- $a->page['aside'] = '<section class="help-aside-wrapper">' . $toc . $a->page['aside'] . '</section>';
+ $a->page['aside'] = '<div class="help-aside-wrapper widget"><div id="toc-wrapper">' . $toc . '</div>' . $a->page['aside'] . '</div>';
}
- $html = "
- <style>
- .md_warning {
- padding: 1em; border: #ff0000 solid 2px;
- background-color: #f9a3a3; color: #ffffff;
- }
- </style>".$html;
return $html;
}
opacity: 0.3;
}
+/* help widget */
+aside .help-aside-wrapper ul {
+ padding-left: 1em;
+}
+
+aside .help-aside-wrapper h1 {
+ font-size:2em
+}
+
+.md_warning {
+ padding: 1em;
+ border: #ff0000 solid 2px;
+ background-color: #f9a3a3;
+ color: #ffffff;
+}
+
#forum-widget-collapse:hover {
opacity: 1.0;
}
code {
white-space: pre-wrap;
}
-.help-content-wrapper code, .help-aside-wrapper code {display: inline}
/**
* mobile aside
padding-left: 27px;
}
+/* help page widget */
+aside > .help-content-wrapper code, .help-aside-wrapper code {
+ display: inline
+}
+aside > .help-aside-wrapper p strong:first-child {
+ display: block;
+ margin: 1em 0 0em;
+}
+aside > .help-aside-wrapper h1 {
+ font-weight: bold;
+ font-size: 16px;
+ margin: 0;
+ padding: 20px 0 10px;
+}
+aside > .help-aside-wrapper h2 {
+ font-weight: bold;
+ font-size: 14px;
+}
+
/* vcard / h-card */
aside .vcard #profile-photo-wrapper{
margin: 0;
$sql_extra = '';
if ($results["search"]) {
$search_txt = dbesc(protect_sprintf(preg_quote($results["search"])));
- $sql_extra .= " AND (`attag` LIKE '%%" . dbesc($search_txt) . "%%' OR `name` LIKE '%%" . dbesc($search_txt) . "%%' OR `nick` LIKE '%%" . dbesc($search_txt) . "%%') ";
+ $sql_extra .= " AND (`attag` LIKE '%%" . dbesc($search_txt) . "%%' OR `name` LIKE '%%" . dbesc($search_txt) . "%%' OR `nick` LIKE '%%" . dbesc($search_txt) . "%%' OR `addr` LIKE '%%" . dbesc($search_txt) . "%%') ";
}
if ($nets) {