Add a full-pane version of youtube extension, complete with fixing the extra duplicate thumbnail bug in freshrss
Some checks are pending
Automated tests / tests (push) Waiting to run

This commit is contained in:
George Dorn 2025-07-11 15:57:04 -07:00
parent 361a428139
commit 2cc2e8aab2
10 changed files with 1109 additions and 0 deletions

View file

@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
/** @var YouTubeExtensionWide $this */
?>
<form action="<?php echo _url('extension', 'configure', 'e', urlencode($this->getName())); ?>" method="post">
<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
<div class="form-group">
<label class="group-name" for="ytw_height"><?php echo _t('ext.ytw_videos.height'); ?></label>
<div class="group-controls">
<input type="text" id="ytw_height" name="ytw_height" value="<?php echo $this->getHeight(); ?>" min="50" data-leave-validation="1">
</div>
<label class="group-name" for="ytw_width"><?php echo _t('ext.ytw_videos.width'); ?></label>
<div class="group-controls">
<input type="text" id="ytw_width" name="ytw_width" value="<?php echo $this->getWidth(); ?>" min="100" data-leave-validation="1">
</div>
<div class="group-controls">
<label class="checkbox" for="ytw_show_content">
<input type="checkbox" id="ytw_show_content" name="ytw_show_content" value="1" <?php echo $this->isShowContent() ? 'checked' : ''; ?>>
<?php echo _t('ext.ytw_videos.show_content'); ?>
</label>
</div>
<div class="group-controls">
<label class="checkbox" for="ytw_nocookie">
<input type="checkbox" id="ytw_nocookie" name="ytw_nocookie" value="1" <?php echo $this->isUseNoCookieDomain() ? 'checked' : ''; ?>>
<?php echo _t('ext.ytw_videos.use_nocookie'); ?>
</label>
</div>
</div>
<div class="form-group form-actions">
<div class="group-controls">
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
<button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
</div>
</div>
</form>