}
}
- if (getInitParam("theme") == "" || getInitParam("theme") == "lejla" ||
- getInitParam("theme") == "neon") {
+ if (getInitParam("theme") == "" ||
+ getInitParam("theme_options").match("hide_footer")) {
setTimeout("hide_footer()", 5000);
}
}
- if (row_needs_hl && getInitParam("theme") != 'neon' &&
- getInitParam("theme") != 'lejla') {
+ if (row_needs_hl &&
+ !getInitParam("theme_option").match('no_highlights')) {
new Effect.Highlight(feedr, {duration: 1, startcolor: "#fff7d5",
queue: { position:'end', scope: 'EFQ-' + id, limit: 1 } } );
return $theme_path;
}
+ function get_user_theme_options($link) {
+ $t = get_user_theme_path($link);
+
+ if ($t) {
+ if (is_file("$t/theme.ini")) {
+ $ini = parse_ini_file("$t/theme.ini", true);
+ if ($ini['theme']['version']) {
+ return $ini['theme']['options'];
+ }
+ }
+ }
+ return false;
+ }
+
+
function get_all_themes() {
$themes = glob("themes/*");
$entry["name"] = $ini['theme']['name'];
$entry["version"] = $ini['theme']['version'];
$entry["author"] = $ini['theme']['author'];
+ $entry["options"] = $ini['theme']['options'];
array_push($rv, $entry);
}
}
}
print "<param key=\"theme\" value=\"".get_user_theme($link)."\"/>";
+ print "<param key=\"theme_options\" value=\"".get_user_theme_options($link)."\"/>";
print "<param key=\"daemon_enabled\" value=\"" . ENABLE_UPDATE_DAEMON . "\"/>";
print "<param key=\"feeds_frame_refresh\" value=\"" . FEEDS_FRAME_REFRESH . "\"/>";
print "<param key=\"daemon_refresh_only\" value=\"true\"/>";
[theme]
name=Graycube
version=1.0
+options=hide_footer
[theme]
name=Triple Pane
version=1.0
+options=horiz_resize
right : 2px;
}
-a.feedUpdErrLink {
- color : #ff0000;
- display : block;
- margin-bottom : 0.5em;
-}
-
.catCtrHasUnread, .feedCtrHasUnread {
font-weight : bold;
color : #707070;
if (!c_frame || !h_frame) return;
- if (feeds_frame && getInitParam("theme") == "compat") {
+ if (feeds_frame && getInitParam("theme") == "old-skool") {
feeds_frame.style.bottom = f_frame.offsetHeight + "px";
}
- if (getInitParam("theme") == "triple-pane") {
+ if (getInitParam("theme_options").match("horiz_resize")) {
if (delta_x != undefined) {
if (c_frame.offsetLeft - delta_x > feeds_frame.offsetWidth + feeds_frame.offsetLeft + 100 && c_frame.offsetWidth + delta_x > 100) {
4) + "px";
resize_grab.style.display = "block";
- resize_handle.src = "themes/triple-pane/images/resize_handle_vert.png";
+ resize_handle.src = "themes/"+getInitParam('theme')+"/images/resize_handle_vert.png";
resize_handle.style.paddingTop = (resize_grab.offsetHeight / 2 - 7) + "px";
} else {
c_frame.style.top = (h_frame.offsetTop + h_frame.offsetHeight + 0) + "px";
h_frame.style.height = h_frame.offsetHeight + "px";
-
- var theme_c = 0;
-
- if (getInitParam("theme") == "graycube") {
- theme_c = 1;
- }
- if (getInitParam("theme") == "graycube" || getInitParam("theme") == "compat") {
- resize_handle.src = "themes/graycube/images/resize_handle_horiz.png";
- }
-
-/* resize_grab.style.top = (h_frame.offsetTop + h_frame.offsetHeight -
- 4 - theme_c) + "px";
- resize_grab.style.display = "block"; */
-
}
if (getInitParam("cookie_lifetime") != 0) {
var theme = getInitParam("theme");
if (theme != "" && theme != "compact" && theme != "graycube" &&
- theme != "compat") return;
+ theme != "old-skool") return;
var fl = $("feeds-holder");
var fh = $("headlines-frame");