-
Notifications
You must be signed in to change notification settings - Fork 0
/
_Person - Contact.cshtml
58 lines (55 loc) · 2.05 KB
/
_Person - Contact.cshtml
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
@* put all necessary link/script tags here *@
@RenderPage("_Shared - Assets.cshtml", new { parts = "styles,scripts,height"})
<div class="co-container-outer">
<div class="co-container-inner co-person-wrapper co-person-wrapper-@(Dnn.Module.ModuleID)">
<div class="row">
@foreach (var person in AsDynamic(Data["Default"]))
{
<div class="sc-element co-person col col-sm-6 sync-height-with-neighbors">
@Edit.Toolbar(person)
<div class="row">
<div class="co-person-image col col-xs-4">
@if (!String.IsNullOrEmpty(person.Photo))
{
<img src="@person.Photo?w=379&h=488&mode=crop&quality=90" alt="@person.FullName" class="img-responsive" /> @* Format: Passphoto 1.2857 *@
}
else
{
<div class="co-person-placeholder"></div>
}
</div>
<div class="co-person-text col col-xs-8" itemscope itemtype="http://schema.org/Person">
<div class="co-p">
<strong itemprop="name">@person.FullName</strong><br />
@if (!String.IsNullOrEmpty(person.Position))
{
<span itemprop="jobTitle">@person.Position</span><br />
}
</div>
<div class="co-p">
@if (!String.IsNullOrEmpty(person.Email))
{
<div itemprop="email">
<span class="glyphicon glyphicon-envelope"></span>
@RenderPage("_Shared - TryToEncryptMail.cshtml", new { email = person.Email })
</div>
}
@if (!String.IsNullOrEmpty(person.Mobile))
{
<span class="glyphicon glyphicon-phone" aria-hidden="true"></span> <a href="tel:@person.Mobile.Replace(" ", "")" itemprop="telephone">@person.Mobile</a><br />
}
@if (!String.IsNullOrEmpty(person.Phone))
{
<span class="glyphicon glyphicon-phone-alt" aria-hidden="true"></span> <a href="tel:@person.Phone.Replace(" ", "")" itemprop="telephone">@person.Phone</a><br />
}
</div>
<div itemprop="description">
@Html.Raw((string)person.Description)
</div>
</div>
</div>
</div>
}
</div>
</div>
</div>