aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-06 22:21:51 -0700
committerfriendica <info@friendica.com>2014-04-06 22:21:51 -0700
commit7d429b28940848cbf0cdf397ed664a594b28d994 (patch)
tree42e9b41849543edd1a267ceb9087b406511a4408
parent68296bb85789b3fcf9ed5db79b0617e94bb897e6 (diff)
downloadvolse-hubzilla-7d429b28940848cbf0cdf397ed664a594b28d994.tar.gz
volse-hubzilla-7d429b28940848cbf0cdf397ed664a594b28d994.tar.bz2
volse-hubzilla-7d429b28940848cbf0cdf397ed664a594b28d994.zip
subdue archived connections in mod/connections
-rw-r--r--mod/connections.php2
-rw-r--r--view/theme/redbasic/css/style.css4
-rwxr-xr-xview/tpl/connection_template.tpl2
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>