user-details-loggedin.tpl.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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_loggedin_name (user name of the logged-in user)
  10. * - $user_details_loggedin_avatar (user avatar of the logged-in user)
  11. * - $user_details_loggedin_joined (logged-in user's account creation date)
  12. * - $user_details_loggedin_postcount (number of posts the logged-in user has created)
  13. * - $user_details_loggedin_points (number of user points the logged-in user has)
  14. * - $user_details_loggedin_rank (logged-in user's user role)
  15. * - $user_details_loggedin_content (logged-in user's 3 most recently updated pieces of content)
  16. * - $user_details_loggedin_profilelink (link to the logged-in users profile)
  17. * - $user_details_loggedin_subscriptionslink (link to the logged-in user's subscription overview tab on thier profile)
  18. * - $user_details_loggedin_createlink (link to the create content page)
  19. * - $user_details_loggedin_logoutlink (link to logout the logged-in user)
  20. */
  21. ?>
  22. <div id="user-details">
  23. <div id="loggedin">
  24. <?php if (variable_get('user_details_loggedin_avatar_display') != 0): ?>
  25. <div class="avatar"><?php print $user_details_loggedin_avatar; ?></div>
  26. <?php endif; ?>
  27. <?php if (variable_get('user_details_loggedin_joined_display')!= 0): ?>
  28. <div class="joined">
  29. <div class="title"><?php print $user_details_loggedin_joined_title; ?>:</div>
  30. <div class="result"><?php print $user_details_loggedin_joined_result; ?></div>
  31. </div>
  32. <?php endif; ?>
  33. <?php if (variable_get('user_details_loggedin_postcount_display') != 0): ?>
  34. <div class="posts-count">
  35. <div class="title"><?php print $user_details_loggedin_postcount_title; ?>:</div>
  36. <div class="result"><?php print $user_details_loggedin_postcount_result; ?></div>
  37. </div>
  38. <?php endif; ?>
  39. <?php if (variable_get('user_details_loggedin_points_display') != 0 && module_exists('userpoints')): ?>
  40. <div class="points">
  41. <div class="title"><?php print $user_details_loggedin_points_title; ?>:</div>
  42. <div class="result"><?php print $user_details_loggedin_points_result; ?></div>
  43. </div>
  44. <?php endif; ?>
  45. <?php if (variable_get('user_details_loggedin_privatemsg_display') != 0 && module_exists('privatemsg')): ?>
  46. <div class="private-message-count">
  47. <div class="title"><?php print $user_details_loggedin_privatemsg_count_title; ?>:</div>
  48. <div class="result"><?php print $user_details_loggedin_privatemsg_count_result; ?></div>
  49. </div>
  50. <?php endif; ?>
  51. <?php if (variable_get('user_details_loggedin_rank_display') != 0): ?>
  52. <div class="rank">
  53. <div class="title"><?php print $user_details_loggedin_rank_title; ?>:</div>
  54. <div class="result"><?php print $user_details_loggedin_rank_result; ?></div>
  55. </div>
  56. <?php endif; ?>
  57. <?php if (variable_get('user_details_loggedin_stats_hr_display') != 0): ?>
  58. <?php print $user_details_loggedin_stats_hr; ?>
  59. <?php endif; ?>
  60. <?php if (variable_get('user_details_loggedin_frontlink_display') != 0 || variable_get('user_details_loggedin_profilelink_display') != 0 || variable_get('user_details_loggedin_profileeditlink_display') != 0 || variable_get('user_details_loggedin_privatemsglink_display') != 0 && module_exists('privatemsg') || variable_get('user_details_loggedin_createlink_display') != 0 || variable_get('user_details_loggedin_customlinkone_type') == '2' || variable_get('user_details_loggedin_customlinktwo_type') == '2' || variable_get('user_details_loggedin_customlinkthree_type') == '2' || variable_get('user_details_loggedin_customlinkfour_type') == '2' || variable_get('user_details_loggedin_customlinkfive_type') == '2'): ?>
  61. <div class="user-quick-links">
  62. <div class="title">User Links</div>
  63. <?php if (variable_get('user_details_loggedin_frontlink_display') != 0): ?>
  64. <div class="front-link">
  65. <a href="<?php print $user_details_loggedin_frontlink_url; ?>"><img src="<?php print $user_details_loggedin_frontlink_imgsrc; ?>" title="<?php print $user_details_loggedin_frontlink_imgtitle; ?>" width="20px" height="20px" /></a>
  66. </div>
  67. <?php endif; ?>
  68. <?php if (variable_get('user_details_loggedin_profilelink_display') != 0): ?>
  69. <div class="profile-link">
  70. <a href="<?php print $user_details_loggedin_profilelink_url; ?>"><img src="<?php print $user_details_loggedin_profilelink_imgsrc; ?>" title="<?php print $user_details_loggedin_profilelink_imgtitle; ?>" width="20px" height="20px" /></a>
  71. </div>
  72. <?php endif; ?>
  73. <?php if (variable_get('user_details_loggedin_profileeditlink_display') != 0): ?>
  74. <div class="profileedit-link">
  75. <a href="<?php print $user_details_loggedin_profileeditlink_url; ?>"><img src="<?php print $user_details_loggedin_profileeditlink_imgsrc; ?>" title="<?php print $user_details_loggedin_profileeditlink_imgtitle; ?>" width="20px" height="20px" /></a>
  76. </div>
  77. <?php endif; ?>
  78. <?php if (variable_get('user_details_loggedin_privatemsglink_display') != 0): ?>
  79. <div class="privatemsg-link">
  80. <a href="<?php print $user_details_loggedin_privatemsglink_url; ?>"><img src="<?php print $user_details_loggedin_privatemsglink_imgsrc; ?>" title="<?php print $user_details_loggedin_privatemsglink_imgtitle; ?>" width="20px" height="20px" /></a>
  81. </div>
  82. <?php endif; ?>
  83. <?php if (variable_get('user_details_loggedin_createlink_display') != 0): ?>
  84. <div class="create-link">
  85. <a href="<?php print $user_details_loggedin_createlink_url; ?>"><img src="<?php print $user_details_loggedin_createlink_imgsrc; ?>" title="<?php print $user_details_loggedin_createlink_imgtitle; ?>" width="20px" height="20px" /></a>
  86. </div>
  87. <?php endif; ?>
  88. <?php if (variable_get('user_details_loggedin_logoutlink_display') != 0): ?>
  89. <div class="logout-link">
  90. <a href="<?php print $user_details_loggedin_logoutlink_url; ?>"><img src="<?php print $user_details_loggedin_logoutlink_imgsrc; ?>" title="<?php print $user_details_loggedin_logoutlink_imgtitle; ?>" width="20px" height="20px" /></a>
  91. </div>
  92. <?php endif; ?>
  93. <?php if (variable_get('user_details_loggedin_customlinkone_type') == '2'): ?>
  94. <div class="custom-link-one">
  95. <a href="<?php print $user_details_loggedin_customlinkone_url; ?>"><img src="<?php print $user_details_loggedin_customlinkone_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkone_imgtitle; ?>" width="20px" height="20px" /></a>
  96. </div>
  97. <?php endif; ?>
  98. <?php if (variable_get('user_details_loggedin_customlinktwo_type') == '2'): ?>
  99. <div class="custom-link-two">
  100. <a href="<?php print $user_details_loggedin_customlinktwo_url; ?>"><img src="<?php print $user_details_loggedin_customlinktwo_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinktwo_imgtitle; ?>" width="20px" height="20px" /></a>
  101. </div>
  102. <?php endif; ?>
  103. <?php if (variable_get('user_details_loggedin_customlinkthree_type') == '2'): ?>
  104. <div class="custom-link-three">
  105. <a href="<?php print $user_details_loggedin_customlinkthree_url; ?>"><img src="<?php print $user_details_loggedin_customlinkthree_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkthree_imgtitle; ?>" width="20px" height="20px" /></a>
  106. </div>
  107. <?php endif; ?>
  108. <?php if (variable_get('user_details_loggedin_customlinkfour_type') == '2'): ?>
  109. <div class="custom-link-four">
  110. <a href="<?php print $user_details_loggedin_customlinkfour_url; ?>"><img src="<?php print $user_details_loggedin_customlinkfour_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkfour_imgtitle; ?>" width="20px" height="20px" /></a>
  111. </div>
  112. <?php endif; ?>
  113. <?php if (variable_get('user_details_loggedin_customlinkfive_type') == '2'): ?>
  114. <div class="custom-link-five">
  115. <a href="<?php print $user_details_loggedin_customlinkfive_url; ?>"><img src="<?php print $user_details_loggedin_customlinkfive_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkfive_imgtitle; ?>" width="20px" height="20px" /></a>
  116. </div>
  117. <?php endif; ?>
  118. </div>
  119. <div class="block-end"></div>
  120. <?php endif; ?>
  121. <?php if (user_access('administor content')): ?>
  122. <?php if (variable_get('user_details_loggedin_adminlink_display') !=0 || variable_get('user_details_loggedin_panelslink_display') != 0 && module_exists('panels') || variable_get('user_details_loggedin_viewslink_display') && module_exists('views') || variable_get('user_details_loggedin customlinkone_type') == '3' || variable_get('user_details_loggedin customlinktwo_type') == '3' || variable_get('user_details_loggedin customlinkthree_type') == '3' || variable_get('user_details_loggedin customlinkfour_type') == '3' || variable_get('user_details_loggedin customlinkfive_type') == '3'): ?>
  123. <div class="admin-quick-links">
  124. <div class="title">Admin Links</div>
  125. <?php if (variable_get('user_details_loggedin_adminlink_display') != 0): ?>
  126. <div class="admin-link">
  127. <a href="<?php print $user_details_loggedin_adminlink_url; ?>"><img src="<?php print $user_details_loggedin_adminlink_imgsrc; ?>" title="<?php print $user_details_loggedin_adminlink_imgtitle; ?>" width="20px" height="20px" /></a>
  128. </div>
  129. <?php endif; ?>
  130. <?php if (variable_get('user_details_loggedin_panelslink_display') != 0 && module_exists('panels')): ?>
  131. <div class="panels-link">
  132. <a href="<?php print $user_details_loggedin_panelslink_url; ?>"><img src="<?php print $user_details_loggedin_panelslink_imgsrc; ?>" title="<?php print $user_details_loggedin_panelslink_imgtitle; ?>" width="20px" height="20px" /></a>
  133. </div>
  134. <?php endif; ?>
  135. <?php if (variable_get('user_details_loggedin_viewslink_display') != 0 && module_exists('views')): ?>
  136. <div class="views-link">
  137. <a href="<?php print $user_details_loggedin_viewslink_url; ?>"><img src="<?php print $user_details_loggedin_viewslink_imgsrc; ?>" title="<?php print $user_details_loggedin_viewslink_imgtitle; ?>" width="20px" height="20px" /></a>
  138. </div>
  139. <?php endif; ?>
  140. <?php if (variable_get('user_details_loggedin_performancelink_display') != 0): ?>
  141. <div class="performance-link">
  142. <a href="<?php print $user_details_loggedin_performancelink_url; ?>"><img src="<?php print $user_details_loggedin_performancelink_imgsrc; ?>" title="<?php print $user_details_loggedin_performancelink_imgtitle; ?>" width="20px" height="20px" /></a>
  143. </div>
  144. <?php endif; ?>
  145. <?php if (variable_get('user_details_loggedin_customlinkone_type') == '3'): ?>
  146. <div class="custom-link-one">
  147. <a href="<?php print $user_details_loggedin_customlinkone_url; ?>"><img src="<?php print $user_details_loggedin_customlinkone_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkone_imgtitle; ?>" width="20px" height="20px" /></a>
  148. </div>
  149. <?php endif; ?>
  150. <?php if (variable_get('user_details_loggedin_customlinktwo_type') == '3'): ?>
  151. <div class="custom-link-two">
  152. <a href="<?php print $user_details_loggedin_customlinktwo_url; ?>"><img src="<?php print $user_details_loggedin_customlinktwo_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinktwo_imgtitle; ?>" width="20px" height="20px" /></a>
  153. </div>
  154. <?php endif; ?>
  155. <?php if (variable_get('user_details_loggedin_customlinkthree_type') == '3'): ?>
  156. <div class="custom-link-three">
  157. <a href="<?php print $user_details_loggedin_customlinkthree_url; ?>"><img src="<?php print $user_details_loggedin_customlinkthree_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkthree_imgtitle; ?>" width="20px" height="20px" /></a>
  158. </div>
  159. <?php endif; ?>
  160. <?php if (variable_get('user_details_loggedin_customlinkfour_type') == '3'): ?>
  161. <div class="custom-link-four">
  162. <a href="<?php print $user_details_loggedin_customlinkfour_url; ?>"><img src="<?php print $user_details_loggedin_customlinkfour_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkfour_imgtitle; ?>" width="20px" height="20px" /></a>
  163. </div>
  164. <?php endif; ?>
  165. <?php if (variable_get('user_details_loggedin_customlinkfive_type') == '3'): ?>
  166. <div class="custom-link-one">
  167. <a href="<?php print $user_details_loggedin_customlinkfive_url; ?>"><img src="<?php print $user_details_loggedin_customlinkfive_imgsrc; ?>" title="<?php print $user_details_loggedin_customlinkfive_imgtitle; ?>" width="20px" height="20px" /></a>
  168. </div>
  169. <?php endif; ?>
  170. </div>
  171. <?php endif; ?>
  172. <div class="block-end"></div>
  173. <?php endif; ?>
  174. <?php if (variable_get('user_details_loggedin_links_hr_display') != 0): ?>
  175. <?php print $user_details_loggedin_links_hr; ?>
  176. <?php endif; ?>
  177. <?php if (variable_get('user_details_loggedin_content_display') != 0 && variable_get('user_details_loggedin_content_amount') != 0): ?>
  178. <div class="content">
  179. <div class="title">My Content</div>
  180. <ul class="result">
  181. <?php print $user_details_loggedin_content; ?>
  182. </ul>
  183. </div>
  184. <?php endif; ?>
  185. <div class="block-end"></div>
  186. </div>
  187. </div>