Conditions | 3 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
26 | public function run() |
||
27 | { |
||
28 | $out = ''; |
||
29 | $out .= Html::beginTag('div', ['class' => 'team-member']); |
||
30 | $out .= Html::img($this->getImageSrc(), ['class' => 'img-responsive img-circle', 'style' => 'height: 200px; width: 200px']); |
||
31 | $out .= Html::tag('h4', Html::encode($this->person)); |
||
32 | $out .= Html::tag('p', Html::encode($this->position)); |
||
33 | if (!empty($this->social)) { |
||
34 | $out .= Html::beginTag('ul', ['class' => 'list-inline social-buttons']); |
||
35 | foreach ($this->social as $icon => $url) { |
||
36 | $out .= Html::beginTag('li'); |
||
37 | $out .= Html::a(Html::tag('i', null, ['class' => 'fa fa-fw ' . $icon]), $url, ['target' => '_blank']); |
||
38 | $out .= Html::endTag('li'); |
||
39 | } |
||
40 | $out .= Html::endTag('ul'); |
||
41 | } |
||
42 | $out .= Html::endTag('div'); |
||
43 | |||
44 | return $out; |
||
45 | } |
||
57 |