configure.phtml syntax
This commit is contained in:
parent
ddaf701447
commit
1ebfc6019f
1 changed files with 14 additions and 14 deletions
|
|
@ -2,46 +2,46 @@
|
|||
declare(strict_types=1);
|
||||
/** @var YouTubeExtension $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(); ?>" />
|
||||
<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"><?php echo _t('ext.yt_videos.height'); ?></label>
|
||||
<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="<?php echo $this->getHeight(); ?>" min="50" data-leave-validation="1">
|
||||
<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"><?php echo _t('ext.yt_videos.width'); ?></label>
|
||||
<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="<?php echo $this->getWidth(); ?>" min="100" data-leave-validation="1">
|
||||
<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" <?php echo $this->isShowContent() ? 'checked' : ''; ?>>
|
||||
<?php echo _t('ext.yt_videos.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" <?php echo $this->isDownloadIcons() ? 'checked' : ''; ?>>
|
||||
<?php echo _t('ext.yt_videos.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" <?php echo $this->isUseNoCookieDomain() ? 'checked' : ''; ?>>
|
||||
<?php echo _t('ext.yt_videos.use_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"><?php echo _t('gen.action.submit'); ?></button>
|
||||
<button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue