Check-in [a1ee3e9889]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Introduce twitter tags. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a1ee3e9889d7d9578d938c9d77cb6b4c |
| User & Date: | mario 2021-12-21 13:47:22 |
Context
|
2021-12-21
| ||
| 13:48 | Transition to microformats2 check-in: c489e4d6f3 user: mario tags: trunk | |
| 13:47 | Introduce twitter tags. check-in: a1ee3e9889 user: mario tags: trunk | |
|
2021-05-27
| ||
| 15:17 | Rephrase notes in "Publish" section. (Note that multiple edits are possible, instead of offputting "proofread". And it's IndieAuth/OpenID now.) check-in: c12e389b5a user: mario tags: trunk | |
Changes
Changes to page_projects.php.
| ︙ | ︙ | |||
16 17 18 19 20 21 22 |
*/
// Current project id
$name = $_REQUEST->proj_name["name"];
// Redirect to new name?
if (isset($renamed_proj[$name])) {
| | > > > | | | > > > > > > > > < < | 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 |
*/
// Current project id
$name = $_REQUEST->proj_name["name"];
// Redirect to new name?
if (isset($renamed_proj[$name])) {
exit(header("Location: /projects/{$renamed_proj[$name]}", 303));
}
#-- Fetch project/release entries
$releases = db("
SELECT *, MAX(t_changed)
FROM release
WHERE name = ?
AND flag < 5
AND NOT deleted
GROUP BY version
ORDER BY t_published DESC, t_changed DESC
", $name);
// Retrieve most current project version
if ($entry = $releases->fetch()) {
prepare_output($entry);
// prepare HTML header with injected RSS/Atom links
$h = "htmlspecialchars";
$header_add = <<<HTML
<link rel=alternate type=application/rss+xml href="/feed/$name.rss">
<link rel=alternate type=application/atom+xml href="/feed/$name.atom">
<link rel=alternate type=json/vnd.freshcode.club href="/feed/$name.json">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@versiontracker">
<meta name="twitter:creator" content="@versiontracker">
<meta name="twitter:title" content="{$h($entry['title'])} ({$h($entry['version'])})">
<meta name="twitter:description" content="{$h($entry['description'])}">
<meta name="twitter:image" content="https://freshcode.club{$h($entry['image'])}">
<meta name="twitter:image:src" content="https://freshcode.club{$h($entry['image'])}">
HTML;
$title = input::html($entry["title"]) . " - freshcode.club";
include("template/header.php");
// Show sidebar + long project description
$sb_entry = $entry;
include("template/table_main.php");
include("template/projects_description.php");
#-- Display all other released versions
?> <article class=release-list> <h4>Recent Releases</h4> <?php
|
| ︙ | ︙ |