}
}
+ print "<param key=\"theme\" value=\"".$_SESSION["theme"]."\"/>";
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\"/>";
function print_runtime_info($link) {
print "<runtime-info>";
+
if (ENABLE_UPDATE_DAEMON) {
print "<param key=\"daemon_is_running\" value=\"".
sprintf("%d", file_is_locked("update_daemon.lock")) . "\"/>";
} */
print "<td class=\"headlineTitle$rtl_cpart\">";
-
- if ($feed_site_url) {
- if (!$bottom) {
- $target = "target=\"_new\"";
- }
- print "<a $target href=\"$feed_site_url\">".
- truncate_string($feed_title,30)."</a>";
- } else {
- print $feed_title;
- }
- if ($search) {
- $search_q = "&q=$search&m=$match_on&smode=$search_mode";
- }
+ if ($_SESSION["theme"] != "3pane") {
- if ($user_page_offset > 1) {
- print " [$user_page_offset] ";
+ if ($feed_site_url) {
+ if (!$bottom) {
+ $target = "target=\"_new\"";
+ }
+ print "<a $target href=\"$feed_site_url\">".
+ truncate_string($feed_title,30)."</a>";
+ } else {
+ print $feed_title;
+ }
+
+ if ($search) {
+ $search_q = "&q=$search&m=$match_on&smode=$search_mode";
+ }
+
+ if ($user_page_offset > 1) {
+ print " [$user_page_offset] ";
+ }
}
if (!$bottom) {
$num_tags = 0;
+ if ($_SESSION["theme"] == "3pane") {
+ $tag_limit = 3;
+ } else {
+ $tag_limit = 6;
+ }
+
foreach ($tags as $tag) {
$num_tags++;
$tag_escaped = str_replace("'", "\\'", $tag);
$tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
- if ($num_tags == 6) {
+ if ($num_tags == $tag_limit) {
$tags_str .= "...";
- } else if ($num_tags < 6) {
+ } else if ($num_tags < $tag_limit) {
$tags_str .= $tag_str;
}
$f_tags_str .= $tag_str;
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 11);
- define('SCHEMA_VERSION', 24);
+ define('SCHEMA_VERSION', 25);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
insert into ttrss_themes (theme_name, theme_path) values ('Old-skool', 'compat');
insert into ttrss_themes (theme_name, theme_path) values ('Graycube', 'graycube');
insert into ttrss_themes (theme_name, theme_path) values ('Default (Compact)', 'compact');
+insert into ttrss_themes (theme_name, theme_path) values ('Three-pane', '3pane');
create table ttrss_users (id integer primary key not null auto_increment,
login varchar(120) not null unique,
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (24);
+insert into ttrss_version values (25);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null) TYPE=InnoDB;
insert into ttrss_themes (theme_name, theme_path) values ('Old-skool', 'compat');
insert into ttrss_themes (theme_name, theme_path) values ('Graycube', 'graycube');
insert into ttrss_themes (theme_name, theme_path) values ('Default (Compact)', 'compact');
+insert into ttrss_themes (theme_name, theme_path) values ('Three-pane', '3pane');
create table ttrss_users (id serial not null primary key,
login varchar(120) not null unique,
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (24);
+insert into ttrss_version values (25);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null);
--- /dev/null
+insert into ttrss_themes (theme_name, theme_path) values ('Three-pane', '3pane');
+
+update ttrss_version set schema_version = 25;
--- /dev/null
+insert into ttrss_themes (theme_name, theme_path) values ('Three-pane', '3pane');
+
+update ttrss_version set schema_version = 25;
--- /dev/null
+div.headlines_normal {
+ position : absolute;
+ border-width : 1px 1px 0px 0px;
+ right : 400px;
+ overflow : hidden;
+ bottom : 40px;
+ height : auto;
+}
+
+#content-frame {
+ width : 400px;
+ right : 0px;
+ top : 85px;
+ left : auto;
+}
+
+div.postHeader div.postDate {
+ text-align : left;
+ color : gray;
+ float : none;
+}
+
+div.postHeader div.postDateRTL {
+ text-align : left;
+ color : gray;
+ float : none;
+}
+
+
if (!c_frame || !h_frame) return;
- debug("resize_headlines");
+ if (getInitParam("theme") == "3pane") {
+ debug("resize_headlines: HOR-mode");
- if (!is_msie()) {
- h_frame.style.height = 30 + "%";
- c_frame.style.top = h_frame.offsetTop + h_frame.offsetHeight + 1 + "px";
- h_frame.style.height = h_frame.offsetHeight + "px";
- } else {
- h_frame.style.height = document.documentElement.clientHeight * 0.3 + "px";
- c_frame.style.top = h_frame.offsetTop + h_frame.offsetHeight + 1 + "px";
+ c_frame.style.width = '30%';
+ h_frame.style.right = c_frame.offsetWidth - 1 + "px";
- var c_bottom = document.documentElement.clientHeight;
+ } else {
+ debug("resize_headlines: VER-mode");
- if (f_frame) {
- c_bottom = f_frame.offsetTop;
+ if (!is_msie()) {
+ h_frame.style.height = 30 + "%";
+ c_frame.style.top = h_frame.offsetTop + h_frame.offsetHeight + 1 + "px";
+ h_frame.style.height = h_frame.offsetHeight + "px";
+ } else {
+ h_frame.style.height = document.documentElement.clientHeight * 0.3 + "px";
+ c_frame.style.top = h_frame.offsetTop + h_frame.offsetHeight + 1 + "px";
+
+ var c_bottom = document.documentElement.clientHeight;
+
+ if (f_frame) {
+ c_bottom = f_frame.offsetTop;
+ }
+
+ c_frame.style.height = c_bottom - (h_frame.offsetTop +
+ h_frame.offsetHeight + 1) + "px";
+ h_frame.style.height = h_frame.offsetHeight + "px";
+
}
- c_frame.style.height = c_bottom - (h_frame.offsetTop +
- h_frame.offsetHeight + 1) + "px";
- h_frame.style.height = h_frame.offsetHeight + "px";
-
}
+
}
function init_second_stage() {