new option - USER_STYLESHEET_URL

This commit is contained in:
Andrew Dolgov 2005-11-22 07:44:19 +01:00
parent 7325509d5d
commit 386d7b5bda
4 changed files with 16 additions and 0 deletions

View file

@ -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">

View file

@ -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),

View file

@ -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),

View file

@ -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">