fix aside contact block, add edit profiles icon
This commit is contained in:
parent
20ca451200
commit
2c1aca7ffe
3 changed files with 20 additions and 5 deletions
9
boot.php
9
boot.php
|
@ -858,6 +858,14 @@ function profile_sidebar($profile, $block = 0) {
|
|||
$connect = False;
|
||||
|
||||
|
||||
// show edit to yourself
|
||||
if ($profile['uid'] == local_user()) {
|
||||
$profile['edit'] = array($a->get_baseurl(). 'profiles', t('Profiles'),"", t('Manage/edit profiles'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if((x($profile,'address') == 1)
|
||||
|| (x($profile,'locality') == 1)
|
||||
|| (x($profile,'region') == 1)
|
||||
|
@ -890,6 +898,7 @@ function profile_sidebar($profile, $block = 0) {
|
|||
$contact_block = contact_block();
|
||||
}
|
||||
|
||||
|
||||
$tpl = get_markup_template('profile_vcard.tpl');
|
||||
|
||||
$o .= replace_macros($tpl, array(
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
<h4 class="contact-h4">$contacts</h4>
|
||||
{{ if $micropro }}
|
||||
<div id="contact-block">
|
||||
<h4 class="contact-block-h4">$contacts</h4>
|
||||
{{ if $micropro }}
|
||||
<a class="allcontact-link" href="viewcontacts/$nickname">$viewcontacts</a>
|
||||
<div class='contact-block-content'>
|
||||
{{ for $micropro as $m }}
|
||||
$m
|
||||
{{ endfor }}
|
||||
</div>
|
||||
<div id="viewcontacts"><a id="viewcontacts-link" href="viewcontacts/$nickname">$viewcontacts</a></div>
|
||||
{{ endif }}
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<div class="vcard">
|
||||
|
||||
<div class="fn">$profile.name</div>
|
||||
<div class="tool">
|
||||
<div class="fn label">$profile.name</div>
|
||||
{{ if $profile.edit }}<a class="icon s16 edit" href="$profile.edit.0" title="$profile.edit.3"><span>$profile.edit.1</span></a>{{ endif }}
|
||||
</div>
|
||||
|
||||
{{ if $pdesc }}<div class="title">$profile.pdesc</div>{{ endif }}
|
||||
<div id="profile-photo-wrapper"><img class="photo" width="175" height="175" src="$profile.photo" alt="$profile.name"></div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue