aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-03 15:21:43 -0800
committerfriendica <info@friendica.com>2014-03-03 15:21:43 -0800
commitd16324685ac04b8c06f19285ae8db9e1ab1c7f96 (patch)
tree418f0d8625650c89e43435d1344fbbe014e494f6
parenta36014f0119a50bd6a4aee1e2f993bf8927a3b49 (diff)
downloadvolse-hubzilla-d16324685ac04b8c06f19285ae8db9e1ab1c7f96.tar.gz
volse-hubzilla-d16324685ac04b8c06f19285ae8db9e1ab1c7f96.tar.bz2
volse-hubzilla-d16324685ac04b8c06f19285ae8db9e1ab1c7f96.zip
implement horizontal menu class in redbasic
-rw-r--r--include/comanche.php2
-rw-r--r--view/pdl/mod_channel.pdl2
-rw-r--r--view/theme/redbasic/css/style.css18
3 files changed, 21 insertions, 1 deletions
diff --git a/include/comanche.php b/include/comanche.php
index 83e9af438..13146ded4 100644
--- a/include/comanche.php
+++ b/include/comanche.php
@@ -201,7 +201,7 @@ function comanche_region(&$a,$s) {
$cnt = preg_match_all("/\[menu=(.*?)\](.*?)\[\/menu\]/ism", $s, $matches, PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
- $s = str_replace($mtch[0],comanche_menu(trim($mtch[2]),$match[1]),$s);
+ $s = str_replace($mtch[0],comanche_menu(trim($mtch[2]),$mtch[1]),$s);
}
}
$cnt = preg_match_all("/\[block\](.*?)\[\/block\]/ism", $s, $matches, PREG_SET_ORDER);
diff --git a/view/pdl/mod_channel.pdl b/view/pdl/mod_channel.pdl
index dde8830ee..c6626983d 100644
--- a/view/pdl/mod_channel.pdl
+++ b/view/pdl/mod_channel.pdl
@@ -4,3 +4,5 @@
[widget=categories][/widget]
[widget=tagcloud_wall][var=limit]24[/var][/widget]
[/region]
+
+[region=content][menu=horizontal]test[/menu]$content[/region]
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index b14984981..ab2bd1b3d 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -734,6 +734,24 @@ footer {
}
+.pmenu.horizontal {
+ padding: 0 0 0 0;
+ border-bottom: none;
+}
+
+.pmenu.horizontal .pmenu-title {
+ display: none;
+}
+.pmenu.horizontal ul {
+ -moz-padding-start: 0;
+}
+
+.pmenu.horizontal li {
+ margin-left: 0;
+ display: inline;
+ padding-right: 15px;
+}
+
#settings-default-perms-menu {
margin-top: 15px;
margin-bottom: 15px;