From cf1b5c47dc710e4d644429ad716ba81703875420 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 11 Jul 2010 04:09:43 -0700 Subject: [PATCH] tabs --- mod/profile.php | 6 +++++- view/style.css | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/mod/profile.php b/mod/profile.php index c0321e620e..0e9bb6ff61 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -103,7 +103,11 @@ function profile_content(&$a) { if(x($_GET,'tab')) $tab = notags(trim($_GET['tab'])); -// $tpl = file_get_contents('view/profile_tabs.tpl'); + $tpl = file_get_contents('view/profile_tabs.tpl'); + + $o .= replace_macros($tpl,array( + '$url' => $a->get_baseurl() . '/' . $a->cmd + )); if(remote_user()) diff --git a/view/style.css b/view/style.css index 86876a697d..85713080f8 100644 --- a/view/style.css +++ b/view/style.css @@ -735,3 +735,17 @@ input#dfrn-url { background-color: #FFEEEE; padding: 10px; } + +.profile-tabs { + float: left; + padding:3px; + margin-right: 5px; + border: 1px solid #888888; +} +.profile-tabs a { + text-decoration: none; +} + +#profile-tabs-end { + clear: both; +} \ No newline at end of file