]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
style tabs
[friendica.git] / mod / profile.php
index 94e86e151dfe0ec4d92d530f541f497765fbb79b..0e9bb6ff61ef33d56d9de0eb01aadfc05cfe1173 100644 (file)
@@ -98,7 +98,16 @@ function profile_content(&$a) {
        require_once("include/bbcode.php");
        require_once('include/security.php');
 
-//     $tpl = file_get_contents('view/profile_tabs.tpl');
+       $tab = 'posts';
+
+       if(x($_GET,'tab'))
+               $tab = notags(trim($_GET['tab']));
+
+       $tpl = file_get_contents('view/profile_tabs.tpl');
+
+       $o .= replace_macros($tpl,array(
+               '$url' => $a->get_baseurl() . '/' . $a->cmd
+       ));
 
 
        if(remote_user())
@@ -111,7 +120,12 @@ function profile_content(&$a) {
                        $contact_id = $r[0]['id'];
        }
 
+       if($tab == 'profile') {
+
+               require_once('view/profile_advanced.php');
 
+               return $o;
+       }
        if(can_write_wall($a,$a->profile['profile_uid'])) {
                $tpl = file_get_contents('view/jot-header.tpl');