]> git.wh0rd.org - tt-rss.git/commitdiff
new option - USER_STYLESHEET_URL
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 22 Nov 2005 06:44:19 +0000 (07:44 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 22 Nov 2005 06:44:19 +0000 (07:44 +0100)
prefs.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
tt-rss.php

index 4b15c52e72ce8b064c7fda9fba7b66ad86b3cfcb..0c036d99feea0c6df17ed108c6e584cb07669d77 100644 (file)
--- a/prefs.php
+++ b/prefs.php
        <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">
index bb311bcc0bdfdf12b5e46e500a488aabb00a9b06..3ac062c715bd352981f0017ba083f872bb733632 100644 (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),
index a9befdce8950b3b831aae6e57ea36700c2091cec..107b094d01dec5ad4d8aedc4805a6327dfe11adc 100644 (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),
index f35478b62565c37eb9e4f0f4b70ccea5b5ff6321..f52a67d7323d8789879db6f20bc928f71a829552 100644 (file)
 
        <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">