Pastebin

memberlist_body

von Praggle (01.10.2020 13:30)

Dein Code:
  1. <!-- IF S_IN_SEARCH_POPUP -->
  2.         <!-- INCLUDE simple_header.html -->
  3.         <!-- INCLUDE memberlist_search.html -->
  4.         <form method="post" id="results" action="{S_MODE_ACTION}" onsubmit="insert_marked_users('#results', this.user); return false;" data-form-name="{S_FORM_NAME}" data-field-name="{S_FIELD_NAME}">
  5.  
  6. <!-- ELSE -->
  7.         <!-- INCLUDE overall_header.html -->
  8.         <div class="panel" id="memberlist_search"<!-- IF not S_SEARCH_USER --> style="display: none;"<!-- ENDIF -->>
  9.         <!-- INCLUDE memberlist_search.html -->
  10.         </div>
  11.         <form method="post" action="{S_MODE_ACTION}">
  12.  
  13. <!-- ENDIF -->
  14.  
  15. {% EVENT memberlist_body_page_header_after %}
  16.  
  17.         <!-- IF S_SHOW_GROUP -->
  18.                 {% EVENT memberlist_body_group_name_before %}
  19.                 <h2 class="group-title"<!-- IF GROUP_COLOR --> style="color:#{GROUP_COLOR};"<!-- ENDIF -->>{GROUP_NAME}</h2>
  20.                 {% EVENT memberlist_body_group_name_after %}
  21.                 <!-- IF U_MANAGE -->
  22.                         <p class="right responsive-center manage rightside"><a href="{U_MANAGE}">{L_MANAGE_GROUP}</a></p>
  23.                 <!-- ENDIF -->
  24.                 <p>{GROUP_DESC} {GROUP_TYPE}</p>
  25.  
  26.                 {% EVENT memberlist_body_group_desc_after %}
  27.  
  28.                 <p>
  29.                         <!-- IF AVATAR_IMG -->{AVATAR_IMG}<!-- ENDIF -->
  30.                         {% EVENT memberlist_body_group_rank_before %}
  31.                         {% if RANK_IMG %}{{ RANK_IMG }}{% endif %}
  32.                         {% if GROUP_RANK %}
  33.                                 {% if not RANK_IMG %}
  34.                                         {{ lang('GROUP_RANK') ~ lang('COLON') }}
  35.                                 {% endif %}
  36.                                 {{ GROUP_RANK }}
  37.                         {% endif %}
  38.                         {% EVENT memberlist_body_group_rank_after %}
  39.                 </p>
  40.         <!-- ELSE -->
  41.                 {% EVENT memberlist_body_page_title_before %}
  42.                 <h2 class="solo">{PAGE_TITLE}<!-- IF SEARCH_WORDS -->{L_COLON} <a href="{U_SEARCH_WORDS}">{SEARCH_WORDS}</a><!-- ENDIF --></h2>
  43.  
  44.                 <div class="action-bar bar-top">
  45.                         <div class="member-search panel">
  46.                                 <!-- IF U_FIND_MEMBER and not S_SEARCH_USER --><a href="{U_FIND_MEMBER}" id="member_search" data-alt-text="{L_HIDE_MEMBER_SEARCH}">{L_FIND_USERNAME}</a> &bull; <!-- ELSEIF S_SEARCH_USER and U_HIDE_FIND_MEMBER and not S_IN_SEARCH_POPUP --><a href="{U_HIDE_FIND_MEMBER}" id="member_search" data-alt-text="{L_FIND_USERNAME}">{L_HIDE_MEMBER_SEARCH}</a> &bull; <!-- ENDIF -->
  47.                                 <strong>
  48.                                 <!-- BEGIN first_char -->
  49.                                         <a href="{first_char.U_SORT}">{first_char.DESC}</a>&nbsp;
  50.                                 <!-- END first_char -->
  51.                                 </strong>
  52.                         </div>
  53.  
  54.                         <div class="pagination">
  55.                                 {TOTAL_USERS}
  56.                                 <!-- IF .pagination -->
  57.                                         <!-- INCLUDE pagination.html -->
  58.                                 <!-- ELSE -->
  59.                                          &bull; {PAGE_NUMBER}
  60.                                 <!-- ENDIF -->
  61.                         </div>
  62.                 </div>
  63.         <!-- ENDIF -->
  64.  
  65.         <!-- IF S_LEADERS_SET or not S_SHOW_GROUP or not .memberrow -->
  66.         <div class="forumbg forumbg-table">
  67.                 <div class="inner">
  68.  
  69.                 <table class="table1 memberlist" id="memberlist">
  70.                 <thead>
  71.                 <tr>
  72.                         <th class="name" data-dfn="{L_RANK}{L_COMMA_SEPARATOR}<!-- IF S_SHOW_GROUP and .memberrow -->{L_GROUP_LEADER}<!-- ELSE -->{L_USERNAME}<!-- ENDIF -->"><span class="rank-img"><a href="{U_SORT_RANK}">{L_RANK}</a></span><a href="{U_SORT_USERNAME}"><!-- IF S_SHOW_GROUP and .memberrow -->{L_GROUP_LEADER}<!-- ELSE -->{L_USERNAME}<!-- ENDIF --></a></th>
  73.                         <th class="posts"><a href="{U_SORT_POSTS}#memberlist">{L_POSTS}</a></th>
  74.                         <!-- IF U_SORT_LOCATION_MYSEARCH --><th class="info"><a href="{U_SORT_LOCATION_MYSEARCH}#memberlist">{L_LOCATION_MYSEARCH}</a></th><!-- ENDIF -->
  75.                         <th class="joined"><a href="{U_SORT_JOINED}#memberlist">{L_JOINED}</a></th>
  76.                         <!-- IF U_SORT_ACTIVE --><th class="active"><a href="{U_SORT_ACTIVE}#memberlist">{L_LAST_ACTIVE}</a></th><!-- ENDIF -->
  77.                         {% EVENT memberlist_body_memberlist_after %}
  78.                 </tr>
  79.                 </thead>
  80.                 <tbody>
  81.         <!-- ENDIF -->
  82.                 <!-- BEGIN memberrow -->
  83.                         <!-- IF S_SHOW_GROUP -->
  84.                                 <!-- IF not memberrow.S_GROUP_LEADER and not $S_MEMBER_HEADER -->
  85.                                 <!-- IF S_LEADERS_SET and memberrow.S_FIRST_ROW -->
  86.                                 <tr class="bg1">
  87.                                         <td colspan="<!-- IF U_SORT_ACTIVE -->5<!-- ELSE -->4<!-- ENDIF -->">&nbsp;</td>
  88.                                 </tr>
  89.                                 <!-- ENDIF -->
  90. <!-- IF S_LEADERS_SET -->
  91.                 </tbody>
  92.                 </table>
  93.  
  94.         </div>
  95. </div>
  96. <!-- ENDIF -->
  97. <div class="forumbg forumbg-table">
  98.         <div class="inner">
  99.  
  100.         <table class="table1">
  101.         <thead>
  102.         <tr>
  103.         <!-- IF not S_LEADERS_SET -->
  104.                 <th class="name" data-dfn="{L_RANK}{L_COMMA_SEPARATOR}{L_USERNAME}"><span class="rank-img"><a href="{U_SORT_RANK}">{L_RANK}</a></span><a href="{U_SORT_USERNAME}"><!-- IF S_SHOW_GROUP -->{L_GROUP_MEMBERS}<!-- ELSE -->{L_USERNAME}<!-- ENDIF --></a></th>
  105.                         <th class="posts"><a href="{U_SORT_POSTS}#memberlist">{L_POSTS}</a></th>
  106.                         <th class="info">{% for field in custom_fields %}{% if not loop.first %}{L_COMMA_SEPARATOR} {% endif %}{{ field.PROFILE_FIELD_NAME }}{% endfor %}</th>
  107.                         <th class="joined"><a href="{U_SORT_JOINED}#memberlist">{L_JOINED}</a></th>
  108.                         <!-- IF U_SORT_ACTIVE --><th class="active"><a href="{U_SORT_ACTIVE}#memberlist">{L_LAST_ACTIVE}</a></th><!-- ENDIF -->
  109.                         {% EVENT memberlist_body_leaders_set_after %}
  110.         <!-- ELSEIF S_SHOW_GROUP -->
  111.                 <th class="name">{L_GROUP_MEMBERS}</th>
  112.                 <th class="posts">{L_POSTS}</th>
  113.                 <th class="info"><!-- BEGIN custom_fields --><!-- IF not custom_fields.S_FIRST_ROW -->{L_COMMA_SEPARATOR} <!-- ENDIF -->{custom_fields.PROFILE_FIELD_NAME}<!-- END custom_fields --></th>
  114.                 <th class="joined">{L_JOINED}</th>
  115.                 <!-- IF U_SORT_ACTIVE --><th class="active">{L_LAST_ACTIVE}</th><!-- ENDIF -->
  116.                 {% EVENT memberlist_body_show_group_after %}
  117.         <!-- ENDIF -->
  118.         </tr>
  119.         </thead>
  120.         <tbody>
  121.                                         <!-- DEFINE $S_MEMBER_HEADER = 1 -->
  122.                                 <!-- ENDIF -->
  123.                         <!-- ENDIF -->
  124.  
  125.         <tr class="<!-- IF memberrow.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF memberrow.S_INACTIVE --> inactive<!-- ENDIF -->">
  126.                 <td><span class="rank-img"><!-- EVENT memberlist_body_rank_prepend --><!-- IF memberrow.RANK_IMG -->{memberrow.RANK_IMG}<!-- ELSE -->{memberrow.RANK_TITLE}<!-- ENDIF --><!-- EVENT memberlist_body_rank_append --></span><!-- IF S_IN_SEARCH_POPUP and not S_SELECT_SINGLE --><input type="checkbox" name="user" value="{memberrow.USERNAME}" /> <!-- ENDIF --><!-- EVENT memberlist_body_username_prepend -->{memberrow.USERNAME_FULL}<!-- IF memberrow.S_INACTIVE --> ({L_INACTIVE})<!-- ENDIF --><!-- EVENT memberlist_body_username_append --><!-- IF S_IN_SEARCH_POPUP --><br />[&nbsp;<a href="#" onclick="insert_single_user('#results', '{memberrow.A_USERNAME}'); return false;">{L_SELECT}</a>&nbsp;]<!-- ENDIF --></td>
  127.                 <td class="posts"><!-- IF memberrow.POSTS and S_DISPLAY_SEARCH --><a href="{memberrow.U_SEARCH_USER}" title="{L_SEARCH_USER_POSTS}">{memberrow.POSTS}</a><!-- ELSE -->{memberrow.POSTS}<!-- ENDIF --></td>
  128. <!--            <td class="info">
  129.                         {%- for field in memberrow.custom_fields -%}
  130.                                 <div>{% if field.S_PROFILE_CONTACT %}<a href="{{ field.PROFILE_FIELD_CONTACT }}">{% endif %}{{ field.PROFILE_FIELD_VALUE }}{% if field.S_PROFILE_CONTACT %}</a>{% endif %}</div>
  131.                         {%- else -%}
  132.                                 &nbsp;
  133.                         {%- endfor -%}
  134.                 </td>
  135. -->             <td class="info"><!-- IF memberrow.PROFILE_LOCATION_MYSEARCH_VALUE --><div>{memberrow.PROFILE_LOCATION_MYSEARCH_VALUE}</div><!-- ELSE -->&nbsp;<!-- ENDIF --></td>
  136.                 <td>{memberrow.JOINED}</td>
  137.                 <!-- IF S_VIEWONLINE --><td>{memberrow.LAST_ACTIVE}&nbsp;</td><!-- ENDIF -->
  138.                 {% EVENT memberlist_body_memberrow_after %}
  139.         </tr>
  140.                 <!-- BEGINELSE -->
  141.         <tr class="bg1">
  142.                 <td colspan="<!-- IF S_VIEWONLINE -->5<!-- ELSE -->4<!-- ENDIF -->">{L_NO_MEMBERS}</td>
  143.         </tr>
  144.                 <!-- END memberrow -->
  145.         </tbody>
  146.         </table>
  147.  
  148.         </div>
  149. </div>
  150.  
  151. <!-- IF S_IN_SEARCH_POPUP and not S_SELECT_SINGLE -->
  152. <fieldset class="display-actions">
  153.         <input type="submit" name="submit" value="{L_SELECT_MARKED}" class="button2" />
  154.         <div><a href="#" onclick="marklist('results', 'user', true); return false;">{L_MARK_ALL}</a> &bull; <a href="#" onclick="marklist('results', 'user', false); return false;">{L_UNMARK_ALL}</a></div>
  155. <!-- ENDIF -->
  156.  
  157. <!-- IF S_IN_SEARCH_POPUP -->
  158. </form>
  159. <form method="post" id="sort-results" action="{S_MODE_ACTION}">
  160. <!-- ENDIF -->
  161.  
  162. <!-- IF S_IN_SEARCH_POPUP and not S_SEARCH_USER -->
  163. <fieldset class="display-options">
  164.         <label for="sk">{L_SELECT_SORT_METHOD}{L_COLON} <select name="sk" id="sk">{S_MODE_SELECT}</select></label>
  165.         <label for="sd">{L_ORDER} <select name="sd" id="sd">{S_ORDER_SELECT}</select></label>
  166.         <input type="submit" name="sort" value="{L_SUBMIT}" class="button2" />
  167. <!-- ENDIF -->
  168.  
  169. </form>
  170.  
  171. <div class="action-bar bar-bottom">
  172.         <div class="pagination">
  173.                 {TOTAL_USERS}
  174.                 <!-- IF .pagination -->
  175.                         <!-- INCLUDE pagination.html -->
  176.                 <!-- ELSE -->
  177.                          &bull; {PAGE_NUMBER}
  178.                 <!-- ENDIF -->
  179.         </div>
  180. </div>
  181.  
  182. {% EVENT memberlist_body_page_footer_before %}
  183.  
  184. <!-- IF S_IN_SEARCH_POPUP -->
  185.         <!-- INCLUDE simple_footer.html -->
  186. <!-- ELSE -->
  187.         <!-- INCLUDE jumpbox.html -->
  188.         <!-- INCLUDE overall_footer.html -->
  189. <!-- ENDIF -->
  190.  

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.