| 1 | {include file="documentHeader"} |
|---|
| 2 | <head> |
|---|
| 3 | <title>{lang}wcf.user.profile.title{/lang} - {lang}wcf.user.profile.members{/lang} - {PAGE_TITLE}</title> |
|---|
| 4 | {include file='headInclude' sandbox=false} |
|---|
| 5 | </head> |
|---|
| 6 | <body> |
|---|
| 7 | {* --- quick search controls --- *} |
|---|
| 8 | {assign var='searchFieldTitle' value='{lang}wcf.user.profile.search.query{/lang}'} |
|---|
| 9 | {capture assign=searchHiddenFields} |
|---|
| 10 | <input type="hidden" name="userID" value="{@$user->userID}" /> |
|---|
| 11 | {/capture} |
|---|
| 12 | {* --- end --- *} |
|---|
| 13 | {include file='header' sandbox=false} |
|---|
| 14 | |
|---|
| 15 | <div id="main"> |
|---|
| 16 | |
|---|
| 17 | {capture append=userMessages} |
|---|
| 18 | {if $protectedProfile} |
|---|
| 19 | <p class="warning">{lang}wcf.user.profile.protectedProfile{/lang}</p> |
|---|
| 20 | {/if} |
|---|
| 21 | {/capture} |
|---|
| 22 | |
|---|
| 23 | {include file="userProfileHeader"} |
|---|
| 24 | |
|---|
| 25 | <div class="border {if $this|method_exists:'getUserProfileMenu' && $this->getUserProfileMenu()->getMenuItems('')|count > 1}tabMenuContent{else}content{/if}"> |
|---|
| 26 | <div class="container-1 profileDisplay"> |
|---|
| 27 | <div class="userProfileBox"> |
|---|
| 28 | {if $additionalBoxes1|isset}{@$additionalBoxes1}{/if} |
|---|
| 29 | |
|---|
| 30 | {if $user->getAvatar()} |
|---|
| 31 | <div id="userProfileAvatar"> |
|---|
| 32 | <div class="border"> |
|---|
| 33 | <div class="containerHead"> |
|---|
| 34 | <div class="containerIcon"><img src="{@RELATIVE_WCF_DIR}icon/avatarM.png" alt="" /></div> |
|---|
| 35 | <h3 class="containerContent">{lang}wcf.user.avatar{/lang}</h3> |
|---|
| 36 | </div> |
|---|
| 37 | <div class="container-1"> |
|---|
| 38 | {@$user->getAvatar()} |
|---|
| 39 | </div> |
|---|
| 40 | </div> |
|---|
| 41 | </div> |
|---|
| 42 | {/if} |
|---|
| 43 | |
|---|
| 44 | {if $additionalBoxes2|isset}{@$additionalBoxes2}{/if} |
|---|
| 45 | |
|---|
| 46 | {if $additionalOptions|isset || !$protectedProfile || $canMail || $this->user->userID && $user->userID != $this->user->userID} |
|---|
| 47 | <div id="userProfileOptions"> |
|---|
| 48 | <div class="border"> |
|---|
| 49 | <div class="containerHead"> |
|---|
| 50 | <div class="containerIcon"><img src="{@RELATIVE_WCF_DIR}icon/userProfileOptionsM.png" alt="" /></div> |
|---|
| 51 | <h3 class="containerContent">{lang}wcf.user.profile.options{/lang}</h3> |
|---|
| 52 | </div> |
|---|
| 53 | <div class="pageMenu"> |
|---|
| 54 | <ul> |
|---|
| 55 | {if $canMail}<li><a href="index.php?form=Mail&userID={@$user->userID}{@SID_ARG_2ND}">{lang}wcf.user.profile.sendMail{/lang}</a></li>{/if} |
|---|
| 56 | |
|---|
| 57 | {if $additionalOptions|isset}{@$additionalOptions}{/if} |
|---|
| 58 | |
|---|
| 59 | {if !$protectedProfile} |
|---|
| 60 | <li><a href="index.php?page=User&userID={@$user->userID}&action=vCard{@SID_ARG_2ND}">{lang}wcf.user.profile.downloadVCard{/lang}</a></li> |
|---|
| 61 | {/if} |
|---|
| 62 | |
|---|
| 63 | {if $this->user->userID} |
|---|
| 64 | {if $user->whiteUserID} |
|---|
| 65 | <li><a href="index.php?form=WhiteListEdit&remove={@$user->userID}&u={@$this->user->userID}{@SID_ARG_2ND}">{lang}wcf.user.profile.removeFromBuddyList{/lang}</a></li> |
|---|
| 66 | {else} |
|---|
| 67 | {if $user->userID != $this->user->userID} |
|---|
| 68 | <li><a href="index.php?form=WhiteListEdit&add={@$user->userID}&u={@$this->user->userID}{@SID_ARG_2ND}">{lang}wcf.user.profile.addToBuddyList{/lang}</a></li> |
|---|
| 69 | {/if} |
|---|
| 70 | {/if} |
|---|
| 71 | |
|---|
| 72 | {if $user->blackUserID} |
|---|
| 73 | <li><a href="index.php?form=BlackListEdit&remove={@$user->userID}&u={@$this->user->userID}{@SID_ARG_2ND}">{lang}wcf.user.profile.removeFromIgnoreList{/lang}</a></li> |
|---|
| 74 | {else} |
|---|
| 75 | {if $user->userID != $this->user->userID} |
|---|
| 76 | <li><a href="index.php?form=BlackListEdit&add={@$user->userID}&u={@$this->user->userID}{@SID_ARG_2ND}">{lang}wcf.user.profile.addToIgnoreList{/lang}</a></li> |
|---|
| 77 | {/if} |
|---|
| 78 | {/if} |
|---|
| 79 | {/if} |
|---|
| 80 | </ul> |
|---|
| 81 | </div> |
|---|
| 82 | </div> |
|---|
| 83 | </div> |
|---|
| 84 | {/if} |
|---|
| 85 | |
|---|
| 86 | {if $additionalBoxes3|isset}{@$additionalBoxes3}{/if} |
|---|
| 87 | |
|---|
| 88 | {if $additionalAdminOptions|isset || $this->user->getPermission('admin.user.canEditUser')} |
|---|
| 89 | <div id="userProfileAdminOptions"> |
|---|
| 90 | <div class="border"> |
|---|
| 91 | <div class="containerHead"> |
|---|
| 92 | <div class="containerIcon"><img src="{@RELATIVE_WCF_DIR}icon/userProfileAdminOptionsM.png" alt="" /></div> |
|---|
| 93 | <h3 class="containerContent">{lang}wcf.user.profile.adminOptions{/lang}</h3> |
|---|
| 94 | </div> |
|---|
| 95 | <div class="pageMenu"> |
|---|
| 96 | <ul> |
|---|
| 97 | {if $this->user->getPermission('admin.user.canEditUser')} |
|---|
| 98 | <li><a href="acp/index.php?form=Login&url=index.php%3Fform=UserEdit%26userID%3D{@$user->userID}%26packageID%3D{@PACKAGE_ID}">{lang}wcf.acp.user.edit{/lang}</a></li> |
|---|
| 99 | {/if} |
|---|
| 100 | |
|---|
| 101 | {if $additionalAdminOptions|isset}{@$additionalAdminOptions}{/if} |
|---|
| 102 | </ul> |
|---|
| 103 | </div> |
|---|
| 104 | </div> |
|---|
| 105 | </div> |
|---|
| 106 | {/if} |
|---|
| 107 | |
|---|
| 108 | {if $additionalBoxes4|isset}{@$additionalBoxes4}{/if} |
|---|
| 109 | |
|---|
| 110 | {if $whitelist|count > 0} |
|---|
| 111 | <div id="userProfileBuddies"> |
|---|
| 112 | <div class="border"> |
|---|
| 113 | <div class="containerHead"> |
|---|
| 114 | <div class="containerIcon"><img src="{@RELATIVE_WCF_DIR}icon/buddiesM.png" alt="" /></div> |
|---|
| 115 | <h3 class="containerContent">{lang}wcf.user.profile.buddies{/lang}</h3> |
|---|
| 116 | </div> |
|---|
| 117 | <div class="pageMenu"> |
|---|
| 118 | <ul> |
|---|
| 119 | {foreach from=$whitelist item=whitelistUser} |
|---|
| 120 | <li><a href="index.php?page=User&userID={@$whitelistUser->userID}{@SID_ARG_2ND}"> |
|---|
| 121 | {if $whitelistUser->isOnline()} |
|---|
| 122 | <img src="{@RELATIVE_WCF_DIR}icon/onlineS.png" alt="" title="{lang username=$whitelistUser}wcf.user.online{/lang}" /> |
|---|
| 123 | {else} |
|---|
| 124 | <img src="{@RELATIVE_WCF_DIR}icon/offlineS.png" alt="" title="{lang username=$whitelistUser}wcf.user.offline{/lang}" /> |
|---|
| 125 | {/if} |
|---|
| 126 | <span>{$whitelistUser}</span></a></li> |
|---|
| 127 | {/foreach} |
|---|
| 128 | </ul> |
|---|
| 129 | </div> |
|---|
| 130 | </div> |
|---|
| 131 | </div> |
|---|
| 132 | {/if} |
|---|
| 133 | |
|---|
| 134 | {if $additionalBoxes5|isset}{@$additionalBoxes5}{/if} |
|---|
| 135 | </div> |
|---|
| 136 | |
|---|
| 137 | {if $additionalContents1|isset}{@$additionalContents1}{/if} |
|---|
| 138 | |
|---|
| 139 | {cycle values='container-1,container-2' print=false advance=false} |
|---|
| 140 | <div class="userProfileContent"> |
|---|
| 141 | <div class="border"> |
|---|
| 142 | <div class="containerHead"> |
|---|
| 143 | <div class="containerIcon"><img src="{@RELATIVE_WCF_DIR}icon/userProfileInformationM.png" alt="" /></div> |
|---|
| 144 | <h3 class="containerContent">{lang}wcf.user.profile.information{/lang}</h3> |
|---|
| 145 | </div> |
|---|
| 146 | |
|---|
| 147 | <div class="{cycle}"> |
|---|
| 148 | <div class="fieldTitle">{lang}wcf.user.registrationDate{/lang}</div> |
|---|
| 149 | <div class="fieldValue">{@$user->registrationDate|time}</div> |
|---|
| 150 | </div> |
|---|
| 151 | |
|---|
| 152 | {if $languages|count > 0} |
|---|
| 153 | <div class="{cycle}"> |
|---|
| 154 | <div class="fieldTitle">{lang}wcf.user.profile.languages{/lang}</div> |
|---|
| 155 | <div class="fieldValue">{implode from=$languages item=$language}{@$language}{/implode}</div> |
|---|
| 156 | </div> |
|---|
| 157 | {/if} |
|---|
| 158 | |
|---|
| 159 | <div class="{cycle}"> |
|---|
| 160 | <div class="fieldTitle">{lang}wcf.user.profile.hits{/lang}</div> |
|---|
| 161 | <div class="fieldValue">{#$user->profileHits}{if $user->getProfileAge() > 1} {lang}wcf.user.profile.hitsPerDay{/lang}{/if}</div> |
|---|
| 162 | </div> |
|---|
| 163 | |
|---|
| 164 | {if $user->getUserTitle()} |
|---|
| 165 | <div class="{cycle}"> |
|---|
| 166 | <div class="fieldTitle">{lang}wcf.user.rank{/lang}</div> |
|---|
| 167 | <div class="fieldValue">{@$user->getUserTitle()}{if $user->getRank()} {@$user->getRank()->getImage()}{/if}</div> |
|---|
| 168 | </div> |
|---|
| 169 | {/if} |
|---|
| 170 | |
|---|
| 171 | {if $user->invisible != 1 || $this->user->getPermission('admin.general.canViewInvisible')} |
|---|
| 172 | {if $user->lastActivityTime > 0} |
|---|
| 173 | <div class="{cycle}"> |
|---|
| 174 | <div class="fieldTitle">{lang}wcf.user.lastActivity{/lang}</div> |
|---|
| 175 | <div class="fieldValue">{@$user->lastActivityTime|time}</div> |
|---|
| 176 | </div> |
|---|
| 177 | {/if} |
|---|
| 178 | {/if} |
|---|
| 179 | |
|---|
| 180 | {foreach from=$informationFields item=field} |
|---|
| 181 | <div class="{cycle}"> |
|---|
| 182 | <div class="fieldTitle">{@$field.title}</div> |
|---|
| 183 | <div class="fieldValue">{@$field.value}</div> |
|---|
| 184 | </div> |
|---|
| 185 | {/foreach} |
|---|
| 186 | |
|---|
| 187 | </div> |
|---|
| 188 | </div> |
|---|
| 189 | |
|---|
| 190 | {if $additionalContents2|isset}{@$additionalContents2}{/if} |
|---|
| 191 | |
|---|
| 192 | {foreach from=$categories item=category} |
|---|
| 193 | {cycle reset=true advance=false print=false} |
|---|
| 194 | <div class="userProfileContent"> |
|---|
| 195 | <div class="border"> |
|---|
| 196 | <div class="containerHead"> |
|---|
| 197 | {if $category.categoryIconM}<div class="containerIcon"><img src="{$category.categoryIconM}" alt="" /> </div>{/if} |
|---|
| 198 | <h3 class="containerContent">{lang}wcf.user.option.category.{$category.categoryName}{/lang}</h3> |
|---|
| 199 | </div> |
|---|
| 200 | {foreach from=$category.options item=option} |
|---|
| 201 | <div class="{cycle}"> |
|---|
| 202 | <div class="fieldTitle">{lang}wcf.user.option.{$option.optionName}{/lang}</div> |
|---|
| 203 | <div class="fieldValue">{@$option.optionValue}</div> |
|---|
| 204 | </div> |
|---|
| 205 | {/foreach} |
|---|
| 206 | </div> |
|---|
| 207 | </div> |
|---|
| 208 | {/foreach} |
|---|
| 209 | |
|---|
| 210 | {if $additionalContents3|isset}{@$additionalContents3}{/if} |
|---|
| 211 | </div> |
|---|
| 212 | </div> |
|---|
| 213 | |
|---|
| 214 | </div> |
|---|
| 215 | |
|---|
| 216 | {include file='footer' sandbox=false} |
|---|
| 217 | </body> |
|---|
| 218 | </html> |
|---|