= pp_html_escape($profile_username) ?>'s Pastes
joined: = $profile_join_date; ?>
Badges
';
} elseif (strtotime($profile_join_date) <= 1608422400) {
echo '
![[EarlyPioneer] Joined during the Second wave](/img/badges/pioneer.png)
';
} elseif (strtotime($profile_join_date) <= 1609459200) {
echo '
![[EarlyStraggeler] Joined after the Second wave](/img/badges/strag.png)
';
}
if (!str_contains($profile_badge, '0')) {
echo $profile_badge;
}
outputBadges($public_paste_badges, $profile_total_public, 'total_pastes');
outputBadges($paste_view_badges, $profile_total_paste_views, 'total_views');
if (($profile_total_unlisted >= 5) && ($profile_total_unlisted <= 9)) {
echo '
![[ShadowWriter] Have more than Five unlisted pastes](/img/badges/pastehidden.png)
';
} elseif ($profile_total_unlisted >= 10) {
echo '
![[Ghostwriter] Have more than Ten unlisted pastes](/img/badges/pastehidden.png)
';
}
?>
' . pp_html_escape($success) . '
';
}
foreach ($flashes['error'] as $error) {
echo '
' . pp_html_escape($error) . '
';
}
?>
Some of your statistics:
Total pastes: = $profile_total_pastes ?> —
Total public pastes: = $profile_total_public ?> —
Total unlisted pastes: = $profile_total_unlisted ?> —
Total private pastes: = $profile_total_private ?> —
Total views of all your pastes: = $profile_total_paste_views ?>
Total favourites of all your pastes: = $total_pfav ?> —
Total favorites you have given: = $total_yfav ?>
Title |
Paste Time |
Visibility";
} ?>
Views |
Tags |
Delete";
} ?>
title, 20, 50));
$p_date = new DateTime($paste->created_at);
$p_visible = match (intval($paste->visible)) {
0 => 'Public',
1 => 'Unlisted',
2 => 'Private'
};
$pasteJson = array_merge(
$paste->only('id', 'title', 'tags', 'views', 'created_at'),
['visibility' => $p_visible]
);
?>
visible == Paste::VISIBILITY_PUBLIC): ?>
= $escaped_title ?> |
= $p_date->format('d F Y') ?>
|
= $p_visible; ?> |
= $paste->views ?> |
= tagsToHtmlUser($paste->tags, $profile_username); ?> |
|
Title |
Paste Time |
Visibility";
} ?>
Views |
Tags |
Delete";
} ?>
Title |
Date Favourited |
Status |
Tags |
title, 20, 50));
$f_date = new DateTime($paste->pivot->f_time);
$update_date = new DateTime($paste->updated_at);
$delta = $update_date->diff(new DateTime(), true);
$pasteJson = array_merge(
$paste->only('id', 'title', 'tags', 'views', 'created_at'),
['recently_updated' => ($delta->days <= 2), 'favourited_at' => $f_date->format('d F Y')]
);
?>
= $escaped_title ?> |
= $f_date->format('d F Y') ?> |
days <= 2): ?>
|
= tagsToHtmlUser($paste->tags, $profile_username); ?> |
Title |
Date Favourited |
Status |
Tags |