summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prefs.php5
-rw-r--r--schema/ttrss_schema_mysql.sql3
-rw-r--r--schema/ttrss_schema_pgsql.sql3
-rw-r--r--tt-rss.php5
4 files changed, 16 insertions, 0 deletions
diff --git a/prefs.php b/prefs.php
index 4b15c52e7..0c036d99f 100644
--- a/prefs.php
+++ b/prefs.php
@@ -15,6 +15,11 @@
<title>Tiny Tiny RSS : Preferences</title>
<link rel="stylesheet" href="tt-rss.css" type="text/css">
+ <? $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
+ <? if ($user_css_url) { ?>
+ <link type="text/css" href="<?= $user_css_url ?>"/>
+ <? } ?>
+
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index bb311bcc0..3ac062c71 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -189,6 +189,9 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
'This option is useful when you are reading several planet-type aggregators with partially colliding userbase.
When disabled, it forces same posts from different feeds to appear only once.');
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('USER_STYLESHEET_URL', 2, '', 'User stylesheet URL',2,
+ 'Link to user stylesheet to override default style, disabled if empty.');
+
create table ttrss_user_prefs (
owner_uid integer not null,
pref_name varchar(250),
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index a9befdce8..107b094d0 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -177,6 +177,9 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
'This option is useful when you are reading several planet-type aggregators with partially colliding userbase.
When disabled, it forces same posts from different feeds to appear only once.');
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('USER_STYLESHEET_URL', 2, '', 'User stylesheet URL',2,
+ 'Link to user stylesheet to override default style, disabled if empty.');
+
create table ttrss_user_prefs (
owner_uid integer not null references ttrss_users(id) on delete cascade,
pref_name varchar(250) not null references ttrss_prefs(pref_name),
diff --git a/tt-rss.php b/tt-rss.php
index f35478b62..f52a67d73 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -17,6 +17,11 @@
<link rel="stylesheet" type="text/css" href="tt-rss.css">
+ <? $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
+ <? if ($user_css_url) { ?>
+ <link type="text/css" href="<?= $user_css_url ?>"/>
+ <? } ?>
+
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">