make contact block look widget alike
This commit is contained in:
parent
928f1bfa7b
commit
b711c050db
@ -812,7 +812,7 @@ function contact_block() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
$contacts = sprintf( tt('%d Connection','%d Connections', $total),$total);
|
$contacts = t('Connections');
|
||||||
$micropro = Array();
|
$micropro = Array();
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
$rr['archived'] = (intval($rr['abook_archived']) ? true : false);
|
$rr['archived'] = (intval($rr['abook_archived']) ? true : false);
|
||||||
@ -825,7 +825,7 @@ function contact_block() {
|
|||||||
$o = replace_macros($tpl, array(
|
$o = replace_macros($tpl, array(
|
||||||
'$contacts' => $contacts,
|
'$contacts' => $contacts,
|
||||||
'$nickname' => $a->profile['channel_address'],
|
'$nickname' => $a->profile['channel_address'],
|
||||||
'$viewconnections' => t('View Connections'),
|
'$viewconnections' => (($total > $shown) ? sprintf(t('View all %s connections'),$total) : ''),
|
||||||
'$micropro' => $micropro,
|
'$micropro' => $micropro,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -489,13 +489,6 @@ footer {
|
|||||||
#contact-block {
|
#contact-block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
float: left;
|
float: left;
|
||||||
background-color: rgba(254,254,254,0.5);
|
|
||||||
border-bottom: 1px solid rgba(238,238,238,0.8);
|
|
||||||
-moz-border-radius: $radiuspx;
|
|
||||||
-webkit-border-radius: $radiuspx;
|
|
||||||
border-radius: $radiuspx;
|
|
||||||
padding: 10px;
|
|
||||||
margin-bottom:10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#contact-block-numcontacts {
|
#contact-block-numcontacts {
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
<div id="contact-block">
|
<div id="contact-block" class="widget">
|
||||||
<div id="contact-block-numcontacts">{{$contacts}}</div>
|
<h3>{{$contacts}}</h3>
|
||||||
{{if $micropro}}
|
{{if $micropro}}
|
||||||
|
{{if $viewconnections}}
|
||||||
<a class="allcontact-link" href="viewconnections/{{$nickname}}">{{$viewconnections}}</a>
|
<a class="allcontact-link" href="viewconnections/{{$nickname}}">{{$viewconnections}}</a>
|
||||||
|
{{/if}}
|
||||||
<div class='contact-block-content'>
|
<div class='contact-block-content'>
|
||||||
{{foreach $micropro as $m}}
|
{{foreach $micropro as $m}}
|
||||||
{{$m}}
|
{{$m}}
|
||||||
|
Reference in New Issue
Block a user