social_list.php
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
use yii\helpers\Html;
use yii\helpers\Url;
if(!empty($params['company'])) {
$type = 'company';
} elseif(!empty($params['user'])) {
$type = 'user';
}
?>
<div class="performer-vacancy-sidebar-soc style">
<ul>
<?php if(!empty($params[$type]->userInfo->social_fb)){?>
<li>
<?= Html::a(Html::img('/images/ico-fb.png'),$params[$type]->userInfo->social_fb,['target'=>'_blank']); ?>
</li>
<?php } ?>
<?php if(!empty($params[$type]->userInfo->social_t)){?>
<li>
<?= Html::a(Html::img('/images/ico-tw.png'),$params[$type]->userInfo->social_t,['target'=>'_blank']); ?>
</li>
<?php } ?>
<?php if(!empty($params[$type]->userInfo->social_in)){?>
<li>
<?= Html::a(Html::img('/images/ico-in.png'),$params[$type]->userInfo->social_in,['target'=>'_blank']); ?>
</li>
<?php } ?>
<?php if(!empty($params[$type]->userInfo->social_vk)){?>
<li>
<?= Html::a(Html::img('/images/ico-vk.png'),$params[$type]->userInfo->social_vk,['target'=>'_blank']); ?>
</li>
<?php } ?>
</ul>
</div>