X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcrepair.php;h=457a06685db35df037ebfd41c2796b961caf0195;hb=836058c47745f502890a209dfd6efcb3596ace84;hp=400817d6f7e42588e4e18c4a8805714f2d40ffef;hpb=395be3dcde55d16c8e23dbe9137d1279b58442a4;p=friendica.git
diff --git a/mod/crepair.php b/mod/crepair.php
index 400817d6f7..457a06685d 100644
--- a/mod/crepair.php
+++ b/mod/crepair.php
@@ -22,11 +22,12 @@ function crepair_init(&$a) {
if($contact_id) {
$a->data['contact'] = $r[0];
- $o .= '
';
- $o .= '
' . $a->data['contact']['name'] . '
';
- $o .= '
';
- $o .= '
';
- $a->page['aside'] .= $o;
+ $tpl = get_markup_template("vcard-widget.tpl");
+ $vcard_widget .= replace_macros($tpl, array(
+ '$name' => $a->data['contact']['name'],
+ '$photo' => $a->data['contact']['photo']
+ ));
+ $a->page['aside'] .= $vcard_widget;
}
}
@@ -160,8 +161,12 @@ function crepair_content(&$a) {
else
$remote_self_options = array('0'=>t('No mirroring'), '2'=>t('Mirror as my own posting'));
+ $update_profile = in_array($contact['network'], array(NETWORK_DFRN, NETWORK_DSPR, NETWORK_OSTATUS));
+
$tpl = get_markup_template('crepair.tpl');
$o .= replace_macros($tpl, array(
+ '$update_profile' => update_profile,
+ '$udprofilenow' => t('Refetch contact data'),
'$label_name' => t('Name'),
'$label_nick' => t('Account Nickname'),
'$label_attag' => t('@Tagname - overrides Name/Nickname'),