1 <!DOCTYPE html ><?php // This is a perfect example of why I prefer to use template files rather than mixed PHP/HTML ?>
\r
4 <title><?php if(x($page,'title')) echo $page['title']; ?></title>
\r
5 <?php if(x($page,'htmlhead')) echo $page['htmlhead']; ?>
\r
8 <header><?php if(x($page,'header')) echo $page['header']; ?></header>
\r
9 <nav><div id="top-margin"></div><?php if(x($page,'nav')) echo $page['nav']; ?></nav>
\r
11 <?php if((is_array($profile)) && count($profile)) { ?>
\r
13 <?php if(strlen($profile['name'])) { ?>
\r
14 <div class="fn"><?php echo $profile['name']; ?></div>
\r
17 <?php if(strlen($profile['photo'])) { ?>
\r
18 <div id="profile-photo-wrapper"><img class="photo" src="<?php echo $profile['photo']; ?>" alt="<?php echo $profile['name']; ?>" /></div>
\r
21 <div id="profile-extra-links">
\r
23 <?php if($profile['uid'] != $_SESSION['uid']) { ?>
\r
24 <li><a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['nickname']; ?>">In Verbindung treten</a></li>
\r
30 <?php if ( (strlen($profile['address']))
\r
31 || (strlen($profile['locality']))
\r
32 || (strlen($profile['region']))
\r
33 || (strlen($profile['postal-code']))
\r
34 || (strlen($profile['country-name']))) { ?>
\r
35 <div class="location">Standort:
\r
37 <div class="street-address"><?php if(strlen($profile['address'])) echo $profile['address']; ?></div>
\r
38 <span class="city-state-zip"><span class="locality"><?php echo $profile['locality']; ?></span><?php if(strlen($profile['locality'])) echo ', '; ?><span class="region"><?php echo $profile['region'] ?></span><?php if(strlen($profile['postal-code'])) { ?> <span class="postal-code"><?php echo $profile['postal-code']; ?></span><?php } ?></span>
\r
39 <span class="country-name"><?php echo $profile['country-name']; ?></span>
\r
45 <?php if(strlen($profile['gender'])) { ?>
\r
46 <div class="mf">Geschlecht: <span class="x-gender"><?php echo $profile['gender']; ?></span></div>
\r
50 <?php if(strlen($profile['pubkey'])) { ?>
\r
51 <div class="key" style="display: none;"><?php echo $profile['pubkey']; ?></div>
\r
55 <?php if(strlen($profile['marital'])) { ?>
\r
56 <div class="marital"><span class="marital-label"><span class="heart">♥</span> Status: </span><span class="marital-text"><?php echo $profile['marital']; ?></span></div>
\r
58 <?php if(strlen($profile['homepage'])) { ?>
\r
59 <div class="homepage"><span class="homepage-label">Homepage: </span><span class="homepage-url"><?php echo linkify($profile['homepage']); ?></span></div>
\r
61 <?php if(x($page,'aside')) echo $page['aside'] ?>
\r
64 <?php if(x($page,'content')) echo $page['content']; ?>
\r
65 <div id="page-footer"></div>
\r
68 <?php if(x($page,'footer')) echo $page['footer']; ?>
\r