Skip to content

Commit

Permalink
新着情報・新着記事・人気記事・関連記事ウィジェットの「表示数」オプションに最小値設定
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Dec 31, 2023
1 parent 5e771aa commit 5b1276a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/widgets/info-list.php
Expand Up @@ -135,7 +135,7 @@ function form($instance) {
<label for="<?php echo $this->get_field_id('count'); ?>">
<?php _e( '表示数(半角数字)', THEME_NAME ) ?>
</label>
<input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="number" value="<?php echo $count ? $count : EC_DEFAULT; ?>" />
<input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="number" value="<?php echo $count ? $count : EC_DEFAULT; ?>" min="1" />
</p>
<?php //枠線表示 ?>
<p>
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/new-entries.php
Expand Up @@ -184,7 +184,7 @@ function form($instance) {
<label for="<?php echo $this->get_field_id('entry_count'); ?>">
<?php _e( '表示数(半角数字)', THEME_NAME ) ?>
</label>
<input class="widefat" id="<?php echo $this->get_field_id('entry_count'); ?>" name="<?php echo $this->get_field_name('entry_count'); ?>" type="number" value="<?php echo $entry_count ? $entry_count : EC_DEFAULT; ?>" />
<input class="widefat" id="<?php echo $this->get_field_id('entry_count'); ?>" name="<?php echo $this->get_field_name('entry_count'); ?>" type="number" value="<?php echo $entry_count ? $entry_count : EC_DEFAULT; ?>" min="1" />
</p>
<?php //表示タイプ ?>
<p>
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/popular-entries.php
Expand Up @@ -181,7 +181,7 @@ function form($instance) {
<label for="<?php echo $this->get_field_id('entry_count'); ?>">
<?php _e( '表示数(半角数字)', THEME_NAME ) ?>
</label>
<input class="widefat" id="<?php echo $this->get_field_id('entry_count'); ?>" name="<?php echo $this->get_field_name('entry_count'); ?>" type="number" value="<?php echo $entry_count ? $entry_count : EC_DEFAULT; ?>" />
<input class="widefat" id="<?php echo $this->get_field_id('entry_count'); ?>" name="<?php echo $this->get_field_name('entry_count'); ?>" type="number" value="<?php echo $entry_count ? $entry_count : EC_DEFAULT; ?>" min="1" />
</p>
<?php //表示タイプ ?>
<p>
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/related-entries.php
Expand Up @@ -174,7 +174,7 @@ function form($instance) {
<label for="<?php echo $this->get_field_id('entry_count'); ?>">
<?php _e( '表示数(半角数字)', THEME_NAME ) ?>
</label>
<input class="widefat" id="<?php echo $this->get_field_id('entry_count'); ?>" name="<?php echo $this->get_field_name('entry_count'); ?>" type="number" value="<?php echo $entry_count ? $entry_count : EC_DEFAULT; ?>" />
<input class="widefat" id="<?php echo $this->get_field_id('entry_count'); ?>" name="<?php echo $this->get_field_name('entry_count'); ?>" type="number" value="<?php echo $entry_count ? $entry_count : EC_DEFAULT; ?>" min="1" />
</p>
<?php //表示タイプ ?>
<p>
Expand Down

0 comments on commit 5b1276a

Please sign in to comment.