searchresults.blade.php
2.23 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!-- <div class="innerAll bg-gray border-bottom">
<div class="widget-search separator bottom">
<div class="input-group">
Search Results
</div>
</div>
</div>-->
<!-- <div class="col-app"> -->
<ul class="list-group list-group-1 borders-none" id=networklistul>
<?php
if($page=='friends'||$page=='followers'||$page=='following'||$page=='groups')
{
if(!empty($users))
foreach($users as $user)
{
$id=$user->id;
$imgurl=$user->fetchphotothumb();
$dispname=$user->dispname();
$title="<span class='label label-primary'>".$user->dataval2('personal','level')."</span> <span class='label label-primary'>".$user->dataval2('personal','function')."</span>";
$function="show_user_details";
?>
<li onclick='{!!$function!!}("{!!$id!!}",this);' class="list-group-item show_user_details ffm" style="cursor:pointer">
<div class="innerAll media">
<img src="{!!$imgurl!!}" class="thumb pull-left padding-none" alt="Image" width="50px" height="50px" />
<div class="media-body innerT half">
<p class="strong margin-none textCapitialize">{!!$dispname!!}</p>
<p class="text-muted margin-none textCapitialize">{!!$title!!}</p>
</div>
</div>
</li>
<?php
}
}
if($page=='community')
{
if(!empty($community))
foreach($community as $comm)
{
$id=$comm->id;
$imgurl="assets/images/community.jpg";
$dispname=$comm->name;
$title="<span class='label label-primary'>".$comm->category."</span> <span class='label label-primary'>".(sizeof(array_filter(array_unique(explode(",",$comm->followers.",".$comm->owner)))))." Users</span>";
$function="show_community_details";
?>
<li onclick='{!!$function!!}("{!!$id!!}",this);' class="list-group-item show_user_details ffm" style="cursor:pointer">
<div class="innerAll media">
<img src="{!!$imgurl!!}" class="thumb pull-left padding-none" alt="Image" width="50px" height="50px" />
<div class="media-body innerT half">
<p class="strong margin-none textCapitialize">{!!$dispname!!}</p>
<p class="text-muted margin-none textCapitialize">{!!$title!!}</p>
</div>
</div>
</li>
<?php
}
}
?>
</ul>
<!-- </div> -->