| 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 class="<?php echo Helper::getHtmlElementClass('settings', $currentComponent); ?>"> |
| 17 |
<a data-hash="settings" |
| 18 |
href="<?php echo Helper::makeMenuUrl('fluent_forms_settings', [ |
| 19 |
'hash' => 'settings' |
| 20 |
]); ?>" |
| 21 |
> |
| 22 |
<?php echo __('Settings'); ?> |
| 23 |
</a> |
| 24 |
</li> |
| 25 |
<?php foreach ($components as $componentName => $component): ?> |
| 26 |
<li class="<?php echo Helper::getHtmlElementClass($component['hash'], $currentComponent); ?> ff_item_<?php echo $componentName; ?>"> |
| 27 |
<a data-settings_key="<?php echo ArrayHelper::get($component, 'settings_key'); ?>" |
| 28 |
data-component="<?php echo ArrayHelper::get($component, 'component', ''); ?>" |
| 29 |
data-hash="<?php echo ArrayHelper::get($component, 'hash', ''); ?>" |
| 30 |
href="<?php echo Helper::makeMenuUrl('fluent_forms_settings', $component); ?>" |
| 31 |
> |
| 32 |
<?php echo $component['title']; ?> |
| 33 |
</a> |
| 34 |
</li> |
| 35 |
<?php endforeach; ?> |
| 36 |
</ul> |
| 37 |
</div> |
| 38 |
<div class="ff_settings_container"> |
| 39 |
<?php do_action('fluentform_global_settings_component_' . $currentComponent); ?> |
| 40 |
</div> |
| 41 |
<?php do_action('fluentform_after_global_settings_wrapper'); ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
</div> |