Some cosmetic improvements; bumped version to 0.2.1
This commit is contained in:
parent
32a1ab4f3c
commit
d1972f501b
1 changed files with 15 additions and 6 deletions
21
pfaltgall
21
pfaltgall
|
@ -17,7 +17,8 @@
|
|||
*/
|
||||
|
||||
$SCRIPTNAME='pfaltgall';
|
||||
$SCRIPTVERSION='0.2';
|
||||
$SCRIPTVERSION='0.2.1';
|
||||
$SCRIPTURL='https://git.lattuga.net/Jones/pfaltgall';
|
||||
|
||||
require 'lib/ckratelimit.php';
|
||||
require 'lib/httpjson.php';
|
||||
|
@ -202,8 +203,15 @@ do {
|
|||
} while ($count>0);
|
||||
echo "\n";
|
||||
|
||||
$title="{$acc['username']}@{$conf['host']}";
|
||||
if ($acc['display_name']!='') $title=htmlspecialchars($acc['display_name'],ENT_QUOTES|ENT_HTML5)." ({$title})";
|
||||
$accadd="{$acc['username']}@{$conf['host']}";
|
||||
$title=$accadd;
|
||||
$profhead="<a href=\"{$acc['url']}\">{$accadd}</a>";
|
||||
if ($acc['display_name']!='') {
|
||||
$accdispname=htmlspecialchars($acc['display_name'],ENT_QUOTES|ENT_HTML5);
|
||||
$title="{$accdispname} ({$title})";
|
||||
$profhead="<strong>{$accdispname}</strong><br>({$profhead})";
|
||||
}
|
||||
|
||||
|
||||
$html='<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
|
@ -258,7 +266,7 @@ p {
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
text-indent: 3mm;
|
||||
line-height: 1.3em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
p.firstp, p.center {
|
||||
|
@ -268,7 +276,7 @@ p.firstp, p.center {
|
|||
p.center {
|
||||
text-align: center;
|
||||
text-wrap: balance;
|
||||
padding: 1em 0 1em 0;
|
||||
padding: 0 0 1.5em 0;
|
||||
}
|
||||
|
||||
.profile {
|
||||
|
@ -458,8 +466,9 @@ function prel() {
|
|||
<div class="page">
|
||||
<div class="profile">
|
||||
<p class="center"><img src="'.$acc['avatar_static'].'" class="avatar"></p>
|
||||
<p class="center"><a href="'.$acc['url'].'">'.$title.'</a></p>
|
||||
<p class="center">'.$profhead.'</p>
|
||||
<p class="center">'.nl2br($acc['note']).'</p>
|
||||
<p class="center"><span class="grey">Made with <a href="'.$SCRIPTURL.'">'.$SCRIPTNAME.'</a> v'.$SCRIPTVERSION.'</span></p>
|
||||
</div>
|
||||
</div>
|
||||
'.$imgs.'
|
||||
|
|
Loading…
Reference in a new issue