summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeit Lehmann <[email protected]>2023-02-24 00:46:40 +0100
committerVeit Lehmann <[email protected]>2023-02-24 00:46:40 +0100
commitaa2b770e3068705bd948196c82e396513ffc8a01 (patch)
tree0636bc08435bc7a8abd9228f66f1e1dc66743b2c
parentfcfcb69a2eba083df3401497712c6a3d06c7452f (diff)
add override links to utility views
This enables `local-overrides.css` and `local-overrides.js` for all utility views, for example to add polyfills, enable responsive styling or to adjust styles globally.
-rwxr-xr-xclasses/feeds.php1
-rwxr-xr-xclasses/handler/public.php1
-rw-r--r--plugins/auth_internal/init.php1
-rw-r--r--plugins/bookmarklets/init.php2
-rw-r--r--plugins/share/init.php1
5 files changed, 6 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index de2f750cd..b4b20d2fc 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -706,6 +706,7 @@ class Feeds extends Handler_Protected {
<?= javascript_tag("js/common.js") ?>
<?= javascript_tag("lib/dojo/dojo.js") ?>
<?= javascript_tag("lib/dojo/tt-rss-layer.js") ?>
+ <?= Config::get_override_links() ?>
</head>
<body class="flat ttrss_utility feed_debugger css_loading">
<script type="text/javascript">
diff --git a/classes/handler/public.php b/classes/handler/public.php
index c6ec39f36..f89be14bb 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -451,6 +451,7 @@ class Handler_Public extends Handler {
echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js");
?>
+ <?= Config::get_override_links() ?>
</head>
<body class='flat ttrss_utility'>
<div class='container'>
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php
index 135e4d3ed..f113cd31e 100644
--- a/plugins/auth_internal/init.php
+++ b/plugins/auth_internal/init.php
@@ -76,6 +76,7 @@ class Auth_Internal extends Auth_Base {
},
};
</script>
+ <?= Config::get_override_links() ?>
</head>
<body class="flat ttrss_utility otp css_loading">
<h1><?= __("Authentication") ?></h1>
diff --git a/plugins/bookmarklets/init.php b/plugins/bookmarklets/init.php
index 4a7a35608..f5b3ab1ca 100644
--- a/plugins/bookmarklets/init.php
+++ b/plugins/bookmarklets/init.php
@@ -56,6 +56,7 @@ class Bookmarklets extends Plugin {
display : none;
}
</style>
+ <?= Config::get_override_links() ?>
</head>
<body class='flat ttrss_utility css_loading'>
<script type="text/javascript">
@@ -202,6 +203,7 @@ class Bookmarklets extends Plugin {
display : none;
}
</style>
+ <?= Config::get_override_links() ?>
</head>
<body class='flat ttrss_utility share_popup css_loading'>
<script type="text/javascript">
diff --git a/plugins/share/init.php b/plugins/share/init.php
index 62869bfb1..8e25dc677 100644
--- a/plugins/share/init.php
+++ b/plugins/share/init.php
@@ -195,6 +195,7 @@ class Share extends Plugin {
)
), 500, "...")) ?>">
<meta property='og:image' content="<?= htmlspecialchars($og_image) ?>">
+ <?= Config::get_override_links() ?>
</head>
<body class='flat ttrss_utility ttrss_zoom css_loading'>