mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 01:15:56 +00:00
new option - USER_STYLESHEET_URL
This commit is contained in:
@@ -15,6 +15,11 @@
|
|||||||
<title>Tiny Tiny RSS : Preferences</title>
|
<title>Tiny Tiny RSS : Preferences</title>
|
||||||
<link rel="stylesheet" href="tt-rss.css" type="text/css">
|
<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')) { ?>
|
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
|
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
|
||||||
|
|||||||
@@ -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.
|
'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.');
|
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 (
|
create table ttrss_user_prefs (
|
||||||
owner_uid integer not null,
|
owner_uid integer not null,
|
||||||
pref_name varchar(250),
|
pref_name varchar(250),
|
||||||
|
|||||||
@@ -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.
|
'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.');
|
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 (
|
create table ttrss_user_prefs (
|
||||||
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
owner_uid integer not null references ttrss_users(id) on delete cascade,
|
||||||
pref_name varchar(250) not null references ttrss_prefs(pref_name),
|
pref_name varchar(250) not null references ttrss_prefs(pref_name),
|
||||||
|
|||||||
@@ -17,6 +17,11 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="tt-rss.css">
|
<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')) { ?>
|
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
|
||||||
|
|
||||||
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
|
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
|
||||||
|
|||||||
Reference in New Issue
Block a user