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`).

entry_bottom.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/helpers/index/normal/entry_bottom.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	$bottomline_read = FreshRSS_Context::userConf()->bottomline_read;
	$bottomline_favorite = FreshRSS_Context::userConf()->bottomline_favorite;
	$bottomline_sharing = FreshRSS_Context::userConf()->bottomline_sharing && (count(FreshRSS_Context::userConf()->sharing) > 0);
	$bottomline_myLabels = FreshRSS_Context::userConf()->bottomline_myLabels;
	$bottomline_tags = FreshRSS_Context::userConf()->bottomline_tags;
	$bottomline_date = FreshRSS_Context::userConf()->bottomline_date;
	$bottomline_link = FreshRSS_Context::userConf()->bottomline_link;
?><ul class="horizontal-list bottom"><?php
	if (FreshRSS_Auth::hasAccess()) {
		if ($bottomline_read) {
			?><li class="item manage"><?php
				$arUrl = ['c' => 'entry', 'a' => 'read', 'params' => ['id' => $this->entry->id()]];
				if ($this->entry->isRead()) {
					$arUrl['params']['is_read'] = '0';
				}
				?><a class="item-element read" href="<?= Minz_Url::display($arUrl) ?>" title="<?= _t('conf.shortcut.mark_read') ?>"><?php
					echo _i($this->entry->isRead() ? 'read' : 'unread'); ?></a><?php
			?></li><?php
		}
		if ($bottomline_favorite) {
			?><li class="item manage"><?php
				$arUrl = ['c' => 'entry', 'a' => 'bookmark', 'params' => ['id' => $this->entry->id()]];
				if ($this->entry->isFavorite()) {
					$arUrl['params']['is_favorite'] = '0';
				}
				?><a class="item-element bookmark" href="<?= Minz_Url::display($arUrl) ?>" title="<?= _t('conf.shortcut.mark_favorite') ?>"><?php
					echo _i($this->entry->isFavorite() ? 'starred' : 'non-starred'); ?></a><?php
			?></li><?php
		}
	}
	if ($bottomline_myLabels) {
	?><li class="item labels">
		<div class="item-element dropdown dynamictags">
			<div id="dropdown-labels-<?= $this->entry->id() ?>" class="dropdown-target"></div>
			<a class="dropdown-toggle" href="#dropdown-labels-<?= $this->entry->id() ?>">
				<?= _i('label') ?><?= _t('index.menu.tags') ?>
			</a>
			<ul class="dropdown-menu dropdown-menu-scrollable scrollbar-thin">
				<li class="dropdown-header">
					<?= _t('index.menu.tags') ?>
					<?php if (FreshRSS_Auth::hasAccess()) { ?>
						<a href="<?= _url('tag', 'index') ?>"><?= _i('configure') ?></a>
					<?php } ?>
				</li>
				<!-- Ajax -->
			</ul>
			<a class="dropdown-close" href="#close">❌</a>
		</div>
	</li><?php
	}
	$tags = $bottomline_tags ? $this->entry->tags() : null;
	if (!empty($tags)) {
	?><li class="item tags">
		<div class="item-element dropdown">
			<div id="dropdown-tags-<?= $this->entry->id() ?>" class="dropdown-target"></div>
			<a class="dropdown-toggle" href="#dropdown-tags-<?= $this->entry->id() ?>">
				<?= _i('tag') ?><?= _t('index.tag.related') ?>
			</a>
			<ul class="dropdown-menu">
				<?php
				foreach ($tags as $tag) {
					?><li class="item"><a href="<?= _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))) ?>"><?= $tag ?></a></li><?php
				} ?>
			</ul>
			<a class="dropdown-close" href="#close">❌</a>
		</div>
	</li><?php
	}
	?><li class="item share"><?php
		if ($bottomline_sharing) {
		?><div class="item-element dropdown">
			<div id="dropdown-share-<?= $this->entry->id() ?>" class="dropdown-target"></div>
			<a class="dropdown-toggle" href="#dropdown-share-<?= $this->entry->id() ?>">
				<?= _i('share') ?><?= _t('index.share') ?>
			</a>
			<?php $this->renderHelper('index/normal/entry_share_menu'); ?>
			<a class="dropdown-close" href="#close">❌</a>
		</div>
		<?php } ?>
	</li><?php
	if ($bottomline_date) {
		?><li class="item date"><time datetime="<?= $this->entry->machineReadableDate() ?>" class="item-element"><?= $this->entry->date() ?></time>&nbsp;</li><?php
	}
	if ($bottomline_link) {
		?><li class="item link"><a target="_blank" class="item-element" rel="noreferrer" href="<?= $this->entry->link() ?>" title="<?= _t('conf.shortcut.see_on_website') ?>"><?= _i('link') ?></a></li><?php
	} ?>
</ul>
entry_header.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/helpers/index/normal/entry_header.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	$topline_read = FreshRSS_Context::userConf()->topline_read;
	$topline_favorite = FreshRSS_Context::userConf()->topline_favorite;
	$topline_sharing = FreshRSS_Context::userConf()->topline_sharing;
	$topline_website = FreshRSS_Context::userConf()->topline_website;
	$topline_thumbnail = FreshRSS_Context::userConf()->topline_thumbnail;
	$topline_summary = FreshRSS_Context::userConf()->topline_summary;
	$topline_display_authors = FreshRSS_Context::userConf()->topline_display_authors;
	$topline_date = FreshRSS_Context::userConf()->topline_date;
	$topline_link = FreshRSS_Context::userConf()->topline_link;
	$lazyload = FreshRSS_Context::userConf()->lazyload;
?><ul class="horizontal-list flux_header website<?= $topline_website ?>"><?php
	if (FreshRSS_Auth::hasAccess()) {
		if ($topline_read) {
			?><li class="item manage"><?php
				$arUrl = ['c' => 'entry', 'a' => 'read', 'params' => ['id' => $this->entry->id()]];
				if ($this->entry->isRead()) {
					$arUrl['params']['is_read'] = '0';
				}
				?><a class="item-element read" href="<?= Minz_Url::display($arUrl) ?>" title="<?= _t('conf.shortcut.mark_read') ?>"><?php
					echo _i($this->entry->isRead() ? 'read' : 'unread'); ?></a><?php
			?></li><?php
		}
		if ($topline_favorite) {
			?><li class="item manage"><?php
				$arUrl = ['c' => 'entry', 'a' => 'bookmark', 'params' => ['id' => $this->entry->id()]];
				if ($this->entry->isFavorite()) {
					$arUrl['params']['is_favorite'] = '0';
				}
				?><a class="item-element bookmark" href="<?= Minz_Url::display($arUrl) ?>" title="<?= _t('conf.shortcut.mark_favorite') ?>"><?php
					echo _i($this->entry->isFavorite() ? 'starred' : 'non-starred'); ?></a><?php
			?></li><?php
		}
	}

	if ($topline_website !== 'none'):
	?><li class="item website <?= $topline_website ?>">
		<a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>" class="item-element" title="<?= _t('gen.action.filter') ?>: <?= $this->feed->name() ?>">
			<?php if (FreshRSS_Context::userConf()->show_favicons && 'name' !== $topline_website): ?><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?><?php if ('icon' !== $topline_website): ?><span class="websiteName"><?= $this->feed->name() ?></span><?php endif; ?>
		</a>
		</li><?php
	endif; ?>

	<?php
	if ($topline_thumbnail !== 'none'):
	?><li class="item thumbnail <?= $topline_thumbnail ?> <?= $topline_summary ? '' : 'small' ?>"><?php
		$thumbnail = $this->entry->thumbnail();
		if ($thumbnail != null):
			?><img src="<?= $thumbnail['url'] ?>" class="item-element "<?= $lazyload ? ' loading="lazy"' : '' ?> alt="" /><?php
		endif;
	?></li><?php
	endif; ?>
	<li class="item titleAuthorSummaryDate">
		<a target="_blank" rel="noreferrer" href="<?= $this->entry->link() ?>" class="item-element title<?= (($topline_thumbnail !== 'none') || $topline_summary) ? ' multiline' : '' ?>" dir="auto"><?= $this->entry->title() ?><?php
		if ($topline_display_authors):
			?><span class="author"><?php
			$authors = $this->entry->authors();
			if (is_array($authors)) {
				$first = true;
				foreach ($authors as $author) {
					echo $first ? $author : ', ' . $author;
					$first = false;
				}
			}
			?></span><?php
		endif;
		?></a>
	<?php
	if ($topline_summary):
		?><div class="summary"><?= trim(mb_substr(strip_tags($this->entry->content(false)), 0, 500, 'UTF-8')) ?></div><?php
	endif; ?>
	<?php if ($topline_date) { ?><span class="item-element date"><time datetime="<?= $this->entry->machineReadableDate() ?>"><?= $this->entry->date() ?></time>&nbsp;</span><?php } ?>
	</li>
	<?php if ($topline_sharing) { ?>
		<li class="item share">
			<div class="item-element dropdown">
				<div id="dropdown-share2-<?= $this->entry->id() ?>" class="dropdown-target"></div>
				<a class="dropdown-toggle" href="#dropdown-share2-<?= $this->entry->id() ?>" title="<?= _t('index.share') ?>">
					<?= _i('share') ?>
				</a>
				<?php $this->renderHelper('index/normal/entry_share_menu'); ?>
				<a class="dropdown-close" href="#close">❌</a>
			</div>
		</li>
	<?php } ?>
	<?php if ($topline_link) { ?><li 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></li><?php } ?>
</ul>
entry_share_menu.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/helpers/index/normal/entry_share_menu.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	//TODO: To reduce output size, replace by an on-demand JavaScript menu, potentially using HTML template element
?>
<ul class="dropdown-menu">
	<li class="dropdown-header"><?= _t('index.share') ?> <a href="<?= _url('configure', 'integration') ?>"><?= _i('configure') ?></a></li><?php
		$id = $this->entry->id();
		$link = $this->entry->link();
		$title = $this->entry->title() . ' · ' . ($this->feed === null ? '' : $this->feed->name());
		foreach (FreshRSS_Context::userConf()->sharing as $share_options) {
			$share = FreshRSS_Share::get($share_options['type']);
			if ($share === null) {
				continue;
			}
			$cssClass = $share->isDeprecated() ? ' error' : '';
			$share_options['id'] = $id;
			$share_options['link'] = $link;
			$share_options['title'] = $title;
			$share->update($share_options);
			?><li class="item share<?= $cssClass ?>">
				<?php if ('GET' === $share->method()) {
					if ($share->HTMLtag() !== 'button') {?>
					<a target="_blank" rel="noreferrer" href="<?= $share->url() ?>" data-type="<?= $share->type() ?>"><?= $share->name() ?></a>
					<?php } else { ?>
					<button type="button" class="as-link" data-url="<?= $share->url() ?>" data-type="<?= $share->type() ?>" data-title="<?= htmlspecialchars($title) ?>"><?= $share->name() ?></button>
					<?php
					}
				} else {?>
					<a href="POST"><?= $share->name() ?></a>
					<form method="POST" action="<?= $share->url() ?>" disabled="disabled">
						<input type="hidden" value="<?= $link ?>" name="<?= $share->field() ?>"/>
					</form>
				<?php } ?>
			</li><?php
		}
?></ul>