diff options
-rw-r--r-- | mod/connections.php | 2 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 4 | ||||
-rwxr-xr-x | view/tpl/connection_template.tpl | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/mod/connections.php b/mod/connections.php index f0879ae31..a453203ab 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -373,7 +373,7 @@ function connections_content(&$a) { 'thumb' => $rr['xchan_photo_m'], 'name' => $rr['xchan_name'], 'username' => $rr['xchan_name'], - 'sparkle' => $sparkle, + 'classes' => (($rr['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? 'archived' : ''), 'link' => z_root() . '/connedit/' . $rr['abook_id'], 'url' => chanlink_url($rr['xchan_url']), 'network' => network_to_name($rr['network']), diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 0788775e7..fd8033928 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1651,6 +1651,10 @@ header { .contact-block-content { margin-top: 8px; } +.contact-block-img.archived { + opacity: 0.3; + filter:alpha(opacity=30); +} .profile-match-connect { margin-top: 5px; } diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl index fc9052d41..44866c323 100755 --- a/view/tpl/connection_template.tpl +++ b/view/tpl/connection_template.tpl @@ -1,6 +1,6 @@ <div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" > <div class="contact-entry-photo-wrapper" > - <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img class="contact-block-img" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a> + <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img class="contact-block-img {{if $contact.classes}}{{$contact.classes}}{{/if}}" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a> </div> <div class="contact-entry-photo-end" ></div> <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >{{$contact.name}}</div></a> |