47 lines
1.9 KiB
PHTML
47 lines
1.9 KiB
PHTML
<?php
|
|
declare(strict_types=1);
|
|
/** @var YouTubeExtension $this */
|
|
?>
|
|
<form action="<?= _url('extension', 'configure', 'e', urlencode($this->getName())) ?>" method="post">
|
|
<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
|
|
<div class="form-group">
|
|
|
|
<label class="group-name" for="yt_height"><?= _t('ext.yt_videos.height') ?></label>
|
|
<div class="group-controls">
|
|
<input type="number" id="yt_height" name="yt_height" value="<?= $this->getHeight() ?>" min="50" data-leave-validation="1">
|
|
</div>
|
|
|
|
<label class="group-name" for="yt_width"><?= _t('ext.yt_videos.width') ?></label>
|
|
<div class="group-controls">
|
|
<input type="number" id="yt_width" name="yt_width" value="<?= $this->getWidth() ?>" min="100" data-leave-validation="1">
|
|
</div>
|
|
|
|
<div class="group-controls">
|
|
<label class="checkbox" for="yt_show_content">
|
|
<input type="checkbox" id="yt_show_content" name="yt_show_content" value="1" <?= $this->isShowContent() ? 'checked' : '' ?>>
|
|
<?= _t('ext.yt_videos.show_content') ?>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="group-controls">
|
|
<label class="checkbox" for="yt_download_channel_icons">
|
|
<input type="checkbox" id="yt_download_channel_icons" name="yt_download_channel_icons" value="1" <?= $this->isDownloadIcons() ? 'checked' : '' ?>>
|
|
<?= _t('ext.yt_videos.download_channel_icons') ?>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="group-controls">
|
|
<label class="checkbox" for="yt_nocookie">
|
|
<input type="checkbox" id="yt_nocookie" name="yt_nocookie" value="1" <?= $this->isUseNoCookieDomain() ? 'checked' : '' ?>>
|
|
<?= _t('ext.yt_videos.use_nocookie') ?>
|
|
</label>
|
|
</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>
|
|
</form>
|