]> git.mxchange.org Git - friendica.git/blob - view/profile.php
more lint
[friendica.git] / view / profile.php
1 <!DOCTYPE html ><?php // This is a perfect example of why I prefer to use template files rather than mixed PHP/HTML ?>\r
2 <html>\r
3 <head>\r
4   <title><?php if(x($page,'title')) echo $page['title']; ?></title>\r
5   <?php if(x($page,'htmlhead')) echo $page['htmlhead']; ?>\r
6 </head>\r
7 <body>\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
10 <aside>\r
11 <?php if((is_array($profile)) && count($profile)) { ?>\r
12 <div class="vcard">\r
13         <?php if(strlen($profile['name'])) { ?>\r
14                 <div class="fn"><?php echo $profile['name']; ?></div>\r
15         <?php } ?>\r
16 \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
19         <?php } ?>\r
20 \r
21         <div id="profile-extra-links">\r
22         <ul>\r
23         <?php if($profile['uid'] != $_SESSION['uid']) { ?>\r
24         <li><a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['nickname']; ?>">Connect</a></li>\r
25         <?php } ?>\r
26         <?php if(! $profile['hide-friends']) echo '<li><a id="viewcontacts-link" href="viewcontacts/' . $profile['nickname'] . '">View Contacts</a></li>'; ?>\r
27 \r
28         </ul>\r
29 \r
30         </div>\r
31 \r
32         <?php if ( (strlen($profile['address'])) \r
33                 || (strlen($profile['locality']))\r
34                 || (strlen($profile['region'])) \r
35                 || (strlen($profile['postal-code'])) \r
36                 || (strlen($profile['country-name']))) { ?>\r
37                 <div class="location">Location:\r
38                         <div class="adr">\r
39                                 <div class="street-address"><?php if(strlen($profile['address'])) echo $profile['address']; ?></div>\r
40                                 <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
41                                 <span class="country-name"><?php echo $profile['country-name']; ?></span>\r
42                         </div>\r
43                 </div>\r
44 \r
45         <?php } ?>\r
46 \r
47         <?php if(strlen($profile['gender'])) { ?>\r
48                 <div class="mf">Gender: <span class="x-gender"><?php echo $profile['gender']; ?></span></div>\r
49 \r
50         <?php } ?>\r
51 \r
52         <?php if(strlen($profile['pubkey'])) { ?>\r
53                 <div class="key" style="display: none"><?php echo $profile['pubkey']; ?></div>\r
54         <?php } ?>\r
55 </div>\r
56 <?php } ?>\r
57 <?php if(strlen($profile['marital'])) { ?>\r
58 <div class="marital"><span class="marital-label"><span class="heart">&hearts;</span> Status: </span><span class="marital-text"><?php echo $profile['marital']; ?></span></div>\r
59 <?php } ?>\r
60 <?php if(strlen($profile['homepage'])) { ?>\r
61 <div class="homepage"><span class="homepage-label">Homepage: </span><span class="homepage-url"><?php echo $profile['homepage']; ?></span></div>\r
62 <?php } ?>\r
63 <?php if(x($page,'aside')) echo $page['aside'] ?>\r
64 </aside>\r
65 <section>\r
66 <?php if(x($page,'content')) echo $page['content']; ?>\r
67 <div id="page-footer"></div>\r
68 </section>\r
69 <footer>\r
70 <?php if(x($page,'footer')) echo $page['footer']; ?>\r
71 </footer>\r
72 </body>\r
73 </html>\r
74 \r