Advertisement
DubStepMad

Untitled

Jul 27th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.91 KB | None | 0 0
  1. {{$coverPhoto = $member->coverPhoto();}}
  2. <header data-role="profileHeader">
  3. <div class='ipsPageHead_special {{if $small === true}}cProfileHeaderMinimal{{endif}}' id='elProfileHeader' data-controller='core.global.core.coverPhoto' data-url="{$member->url()->csrf()}" data-coverOffset='{$coverPhoto->offset}'>
  4. {{if $coverPhoto->file}}
  5. <div class='ipsCoverPhoto_container'>
  6. {{if settings.lazy_load_enabled}}
  7. <img src='{expression="\IPS\Text\Parser::blankImage()"}' data-src='{$coverPhoto->file->url}' class='ipsCoverPhoto_photo' data-action="toggleCoverPhoto" alt=''>
  8. {{else}}
  9. <img src='{$coverPhoto->file->url}' class='ipsCoverPhoto_photo' data-action="toggleCoverPhoto" alt=''>
  10. {{endif}}
  11. </div>
  12. {{else}}
  13. <div class='ipsCoverPhoto_container' style="background-color: {$member->coverPhotoBackgroundColor()}">
  14. <img src='{resource="pattern.png" app="core" location="global"}' class='ipsCoverPhoto_photo' data-action="toggleCoverPhoto" alt=''>
  15. </div>
  16. {{endif}}
  17. {{if \IPS\Member::loggedIn()->modPermission('can_modify_profiles') or ( \IPS\Member::loggedIn()->member_id == $member->member_id and $member->group['g_edit_profile'] )}}
  18. <ul class='ipsButton_split' id='elEditProfile' data-hideOnCoverEdit>
  19. <li>
  20. <a href='{url="app=core&module=members&controller=profile&do=edit&id={$member->member_id}" base="front" seoTemplate="edit_profile" seoTitle="$member->members_seo_name"}' class='ipsButton ipsButton_overlaid' data-ipsDialog data-ipsDialog-modal='true' data-ipsDialog-title='{lang="profile_edit"}'>
  21. <i class='fa fa-pencil'></i>&nbsp;<span class='ipsResponsive_hidePhone ipsResponsive_inline'>&nbsp;&nbsp;{lang="profile_edit"}</span>
  22. </a>
  23. </li>
  24. {{if $coverPhoto->editable}}
  25. <li>
  26. <a href='#elEditPhoto_menu' data-hideOnCoverEdit class='ipsButton ipsButton_overlaid' data-ipsMenu id='elEditPhoto' data-role='coverPhotoOptions'>
  27. <i class='fa fa-picture-o'></i>&nbsp;<span class='ipsResponsive_hidePhone ipsResponsive_inline'>&nbsp;&nbsp;{lang="profile_edit_cover_photo_tab"} <i class='fa fa-caret-down'></i></span>
  28. </a>
  29. <ul class='ipsMenu ipsMenu_auto ipsHide' id='elEditPhoto_menu'>
  30. {{if $coverPhoto->file}}
  31. <li class='ipsMenu_item' data-role="photoEditOption">
  32. <a href='{$member->url()->setQueryString( 'do', 'coverPhotoRemove' )->csrf()}' data-action='removeCoverPhoto'>{lang="cover_photo_remove"}</a>
  33. </li>
  34. <li class='ipsMenu_item ipsHide' data-role="photoEditOption">
  35. <a href='#' data-action='positionCoverPhoto'>{lang="cover_photo_reposition"}</a>
  36. </li>
  37. {{endif}}
  38. <li class='ipsMenu_item'>
  39. <a href='{$member->url()->setQueryString( 'do', 'coverPhotoUpload' )}' data-ipsDialog data-ipsDialog-title="{lang="cover_photo_add"}">{lang="cover_photo_add"}</a>
  40. </li>
  41. </ul>
  42. </li>
  43. {{endif}}
  44. </ul>
  45.  
  46. {{endif}}
  47. <div class='ipsColumns ipsColumns_collapsePhone' data-hideOnCoverEdit>
  48. <div class='ipsColumn ipsColumn_fixed ipsColumn_narrow ipsPos_center' id='elProfilePhoto'>
  49. {{if $member->pp_main_photo and ( mb_substr( $member->pp_photo_type, 0, 5 ) === 'sync-' or $member->pp_photo_type === 'custom' )}}
  50. <a href="{file="$member->pp_main_photo" extension="core_Profile"}" data-ipsLightbox class='ipsUserPhoto ipsUserPhoto_xlarge'>
  51. <img src='{$member->photo}' alt=''>
  52. </a>
  53. {{else}}
  54. <span class='ipsUserPhoto ipsUserPhoto_xlarge'>
  55. <img src='{$member->photo}' alt=''>
  56. </span>
  57. {{endif}}
  58. {{if \IPS\Member::loggedIn()->modPermission('can_modify_profiles') or ( \IPS\Member::loggedIn()->member_id == $member->member_id and $member->group['g_edit_profile'] )}}
  59. <a href='{url="app=core&module=members&controller=profile&do=editPhoto&id={$member->member_id}" base="front" seoTemplate="edit_profile_photo" seoTitle="$member->members_seo_name"}' class='ipsButton ipsButton_verySmall ipsButton_light ipsButton_narrow' data-action='editPhoto' data-ipsDialog data-ipsDialog-forceReload='true' data-ipsDialog-modal='true' data-ipsDialog-title='{lang="profile_edit_photo_tab"}' title='{lang="profile_edit_photo_tab"}' data-ipsTooltip><i class='fa fa-photo'></i></a>
  60. {{endif}}
  61. </div>
  62. <div class='ipsColumn ipsColumn_fluid'>
  63. <div class='ipsPos_left ipsPad cProfileHeader_name ipsType_normal'>
  64. <h1 class='ipsType_reset ipsPageHead_barText'>
  65. {$member->name}
  66.  
  67. {{if \IPS\Member::loggedIn()->group['g_view_displaynamehistory'] AND $member->hasNameChanges()}}
  68. <a href='{$member->url()->setQueryString( 'do', 'namehistory' )}' class='cProfileHeader_history ipsType_large ipsPos_right' title='{lang="membername_history"}' data-ipsTooltip data-ipsDialog data-ipsDialog-modal='true' data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="membername_history"}'>
  69. <i class='fa fa-history'></i></span>
  70. </a>
  71. {{endif}}
  72. </h1>
  73. <span>
  74. <span class='ipsPageHead_barText'>{expression="\IPS\Member\Group::load( $member->member_group_id )->formattedName" raw="true"}</span>
  75. </span>
  76. </div>
  77. {{if \IPS\Member::loggedIn()->member_id != $member->member_id}}
  78. <ul class='ipsList_inline ipsPad ipsResponsive_hidePhone ipsResponsive_block ipsPos_left'>
  79. {{if \IPS\Member::loggedIn()->member_id != $member->member_id and ( !$member->members_bitoptions['pp_setting_moderate_followers'] or \IPS\Member::loggedIn()->following( 'core', 'member', $member->member_id ) )}}
  80. <li>{template="memberFollow" app="core" group="profile" params="'core', 'member', $member->member_id, $member->followersCount()"}</li>
  81. {{endif}}
  82. {{if \IPS\Member::loggedIn()->member_id && !$member->members_disable_pm and !\IPS\Member::loggedIn()->members_disable_pm and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'messaging' ) )}}
  83. <li><a href='{url="app=core&module=messaging&controller=messenger&do=compose&to={$member->member_id}" seoTemplate="messenger_compose"}' data-ipsDialog data-ipsDialog-title='{lang="compose_new"}' data-ipsDialog-remoteSubmit data-ipsDialog-flashMessage="{lang="message_sent"}" class='ipsButton ipsButton_primary'><i class='fa fa-envelope'></i> <span class='ipsResponsive_showDesktop ipsResponsive_inline'>&nbsp; {lang="message_send"}</span></a></li>
  84. {{endif}}
  85. </ul>
  86. {{endif}}
  87. </div>
  88. </div>
  89. </div>
  90.  
  91. <div class='ipsGrid ipsAreaBackground ipsPad ipsResponsive_showPhone ipsResponsive_block'>
  92. {{$span = 1;}}
  93. {{if \IPS\Member::loggedIn()->member_id && \IPS\Member::loggedIn()->member_id != $member->member_id and !$member->members_bitoptions['pp_setting_moderate_followers']}}
  94. {{$span++;}}
  95. {{endif}}
  96. {{if \IPS\Member::loggedIn()->member_id != $member->member_id && \IPS\Member::loggedIn()->member_id && !$member->members_disable_pm and !\IPS\Member::loggedIn()->members_disable_pm}}
  97. {{$span++;}}
  98. {{endif}}
  99.  
  100. {{if \IPS\Member::loggedIn()->member_id && \IPS\Member::loggedIn()->member_id != $member->member_id and !$member->members_bitoptions['pp_setting_moderate_followers']}}
  101. <div class='ipsGrid_span{{if $span == 1}}12{{elseif $span == 2}}6{{else}}4{{endif}}'>
  102. {template="memberFollow" app="core" group="profile" params="'core', 'member', $member->member_id, $member->followersCount()"}
  103. </div>
  104. {{endif}}
  105. {{if \IPS\Member::loggedIn()->member_id != $member->member_id && \IPS\Member::loggedIn()->member_id && !$member->members_disable_pm and !\IPS\Member::loggedIn()->members_disable_pm}}
  106. <a href='{url="app=core&module=messaging&controller=messenger&do=compose&to={$member->member_id}" seoTemplate="messenger_compose"}' data-ipsDialog data-ipsDialog-title='{lang="compose_new"}' data-ipsDialog-remoteSubmit data-ipsDialog-flashMessage="{lang="message_sent"}" data-ipsDialog-forceReload class='ipsGrid_span{{if $span == 1}}12{{elseif $span == 2}}6{{else}}4{{endif}} ipsButton ipsButton_alternate ipsButton_small'><i class='
  107. fa fa-envelope'></i> <i class='fa fa-caret-right'></i></a>
  108. {{endif}}
  109. <div data-role='switchView' class='ipsGrid_span{{if $span == 1}}12{{elseif $span == 2}}6{{else}}4{{endif}}'>
  110. <div data-action="goToProfile" data-type='phone' class='{{if $small != true}}ipsHide{{endif}}'>
  111. <a href='{$member->url()}' class='ipsButton ipsButton_light ipsButton_small ipsButton_fullWidth' title="{lang="members_profile" sprintf="$member->name"}"><i class='fa fa-user'></i></a>
  112. </div>
  113. <div data-action="browseContent" data-type='phone' class='{{if $small == true}}ipsHide{{endif}}'>
  114. <a href="{url="app=core&module=members&controller=profile&do=content&id={$member->member_id}" base="front" seoTemplate="profile_content" seoTitle="$member->members_seo_name"}" class='ipsButton ipsButton_alternate ipsButton_small ipsButton_fullWidth' title="{lang="members_content" sprintf="$member->name"}"><i class='fa fa-newspaper-o'></i></a>
  115. </div>
  116. </div>
  117. </div>
  118.  
  119. <div id='elProfileStats' class='ipsClearfix'>
  120. <div data-role='switchView' class='ipsResponsive_hidePhone ipsResponsive_block'>
  121. <a href='{$member->url()}' class='ipsButton ipsButton_veryLight ipsButton_medium ipsPos_right {{if $small != true}}ipsHide{{endif}}' data-action="goToProfile" data-type='full' title="{lang="members_profile" sprintf="$member->name"}"><i class='fa fa-user'></i> <span class='ipsResponsive_showDesktop ipsResponsive_inline'>&nbsp;{lang="profile_view_profile"}</span></a>
  122. <a href="{url="app=core&module=members&controller=profile&do=content&id={$member->member_id}" base="front" seoTemplate="profile_content" seoTitle="$member->members_seo_name"}" class='ipsButton ipsButton_light ipsButton_medium ipsPos_right {{if $small == true}}ipsHide{{endif}}' data-action="browseContent" data-type='full' title="{lang="members_content" sprintf="$member->name"}"><i class='fa fa-newspaper-o'></i> <span class='ipsResponsive_showDesktop ipsResponsive_inline'>&nbsp;{{if member.member_id === $member->member_id}}{lang="profile_browse_my_content"}{{else}}{lang="profile_browse_content"}{{endif}}</span> </a>
  123. {{if $method = \IPS\Login\Handler::findMethod( 'IPS\Login\Handler\ExternalDatabase' )}}
  124. {{try{ $identifier = \IPS\Db::i()->select( 'token_identifier', 'core_login_links', array( 'token_login_method=? AND token_member=?', $method->id, $member->member_id ) )->first();}catch( \UnderflowException $e ){ $identifier = NULL; } }}
  125. {{if $identifier}}
  126. <a target="_blank" href='https://infinitetruckers.com/user/{$identifier}' class="ipsButton ipsButton_primary ipsButton_medium ipsPos_right" title="View IFMP Profile"><i class="fa fa-truck"></i> <span class="ipsResponsive_showDesktop ipsResponsive_inline">&nbsp;IFMP Profile</span></a>
  127. {{endif}}
  128. {{endif}}
  129. </div>
  130. <ul class='ipsList_inline ipsPos_left'>
  131. <li>
  132. <h4 class='ipsType_minorHeading'>{lang="members_member_posts"}</h4>
  133. {number="$member->member_posts"}
  134. </li>
  135. <li>
  136. <h4 class='ipsType_minorHeading'>{lang="joined"}</h4>
  137. {datetime="$member->joined"}
  138. </li>
  139. <li>
  140. <h4 class='ipsType_minorHeading'>{lang="members_last_visit"}</h4>
  141. <span>
  142. {{if ( $member->isOnline() AND !$member->isOnlineAnonymously() ) OR ( $member->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() )}}<i class="fa fa-circle {{if $member->isOnlineAnonymously()}}ipsOnlineStatus_anonymous{{else}}ipsOnlineStatus_online{{endif}}" data-ipsTooltip title='{{if $member->isOnlineAnonymously()}}{lang="online_now_anon" sprintf="$member->name"}{{else}}{lang="online_now" sprintf="$member->name"}{{endif}}'></i>{{endif}} {{if $member->last_activity}}{datetime="$member->last_activity"}{{else}}{lang="never"}{{endif}}
  143. </span>
  144. </li>
  145. {{if settings.reputation_leaderboard_on and settings.reputation_show_days_won_trophy and $member->getReputationDaysWonCount()}}
  146. <li>
  147. <h4 class='ipsType_minorHeading'>{lang="members_days_won_count"}</h4>
  148. <span data-ipsTooltip title='{lang="members_days_won_count_desc" sprintf="$member->name"}'>{number="$member->getReputationDaysWonCount()"}</span>
  149. </li>
  150. {{endif}}
  151. </ul>
  152. </div>
  153. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement