GENERAL FORM ELEMENTS default styles for all elgg input/form elements
FRIENDS PICKER
ADMIN AREA
-
+
*/
-/* Colors:
+/* Colors:
#4690D6 - elgg light blue
#0054A7 - elgg dark blue
font-size:12px;
background:#EBF5FF;
overflow:auto;
-
+
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
line-height:1.3em;
background:#EBF5FF;
border:none;
- -webkit-border-radius: 4px;
+ -webkit-border-radius: 4px;
-moz-border-radius: 4px;
}
/* ***************************************
- GENERIC SELECTORS
+GENERIC SELECTORS
*************************************** */
h2 {
border-bottom:1px solid #CCCCCC;
padding-bottom:5px;
}
.clearfloat:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
}
.link {
cursor:pointer;
display:none;
}
.radius8 {
- -webkit-border-radius: 8px;
+ -webkit-border-radius: 8px;
-moz-border-radius: 8px;
}
.margin_none {
}
/* ***************************************
- PAGE LAYOUT - MAIN BLOCKS POSITIONING
+PAGE LAYOUT - MAIN BLOCKS POSITIONING
*************************************** */
#elgg_topbar {
background:#333333 url(<?php echo $vars['url']; ?>_graphics/toptoolbar_background.gif) repeat-x top left;
z-index: 9000;
}
#elgg_header {
- overflow: hidden;
+ x-overflow: hidden;
position: relative;
width: 100%;
height:90px;
#elgg_main_nav {
z-index: 7000;
position: absolute;
- height:23px;
- bottom:0;
- left:0;
- width:auto;
+ height:23px;
+ bottom:0;
+ left:0;
+ width:auto;
}
#elgg_content { /* wraps sidebar and page contents */
width:990px;
/* ***************************************
- ELGG TOPBAR
+ELGG TOPBAR
*************************************** */
#elgg_topbar_contents {
float:left;
}
#elgg_topbar_contents a:hover {
color:#71cbff;
- text-decoration: none;
+ text-decoration: none;
}
#elgg_topbar_contents a img.user_mini_avatar {
border:1px solid #eeeeee;
margin-top: -1px;
}
#elgg_topbar_contents .log_out {
- float:right;
+ float:right;
}
#elgg_topbar_contents .log_out a {
display: inline;
text-align: right;
margin-right:10px;
- color:#999999;
+ color:#999999;
}
#elgg_topbar_contents .log_out a:hover {
- color:#71cbff;
+ color:#71cbff;
}
#elgg_topbar_contents a.settings {
background:transparent url(<?php echo $vars['url']; ?>_graphics/topbar_icons.png) no-repeat left -41px;
background:transparent url(<?php echo $vars['url']; ?>_graphics/topbar_icons.png) no-repeat 3px 1px;
padding-left:24px !important;
}
-#elgg_topbar_contents ul.tools_menu li {
+#elgg_topbar_contents ul.tools_menu li {
display: block;
list-style: none;
margin: 0;
}
#elgg_topbar_contents ul.tools_menu ul li {
float: none;
-}
+}
/* elgg toolbar drop-down menu style */
#elgg_topbar_contents ul.tools_menu ul {
width: 150px;
/* ***************************************
- HEADER CONTENTS
+HEADER CONTENTS
*************************************** */
#elgg_header_contents h1 a {
font-size: 2em;
text-shadow:1px 2px 4px #333333;
}
#elgg_header_contents #elgg_search input.search_input {
- -webkit-border-radius: 10px;
+ -webkit-border-radius: 10px;
-moz-border-radius: 10px;
background-color:transparent;
border:1px solid #71b9f7;
background-position: 3px -37px;
}
#elgg_header_contents #elgg_search input.search_submit_button {
- display:none;
+ display:none;
}
-webkit-border-top-right-radius:4px;
margin-top:2px;
}
+.navigation_more {
+ overflow:hidden;
+}
+
+.navigation_more:hover{
+ overflow:visible;
+}
+li.navigation_more ul {
+ z-index: 1;
+ border: 1px solid #999;
+ border-top: 0;
+ -moz-border-radius-bottomleft:4px;
+ -moz-border-radius-bottomright:4px;
+ -webkit-border-bottom-left-radius:4px;
+ -webkit-border-bottom-right-radius:4px;
+}
+li.navigation_more ul li {
+ float:none;
+ background-color:#4690D6;
+}
+li.navigation_more ul li:hover {
+ background:white;
+ color:#43575e;
+}
/* ***************************************
FOOTER CONTENTS
#elgg_footer_contents,
#elgg_footer_contents a,
#elgg_footer_contents p {
- color:#999999;
+ color:#999999;
}
#elgg_footer_contents a:hover {
color:#666666;
/* ***************************************
- SYSTEM MESSAGES
+SYSTEM MESSAGES
*************************************** */
#elgg_system_message {
- background-color:black;
- color:white;
- font-weight: bold;
+ background-color:black;
+ color:white;
+ font-weight: bold;
display:block;
padding:3px 10px;
- z-index: 9600;
+ z-index: 9600;
position:fixed;
right:20px;
margin-top:10px;
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45); /* FF v3.5+ */
}
#elgg_system_message.error {
- background-color:red;
+ background-color:red;
}
#elgg_system_message p {
margin:0;
}
.submenu li a {
display:block;
- -webkit-border-radius: 8px;
+ -webkit-border-radius: 8px;
-moz-border-radius: 8px;
background-color:white;
margin:0 0 3px 0;
margin:0 6px 0 0;
padding:0px 4px;
cursor: pointer;
- -webkit-border-radius: 4px;
+ -webkit-border-radius: 4px;
-moz-border-radius: 4px;
}
.pagination .pagination_number:hover {
font-weight: normal;
margin:0 6px 0 0;
padding:0px 4px;
- -webkit-border-radius: 4px;
+ -webkit-border-radius: 4px;
-moz-border-radius: 4px;
}
.pagination .pagination_previous,
margin:0 6px 0 0;
padding:0px 4px;
cursor: pointer;
- -webkit-border-radius: 4px;
+ -webkit-border-radius: 4px;
-moz-border-radius: 4px;
}
.pagination .pagination_previous:hover,
margin:0 6px 0 0;
padding:0px 4px;
cursor: pointer;
- -webkit-border-radius: 4px;
+ -webkit-border-radius: 4px;
-moz-border-radius: 4px;
}
border-bottom:1px solid #CCCCCC;
}
#content_header:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
}
.content_header_title {
float:left;
}
/* ***************************************
- USER SETTINGS & ADMIN AREA
+ USER SETTINGS & ADMIN AREA
@todo - pull admin css into stand-alone css
*************************************** */
/* GENERAL STYLES */
padding: 5px;
border: 1px solid #cccccc;
color:#666666;
- -webkit-border-radius: 5px;
+ -webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
textarea {
border: solid 1px #cccccc;
padding: 5px;
color:#666666;
- -webkit-border-radius: 5px;
+ -webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
textarea:focus,
background-image: url(<?php echo $vars['url']; ?>_graphics/button_graduation.png);
background-repeat: repeat-x;
background-position: left 10px;
- -webkit-border-radius: 5px;
+ -webkit-border-radius: 5px;
-moz-border-radius: 5px;
width: auto;
padding: 2px 4px;
background-image: url(<?php echo $vars['url']; ?>_graphics/button_graduation.png);
background-repeat: repeat-x;
background-position: left 10px;
- -webkit-border-radius: 5px;
+ -webkit-border-radius: 5px;
-moz-border-radius: 5px;
width: auto;
padding: 2px 4px;
margin:10px 0 10px 0;
cursor: pointer;
-moz-outline-style: none;
- outline: none;
+ outline: none;
-webkit-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40); /* safari v3+ */
- -moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40); /* FF v3.5+ */
+ -moz-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.40); /* FF v3.5+ */
}
input[type="submit"]:hover {
border-color: #0054a7;
background-repeat: repeat-x;
background-position: left 10px;
border: 1px solid #999999;
- -webkit-border-radius: 5px;
+ -webkit-border-radius: 5px;
-moz-border-radius: 5px;
width: auto;
padding: 2px 4px;
}
input.action_button,
a.action_button {
- -webkit-border-radius: 5px;
+ -webkit-border-radius: 5px;
-moz-border-radius: 5px;
background-color:#cccccc;
background-image: url(<?php echo $vars['url']; ?>_graphics/button_background.gif);
-moz-box-shadow: none;
}
input.action_button:hover,
-a.action_button:hover,
+a.action_button:hover,
input.action_button:focus,
a.action_button:focus {
background-position:0 -15px;
color:white;
}
.action_button.small {
- -webkit-border-radius: 3px;
+ -webkit-border-radius: 3px;
-moz-border-radius: 3px;
width: auto;
height:8px;
-moz-border-radius: 4px;
}
.tabHasContent {
- background: white;
+ background: white;
color:#333333 !important;
}
.friends_picker_navigation li a:hover {
<?php
/**
* Main site-wide navigation
+ *
**/
-$featured = $vars['config']->menu_items['featured_urls'];
-$current_context = get_context();
+$nav_items = elgg_get_nav_items();
+$featured = $nav_items['featured'];
+$more = $nav_items['more'];
-echo '<div id="elgg_main_nav" class="clearfloat">
- <ul class="navigation">';
+$nav_html = '';
+$more_nav_html = '';
-foreach ($featured as $info) {
- $selected = ($info->value->context == $current_context) ? 'class="selected"' : '';
+// sort more links alphabetically
+$more_sorted = array();
+foreach ($more as $info) {
+ $more_sorted[] = $info->name;
+}
+
+// required because array multisort is case sensitive
+$more_sorted_lower = array_map('elgg_strtolower', $more_sorted);
+array_multisort($more_sorted_lower, $more);
+
+$item_count = 0;
+
+// if there are no featured items, display the standard tools in alphabetical order
+if ($featured) {
+ foreach ($featured as $info) {
+ $title = htmlentities($info->name, ENT_QUOTES, 'UTF-8');
+ $url = htmlentities($info->value->url, ENT_QUOTES, 'UTF-8');
+
+ $nav_html .= "<li><a href=\"$url\" title=\"$title\"><span>$title</span></a></li>";
+ }
+} elseif ($more) {
+ for ($i=0; $i<6; $i++) {
+ $info = $more[$i];
+
+ $title = htmlentities($info->name, ENT_QUOTES, 'UTF-8');
+ $url = htmlentities($info->value->url, ENT_QUOTES, 'UTF-8');
+
+ $nav_html .= "<li><a href=\"$url\" title=\"$title\"><span>$title</span></a></li>";
+ $more[$i]->used = TRUE;
+ $item_count++;
+ }
+}
+
+// display the rest.
+foreach ($more as $info) {
+ if ($info->used) {
+ continue;
+ }
$title = htmlentities($info->name, ENT_QUOTES, 'UTF-8');
$url = htmlentities($info->value->url, ENT_QUOTES, 'UTF-8');
- echo "<li $selected><a href=\"$url\" title=\"$title\"><span>$title</span></a></li>";
+ $more_nav_html .= "<li><a href=\"$url\" title=\"$title\"><span>$title</span></a></li>\n";
+ $item_count++;
+}
+
+if ($more_nav_html) {
+ $more = elgg_echo('more');
+ $nav_html .= "<li class=\"navigation_more\"><a title=\"$more\"><span>$more</span></a>
+ <ul>
+ $more_nav_html
+ </ul>
+ </li>";
}
-echo '
+echo <<<___END
+<div id="elgg_main_nav" class="clearfloat">
+ <ul class="navigation">
+ $nav_html
</ul>
-</div>';
\ No newline at end of file
+</div>
+___END;
+?>