implement horizontal menu class in redbasic
This commit is contained in:
parent
a36014f011
commit
d16324685a
@ -201,7 +201,7 @@ function comanche_region(&$a,$s) {
|
|||||||
$cnt = preg_match_all("/\[menu=(.*?)\](.*?)\[\/menu\]/ism", $s, $matches, PREG_SET_ORDER);
|
$cnt = preg_match_all("/\[menu=(.*?)\](.*?)\[\/menu\]/ism", $s, $matches, PREG_SET_ORDER);
|
||||||
if($cnt) {
|
if($cnt) {
|
||||||
foreach($matches as $mtch) {
|
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);
|
$cnt = preg_match_all("/\[block\](.*?)\[\/block\]/ism", $s, $matches, PREG_SET_ORDER);
|
||||||
|
@ -4,3 +4,5 @@
|
|||||||
[widget=categories][/widget]
|
[widget=categories][/widget]
|
||||||
[widget=tagcloud_wall][var=limit]24[/var][/widget]
|
[widget=tagcloud_wall][var=limit]24[/var][/widget]
|
||||||
[/region]
|
[/region]
|
||||||
|
|
||||||
|
[region=content][menu=horizontal]test[/menu]$content[/region]
|
||||||
|
@ -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 {
|
#settings-default-perms-menu {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
|
Reference in New Issue
Block a user