Files
FreshRSS/app/views/feed/contentSelectorPreview.phtml
Luc SANCHEZ 30c7a61a9b Use strict_types (#5830)
* Little's optimisations and booleans in conditions

* Apply strict type

* Apply strict type

* Apply strict type

* Fix multiple bugs with PHP 8.2 and 8.3

* Many declares missing, more errors fixed

* Apply strict type

* Another approach

* Stronger typing for Minz_Session

* Fix case of SQLite

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-11-16 22:43:00 +01:00

41 lines
1.4 KiB
PHTML

<?php
declare(strict_types=1);
/** @var FreshRSS_View $this */
FreshRSS::preLayout();
?>
<!DOCTYPE html>
<html class="preview_background" lang="<?= FreshRSS_Context::$user_conf->language ?>" xml:lang="<?= FreshRSS_Context::$user_conf->language ?>">
<head>
<?= FreshRSS_View::headStyle() ?>
<script src="<?= Minz_Url::display('/scripts/preview.js?' . @filemtime(PUBLIC_PATH . '/scripts/preview.js')) ?>"></script>
</head>
<body class="preview_background">
<?php if ($this->fatalError != '') { ?>
<p class="alert alert-warn"><?= $this->fatalError ?></p>
<?php } else { ?>
<?php if ($this->selectorSuccess === false) { ?>
<p class="alert alert-warn">
<?= _t('feedback.sub.feed.selector_preview.no_result') ?>
</p>
<?php } ?>
<div class="preview_controls">
<label for="freshrss_rendered">
<input type="radio" id="freshrss_rendered" name="freshrss_type" checked="checked" />
<?= _t('sub.feed.selector_preview.show_rendered') ?>
</label>
<label for="freshrss_raw">
<input type="radio" id="freshrss_raw" name="freshrss_type" />
<?= _t('sub.feed.selector_preview.show_raw') ?>
</label>
</div>
<div class="content large">
<div dir="auto" id="freshrss_rendered_view"><?= $this->htmlContent ?></div>
<pre id="freshrss_raw_view" hidden="hidden"> <?= htmlspecialchars($this->htmlContent) ?></pre>
</div>
<?php } ?>
</body>
</html>