PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

normal
article.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/helpers/index/article.phtml'
View Content
<?php
	// used only in Reading view and html.phtml
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	$entry = $this->entry;
	$feed = $this->feed;
?>
<article class="flux_content" dir="auto">
<div class="content <?= FreshRSS_Context::userConf()->content_width ?>">
	<header>
		<?php
			$favoriteUrl = ['c' => 'entry', 'a' => 'bookmark', 'params' => ['id' => $entry->id()]];
			if ($entry->isFavorite()) {
				$favoriteUrl['params']['is_favorite'] = '0';
			}
			$readUrl = ['c' => 'entry', 'a' => 'read', 'params' => ['id' => $entry->id()]];
			if ($entry->isRead()) {
				$readUrl['params']['is_read'] = '0';
			}
		?>
		<div class="article-header-topline horizontal-list">
			<?php if (FreshRSS_Auth::hasAccess()) { ?>
				<?php if (FreshRSS_Context::userConf()->topline_read && FreshRSS_Context::userConf()->show_article_icons == 't') { ?>
					<div class="item manage">
						<a class="read" href="<?= Minz_Url::display($readUrl) ?>" title="<?= _t('conf.shortcut.mark_read') ?>"><?= _i($entry->isRead() ? 'read' : 'unread') ?></a>
					</div>
				<?php } ?>
				<?php if (FreshRSS_Context::userConf()->topline_favorite && FreshRSS_Context::userConf()->show_article_icons == 't') { ?>
					<div class="item manage">
						<a class="bookmark" href="<?= Minz_Url::display($favoriteUrl) ?>" title="<?= _t('conf.shortcut.mark_favorite') ?>"><?= _i($entry->isFavorite() ? 'starred' : 'non-starred') ?></a>
					</div>
				<?php } ?>					
			<?php } ?>
			<div class="item">
				<?php if (FreshRSS_Context::userConf()->show_feed_name === 't') { ?>
					<a class="website" href="<?= _url('index', 'reader', 'get', 'f_' . $feed->id()) ?>" title="<?= _t('gen.action.filter') ?>">
						<?php if (FreshRSS_Context::userConf()->show_favicons): ?>
							<img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php
						endif; ?><span><?= $feed->name() ?></span></a>
				<?php } ?>
			</div>
			<?php
			if (FreshRSS_Context::userConf()->topline_link && FreshRSS_Context::userConf()->show_article_icons == 't') { ?>
				<div class="item link">
					<a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>" class="item-element" title="<?= _t('conf.shortcut.see_on_website') ?>"><?= _i('link') ?></a>
				</div>
			<?php } ?>
		</div>

		<?php
			if (in_array(FreshRSS_Context::userConf()->show_tags, ['b', 'h'], true)) {
				$this->renderHelper('index/tags');
			}
		?>
		<h1 class="title"><a target="_blank" rel="noreferrer" class="go_website" href="<?= $entry->link() ?>"><?= $entry->title() ?></a></h1>
		<?php if (in_array(FreshRSS_Context::userConf()->show_author_date, ['h','b'], true)) { ?>
			<div class="subtitle horizontal-list">
				<?php if (FreshRSS_Auth::hasAccess()) { ?>
					<?php if (FreshRSS_Context::userConf()->topline_read && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?>
						<div class="item manage">
							<a class="read" href="<?= Minz_Url::display($readUrl) ?>" title="<?= _t('conf.shortcut.mark_read') ?>"><?= _i($entry->isRead() ? 'read' : 'unread') ?></a>
						</div>
					<?php } ?>
					<?php if (FreshRSS_Context::userConf()->topline_favorite && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?>
						<div class="item manage">
							<a class="bookmark" href="<?= Minz_Url::display($favoriteUrl) ?>" title="<?= _t('conf.shortcut.mark_favorite') ?>"><?= _i($entry->isFavorite() ? 'starred' : 'non-starred') ?></a>
						</div>
					<?php } ?>
				<?php } ?>
				<div class="item">
					<?php if (FreshRSS_Context::userConf()->show_feed_name === 'a') { ?>
						<span class="website"><a href="<?= $this->internal_rendering ? $feed->website() : _url('index', 'reader', 'get', 'f_' . $feed->id()) ?>" title="<?= _t('gen.action.filter') ?>">
							<?php if (FreshRSS_Context::userConf()->show_favicons): ?>
								<img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php
							endif; ?><span><?= $feed->name() ?></span></a></span>
					<?php }
					$authors = $entry->authors();
					if (!empty($authors) && is_array($authors)) { ?>
						<div class="author">
						<?= _t('gen.short.by_author') ?>
						<?php
						foreach ($authors as $author) {
							$href = Minz_Url::display(Minz_Request::modifiedCurrentRequest(['search' => 'author:"' . htmlspecialchars_decode($author, ENT_QUOTES) . '"']));
							?>
							<a href="<?= $href ?>" title="<?= _t('gen.action.filter') ?>"><?= $author ?></a>
						<?php } ?>
						</div>
					<?php } ?>
				</div>
				<div class="item date">
					<time datetime="<?= $entry->machineReadableDate() ?>"><?= $entry->date() ?></time>
				</div>
				<?php
				if (FreshRSS_Context::userConf()->topline_link && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?>
					<div class="item link">
						<a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>" class="item-element" title="<?= _t('conf.shortcut.see_on_website') ?>"><?= _i('link') ?></a>
					</div>
				<?php } ?>
			</div>
		<?php } ?>
	</header>

	<div class="text">
		<?= $entry->content(true) ?>
	</div>
	<?php
	$display_authors_date = in_array(FreshRSS_Context::userConf()->show_author_date, ['b', 'f'], true);
	$display_tags = in_array(FreshRSS_Context::userConf()->show_tags, ['b', 'f'], true);

	if ($display_authors_date || $display_tags) {
		?>
		<footer>
			<?php if ($display_authors_date) { ?>
				<div class="subtitle">
					<?php if (FreshRSS_Context::userConf()->show_feed_name === 'a') { ?>
						<div class="website"><a href="<?= _url('index', 'reader', 'get', 'f_' . $feed->id()) ?>" title="<?= _t('gen.action.filter') ?>">
							<?php if (FreshRSS_Context::userConf()->show_favicons): ?>
								<img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php
							endif; ?><span><?= $feed->name() ?></span></a></div>
					<?php } ?>
					<div class="author"><?php
						$authors = $entry->authors();
						if (is_array($authors)) {
							foreach ($authors as $author) {
								?>
								<a href="<?= Minz_Url::display(Minz_Request::modifiedCurrentRequest(['search' => 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))])) ?>">
									<?= $author ?>
								</a>
								<?php
							}
						}
						?>
					</div>
					<div class="date">
						<time datetime="<?= $entry->machineReadableDate() ?>"><?= $entry->date() ?></time>
					</div>
				</div>
				<?php
			}

			if ($display_tags) {
				$this->renderHelper('index/tags');
			}
		?>
		</footer>
		<?php
	} ?>
</div>
</article>
tags.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/helpers/index/tags.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	[$firstTags,$remainingTags] = $this->entry->tagsFormattingHelper();
?>
<div class="tags">
<?php if (!empty($firstTags)): ?>
	<?= _i('tag') ?><ul class="list-tags">
	<?php if (Minz_Request::controllerName() === 'index'): ?>
		<?php foreach ($firstTags as $tag): ?>
		<li class="item tag"><a class="link-tag" href="<?= _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
		<?php endforeach; ?>
	<?php else: // API public access ?>
		<?php foreach ($firstTags as $tag): ?>
		<li class="item tag"><a class="link-tag" href="<?= $this->html_url . '&search=%23' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
		<?php endforeach; ?>
	<?php endif; ?>

	<?php if (!empty($remainingTags)): // more than 7 tags: show dropdown menu ?>
		<li class="item tag">
			<div class="dropdown">
				<div id="dropdown-tags2-<?= $this->entry->id() ?>" class="dropdown-target"></div>
				<a class="dropdown-toggle" href="#dropdown-tags2-<?= $this->entry->id() ?>"><?= _i('down') ?></a>
				<ul class="dropdown-menu">
					<li class="dropdown-header"><?= _t('index.tag.related') ?></li>
					<?php if (Minz_Request::controllerName() === 'index'): ?>
						<?php foreach ($remainingTags as $tag): ?>
						<li class="item"><a href="<?= _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
						<?php endforeach; ?>
					<?php else: ?>
						<?php foreach ($remainingTags as $tag): ?>
						<li class="item tag"><a class="link-tag" href="<?= $this->html_url . '&search=%23' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
						<?php endforeach; ?>
					<?php endif; ?>
				</ul>
				<a class="dropdown-close" href="#close">❌</a>
			</div>
		</li>
	<?php endif; ?>
	</ul>
<?php endif; ?>
</div>