diff --git a/mod/contacts.php b/mod/contacts.php index 6f7f978aae..489da2340e 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -191,6 +191,7 @@ function contacts_content(&$a) { '$block_text' => (($r[0]['blocked']) ? t('Unblock this contact') : t('Block this contact') ), '$ignore_text' => (($r[0]['readonly']) ? t('Unignore this contact') : t('Ignore this contact') ), '$blocked' => (($r[0]['blocked']) ? '
' . t('Currently blocked') . '
' : ''), + '$ignored' => (($r[0]['readonly']) ? '
' . t('Currently ignored') . '
' : ''), '$rating' => contact_reputation($r[0]['rating']), '$reason' => $r[0]['reason'], '$groups' => '', // group_selector(), @@ -263,6 +264,8 @@ function contacts_content(&$a) { } $o .= replace_macros($tpl, array( + '$img_hover' => t('Visit ') . $rr['name'] . t('\'s profile'), + '$edit_hover' => t('Edit contact'), '$id' => $rr['id'], '$alt_text' => $alt_text, '$dir_icon' => $dir_icon, @@ -271,6 +274,7 @@ function contacts_content(&$a) { '$url' => (($direction != DIRECTION_IN) ? "redir/{$rr['id']}" : $rr['url'] ) )); } + $o .= '
'; } return $o; } \ No newline at end of file diff --git a/view/contact_edit.tpl b/view/contact_edit.tpl index dbcc3fd716..6f1dbbc7c0 100644 --- a/view/contact_edit.tpl +++ b/view/contact_edit.tpl @@ -27,6 +27,7 @@
$blocked +$ignored
diff --git a/view/contact_template.tpl b/view/contact_template.tpl index f2bcdc2d57..763cde00bc 100644 --- a/view/contact_template.tpl +++ b/view/contact_template.tpl @@ -1,23 +1,24 @@
- $alt_text -
- $name -
-
-
-
-
$name
- -
- -
- Edit contact +
+
+ $alt_text +
+
+
+ $edit_hover +
+
+
+ $name +
+
+
+
$name
+
- -
\ No newline at end of file diff --git a/view/style.css b/view/style.css index f8c483a896..fa0f948bb0 100644 --- a/view/style.css +++ b/view/style.css @@ -437,37 +437,37 @@ input#dfrn-url { #contacts-main { margin-bottom: 20px; } -.contact-entry-photo-wrapper { + +.contact-entry-wrapper { float: left; + width: 180px; } + .contact-entry-direction-icon { margin-top: 24px; - float: left; margin-right: 2px; } + .contact-entry-photo img { border: none; } .contact-entry-photo-end { clear: both; } -.contact-entry-edit-links { - float: left; - margin-top: 10px; -} .contact-entry-name { float: left; + margin-left: 30px; +} +.contact-entry-edit-links { + margin-top: 6px; + margin-left: 10px; + width: 16px; } .contact-entry-nav-wrapper { float: left; margin-left: 10px; } -.contact-entry-nav-end { - clear: both; -} -.contact-entry-break { - clear: both; -} + .contact-entry-edit-links img { border: none; margin-right: 15px; @@ -478,6 +478,14 @@ input#dfrn-url { .contact-entry-end { clear: both; } +/* +.contact-entry-nav-end { + clear: both; +} +*/ +#contact-edit-end { + clear: both; +} .wall-item-outside-wrapper { margin-top: 10px; @@ -900,7 +908,7 @@ input#dfrn-url { margin-left: 50px; } -#block-message { +#block-message, #ignore-message { margin-top: 20px; width: 180px; color: #FF0000;