mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Remove ref to undefined variables in get_zcard()
This commit is contained in:
@@ -2407,9 +2407,6 @@ function get_zcard($channel, $observer_hash = '', $args = array()) {
|
||||
$pphoto = array('mimetype' => $channel['xchan_photo_mimetype'], 'width' => 300 , 'height' => 300, 'href' => $channel['xchan_photo_l'].'?rev='.strtotime($channel['xchan_photo_date']));
|
||||
}
|
||||
|
||||
// $scale = (float) $maxwidth / $width;
|
||||
// $translate = intval(($scale / 1.0) * 100);
|
||||
|
||||
$zcard['chan'] = [
|
||||
'xchan_name' => $channel['xchan_name'],
|
||||
'xchan_url' => $channel['xchan_url'],
|
||||
@@ -2432,8 +2429,6 @@ function get_zcard($channel, $observer_hash = '', $args = array()) {
|
||||
|
||||
return replace_macros(get_markup_template('zcard.tpl'), array(
|
||||
'$maxwidth' => $maxwidth,
|
||||
'$scale' => $scale,
|
||||
'$translate' => $translate,
|
||||
'$size' => $size,
|
||||
'$cover' => $cover,
|
||||
'$pphoto' => $pphoto,
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<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 {
|
||||
@@ -38,19 +36,16 @@
|
||||
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;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
height: 390px;
|
||||
overflow: hidden;
|
||||
height: 390px;
|
||||
}
|
||||
.hz_cover_photo img {
|
||||
width: {{$maxwidth}}px;
|
||||
/* max-width: 100%; */
|
||||
}
|
||||
.hz_profile_photo {
|
||||
position: relative;
|
||||
@@ -87,13 +82,11 @@
|
||||
font-size: 18px;
|
||||
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 {
|
||||
@@ -105,8 +98,6 @@
|
||||
left: 20px;
|
||||
background-color: white;
|
||||
border: 1px solid #ddd;
|
||||
/* border-radius: 5px;
|
||||
-moz-border-radius: 5px; */
|
||||
padding: 3px;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
@@ -129,7 +120,7 @@
|
||||
font-size: 10px;
|
||||
text-rendering: optimizelegibility;
|
||||
text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
}
|
||||
{{/if}}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user