d36bdac6
Administrator
17.02.16
|
1
|
<?php
|
ce4a4468
Yarik
test
|
2
3
4
5
|
/**
* @var Team $model
*/
use common\models\Team;
|
a41edafc
Yarik
test
|
6
|
use yii\helpers\Html;
|
8f5d4d0f
Yarik
test
|
7
|
$http_pattern = '/^https?.*$/';
|
d36bdac6
Administrator
17.02.16
|
8
9
10
11
|
?>
<div class="command-block-wrapper">
<div class="command-block-wr-two">
<div class="command-block-foto">
|
a020aad3
Yarik
test
|
12
13
14
15
|
<?php
if(empty( $model->link )) {
echo ( $model->photo ? Html::img($model->photo) : '' ) . '<div class="hover-command-bg"></div>';
} else {
|
8f5d4d0f
Yarik
test
|
16
|
echo Html::a(( $model->photo ? Html::img($model->photo) : '' ) . '<div class="hover-command-bg"></div>', (preg_match($http_pattern, $model->link))?$model->link:'http://'.$model->link);
|
a020aad3
Yarik
test
|
17
18
|
}
?>
|
d36bdac6
Administrator
17.02.16
|
19
|
</div>
|
ce4a4468
Yarik
test
|
20
21
22
23
24
25
26
27
28
29
30
|
<div class="command-block-name">
<?php
if(!empty($model->firstname)) {
echo "<p>{$model->firstname}</p>";
}
?>
<?php
if(!empty($model->firstname)) {
echo "<p>{$model->lastname}</p>";
}
?>
|
a41edafc
Yarik
test
|
31
32
33
34
35
36
37
|
<?php
if(!empty( $model->department->name )) {
?>
<div class="command-block-job"><?= $model->department->name ?></div>
<?php
}
?>
|
d36bdac6
Administrator
17.02.16
|
38
39
40
41
42
43
|
<div class="command-block-line">
<div class="command-block-line-left"></div>
<div class="command-block-line-right"></div>
</div>
</div>
</div>
|