aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/zcard.tpl
blob: b73b1011c0660c5061163b34fe9451940e04ec92 (plain) (blame)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<style>
{{if $size == 'hz_large'}}
.hz_card {
/*	-moz-transform: translate(-{{$translate}}%, -{{$translate}}%) scale({{$scale}}, {{$scale}}); 
	transform: translate(-{{$translate}}%, -{{$translate}}%) scale({{$scale}}, {{$scale}}); */
	font-family: sans-serif, arial, freesans;
}
.hz_cover_photo {
	max-width: 100%;
}
.hz_profile_photo {
	position: relative;
	top: -300px;
	left: 30px;
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 5px;
	-moz-border-radius: 5px;
	padding: 10px;
	width: 320px;
	height: 320px;
}

.hz_name {
	position: relative;
	top: -100px;
	left: 400px;
	color: #fff;
	font-size: 48px;
    text-rendering: optimizelegibility;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}
.hz_addr {
	position: relative;
	top: -110px;
	left: 400px;
	color: #fff;
	font-size: 24px;
    text-rendering: optimizelegibility;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}	
{{elseif $size == 'hz_medium'}}
.hz_card {
	-moz-transform: translate(-{{$translate}}%, -{{$translate}}%) scale({{$scale}}, {{$scale}}); 
	transform: translate(-{{$translate}}%, -{{$translate}}%) scale({{$scale}}, {{$scale}}); 
	font-family: sans-serif, arial, freesans;
}
.hz_cover_photo {
	max-width: 100%;
}
.hz_profile_photo {
	position: relative;
	top: -300px;
	left: 30px;
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 5px;
	-moz-border-radius: 5px;
	padding: 10px;
	width: 320px;
	height: 320px;
}

.hz_name {
	position: relative;
	top: -100px;
	left: 400px;
	color: #fff;
	font-size: 48px;
    text-rendering: optimizelegibility;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}
.hz_addr {
	position: relative;
	top: -110px;
	left: 400px;
	color: #fff;
	font-size: 24px;
    text-rendering: optimizelegibility;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}	


{{else}}
.hz_card {
/*	-moz-transform: translate(-{{$translate}}%, -{{$translate}}%) scale({{$scale}}, {{$scale}}); 
	transform: translate(-{{$translate}}%, -{{$translate}}%) scale({{$scale}}, {{$scale}}); */
	font-family: sans-serif, arial, freesans;
}
.hz_cover_photo {
	max-width: 100%;
}
.hz_profile_photo {
	position: relative;
	top: -75px;
	left: 20px;
	background-color: white;
	border: 1px solid #ddd;
/*	border-radius: 5px;
	-moz-border-radius: 5px; */
	padding: 3px;
	width: 80px;
	height: 80px;
}

.hz_name {
	position: relative;
	top: -40px;
	left: 120px;
	color: #fff;
	font-size: 18px;
    text-rendering: optimizelegibility;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}
.hz_addr {
	position: relative;
	top: -40px;
	left: 120px;
	color: #fff;
	font-size: 10px;
    text-rendering: optimizelegibility;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}	
{{/if}}

</style>

<div class="hz_card {{$size}}">
	<div class="hz_cover_photo"><img src="{{$cover.href}}" alt="{{$zcard.chan.xchan_name}}" />
		<div class="hz_name">{{$zcard.chan.xchan_name}}</div>
		<div class="hz_addr">{{$zcard.chan.channel_addr}}</div>
	</div>
	<div class="hz_profile_photo"><img style="width: {{$pphoto.width}}px; height: {{$pphoto.height}}px;" src="{{$pphoto.href}}" alt="{{$zcard.chan.xchan_name}}" /></div>
</div>