mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-25 16:13:17 +03:00
Remove remanining GlobalVariables occurrences.
This commit is contained in:
parent
adf7943297
commit
2b0eb8d18b
6 changed files with 0 additions and 94 deletions
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @var string $attributes
|
||||
* @var array $global_variables
|
||||
*/
|
||||
?>
|
||||
<script <?= $attributes ?>>
|
||||
const GlobalVariables = <?= json_encode($global_variables ?? []) ?>
|
||||
</script>
|
||||
|
|
@ -67,26 +67,6 @@
|
|||
<?php component('privacy_policy_modal') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<script>
|
||||
const GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
baseUrl: <?= json_encode(config('base_url')) ?>,
|
||||
manageMode: <?= $manage_mode ? 'true' : 'false' ?>,
|
||||
availableServices: <?= json_encode($available_services) ?>,
|
||||
availableProviders: <?= json_encode($available_providers) ?>,
|
||||
customerToken: <?= json_encode($customer_token) ?>,
|
||||
dateFormat: <?= json_encode($date_format) ?>,
|
||||
timeFormat: <?= json_encode($time_format) ?>,
|
||||
firstWeekday: <?= json_encode($first_weekday) ?>,
|
||||
displayCookieNotice: <?= json_encode($display_cookie_notice === '1') ?>,
|
||||
appointmentData: <?= json_encode($appointment_data) ?>,
|
||||
providerData: <?= json_encode($provider_data) ?>,
|
||||
customerData: <?= json_encode($customer_data) ?>,
|
||||
};
|
||||
|
||||
const availableLanguages = <?= json_encode(config('available_languages')) ?>;
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/cookieconsent/cookieconsent.min.js') ?>"></script>
|
||||
|
|
|
@ -8,22 +8,6 @@
|
|||
|
||||
<?php section('content') ?>
|
||||
|
||||
<script>
|
||||
var GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
baseUrl: <?= json_encode(config('base_url')) ?>,
|
||||
dateFormat: <?= json_encode(setting('date_format')) ?>,
|
||||
timeFormat: <?= json_encode(setting('time_format')) ?>,
|
||||
user: {
|
||||
id: <?= session('user_id') ?>,
|
||||
email: <?= json_encode(session('user_email')) ?>,
|
||||
timezone: <?= json_encode(session('timezone')) ?>,
|
||||
role_slug: <?= json_encode(session('role_slug')) ?>,
|
||||
privileges: <?= json_encode($privileges) ?>
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<div id="about-page" class="container backend-page">
|
||||
<div id="about" class="col-lg-8 offset-lg-2">
|
||||
<h3>Easy!Appointments</h3>
|
||||
|
|
|
@ -42,19 +42,5 @@
|
|||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
appointmentData: <?= json_encode($appointment_data) ?>,
|
||||
providerData: <?= json_encode($provider_data) ?>,
|
||||
customerData: <?= json_encode($customer_data) ?>,
|
||||
serviceData: <?= json_encode($service_data) ?>,
|
||||
companyName: <?= json_encode($company_name) ?>,
|
||||
googleApiKey: <?= json_encode(config('google_api_key')) ?>,
|
||||
googleClientId: <?= json_encode(config('google_client_id')) ?>,
|
||||
googleApiScope: 'https://www.googleapis.com/auth/calendar'
|
||||
};
|
||||
</script>
|
||||
|
||||
<?php section('content') ?>
|
||||
|
||||
|
|
|
@ -131,13 +131,6 @@
|
|||
Powered by <a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
const GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
baseUrl: <?= json_encode(config('base_url')) ?>
|
||||
};
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
|
||||
|
|
|
@ -32,33 +32,6 @@
|
|||
<script src="<?= asset_url('assets/js/working_plan_exceptions_modal.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
||||
<script>
|
||||
var GlobalVariables = {
|
||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||
baseUrl: <?= json_encode($base_url) ?>,
|
||||
dateFormat: <?= json_encode($date_format) ?>,
|
||||
firstWeekday: <?= json_encode($first_weekday); ?>,
|
||||
timeFormat: <?= json_encode($time_format) ?>,
|
||||
admins: <?= json_encode($admins) ?>,
|
||||
providers: <?= json_encode($providers) ?>,
|
||||
secretaries: <?= json_encode($secretaries) ?>,
|
||||
services: <?= json_encode($services) ?>,
|
||||
timezones: <?= json_encode($timezones) ?>,
|
||||
workingPlan: <?= json_encode(json_decode($working_plan)) ?>,
|
||||
workingPlanExceptions: <?= json_encode(json_decode($working_plan_exceptions)) ?>,
|
||||
user: {
|
||||
id: <?= $user_id ?>,
|
||||
email: <?= json_encode($user_email) ?>,
|
||||
timezone: <?= json_encode($timezone) ?>,
|
||||
role_slug: <?= json_encode($role_slug) ?>,
|
||||
privileges: <?= json_encode($privileges) ?>
|
||||
}
|
||||
};
|
||||
|
||||
$(function () {
|
||||
BackendUsers.initialize(true);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="container-fluid backend-page" id="users-page">
|
||||
|
||||
|
|
Loading…
Reference in a new issue