user-details-authored.tpl.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. GLOBAL $user;
  3. /**
  4. * @file
  5. * Default theme implementation to present all variables to the theme layer for
  6. * the logged-in user block of the user_details module.
  7. *
  8. * Useable variables: (syntax: <?php print variable; ?>)
  9. * - $user_details_authored_name (user name of the logged-in user)
  10. * - $user_details_authored_avatar (user avatar of the logged-in user)
  11. * - $user_details_authored_joined (logged-in user's account creation date)
  12. * - $user_details_authored_postcount (number of posts the logged-in user has created)
  13. * - $user_details_authored_points (number of user points the logged-in user has)
  14. * - $user_details_authored_rank (logged-in user's user role)
  15. * - $user_details_authored_content (logged-in user's 3 most recently updated pieces of content)
  16. * - $user_details_authored_profilelink (link to the logged-in users profile)
  17. * - $user_details_authored_subscriptionslink (link to the logged-in user's subscription overview tab on thier profile)
  18. * - $user_details_authored_createlink (link to the create content page)
  19. * - $user_details_authored_logoutlink (link to logout the logged-in user)
  20. */
  21. ?>
  22. <div id="user-details">
  23. <div id="authored">
  24. <?php if (variable_get('user_details_authored_avatar_display') != 0): ?>
  25. <div class="avatar"><?php print $user_details_authored_avatar; ?></div>
  26. <?php endif; ?>
  27. <?php if (variable_get('user_details_authored_joined_display')!= 0): ?>
  28. <div class="joined">
  29. <div class="title"><?php print $user_details_authored_joined_title; ?>:</div>
  30. <div class="result"><?php print $user_details_authored_joined_result; ?></div>
  31. </div>
  32. <?php endif; ?>
  33. <?php if (variable_get('user_details_authored_postcount_display') != 0): ?>
  34. <div class="posts-count">
  35. <div class="title"><?php print $user_details_authored_postcount_title; ?>:</div>
  36. <div class="result"><?php print $user_details_authored_postcount_result; ?></div>
  37. </div>
  38. <?php endif; ?>
  39. <?php if (variable_get('user_details_authored_points_display') != 0 && module_exists('userpoints')): ?>
  40. <div class="points">
  41. <div class="title"><?php print $user_details_authored_points_title; ?>:</div>
  42. <div class="result"><?php print $user_details_authored_points_result; ?></div>
  43. </div>
  44. <?php endif; ?>
  45. <?php if (variable_get('user_details_authored_rank_display') != 0): ?>
  46. <div class="rank">
  47. <div class="title"><?php print $user_details_authored_rank_title; ?>:</div>
  48. <div class="result"><?php print $user_details_authored_rank_result; ?></div>
  49. </div>
  50. <?php endif; ?>
  51. <?php if (variable_get('user_details_authored_stats_hr_display') != 0): ?>
  52. <?php print $user_details_authored_stats_hr; ?>
  53. <?php endif; ?>
  54. <?php if (variable_get('user_details_authored_profilelink_display') != 0 || variable_get('user_details_authored_privatemsglink_display') != 0 && module_exists('privatemsg')): ?>
  55. <div class="user-quick-links">
  56. <div class="title">User Links</div>
  57. <?php if (variable_get('user_details_authored_profilelink_display') != 0): ?>
  58. <div class="profile-link">
  59. <a href="<?php print $user_details_authored_profilelink_url; ?>"><img src="<?php print $user_details_authored_profilelink_imgsrc; ?>" title="<?php print $user_details_authored_profilelink_imgtitle; ?>" width="20px" height="20px" /></a>
  60. </div>
  61. <?php endif; ?>
  62. <?php if (variable_get('user_details_authored_privatemsglink_display') != 0): ?>
  63. <div class="privatemsg-link">
  64. <a href="<?php print $user_details_authored_privatemsglink_url; ?>"><img src="<?php print $user_details_authored_privatemsglink_imgsrc; ?>" title="<?php print $user_details_authored_privatemsglink_imgtitle; ?>" width="20px" height="20px" /></a>
  65. </div>
  66. <?php endif; ?>
  67. </div>
  68. <div class="block-end"></div>
  69. <?php endif; ?>
  70. <?php if (variable_get('user_details_authored_links_hr_display') != 0): ?>
  71. <?php print $user_details_authored_links_hr; ?>
  72. <?php endif; ?>
  73. <?php if (variable_get('user_details_authored_content_display') != 0 && variable_get('user_details_authored_content_amount') != 0): ?>
  74. <div class="content">
  75. <div class="title">Author's Content</div>
  76. <ul class="result">
  77. <?php print $user_details_authored_content; ?>
  78. </ul>
  79. </div>
  80. <?php endif; ?>
  81. <div class="block-end"></div>
  82. </div>
  83. </div>