Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tiny Tiny RSS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Server
Tiny Tiny RSS
Commits
e432b8fb
Commit
e432b8fb
authored
Jan 25, 2017
by
Andrew Dolgov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement cache-busting for default theme.css
night theme: small fixes
parent
7c04f8af
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
7 deletions
+21
-7
classes/pref/prefs.php
classes/pref/prefs.php
+1
-1
include/functions2.php
include/functions2.php
+1
-1
index.php
index.php
+1
-1
prefs.php
prefs.php
+1
-1
themes/default.php
themes/default.php
+14
-0
themes/night.css
themes/night.css
+3
-3
No files found.
classes/pref/prefs.php
View file @
e432b8fb
...
...
@@ -565,7 +565,7 @@ class Pref_Prefs extends Handler_Protected {
}
else
if
(
$pref_name
==
"USER_CSS_THEME"
)
{
$themes
=
array_merge
(
glob
(
"themes/*.css"
),
glob
(
"themes.local/*.css"
));
$themes
=
array_merge
(
glob
(
"themes/*.
php"
),
glob
(
"themes/*.
css"
),
glob
(
"themes.local/*.css"
));
$themes
=
array_map
(
"basename"
,
$themes
);
$themes
=
array_filter
(
$themes
,
"theme_valid"
);
asort
(
$themes
);
...
...
include/functions2.php
View file @
e432b8fb
...
...
@@ -2428,7 +2428,7 @@
}
function
theme_valid
(
$theme
)
{
if
(
$theme
==
"default.
css
"
||
$theme
==
"night.css"
)
return
true
;
// needed for array_filter
if
(
$theme
==
"default.
php
"
||
$theme
==
"night.css"
)
return
true
;
// needed for array_filter
$file
=
"themes/"
.
basename
(
$theme
);
if
(
!
file_exists
(
$file
))
$file
=
"themes.local/"
.
basename
(
$theme
);
...
...
index.php
View file @
e432b8fb
...
...
@@ -68,7 +68,7 @@
if
(
$theme
&&
theme_valid
(
"
$theme
"
))
{
echo
stylesheet_tag
(
get_theme_path
(
$theme
));
}
else
{
echo
stylesheet_tag
(
"themes/default.
css
"
);
echo
stylesheet_tag
(
"themes/default.
php
"
);
}
}
?>
...
...
prefs.php
View file @
e432b8fb
...
...
@@ -44,7 +44,7 @@
if
(
$theme
&&
theme_valid
(
"
$theme
"
))
{
echo
stylesheet_tag
(
get_theme_path
(
$theme
));
}
else
{
echo
stylesheet_tag
(
"themes/default.
css
"
);
echo
stylesheet_tag
(
"themes/default.
php
"
);
}
}
?>
...
...
themes/default.php
0 → 100644
View file @
e432b8fb
<?php
header
(
"Content-type: text/css"
);
function
import_tag
(
$filename
)
{
return
"@import
\"
$filename
?"
.
filemtime
(
$filename
)
.
"
\"
;"
;
}
$styles
=
[
"tt-rss.css"
,
"dijit.css"
,
"cdm.css"
,
"prefs.css"
];
foreach
(
$styles
as
$style
)
{
print
import_tag
(
"../css/
$style
"
)
.
"
\n
"
;
}
?>
themes/night.css
View file @
e432b8fb
@import
"default.
css
"
;
@import
"default.
php
"
;
body
#ttrssMain
#feeds-holder
{
background
:
#222
;
...
...
@@ -19,7 +19,7 @@ body#ttrssMain #content-insert {
}
body
#ttrssMain
#feedTree
.dijitTreeRow
{
color
:
#ccc
;
color
:
#ccc
! important
;
}
body
#ttrssMain
.claro
.dijitTree
.dijitTreeRowHover
{
...
...
@@ -29,7 +29,7 @@ body#ttrssMain.claro .dijitTree .dijitTreeRowHover {
body
#ttrssMain
.claro
.dijitTree
.dijitTreeRowSelected
{
background
:
#555
;
border-color
:
#666
;
border-color
:
#666
! important
;
}
body
#ttrssMain
.claro
.dijitTreeRowSelected
.dijitTreeLabel
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment