]> git.mxchange.org Git - friendica.git/commitdiff
Header removed in the contact area
authorMichael Vogel <icarus@dabo.de>
Tue, 1 Dec 2015 17:21:05 +0000 (18:21 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 1 Dec 2015 17:21:05 +0000 (18:21 +0100)
mod/allfriends.php
mod/common.php
mod/contacts.php
mod/crepair.php
view/templates/contact_edit.tpl
view/templates/section_title.tpl
view/templates/viewcontact_template.tpl

index 3e825c0060fbdd097fcffcf50453e35e35e3bcd8..49879c7a03dbcab8613032318a0f17b2a4ddc178 100644 (file)
@@ -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,
        ));
index 66efaf62e0351d2c4d70b377dff61954ff390446..7c12dd39bbf0b0c472adc5249a1d7f72a2700b09 100644 (file)
@@ -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,
        ));
index 8e1fb6f67bbb6068a568466d208f78f95acc60fc..35ce753676ee682c73245b7b578115b8b3f245a0 100644 (file)
@@ -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;
 
index d927e363636d1caf0c2dad775b44749bbb288899..99a039b379579982a0d0d63beb9b9697bf5bdf9c 100644 (file)
@@ -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,
index 0733c9e18752d60eb6b4cd770e863acaf9b647c5..15863b6a272227a4ece28b1153058beca943a996 100644 (file)
@@ -1,4 +1,4 @@
-<h2>{{$header}}</h2>
+{{if $header}}<h2>{{$header}}</h2>{{/if}}
 
 <div id="contact-edit-wrapper" >
 
index 8614fb883b0866fa06912dd3ae18fc48afa49658..f17dcf7ad40759f893c047b764c282bbeaab6ca5 100644 (file)
@@ -1,4 +1,4 @@
 <div class="section-title-wrapper">
-       <h2>{{$title}}</h2>
+       {{if $title}}<h2>{{$title}}</h2>{{/if}}
        <div class="clear"></div>
 </div>
index c4e2e643e6def1714143f4ac39c4e7629e9fc4a1..3ea277a42bd6ea0cdf0f1a315de95baf866191ff 100644 (file)
@@ -8,7 +8,7 @@
        {{include file="contact_template.tpl"}}
 {{/foreach}}
 </div>
-
+<div class="clear"></div>
 <div id="view-contact-end"></div>
 
 {{$paginate}}