| 1 |
<?php |
| 2 |
|
| 3 |
use FluentForm\App\Helpers\Helper; |
| 4 |
use FluentForm\Framework\Helpers\ArrayHelper; |
| 5 |
|
| 6 |
?> |
| 7 |
<?php do_action('fluentform_global_menu'); ?> |
| 8 |
|
| 9 |
<div class="ff_form_wrap"> |
| 10 |
<div class="ff_form_wrap_area"> |
| 11 |
<h2><?php _e('Fluent Forms Global Settings', 'fluentform'); ?></h2> |
| 12 |
<div class="ff_settings_wrapper"> |
| 13 |
<?php do_action('fluentform_before_global_settings_wrapper'); ?> |
| 14 |
<div class="ff_settings_sidebar"> |
| 15 |
<ul class="ff_settings_list"> |
| 16 |
<li> |
| 17 |
<a data-hash="settings" |
| 18 |
href="<?php echo esc_url(Helper::makeMenuUrl('fluent_forms_settings', [ |
| 19 |
'hash' => 'settings' |
| 20 |
])); ?>"> |
| 21 |
<?php echo __('Settings'); ?> |
| 22 |
</a> |
| 23 |
</li> |
| 24 |
<li class="<?php echo esc_attr(Helper::getHtmlElementClass('managers', $currentComponent)); ?> ff_menu_item_managers"> |
| 25 |
<a data-hash="managers" |
| 26 |
href="<?php echo esc_url(Helper::makeMenuUrl('fluent_forms_settings', [ |
| 27 |
'hash' => 'managers' |
| 28 |
])); ?>"> |
| 29 |
<?php echo __('Managers'); ?> |
| 30 |
</a> |
| 31 |
</li> |
| 32 |
<li class="<?php echo esc_attr(Helper::getHtmlElementClass('double_optin_settings', $currentComponent)); ?> ff_menu_item_double_optin"> |
| 33 |
<a data-hash="double_optin_settings" |
| 34 |
href="<?php echo esc_url(Helper::makeMenuUrl('fluent_forms_settings', [ |
| 35 |
'hash' => 'double_optin_settings' |
| 36 |
])); ?>"> |
| 37 |
<?php echo __('Double Optin Settings', 'fluentform'); ?> |
| 38 |
</a> |
| 39 |
</li> |
| 40 |
<?php foreach ($components as $componentName => $component): ?> |
| 41 |
<li class="<?php echo esc_attr(Helper::getHtmlElementClass($component['hash'], $currentComponent)); ?> ff_item_<?php echo esc_attr($componentName); ?>"> |
| 42 |
<a data-settings_key="<?php echo esc_attr(ArrayHelper::get($component, 'settings_key')); ?>" |
| 43 |
data-component="<?php echo esc_attr(ArrayHelper::get($component, 'component', '')); ?>" |
| 44 |
data-hash="<?php echo esc_attr(ArrayHelper::get($component, 'hash', '')); ?>" |
| 45 |
href="<?php echo esc_url(Helper::makeMenuUrl('fluent_forms_settings', $component)); ?>" |
| 46 |
> |
| 47 |
<?php echo esc_attr($component['title']); ?> |
| 48 |
</a> |
| 49 |
</li> |
| 50 |
<?php endforeach; ?> |
| 51 |
</ul> |
| 52 |
</div> |
| 53 |
<div class="ff_settings_container"> |
| 54 |
<?php do_action('fluentform_global_settings_component_' . $currentComponent); ?> |
| 55 |
</div> |
| 56 |
<?php do_action('fluentform_after_global_settings_wrapper'); ?> |
| 57 |
</div> |
| 58 |
</div> |
| 59 |
</div> |