more work on #395
This commit is contained in:
parent
28b7eedc45
commit
75b6aa235e
@ -375,16 +375,14 @@ function connections_content(&$a) {
|
|||||||
'username' => $rr['xchan_name'],
|
'username' => $rr['xchan_name'],
|
||||||
'sparkle' => $sparkle,
|
'sparkle' => $sparkle,
|
||||||
'link' => z_root() . '/connedit/' . $rr['abook_id'],
|
'link' => z_root() . '/connedit/' . $rr['abook_id'],
|
||||||
'url' => $rr['xchan_url'],
|
'url' => chanlink_url($rr['xchan_url']),
|
||||||
'network' => network_to_name($rr['network']),
|
'network' => network_to_name($rr['network']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$o .= replace_macros(get_markup_template('connections.tpl'),array(
|
||||||
$tpl = get_markup_template("contacts-template.tpl");
|
|
||||||
$o .= replace_macros($tpl,array(
|
|
||||||
'$header' => t('Connections') . (($head) ? ' - ' . $head : ''),
|
'$header' => t('Connections') . (($head) ? ' - ' . $head : ''),
|
||||||
'$tabs' => $t,
|
'$tabs' => $t,
|
||||||
'$total' => $total,
|
'$total' => $total,
|
||||||
@ -392,6 +390,7 @@ function connections_content(&$a) {
|
|||||||
'$desc' => t('Search your connections'),
|
'$desc' => t('Search your connections'),
|
||||||
'$finding' => (($searching) ? t('Finding: ') . "'" . $search . "'" : ""),
|
'$finding' => (($searching) ? t('Finding: ') . "'" . $search . "'" : ""),
|
||||||
'$submit' => t('Find'),
|
'$submit' => t('Find'),
|
||||||
|
'$edit' => t('Edit'),
|
||||||
'$cmd' => $a->cmd,
|
'$cmd' => $a->cmd,
|
||||||
'$contacts' => $contacts,
|
'$contacts' => $contacts,
|
||||||
'$paginate' => paginate($a),
|
'$paginate' => paginate($a),
|
||||||
|
@ -109,6 +109,9 @@
|
|||||||
width: 120px;
|
width: 120px;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
margin: 8px 10px 0 0;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
border-left: 2px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
#contacts-search {
|
#contacts-search {
|
||||||
@ -128,6 +131,7 @@
|
|||||||
float: left;
|
float: left;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
9
view/tpl/connection_template.tpl
Executable file
9
view/tpl/connection_template.tpl
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
<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>
|
||||||
|
</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>
|
||||||
|
<div class="contact-entry-edit btn btn-default"><a href="{{$contact.link}}"><i class="icon-pencil connection-edit-icons"></i> {{$edit}}</a></div>
|
||||||
|
<div class="contact-entry-end" ></div>
|
||||||
|
</div>
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
|
|
||||||
{{foreach $contacts as $contact}}
|
{{foreach $contacts as $contact}}
|
||||||
{{include file="contact_template.tpl"}}
|
{{include file="connection_template.tpl"}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
<div id="contact-edit-end"></div>
|
<div id="contact-edit-end"></div>
|
||||||
|
|
Reference in New Issue
Block a user