* Code for task #5271.

This commit is contained in:
Yagami
2019-02-23 16:19:17 +08:00
parent 07fe890768
commit 8278e84b87
3 changed files with 70 additions and 0 deletions
+20
View File
@@ -81,6 +81,26 @@
<th><?php echo $lang->user->address;?></th>
<td><?php echo html::input('address', $user->address, "class='form-control'");?></td>
</tr>
<tr>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'wechat') !== false)):?>
<th><?php echo $lang->user->wechat;?></th>
<td><?php echo html::input('wechat', $user->wechat, "class='form-control'");?></td>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'dingding') !== false)):?>
<th><?php echo $lang->user->dingding;?></th>
<td><?php echo html::input('dingding', $user->dingding, "class='form-control'");?></td>
<?php endif;?>
</tr>
<tr>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'slack') !== false)):?>
<th><?php echo $lang->user->slack;?></th>
<td><?php echo html::input('slack', $user->slack, "class='form-control'");?></td>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'whatsapp') !== false)):?>
<th><?php echo $lang->user->whatsapp;?></th>
<td><?php echo html::input('whatsapp', $user->whatsapp, "class='form-control'");?></td>
<?php endif;?>
</tr>
<tr>
<th><?php echo $lang->user->zipcode;?></th>
<td><?php echo html::input('zipcode', $user->zipcode, "class='form-control'");?></td>
+24
View File
@@ -91,6 +91,30 @@
<th><?php echo $lang->user->qq;?></th>
<td><?php if($user->qq) echo html::a("tencent://message/?uin=$user->qq", $user->qq);?></td>
</tr>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'wechat') !== false)):?>
<tr>
<th><?php echo $lang->user->wechat;?></th>
<td><?php echo $user->wechat;?></td>
</tr>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'dingding') !== false)):?>
<tr>
<th><?php echo $lang->user->dingding;?></th>
<td><?php echo $user->dingding;?></td>
</tr>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'slack') !== false)):?>
<tr>
<th><?php echo $lang->user->slack;?></th>
<td><?php echo $user->slack;?></td>
</tr>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'whatsapp') !== false)):?>
<tr>
<th><?php echo $lang->user->whatsapp;?></th>
<td><?php echo $user->whatsapp;?></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->user->gtalk;?></th>
<td><?php echo $user->gtalk;?></td>
+26
View File
@@ -99,6 +99,32 @@
<th><?php echo $lang->user->qq;?></th>
<td><?php if($user->qq) echo html::a("tencent://message/?uin=$user->qq", $user->qq);?></td>
</tr>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'wechat') !== false)):?>
<tr>
<th><?php echo $lang->user->wechat;?></th>
<td><?php echo $user->wechat;?></td>
</tr>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'dingding') !== false)):?>
<tr>
<th><?php echo $lang->user->dingding;?></th>
<td><?php echo $user->dingding;?></td>
</tr>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'slack') !== false)):?>
<tr>
<th><?php echo $lang->user->slack;?></th>
<td><?php echo $user->slack;?></td>
</tr>
<?php endif;?>
<?php if(!isset($config->user->showFields) or (strpos($config->user->showFields, 'whatsapp') !== false)):?>
<tr>
<th><?php echo $lang->user->whatsapp;?></th>
<td><?php echo $user->whatsapp;?></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->user->gtalk;?></th>
<td><?php echo $user->gtalk;?></td>