Replaced echo statements with php's shortcode syntax
This commit is contained in:
parent
8f618c3339
commit
81cfe6a16d
4 changed files with 26 additions and 18 deletions
|
@ -119,8 +119,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need the uncategorized services at the end of the list so
|
// We need the uncategorized services at the end of the list so we will use
|
||||||
// we will use another iteration only for the uncategorized services.
|
// another iteration only for the uncategorized services.
|
||||||
$grouped_services['uncategorized'] = array();
|
$grouped_services['uncategorized'] = array();
|
||||||
foreach($available_services as $service) {
|
foreach($available_services as $service) {
|
||||||
if ($service['category_id'] == NULL) {
|
if ($service['category_id'] == NULL) {
|
||||||
|
@ -228,10 +228,12 @@
|
||||||
<input type="text" id="email" class="required form-control" maxlength="120" />
|
<input type="text" id="email" class="required form-control" maxlength="120" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="phone-number" class="control-label"><?= lang('phone_number') ?>
|
<label for="phone-number" class="control-label">
|
||||||
<?php echo ('1' === $require_phone_number) ? '*' : ''; ?></label>
|
<?= lang('phone_number') ?>
|
||||||
<input type="text" id="phone-number" class="<?php echo ('1' === $require_phone_number) ? 'required' : ''; ?>
|
<?= $require_phone_number === '1' ? '*' : '' ?>
|
||||||
form-control" maxlength="60" />
|
</label>
|
||||||
|
<input type="text" id="phone-number" maxlength="60"
|
||||||
|
class="<?= $require_phone_number === '1' ? 'required' : '' ?> form-control" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -167,8 +167,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need the uncategorized services at the end of the list so
|
// We need the uncategorized services at the end of the list so we will use
|
||||||
// we will use another iteration only for the uncategorized services.
|
// another iteration only for the uncategorized services.
|
||||||
$grouped_services['uncategorized'] = [];
|
$grouped_services['uncategorized'] = [];
|
||||||
foreach ($available_services as $service)
|
foreach ($available_services as $service)
|
||||||
{
|
{
|
||||||
|
|
|
@ -112,9 +112,9 @@
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label" for="phone-number"><?= lang('phone_number') ?>
|
<label class="control-label" for="phone-number"><?= lang('phone_number') ?>
|
||||||
<?php echo ('1' === $require_phone_number) ? '*' : ''; ?></label>
|
<?= $require_phone_number === '1' ? '*' : ''; ?></label>
|
||||||
<input id="phone-number" class="form-control
|
<input id="phone-number" class="form-control
|
||||||
<?php echo ('1' === $require_phone_number) ? 'required' : ''; ?>">
|
<?= $require_phone_number === '1' ? 'required' : '' ?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -1,20 +1,26 @@
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-content" class="col-xs-12 col-sm-8">
|
<div id="footer-content" class="col-xs-12 col-sm-8">
|
||||||
Powered by
|
Powered by
|
||||||
<a href="https://easyappointments.org">Easy!Appointments
|
<a href="https://easyappointments.org">
|
||||||
<?php
|
Easy!Appointments
|
||||||
echo 'v' . config('version');
|
|
||||||
|
v<?= config('version') ?>
|
||||||
|
|
||||||
|
<?php if (config('release_label')): ?>
|
||||||
|
- <?= config('release_label') ?>
|
||||||
|
<?php endif ?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
||||||
$release_title = config('release_label');
|
|
||||||
if ($release_title != '') {
|
|
||||||
echo ' - ' . $release_title;
|
|
||||||
}
|
|
||||||
?></a> |
|
|
||||||
<?= lang('licensed_under') ?> GPLv3 |
|
<?= lang('licensed_under') ?> GPLv3 |
|
||||||
|
|
||||||
<span id="select-language" class="badge badge-success">
|
<span id="select-language" class="badge badge-success">
|
||||||
<?= ucfirst(config('language')) ?>
|
<?= ucfirst(config('language')) ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
|
|
||||||
|
|
||||||
<a href="<?= site_url('appointments') ?>">
|
<a href="<?= site_url('appointments') ?>">
|
||||||
<?= lang('go_to_booking_page') ?>
|
<?= lang('go_to_booking_page') ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue