Browse Source

Header removed in the contact area

pull/2130/head
Michael Vogel 6 years ago
parent
commit
06a4b0dc5e
  1. 2
      mod/allfriends.php
  2. 6
      mod/common.php
  3. 10
      mod/contacts.php
  4. 2
      mod/crepair.php
  5. 2
      view/templates/contact_edit.tpl
  6. 2
      view/templates/section_title.tpl
  7. 2
      view/templates/viewcontact_template.tpl

2
mod/allfriends.php

@ -84,7 +84,7 @@ function allfriends_content(&$a) {
$tpl = get_markup_template('viewcontact_template.tpl');
$o .= replace_macros($tpl,array(
'$title' => sprintf( t('Friends of %s'), htmlentities($c[0]['name'])),
//'$title' => sprintf( t('Friends of %s'), htmlentities($c[0]['name'])),
'$tab_str' => $tab_str,
'$contacts' => $entries,
));

6
mod/common.php

@ -129,13 +129,15 @@ function common_content(&$a) {
$entries[] = $entry;
}
if($cmd === 'loc' && $cid && $uid == local_user())
if($cmd === 'loc' && $cid && $uid == local_user()) {
$tab_str = contacts_tab($a, $cid, 4);
} else
$title = t('Common Friends');
$tpl = get_markup_template('viewcontact_template.tpl');
$o .= replace_macros($tpl,array(
'$title' => t('Common Friends'),
'$title' => $title,
'$tab_str' => $tab_str,
'$contacts' => $entries,
));

10
mod/contacts.php

@ -579,7 +579,7 @@ function contacts_content(&$a) {
$o .= replace_macros($tpl, array(
//'$header' => t('Contact Editor'),
'$header' => htmlentities($header),
//'$header' => htmlentities($header),
'$tab_str' => $tab_str,
'$submit' => t('Submit'),
'$lbl_vis1' => t('Profile Visibility'),
@ -928,10 +928,10 @@ function contact_posts($a, $contact_id) {
$header .= " (".network_to_name($contact['network'], $contact['url']).")";
$tpl = get_markup_template("section_title.tpl");
$o = replace_macros($tpl,array(
'$title' => htmlentities($header)
));
//$tpl = get_markup_template("section_title.tpl");
//$o = replace_macros($tpl,array(
// '$title' => htmlentities($header)
//));
$o .= $tab_str;

2
mod/crepair.php

@ -171,7 +171,7 @@ function crepair_content(&$a) {
$tpl = get_markup_template('crepair.tpl');
$o .= replace_macros($tpl, array(
//'$title' => t('Repair Contact Settings'),
'$title' => htmlentities($header),
//'$title' => htmlentities($header),
'$tab_str' => $tab_str,
'$warning' => $warning,
'$info' => $info,

2
view/templates/contact_edit.tpl

@ -1,4 +1,4 @@
<h2>{{$header}}</h2>
{{if $header}}<h2>{{$header}}</h2>{{/if}}
<div id="contact-edit-wrapper" >

2
view/templates/section_title.tpl

@ -1,4 +1,4 @@
<div class="section-title-wrapper">
<h2>{{$title}}</h2>
{{if $title}}<h2>{{$title}}</h2>{{/if}}
<div class="clear"></div>
</div>

2
view/templates/viewcontact_template.tpl

@ -8,7 +8,7 @@
{{include file="contact_template.tpl"}}
{{/foreach}}
</div>
<div class="clear"></div>
<div id="view-contact-end"></div>
{{$paginate}}
Loading…
Cancel
Save