]> git.mxchange.org Git - friendica.git/blob - view/profile.php
getting deeper into notifications
[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 echo $page['title']; ?></title>\r
5   <?php echo $page['htmlhead']; ?>\r
6 </head>\r
7 <body>\r
8 <header><?php echo $page['header']; ?></header>\r
9 <nav><?php 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         <a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['uid']; ?>">Introductions</a>\r
23         </div>\r
24 \r
25         <?php if ( (strlen($profile['address'])) \r
26                 || (strlen($profile['locality']))\r
27                 || (strlen($profile['region'])) \r
28                 || (strlen($profile['postal-code'])) \r
29                 || (strlen($profile['country-name']))) { ?>\r
30                 <div class="location">Location:\r
31                         <div class="adr">\r
32                                 <div class="street-address"><?php if(strlen($profile['address'])) echo $profile['address']; ?></div>\r
33                                 <div class="city-state-zip"><span class="locality"><?php echo $profile['locality']; ?></span><?php if(strlen($profile['region'])) 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 } ?></div>\r
34                                 <div class="country-name"><?php echo $profile['country-name']; ?></div>\r
35                         </div>\r
36                 </div>\r
37 \r
38         <?php } ?>\r
39 \r
40         <?php if(strlen($profile['gender'])) { ?>\r
41                 <div class="mf">Gender: <span class="x-gender"><?php echo $profile['gender']; ?></span></div>\r
42 \r
43         <?php } ?>\r
44 \r
45         <?php if(strlen($profile['pubkey'])) { ?>\r
46                 <div class="key" style="display: none"><?php echo $profile['pubkey']; ?></div>\r
47         <?php } ?>\r
48 </div>\r
49 <?php } ?>\r
50 <?php if(strlen($profile['marital'])) { ?>\r
51 <div class="marital"><span class="marital-label">Status: </span><span class="marital-text"><?php echo $profile['marital']; ?></span></div>\r
52 <?php } ?>\r
53 <?php if(strlen($profile['url'])) { ?>\r
54 <div class="homepage"><span class="homepage-label">Status: </span><span class="homepage-url"><?php echo $profile['homepage']; ?></span></div>\r
55 <?php } ?>\r
56 <?php echo $page['aside'] ?>\r
57 </aside>\r
58 <section>\r
59 <?php echo $page['content']; ?>\r
60 </section>\r
61 <footer>\r
62 <?php echo $page['footer']; ?>\r
63 </footer>\r
64 </body>\r
65 </html>\r
66 \r