Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions include/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ $css_files = [
if (isset($config['css'])) {
$css_files = array_merge($css_files, (array) $config['css']);
}
if (isset($config["css_overwrite"])) {
$css_files = $config["css_overwrite"];
}

// The fancy footer is the default for classic pages (see footer.inc); load its
// standalone stylesheet everywhere except the release landing pages, which ship
Expand Down
5 changes: 0 additions & 5 deletions include/layout.inc
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,6 @@ META
$curr = $config["current"];
$classes = $config['classes'];

if (isset($_COOKIE["MD"]) || isset($_GET["MD"])) {
$classes .= "markdown-content";
$config["css_overwrite"] = ["/styles/i-love-markdown.css"];
}

// shorturl; http://wiki.snaplog.com/short_url
if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER["BASE_PAGE"])) {
$shorturl = "https://www.php.net/" . $shortname;
Expand Down
6 changes: 0 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,6 @@ parameters:
count: 1
path: include/header.inc

-
message: '#^Variable \$CSS might not be defined\.$#'
identifier: variable.undefined
count: 1
path: include/header.inc

-
message: '#^Variable \$MYSITE might not be defined\.$#'
identifier: variable.undefined
Expand Down
8 changes: 0 additions & 8 deletions public/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,6 @@ Mousetrap.bind("l o g o enter", function (e) {
var time = new Date().getTime();
$(".navbar__brand img").attr("src", "/images/logo.php?refresh&time=" + time);
});
Mousetrap.bind("u n r e a d a b l e enter", function (e) {
document.cookie = 'MD=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT';
location.reload(true);
});
Mousetrap.bind("r e a d a b l e enter", function (e) {
document.cookie = 'MD=1; path=/';
location.reload(true);
});

function fixTimeout() {
Mousetrap.trigger("m i r r o r enter");
Expand Down
193 changes: 0 additions & 193 deletions public/styles/i-love-markdown.css

This file was deleted.

Loading