Yoshi-Networks

userInfoPane

May 19th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.22 KB | None | 0 0
  1. <div itemscope itemtype="http://schema.org/Person" class='user_details'>
  2. <if test="$this->request['t']">
  3.  
  4. <div class='horizontalAvatar left'>
  5.  
  6. <if test="avatar:|:$author['member_id']">
  7. <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
  8. <a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
  9. </if>
  10. <if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
  11. <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
  12. <else />
  13. <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
  14. </if>
  15. <if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
  16. </a>
  17. </if>
  18. </li>
  19. <else />
  20. <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
  21. </if>
  22.  
  23. </div>
  24.  
  25. <div class='horizontalUserInfo'>
  26.  
  27. <div class='horizontalUsername'>
  28.  
  29. <if test="$author['member_id']">
  30. <span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$author"}</span>
  31. <else />
  32. {$author['members_display_name']}
  33. </if>
  34.  
  35. </div>
  36.  
  37. <ul class='horizontalInfoList' style='width: 140px;'>
  38. <li class='group_title'>
  39. {$author['_group_formatted']}
  40. </li>
  41. <if test="postCount:|:$author['member_id']">
  42. <li class='post_count desc lighter'>
  43. {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}
  44. </li>
  45. </if>
  46. </ul>
  47.  
  48. <ul class='horizontalInfoList' style='width: 140px;'>
  49. <if test="rankimage:|:$author['member_rank_img']">
  50. <li class='group_icon'>
  51. <if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
  52. <img src='{$author['member_rank_img']}' alt='' />
  53. <else />
  54. {$author['member_rank_img']}
  55. </if>
  56. </li>
  57. </if>
  58. <if test="membertitle:|:$author['member_title']">
  59. <li>{$author['member_title']}</li>
  60. </if>
  61. <if test="authorwarn:|:$author['show_warn']">
  62. <li>
  63. <if test="$options['wl_id']">
  64. <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />
  65. </if>
  66. <a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
  67. </li>
  68. </if>
  69. </ul>
  70.  
  71. <if test="authorcfields:|:$author['custom_fields'] != """>
  72. <ul class='horizontalInfoList custom_fields'>
  73. <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
  74. <foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
  75. <if test="$field != ''">
  76. <li>
  77. {$field}
  78. </li>
  79. </if>
  80. </foreach>
  81. </foreach>
  82. </ul>
  83. </if>
  84.  
  85. <ul class='horizontalInfoList' style='float: right; width: 190px;'>
  86. <li><if test="$author['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if> Last active: {$author['_last_active']}</li>
  87. <li style='padding-left: 15px;'>Joined: {parse date="$author['joined']" format="DATE"}</li>
  88. </ul>
  89.  
  90. </div>
  91.  
  92. <else />
  93.  
  94. <span class='hide' itemprop="name">{$author['members_display_name']}</span>
  95.  
  96. <ul class='basic_info'>
  97. <if test="membertitle:|:$author['member_title']">
  98. <p class='desc member_title'>{$author['member_title']}</p>
  99. </if>
  100. <if test="avatar:|:$author['member_id']">
  101. <li class='avatar'>
  102. <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
  103. <a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
  104. </if>
  105. <if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
  106. <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
  107. <else />
  108. <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
  109. </if>
  110. <if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
  111. </a>
  112. </if>
  113. </li>
  114. <else />
  115. <li class='avatar'>
  116. <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
  117. </li>
  118. </if>
  119. <li class='group_title'>
  120. {$author['_group_formatted']}
  121. </li>
  122. <if test="rankimage:|:$author['member_rank_img']">
  123. <li class='group_icon'>
  124. <if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
  125. <img src='{$author['member_rank_img']}' alt='' />
  126. <else />
  127. {$author['member_rank_img']}
  128. </if>
  129. </li>
  130. </if>
  131. <if test="postCount:|:$author['member_id']">
  132. <li class='post_count desc lighter'>
  133. {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}
  134. </li>
  135. </if>
  136. <if test="authorwarn:|:$author['show_warn']">
  137. <li>
  138. <if test="$options['wl_id']">
  139. <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />
  140. </if>
  141. <a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
  142. </li>
  143. </if>
  144. </ul>
  145.  
  146. <if test="authorcfields:|:$author['custom_fields'] != """>
  147. <ul class='custom_fields'>
  148. <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
  149. <foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
  150. <if test="$field != ''">
  151. <li>
  152. {$field}
  153. </li>
  154. </if>
  155. </foreach>
  156. </foreach>
  157. </ul>
  158. </if>
  159.  
  160. </if>
  161.  
  162. </div>
Advertisement
Add Comment
Please, Sign In to add comment