diff --git a/application/config/migration.php b/application/config/migration.php index 78e384e4..c6248e12 100755 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -37,7 +37,7 @@ $config['migration_table'] = 'ea_migrations'; | be upgraded / downgraded to. | */ -$config['migration_version'] = 18; // current +$config['migration_version'] = 19; // current /* diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 4775d5fa..4372780d 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -85,6 +85,7 @@ class Appointments extends CI_Controller { $terms_and_conditions_content = $this->settings_model->get_setting('terms_and_conditions_content'); $display_privacy_policy = $this->settings_model->get_setting('display_privacy_policy'); $privacy_policy_content = $this->settings_model->get_setting('privacy_policy_content'); + $display_any_provider = $this->settings_model->get_setting('display_any_provider'); $timezones = $this->timezones_model->to_array(); // Remove the data that are not needed inside the $available_providers array. @@ -164,6 +165,7 @@ class Appointments extends CI_Controller { 'display_privacy_policy' => $display_privacy_policy, 'privacy_policy_content' => $privacy_policy_content, 'timezones' => $timezones, + 'display_any_provider' => $display_any_provider, ]; } catch (Exception $exc) diff --git a/application/language/arabic/translations_lang.php b/application/language/arabic/translations_lang.php index a27e01c6..7d30f657 100755 --- a/application/language/arabic/translations_lang.php +++ b/application/language/arabic/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/bulgarian/translations_lang.php b/application/language/bulgarian/translations_lang.php index 42f41dbe..204b5916 100755 --- a/application/language/bulgarian/translations_lang.php +++ b/application/language/bulgarian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/chinese/translations_lang.php b/application/language/chinese/translations_lang.php index c48c58b9..b7b09139 100755 --- a/application/language/chinese/translations_lang.php +++ b/application/language/chinese/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/czech/translations_lang.php b/application/language/czech/translations_lang.php index 43ec4df8..24a831cb 100644 --- a/application/language/czech/translations_lang.php +++ b/application/language/czech/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/danish/translations_lang.php b/application/language/danish/translations_lang.php index 12a4236f..97a831a3 100755 --- a/application/language/danish/translations_lang.php +++ b/application/language/danish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/dutch/translations_lang.php b/application/language/dutch/translations_lang.php index f1db0d95..4cd66220 100755 --- a/application/language/dutch/translations_lang.php +++ b/application/language/dutch/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/english/translations_lang.php b/application/language/english/translations_lang.php index e430de13..f9ba8538 100755 --- a/application/language/english/translations_lang.php +++ b/application/language/english/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/finnish/translations_lang.php b/application/language/finnish/translations_lang.php index c53ece9a..1e8a7cb1 100755 --- a/application/language/finnish/translations_lang.php +++ b/application/language/finnish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/french/translations_lang.php b/application/language/french/translations_lang.php index 7a7b45be..02df69e6 100755 --- a/application/language/french/translations_lang.php +++ b/application/language/french/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/german/translations_lang.php b/application/language/german/translations_lang.php index 32e1e5c5..528fc4d3 100755 --- a/application/language/german/translations_lang.php +++ b/application/language/german/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/greek/translations_lang.php b/application/language/greek/translations_lang.php index 1403767f..030d288b 100755 --- a/application/language/greek/translations_lang.php +++ b/application/language/greek/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/hindi/translations_lang.php b/application/language/hindi/translations_lang.php index dd941639..756efc35 100755 --- a/application/language/hindi/translations_lang.php +++ b/application/language/hindi/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/hungarian/translations_lang.php b/application/language/hungarian/translations_lang.php index a2c18c56..55c55571 100755 --- a/application/language/hungarian/translations_lang.php +++ b/application/language/hungarian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/italian/translations_lang.php b/application/language/italian/translations_lang.php index 916edfed..0c681012 100755 --- a/application/language/italian/translations_lang.php +++ b/application/language/italian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/japanese/translations_lang.php b/application/language/japanese/translations_lang.php index db5045ce..85eca437 100755 --- a/application/language/japanese/translations_lang.php +++ b/application/language/japanese/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/luxembourgish/translations_lang.php b/application/language/luxembourgish/translations_lang.php index 75b16a30..13140748 100755 --- a/application/language/luxembourgish/translations_lang.php +++ b/application/language/luxembourgish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/marathi/translations_lang.php b/application/language/marathi/translations_lang.php index a374b1b7..b7fccff0 100644 --- a/application/language/marathi/translations_lang.php +++ b/application/language/marathi/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/polish/translations_lang.php b/application/language/polish/translations_lang.php index e832f462..f1f0a029 100755 --- a/application/language/polish/translations_lang.php +++ b/application/language/polish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/portuguese-br/translations_lang.php b/application/language/portuguese-br/translations_lang.php index e08809e4..f96058d1 100755 --- a/application/language/portuguese-br/translations_lang.php +++ b/application/language/portuguese-br/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/portuguese/translations_lang.php b/application/language/portuguese/translations_lang.php index 928f138d..334e1a34 100755 --- a/application/language/portuguese/translations_lang.php +++ b/application/language/portuguese/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/romanian/translations_lang.php b/application/language/romanian/translations_lang.php index b4e2ea09..af721c15 100755 --- a/application/language/romanian/translations_lang.php +++ b/application/language/romanian/translations_lang.php @@ -319,4 +319,5 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; -$lang['load_more'] = 'Load More'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; diff --git a/application/language/russian/translations_lang.php b/application/language/russian/translations_lang.php index b1e46bd5..a89d70b7 100755 --- a/application/language/russian/translations_lang.php +++ b/application/language/russian/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/slovak/translations_lang.php b/application/language/slovak/translations_lang.php index 513b0d6e..d89bcba3 100755 --- a/application/language/slovak/translations_lang.php +++ b/application/language/slovak/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/spanish/translations_lang.php b/application/language/spanish/translations_lang.php index 74ec5982..c3776cd3 100755 --- a/application/language/spanish/translations_lang.php +++ b/application/language/spanish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/language/turkish/translations_lang.php b/application/language/turkish/translations_lang.php index 68599572..966bf8fe 100755 --- a/application/language/turkish/translations_lang.php +++ b/application/language/turkish/translations_lang.php @@ -313,4 +313,6 @@ $lang['timezone'] = 'Timezone'; $lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?'; $lang['working_plans_got_updated'] = 'All the working plans got updated.'; $lang['apply_to_all_providers'] = 'Apply To All Providers'; +$lang['display_any_provider'] = 'Display Any Provider Option'; +$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.'; $lang['load_more'] = 'Load More'; diff --git a/application/migrations/019_add_display_any_provider_setting.php b/application/migrations/019_add_display_any_provider_setting.php new file mode 100644 index 00000000..114a8407 --- /dev/null +++ b/application/migrations/019_add_display_any_provider_setting.php @@ -0,0 +1,29 @@ + + * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.4.0 + * ---------------------------------------------------------------------------- */ + +class Migration_Add_display_any_provider_setting extends CI_Migration { + public function up() + { + $this->db->insert('ea_settings', [ + 'name' => 'display_any_provider', + 'value' => '1' + ]); + } + + public function down() + { + $this->db->delete('ea_settings', [ + 'name' => 'display_any_provider' + ]); + } +} diff --git a/application/views/appointments/book.php b/application/views/appointments/book.php index c76248bd..b777838c 100755 --- a/application/views/appointments/book.php +++ b/application/views/appointments/book.php @@ -380,6 +380,7 @@ appointmentData : = json_encode($appointment_data) ?>, providerData : = json_encode($provider_data) ?>, customerData : = json_encode($customer_data) ?>, + displayAnyProvider : = json_encode($display_any_provider) ?>, csrfToken : = json_encode($this->security->get_csrf_hash()) ?> }; diff --git a/application/views/backend/settings.php b/application/views/backend/settings.php index b68c47a0..d5f51f71 100755 --- a/application/views/backend/settings.php +++ b/application/views/backend/settings.php @@ -192,7 +192,7 @@