Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.7 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  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 echo $page['title']; ?></title>
  5. <?php echo $page['htmlhead']; ?>
  6. </head>
  7. <body>
  8. <header><?php echo $page['header']; ?></header>
  9. <nav><?php 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. <?php if(strlen($profile['photo'])) { ?>
  17. <div id="profile-photo-wrapper"><img class="photo" src="<?php echo $profile['photo']; ?>" alt="<?php echo $profile['name']; ?>" /></div>
  18. <?php } ?>
  19. <div id="profile-extra-links">
  20. <ul>
  21. <li><a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['nickname']; ?>">Introductions</a></li>
  22. <?php if(! $profile['hide-friends']) echo '<li><a id="viewcontacts-link" href="viewcontacts/' . $profile['nickname'] . '">View Contacts</a></li>'; ?>
  23. </ul>
  24. </div>
  25. <?php if ( (strlen($profile['address']))
  26. || (strlen($profile['locality']))
  27. || (strlen($profile['region']))
  28. || (strlen($profile['postal-code']))
  29. || (strlen($profile['country-name']))) { ?>
  30. <div class="location">Location:
  31. <div class="adr">
  32. <div class="street-address"><?php if(strlen($profile['address'])) echo $profile['address']; ?></div>
  33. <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>
  34. <span class="country-name"><?php echo $profile['country-name']; ?></span>
  35. </div>
  36. </div>
  37. <?php } ?>
  38. <?php if(strlen($profile['gender'])) { ?>
  39. <div class="mf">Gender: <span class="x-gender"><?php echo $profile['gender']; ?></span></div>
  40. <?php } ?>
  41. <?php if(strlen($profile['pubkey'])) { ?>
  42. <div class="key" style="display: none"><?php echo $profile['pubkey']; ?></div>
  43. <?php } ?>
  44. </div>
  45. <?php } ?>
  46. <?php if(strlen($profile['marital'])) { ?>
  47. <div class="marital"><span class="marital-label">Status: </span><span class="marital-text"><?php echo $profile['marital']; ?></span></div>
  48. <?php } ?>
  49. <?php if(strlen($profile['url'])) { ?>
  50. <div class="homepage"><span class="homepage-label">Status: </span><span class="homepage-url"><?php echo $profile['homepage']; ?></span></div>
  51. <?php } ?>
  52. <?php echo $page['aside'] ?>
  53. </aside>
  54. <section>
  55. <?php echo $page['content']; ?>
  56. </section>
  57. <footer>
  58. <?php echo $page['footer']; ?>
  59. </footer>
  60. </body>
  61. </html>