From fd75f66c772983c871ee5ed06d702dbb24ecac07 Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 8 Mar 2010 15:44:49 +0000 Subject: Updates to Profile and owner_block interface git-svn-id: http://code.elgg.org/elgg/trunk@5301 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css.php | 44 ++++++++++++++++++++++------- views/default/page_elements/owner_block.php | 13 +++++---- 2 files changed, 42 insertions(+), 15 deletions(-) (limited to 'views') diff --git a/views/default/css.php b/views/default/css.php index 2cf91fe2f..8b5c7cab7 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -942,14 +942,14 @@ select.styled .select_option { margin:0; line-height:1.2em; } -.entity_listing_info p.entity_title { +p.entity_title { font-weight: bold; font-size: 1.1em; } -.entity_listing_info p.entity_title a { +p.entity_title a { color:#0054A7; } -.entity_listing_info p.entity_subtext { +p.entity_subtext { margin:0; padding:0; color:#666666; @@ -985,7 +985,6 @@ select.styled .select_option { } - /* *************************************** USER SETTINGS & ADMIN AREA *************************************** */ @@ -1205,6 +1204,7 @@ input[type="submit"]:hover { text-decoration:none; color:white; } +input.action_button, a.action_button { -webkit-border-radius: 5px; -moz-border-radius: 5px; @@ -1221,29 +1221,37 @@ a.action_button { text-decoration:none; text-shadow:0 1px 0 white; cursor:pointer; + -webkit-box-shadow: none; + -moz-box-shadow: none; } +input.action_button:hover, a.action_button:hover, +input.action_button:focus, a.action_button:focus { background-position:0 -15px; + background-image: url(_graphics/button_background.gif); + background-repeat: repeat-x; color:#111111; text-decoration: none; + background-color:#cccccc; + border:1px solid #999999; } -a.action_button:active { +.action_button:active { background-image:none; } -a.action_button.disabled { +.action_button.disabled { color:#999999; padding:2px 7px 2px 7px; } -a.action_button.disabled:hover { +.action_button.disabled:hover { background-position:0 -15px; color:#111111; border:1px solid #999999; } -a.action_button.disabled:active { +.action_button.disabled:active { background-image:none; } -a.action_button.download { +.action_button.download { color: white; background-color:#4690d6; background-image: url(_graphics/button_graduation.png); @@ -1255,11 +1263,27 @@ a.action_button.download { padding: 3px 6px 3px 6px; margin:0 0 10px 0; } -a.action_button.download:hover { +.action_button.download:hover { background: #0054a7; border-color: #0054a7; color:white; } +.action_button.small { + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + width: auto; + height:8px; + padding: 4px; + font-size: 0.9em; + line-height: 0.6em; +} +.action_button.small:hover { + background-color: #4690d6; + background-image: none; + border-color: #4690d6; + color:white; + text-shadow:0 -1px 0 #999999; +} /* small round delete button */ .delete_button { width:14px; diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php index eb18a733e..04b70663a 100644 --- a/views/default/page_elements/owner_block.php +++ b/views/default/page_elements/owner_block.php @@ -15,20 +15,23 @@ $contents = ""; if(is_plugin_enabled('profile')) { // Is there a page owner? $owner = page_owner_entity(); + $location = elgg_view("output/tags",array('value' => $owner->location)); if ($owner instanceof ElggEntity) { $icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny')); if ($owner instanceof ElggUser || $owner instanceof ElggGroup) { - $info = '' . $owner->name . ''; + $info = '

' . $owner->name . '

'; } - $display = "
" . $icon . "
"; - $display .= "
" . $info . "
"; + $display = "
" . $icon . "
"; + $display .= "
" . $info; if ($owner->briefdescription) { $desc = $owner->briefdescription; - $display .= "
" . $desc . "
"; + $display .= "

" . $desc . "

"; } + $display .= "

{$location}

"; + $display .= "
"; // close owner_block_contents - $contents .= "
".$display."
"; + $contents .= "
".$display."
"; } } // Are there feeds to display? -- cgit v1.2.3