| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die; |
| 4 |
|
| 5 |
do_action_deprecated( |
| 6 |
'fluentform_global_menu', |
| 7 |
[ |
| 8 |
], |
| 9 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 10 |
'fluentform/global_menu', |
| 11 |
'Use fluentform/global_menu instead of fluentform_global_menu.' |
| 12 |
); |
| 13 |
do_action('fluentform/global_menu'); |
| 14 |
?> |
| 15 |
<div class="ff_form_wrap"> |
| 16 |
<div class="ff_form_wrap_area"> |
| 17 |
<?php |
| 18 |
do_action_deprecated( |
| 19 |
'fluentform_before_all_forms_render', |
| 20 |
[ |
| 21 |
], |
| 22 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 23 |
'fluentform/before_all_forms_render', |
| 24 |
'Use fluentform/before_all_forms_render instead of fluentform_before_all_forms_render.' |
| 25 |
); |
| 26 |
do_action('fluentform/before_all_forms_render'); |
| 27 |
?> |
| 28 |
<div class="ff_all_forms" id="ff_all_forms_app"> |
| 29 |
<ff_all_forms_table></ff_all_forms_table> |
| 30 |
<global-search></global-search> |
| 31 |
</div> |
| 32 |
<?php |
| 33 |
do_action_deprecated( |
| 34 |
'fluentform_after_all_forms_render', |
| 35 |
[ |
| 36 |
], |
| 37 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 38 |
'fluentform/after_all_forms_render', |
| 39 |
'Use fluentform/after_all_forms_render instead of fluentform_after_all_forms_render.' |
| 40 |
); |
| 41 |
do_action('fluentform/after_all_forms_render'); |
| 42 |
?> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
<?php |
| 46 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable |
| 47 |
$dashboard_notices = apply_filters_deprecated( |
| 48 |
'fluentform_dashboard_notices', |
| 49 |
[ |
| 50 |
[] |
| 51 |
], |
| 52 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 53 |
'fluentform/dashboard_notices', |
| 54 |
'Use fluentform/dashboard_notices instead of fluentform_dashboard_notices.' |
| 55 |
); |
| 56 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable |
| 57 |
$notices = apply_filters('fluentform/dashboard_notices', $dashboard_notices); |
| 58 |
|
| 59 |
if ($notices) { |
| 60 |
echo '<div class="ff_global_notices">'; |
| 61 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in foreach loop |
| 62 |
foreach ($notices as $noticeKey => $notice) : |
| 63 |
?> |
| 64 |
<div class="ff_global_notice ff_notice_<?php echo esc_attr($notice['type']); ?>"> |
| 65 |
<?php echo wp_kses_post( $notice['message']); ?> |
| 66 |
</div> |
| 67 |
<?php |
| 68 |
endforeach; |
| 69 |
echo '</div>'; |
| 70 |
} |