1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

utility css updates

This commit is contained in:
Andrew Dolgov
2019-02-19 19:46:09 +03:00
parent 73c845858c
commit 8cd7f31bde
11 changed files with 794 additions and 550 deletions

View File

@@ -831,31 +831,34 @@ class Feeds extends Handler_Protected {
<?php echo stylesheet_tag("css/default.css") ?>
<title>Feed Debugger</title>
</head>
<body class="small_margins ttrss_utility claro">
<h1>Feed Debugger: <?php echo "$feed_id: " . $this->getFeedTitle($feed_id) ?></h1>
<form method="GET" action="">
<input type="hidden" name="op" value="feeds">
<input type="hidden" name="method" value="update_debugger">
<input type="hidden" name="xdebug" value="1">
<input type="hidden" name="csrf_token" value="<?php echo $csrf_token ?>">
<input type="hidden" name="action" value="do_update">
<input type="hidden" name="feed_id" value="<?php echo $feed_id ?>">
<input type="checkbox" name="force_refetch" value="1" <?php echo $refetch_checked ?>> Force refetch<br/>
<input type="checkbox" name="force_rehash" value="1" <?php echo $rehash_checked ?>> Force rehash<br/>
<body class="ttrss_utility feed_debugger">
<div class="container">
<h1>Feed Debugger: <?php echo "$feed_id: " . $this->getFeedTitle($feed_id) ?></h1>
<div class="content">
<form method="GET" action="">
<input type="hidden" name="op" value="feeds">
<input type="hidden" name="method" value="update_debugger">
<input type="hidden" name="xdebug" value="1">
<input type="hidden" name="csrf_token" value="<?php echo $csrf_token ?>">
<input type="hidden" name="action" value="do_update">
<input type="hidden" name="feed_id" value="<?php echo $feed_id ?>">
<input type="checkbox" name="force_refetch" value="1" <?php echo $refetch_checked ?>> Force refetch<br/>
<input type="checkbox" name="force_rehash" value="1" <?php echo $rehash_checked ?>> Force rehash<br/>
<p/><button type="submit">Continue</button>
</form>
<p/><button type="submit">Continue</button>
</form>
<hr>
<hr>
<pre><?php
<pre><?php
if ($do_update) {
RSSUtils::update_rss_feed($feed_id, true);
}
?></pre>
if ($do_update) {
RSSUtils::update_rss_feed($feed_id, true);
}
?></pre>
</div>
</div>
</body>
</html>
<?php

View File

@@ -429,7 +429,17 @@ class Handler_Public extends Handler {
}
$rv .= "<body class='flat ttrss_utility ttrss_zoom'>";
$rv .= "<div class='post post-$id'>";
$rv .= "<div class='container'>";
if ($line["link"]) {
$rv .= "<h1><a target='_blank' rel='noopener noreferrer'
title=\"".htmlspecialchars($line['title'])."\"
href=\"" .htmlspecialchars($line["link"]) . "\">" . $line["title"] . "</a></h1>";
} else {
$rv .= "<h1>" . $line["title"] . "</h1>";
}
$rv .= "<div class='content post'>";
/* header */
@@ -440,51 +450,8 @@ class Handler_Public extends Handler {
$parsed_updated = make_local_datetime($line["updated"], true,
$owner_uid, true);
if ($line["link"]) {
$rv .= "<div class='title'><a target='_blank' rel='noopener noreferrer'
title=\"".htmlspecialchars($line['title'])."\"
href=\"" .htmlspecialchars($line["link"]) . "\">" . $line["title"] . "</a></div>";
} else {
$rv .= "<div class='title'>" . $line["title"] . "</div>";
}
$rv .= "<div class='date'>$parsed_updated<br/></div>";
$rv .= "</div>"; # row
$rv .= "<div class='row'>"; # row
/* left buttons */
$rv .= "<div class='buttons left'>";
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_LEFT_BUTTON) as $p) {
$rv .= $p->hook_article_left_button($line);
}
$rv .= "</div>";
/* comments */
$rv .= "<div class='comments'>$entry_comments</div>";
$rv .= "<div class='author'>".$line['author']."</div>";
/* tags */
$tags_str = Article::format_tags_string($line["tags"], $id);
$rv .= "<i class='material-icons'>label_outline</i><div>";
$tags_str = strip_tags($tags_str);
$rv .= "<span id=\"ATSTR-$id\">$tags_str</span>";
$rv .= "</div>";
/* buttons */
$rv .= "<div class='buttons right'>";
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_BUTTON) as $p) {
$rv .= $p->hook_article_button($line);
}
$rv .= "</div>";
$rv .= "<div>".$line['author']."</div>";
$rv .= "<div>$parsed_updated</div>";
$rv .= "</div>"; # row