com web/people: wip: include/layout.php user.php
| From: | Peter Cowburn | Date: | Wed, 04 Jun 2014 17:58:39 +0000 |
| Subject: | com web/people: wip: include/layout.php user.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-19204@lists.php.net to get a copy of this message | ||
Commit: 8d8d43781cf195f0e7f7356717c8531e2d4a2089
Author: Peter Cowburn <petercowburn@gmail.com> Wed, 4 Jun 2014 18:57:19 +0100
Parents: 05a9b2997f50038cfce293137975c0e07d821c76
Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=8d8d43781cf195f0e7f7356717c8531e2d4a2089
Log:
wip
Changed paths:
M include/layout.php
M user.php
Diff:
diff --git a/include/layout.php b/include/layout.php
index 51a6721..d981241 100644
--- a/include/layout.php
+++ b/include/layout.php
@@ -8,8 +8,10 @@ function site_header($TITLE) {
array("href" => "https://master.php.net/manage/users.php",
"text" => "Master"),
);
$CSS[] = "/styles/user-autocomplete.css";
+ $CSS[] = "/styles/people.css";
$SEARCH = array("method" => "get", "action" =>
"user.php", "placeholder" => "Search profiles", "name"
=> "username");
include dirname(__FILE__) . "/../shared/templates/header.inc";
+ //echo '<div><!-- dummy element to get around section.mainscreen:only-child CSS
--></div>';
echo '<section class="mainscreen">';
}
diff --git a/user.php b/user.php
index 656c057..59bfad0 100644
--- a/user.php
+++ b/user.php
@@ -13,36 +13,31 @@ $KARMA = findKarma($USERNAME);
$PROFILE = findPHPUserProfile($USERNAME);
$BUGS = findAssignedBugs($USERNAME);
$email = $NFO["username"].'@php.net';
+$gravatar = "//www.gravatar.com/avatar/" . md5($email) . ".jpg?s=460";
?>
-<section class="mainscreen">
-<div about="#me" typeof="foaf:Person" id="profile">
-<?php
-if ($email) {
- echo '<span rel="foaf:img"><img rel="foaf:img"
src="//www.gravatar.com/avatar/', md5($email), '.jpg" alt="Picture of
', $NFO["name"], '" height="80" width="80"
/></span>';
-}
-?>
- <dl>
- <dt>Summary</dt>
- <dd>
-<?php
-if ($NFO["name"]) {
- echo '<span property="foaf:name">', $NFO["name"],
'</span>';
-}
-?>
- (<span property="foaf:nick"><?php echo
$NFO["username"]?></span>)
- a member of <a href="http://www.php.net"
rel="foaf:Organization">PHP</a>.
- </dd>
-<?php if ($email) { ?>
- <dt>Email</dt>
- <dd><a rel="foaf:mbox" href="mailto:<?php
echo $email ?>"><?php echo $email ?></a></dd>
-<?php } ?>
+<div class="container">
+<div about="#me" typeof="foaf:Person" id="profile"
class="columns">
+<div class="profile-side column">
+ <div rel="foaf:img">
+ <img rel="foaf:img" src="<?php echo $gravatar ?>"
+ alt="Picture of <?php echo $NFO["name"] ?>"
+ height="180" width="180" />
+ </div>
+</div>
+<div class="profile-main column">
+
+ <div class="profile-name">
+ <h1 property="foaf:name"><?php echo $NFO["name"]
?></h1>
+ <h2 property="foaf:nick"><?php echo
$NFO["username"]?></h2>
+ </div>
-</dl>
+ <h2 id="contact">Contact:</h2>
+ <p class="nudge"><a rel="foaf:mbox" href="mailto:<?php echo $email ?>"><?php echo $email
?></a></p>
<?php if ($PROFILE) { ?>
<h2 id="blurb">About:</h2>
- <div class="blurb">
+ <div class="nudge blurb">
<?php echo $PROFILE; ?>
</div>
<?php } ?>
@@ -78,11 +73,12 @@ if ($NFO["name"]) {
<?php } ?>
<?php } ?>
</div>
-
-</section>
+</div>
<?php
$SIDEBAR = <<< SIDEBAR
- <p class="panel"><a href="https://master.php.net/manage/users.php?username=$USERNAME">Edit
$USERNAME on master</a></p>
+ <p class="panel">
+ <a href="https://master.php.net/manage/users.php?username=$USERNAME">Edit
$USERNAME on master</a>
+ </p>
SIDEBAR;
site_footer(array("SIDEBAR" => $SIDEBAR));