PluginProbe ʕ •ᴥ•ʔ
Zenchef widget integration / 1.3.0
Zenchef widget integration v1.3.0
1.3.0 1.0.1 1.2.0 trunk 1.0.0
zenchef-widget-integration / src / Widget / load_script_file.php
zenchef-widget-integration / src / Widget Last commit date
Backoffice 2 months ago build_widget_data_attributes.php 2 months ago enqueue_widget_sdk.php 2 weeks ago get_widget_settings.php 2 months ago load_script_file.php 2 weeks ago load_script_template_file.php 2 weeks ago load_translations.php 2 years ago register_consent_api.php 2 weeks ago register_shortcode.php 2 weeks ago sanitize_restaurant_id.php 2 months ago sanitize_widget_settings.php 2 months ago
load_script_file.php
18 lines
1 <?php
2
3 namespace Zenchef\Widget\Widget;
4
5 /**
6 * @return void
7 */
8 function load_script_file()
9 {
10 $settings = get_widget_settings();
11
12 if ($settings['restaurant_id'] === '') {
13 return;
14 }
15
16 enqueue_widget_sdk();
17 }
18