1 |
www |
1 |
<?php
|
|
|
2 |
use LeadersLinked\Library\Functions;
|
|
|
3 |
|
|
|
4 |
$this->inlineScript()->captureStart();
|
|
|
5 |
echo <<<JS
|
|
|
6 |
jQuery( document ).ready(function( $ ) {
|
|
|
7 |
$('#suggestions-list-people-you-may-know').mCustomScrollbar({
|
|
|
8 |
setHeight: '450px',
|
|
|
9 |
axis:'y' // vertical and horizontal scrollbar
|
|
|
10 |
});
|
|
|
11 |
});
|
|
|
12 |
JS;
|
|
|
13 |
$this->inlineScript()->captureEnd();
|
|
|
14 |
|
|
|
15 |
?>
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
<div class="suggestions full-width" id="suggestions-list-people-you-may-know">
|
|
|
19 |
<div class="sd-title">
|
|
|
20 |
<h3>LABEL_PEOPLE_YOU_MAY_KNOW</h3>
|
|
|
21 |
</div><!--sd-title end-->
|
|
|
22 |
<div class="suggestions-list">
|
|
|
23 |
<?php if($items ) : ?>
|
|
|
24 |
<?php foreach($items as $item) : ?>
|
|
|
25 |
<div class="suggestion-usd">
|
|
|
26 |
<img style="width: 50px; height: auto" src="<?php echo $this->url('storage', ['type' => 'user', 'code' => $item['uuid'], 'filename' => $item['image']])?>" alt="">
|
|
|
27 |
<div class="sgt-text">
|
|
|
28 |
<h4><?php echo trim($item['first_name'] . ' ' . $item['last_name']) ?></h4>
|
|
|
29 |
</div>
|
|
|
30 |
<span>
|
|
|
31 |
<a href="<?php echo $this->url('profile/view', ['id' => $item['uuid'] ]) ?>">
|
|
|
32 |
<i class="fa fa-external-link"></i>
|
|
|
33 |
</a>
|
|
|
34 |
</span>
|
|
|
35 |
</div>
|
|
|
36 |
<?php endforeach; ?>
|
|
|
37 |
<div class="view-more">
|
|
|
38 |
<a href="<?php echo $this->url('connection/people-you-may-know')?>" title="">LABEL_VIEW_MORE</a>
|
|
|
39 |
</div>
|
|
|
40 |
<?php else: ?>
|
|
|
41 |
<div class="view-more">
|
|
|
42 |
Sin sugerencias
|
|
|
43 |
</div>
|
|
|
44 |
<?php endif; ?>
|
|
|
45 |
</div><!--suggestions-list end-->
|
|
|
46 |
</div><!--suggestions end-->
|