Check-in [8b2b784723]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Convert relative links into /root based resources. Try base href=/index. (Googlebot tripped over something). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8b2b78472335953d70842b6852805547 |
User & Date: | mario 2014-08-29 17:21:57 |
Context
2014-08-29
| ||
17:22 | Capture OpenID failures (still not working with self-signed certs). check-in: 4716253e0f user: mario tags: trunk | |
17:21 | Convert relative links into /root based resources. Try base href=/index. (Googlebot tripped over something). check-in: 8b2b784723 user: mario tags: trunk | |
00:46 | Add formatted timestamp to log. Unpack project_tags array. Use `deleted` flag instead of `hidden` per default, unset both on submitting new revision. Map homepage on GET /urls, and accept "website" as alias when populating afresh. Remove `submitter_image` unless authorized, and rename with_permission() to requires_permission(). check-in: aa58b43da2 user: mario tags: trunk | |
Changes
Changes to cron.daily/spotlight.php.
︙ | ︙ | |||
28 29 30 31 32 33 34 | // combine into HTML blob $html = ""; foreach ($r as $entry) { $entry = array_map("input::_html", $entry); # $entry["description"] = preg_replace("/\.[^.]*$|[,;][^,;]*$|\S*$/", "", $entry["description"]); $html .= <<<EOF | | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | // combine into HTML blob $html = ""; foreach ($r as $entry) { $entry = array_map("input::_html", $entry); # $entry["description"] = preg_replace("/\.[^.]*$|[,;][^,;]*$|\S*$/", "", $entry["description"]); $html .= <<<EOF <a class=project-spotlight href="/projects/$entry[name]"> <img src="/img/screenshot/$entry[name].jpeg" width=120 height=90 alt=$entry[name]> <b> $entry[title] </b> <small class=description>$entry[description]</small> </a> EOF; } // store as template file_put_contents("./template/spotlight.htm", $html); |
Changes to template/header.php.
1 2 3 4 5 6 | <?php /** * api: freshcode * type: template * title: HTML page header * description: Starts <html> and <head>, outputs top bar / menus etc. | | | | | | | 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 | <?php /** * api: freshcode * type: template * title: HTML page header * description: Starts <html> and <head>, outputs top bar / menus etc. * version: 0.7.0 * * Optionally injects a `$header_add` list, or allows to override the * page $title. * */ ?> <!DOCTYPE html> <html> <head> <title><?= isset($title) ? $title : "freshcode.club" ?></title> <meta name=version content=0.7.0> <meta charset=UTF-8> <link rel=stylesheet href="/freshcode.css?0.7.0"> <link rel="shortcut icon" href="/img/changes.png"> <base href="/index"> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]--> <script src="/gimmicks.js?2"></script> <?php if (isset($header_add)) { print $header_add . "\n"; } ?> </head> <body> <nav id=topbar> Open source software release tracking. <?= is_int(strpos(HTTP_HOST, ".")) ? '<small style="color:#9c7" class=version>[0.7.0 alpha]</small>' : '<b style="color:#c54">[local dev]</b>'; ?> <span style=float:right> <a href="//freshmeat.club/">freshmeat.club</a> | <a href="//freecode.club/">freecode.club</a> | <b><a href="//freshcode.club/">freshcode.club</a></b> </span> </nav> |
︙ | ︙ |
Changes to template/index_project.php.
︙ | ︙ | |||
19 20 21 22 23 24 25 26 27 28 | // varexpr callback $_ = "trim"; // greying out flagged entries? $css_flags = ($entry["flag"] < 2) ? "" : "style=\"opacity: " . (1.0 - 0.2 * $entry["flag"]) . "\""; // Write print <<<HTML | > | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | // varexpr callback $_ = "trim"; // greying out flagged entries? $css_flags = ($entry["flag"] < 2) ? "" : "style=\"opacity: " . (1.0 - 0.2 * $entry["flag"]) . "\""; $css_class = ($entry["name"] == "off-parrotvm") ? " sponsored" : ""; // Write print <<<HTML <article class="project$css_class" $css_flags> <h3> <a href="/projects/$entry[name]">$entry[title] <em class=version>$entry[version]</em></a> <span class=links> <span class=published_date>$entry[formatted_date]</span> <a href="$entry[homepage]"><img src="img/home.png" width=20 height=20 border=0 align=middle alt="⛵"></a> <a href="$entry[download]"><img src="img/disk.png" width=20 height=20 border=0 align=middle alt="💾"></a> </span> </h3> |
︙ | ︙ |
Changes to template/projects_description.php.
︙ | ︙ | |||
19 20 21 22 23 24 25 | $_ = "trim"; print <<<PROJECT <article class=project> <h3> | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | $_ = "trim"; print <<<PROJECT <article class=project> <h3> <a href="/projects/$entry[name]"> $entry[title] <em class=version>$entry[version]</em> </a> </h3> <a href="$entry[homepage]"> <img class=preview src="$entry[image]" align=right width=120 height=90 border=0> |
︙ | ︙ |
Changes to template/search_entry.php.
︙ | ︙ | |||
24 25 26 27 28 29 30 | $_ = "trim"; print <<<PROJECT <article class="project search"> <h3> | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | $_ = "trim"; print <<<PROJECT <article class="project search"> <h3> <a href="/projects/$entry[name]"> $entry[title] <em class=version>$entry[version]</em> </a> </h3> <a href="$entry[homepage]"> <img class=preview src="$entry[image]" align=left width=60 height=45> |
︙ | ︙ |