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

getTagsForEntry.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/tag/getTagsForEntry.phtml'
View Content
<?php
declare(strict_types=1);
/** @var FreshRSS_View $this */
echo json_encode($this->tagsForEntry);
index.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/tag/index.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	$this->partial('aside_subscription');
?>
<main class="post">
	<div class="link-back-wrapper">
		<a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
	</div>

	<h1><?= _t('sub.menu.label_management') ?></h1>

	<h2><?= _t('sub.title.add_label') ?></h2>
	<form id="add_tag" method="post" action="<?= _url('tag', 'add') ?>" autocomplete="off">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
		<div class="form-group">
			<label class="group-name" for="new_label_name"><?= _t('sub.tag.name') ?></label>
			<div class="group-controls">
				<input id="new_label_name" name="name" type="text" autocomplete="off" required="required" />
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-important"><?= _t('gen.action.add') ?></button>
			</div>
		</div>
	</form>

	<?php if (count($this->tags) > 0): ?>
	<h2><?= _t('gen.action.manage') ?></h2>
	<ul id="tagsList" <?= (count($this->tags) > 11) ? 'class="listInColumns"' : '' ?>>
	<?php foreach ($this->tags as $tag): ?>
		<li>
			<a href="<?= _url('tag', 'update', 'id', $tag->id()) ?>" class="configure open-slider" title="<?= _t('gen.action.manage') ?>">
				<?= _i('configure') ?>
			</a>
			<?= $tag->name() ?>
		</li>
	<?php endforeach; ?>
	</ul>
	<?php endif; ?>
</main>

<?php $class = isset($this->tag) ? ' active' : ''; ?>
<aside id="slider" class="<?= $class ?>">
	<a class="toggle_aside" href="#close"><img class="icon" src="../themes/icons/close.svg" loading="lazy" alt="❌"></a>
	<div id="slider-content">
		<?php
			if (isset($this->tag)) {
				$this->renderHelper('tag/update');
			}
		?>
	</div>
</aside>
<a href="#" id="close-slider">
	<?= _i('close') ?>
</a>
tagEntry.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/tag/tagEntry.phtml'
View Content
update.phtml
wget 'https://sme10.lists2.roe3.org/FreshRSS/app/views/tag/update.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */

	if (!Minz_Request::paramBoolean('ajax')) {
		$this->partial('aside_subscription');
	}
	if ($this->tag === null) {
		throw new FreshRSS_Context_Exception('Tag not initialised!');
	}
?>
<div class="post">
	<h2>
		<?= $this->tag->name() ?>
	</h2>

	<div>
		<a href="<?= _url('index', 'index', 'get', 't_' . $this->tag->id()) ?>"><?= _i('link') ?> <?= _t('gen.action.filter') ?></a>
	</div>

	<form method="post" action="<?= _url('tag', 'update', 'id', $this->tag->id(), '#', 'slider') ?>" autocomplete="off">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />

		<fieldset>
			<legend><?= _t('sub.category.information') ?></legend>
			<div class="form-group">
				<label class="group-name" for="name"><?= _t('sub.tag.name') ?></label>
				<div class="group-controls">
					<input type="text" name="name" id="name" value="<?= $this->tag->name() ?>" />
				</div>
			</div>

			<div class="form-group form-actions">
				<div class="group-controls">
					<button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
					<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
				</div>
			</div>
		</fieldset>

		<fieldset>
			<legend><?= _t('sub.feed.filteractions') ?></legend>
			<div class="form-group">
				<label class="group-name" for="filteractions_label"><?= _t('sub.tag.auto_label') ?></label>
				<div class="group-controls">
					<textarea name="filteractions_label" id="filteractions_label" class="w100"><?php
						foreach ($this->tag->filtersAction('label') as $filterRead) {
							echo $filterRead->getRawInput(), PHP_EOL;
						}
					?></textarea>
					<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>
				</div>
			</div>
		</fieldset>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
				<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
			</div>
		</div>
	</form>

	<h2><?= _t('sub.title.delete_label') ?></h2>
	<form id="delete_tag" method="post" action="<?= _url('tag', 'delete', 'id_tag', $this->tag->id()) ?>">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-attention confirm"><?= _t('gen.action.remove') ?></button>
			</div>
		</div>
	</form>
</div>