Tiny Tiny RSS : Preferences
+ $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
+ if ($user_css_url) { ?>
+
+ } ?>
+
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
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 @@
+ $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
+ if ($user_css_url) { ?>
+
+ } ?>
+
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>