PHP 8.x compatibility

Remove deprecated warning for PHP 8.x
This commit is contained in:
danpros 2023-11-22 17:15:14 +07:00
commit c3c37b1f37
9 changed files with 60 additions and 131 deletions

View file

@ -66,45 +66,45 @@
<div class="col-sm-10">
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format1" value="%d %B %Y" <?php if (config('date.format') === '%d %B %Y'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format1" value="dd MMMM yyyy" <?php if (config('date.format') === 'dd MMMM yyyy'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format1">
<?php echo strftime('%d %B %Y', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'dd MMMM yyyy'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format2" value="%B %d, %Y" <?php if (config('date.format') === '%B %d, %Y'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format2" value="MMMM dd, yyyy" <?php if (config('date.format') === 'MMMM dd, yyyy'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format2">
<?php echo strftime('%B %d, %Y', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'MMMM dd, yyyy'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format3" value="%d %b %Y" <?php if (config('date.format') === '%d %b %Y'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format3" value="dd MMM yyyy" <?php if (config('date.format') === 'dd MMM yyyy'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format3">
<?php echo strftime('%d %b %Y', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'dd MMM yyyy'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format4" value="%b %d, %Y" <?php if (config('date.format') === '%b %d, %Y'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format4" value="MMM dd, yyyy" <?php if (config('date.format') === 'MMM dd, yyyy'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format4">
<?php echo strftime('%b %d, %Y', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'MMM dd, yyyy'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format5" value="%d/%m/%Y" <?php if (config('date.format') === '%d/%m/%Y'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format5" value="dd/MM/yyyy" <?php if (config('date.format') === 'dd/MM/yyyy'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format5">
<?php echo strftime('%d/%m/%Y', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'dd/MM/yyyy'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format6" value="%m/%d/%Y" <?php if (config('date.format') === '%m/%d/%Y'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format6" value="MM/dd/yyyy" <?php if (config('date.format') === 'MM/dd/yyyy'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format6">
<?php echo strftime('%m/%d/%Y', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'MM/dd/yyyy'); ?>
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format6" value="%Y-%m-%d" <?php if (config('date.format') === '%Y-%m-%d'):?>checked<?php endif;?>>
<input class="form-check-input" type="radio" name="-config-date.format" id="date.format6" value="yyyy-MM-dd" <?php if (config('date.format') === 'yyyy-MM-dd'):?>checked<?php endif;?>>
<label class="form-check-label" for="date.format6">
<?php echo strftime('%Y-%m-%d', strtotime($date)); ?>
<?php echo format_date(strtotime($date), 'yyyy-MM-dd'); ?>
</label>
</div>