From 557f99c18d14ca345e13e79ed04fac5a03bb822a Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Thu, 13 Feb 2014 10:46:02 +0700 Subject: [PATCH] Fix markup for profile page Fix markup for profile page. --- system/includes/functions.php | 10 +++++++++- themes/clean/profile.html.php | 8 +++++--- themes/default/profile.html.php | 8 +++++--- themes/logs/css/style.css | 5 +++-- themes/logs/profile.html.php | 8 +++++--- 5 files changed, 27 insertions(+), 12 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index fb569cc..1eb07cb 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -312,6 +312,8 @@ function get_bio($author){ $names = get_author_names(); + $username = 'config/users/' . $author . '.ini'; + $tmp = array(); if(!empty($names)) { @@ -351,7 +353,13 @@ function get_bio($author){ } } } - return $tmp; + + if(!empty($tmp) || file_exists($username)) { + return $tmp; + } + else { + not_found(); + } } diff --git a/themes/clean/profile.html.php b/themes/clean/profile.html.php index 998d5ae..22deb38 100644 --- a/themes/clean/profile.html.php +++ b/themes/clean/profile.html.php @@ -1,7 +1,9 @@ -
-

-
+
+
+

+
+

Posts by this author

diff --git a/themes/default/profile.html.php b/themes/default/profile.html.php index 998d5ae..22deb38 100644 --- a/themes/default/profile.html.php +++ b/themes/default/profile.html.php @@ -1,7 +1,9 @@ -
-

-
+
+
+

+
+

Posts by this author

diff --git a/themes/logs/css/style.css b/themes/logs/css/style.css index c6a7ece..fc8e55a 100644 --- a/themes/logs/css/style.css +++ b/themes/logs/css/style.css @@ -271,6 +271,7 @@ ul li, ol li{ font-family: 'Open Sans',sans-serif; font-size:15px; text-shadow: 0 1px 0 #ffffff; + padding-bottom:7px; } #menu { @@ -287,7 +288,7 @@ ul li, ol li{ #menu ul li { padding: 0 10px; float: left; - margin:0 0 7px 0; + margin:0; } #menu ul li.first { @@ -367,7 +368,7 @@ ul li, ol li{ -webkit-transition:all .218s ease-in; transition:all .218s ease-in; cursor:pointer; - height:22px; + height:23px; padding: 0 3px; } diff --git a/themes/logs/profile.html.php b/themes/logs/profile.html.php index 0562fda..8cdb9d8 100644 --- a/themes/logs/profile.html.php +++ b/themes/logs/profile.html.php @@ -1,7 +1,9 @@ -
-

-
+
+
+

+
+

Posts by this author