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