Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/fluentform/app/Views/admin/form/form_wrapper.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files
3
+
?>
4
+
<div class="ff_form_wrap ff_screen_<?php echo esc_attr($route); ?>">
5
+
<div class="global-overlay" id="form-setting-overlay"></div>
6
+
<?php
7
+
do_action_deprecated(
8
+
'fluentform_before_form_screen_wrapper',
9
+
[
10
+
$form_id,
11
+
$route
12
+
],
13
+
FLUENTFORM_FRAMEWORK_UPGRADE,
14
+
'fluentform/before_form_screen_wrapper',
15
+
'Use fluentform/before_form_screen_wrapper instead of fluentform_before_form_screen_wrapper.'
16
+
);
17
+
do_action('fluentform/before_form_screen_wrapper', $form_id, $route);
18
+
?>
19
+
20
+
<div class="form_internal_menu">
21
+
<?php
22
+
if ( is_array($menu_items) && count($menu_items) < 5){
23
+
if (isset($_SERVER['HTTP_REFERER'])): ?>
24
+
<div class="ff_menu_back">
25
+
<?php // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash -- sanitize_url() handles unslashing ?>
26
+
<a class="ff_menu_link" href="<?php echo esc_url(sanitize_url($_SERVER['HTTP_REFERER'])) ;?>">
27
+
<span class="el-icon-arrow-left"></span>
28
+
</a>
29
+
</div>
30
+
<?php endif;
31
+
}
32
+
?>
33
+
<div title="<?php echo esc_html($form->title); ?>" class="ff_form_name" id="js-ff-nav-title">
34
+
<div class="ff_form_name_inner">
35
+
<?php echo esc_html($form->title); ?>
36
+
</div>
37
+
</div>
38
+
<?php
39
+
$extra_menu_class = 'normal_form_editor';
40
+
if (\FluentForm\App\Helpers\Helper::hasPartialEntries($form->id)) $extra_menu_class = "partial_entries_form_editor";
41
+
?>
42
+
43
+
<div class="form_internal_menu_inner">
44
+
<ul class="ff_menu <?php echo esc_attr($extra_menu_class)?>">
45
+
<?php foreach ($menu_items as $menu_index => $menu_item): ?>
46
+
<li class="<?php if ($route == $menu_item['slug']) echo "active"; ?>">
47
+
<a class="ff_menu_link" href="<?php echo esc_url($menu_item['url']); ?><?php if (isset($menu_item['hash'])) echo "#". esc_attr($menu_item['hash']); ?>">
48
+
<?php echo esc_html($menu_item['title']); ?>
49
+
</a>
50
+
</li>
51
+
<?php endforeach; ?>
52
+
</ul>
53
+
54
+
<div class="ff-navigation-right">
55
+
<?php
56
+
do_action_deprecated(
57
+
'fluentform_after_form_navigation',
58
+
[
59
+
$form_id,
60
+
$route
61
+
],
62
+
FLUENTFORM_FRAMEWORK_UPGRADE,
63
+
'fluentform/after_form_navigation',
64
+
'Use fluentform/after_form_navigation instead of fluentform_after_form_navigation.'
65
+
);
66
+
do_action('fluentform/after_form_navigation', $form_id, $route);
67
+
?>
68
+
<?php
69
+
do_action_deprecated(
70
+
'fluentform_after_form_navigation_' . $route,
71
+
[
72
+
$form_id
73
+
],
74
+
FLUENTFORM_FRAMEWORK_UPGRADE,
75
+
'fluentform/after_form_navigation_' . $route,
76
+
'Use fluentform/after_form_navigation_' . $route . ' instead of fluentform_after_form_navigation_' . $route
77
+
);
78
+
do_action('fluentform/after_form_navigation_' . $route, $form_id);
79
+
?>
80
+
81
+
<div id="more-menu">
82
+
<more-menu />
83
+
</div>
84
+
</div>
85
+
</div>
86
+
<span class="ff_menu_toggle">
87
+
<i class="ff-icon ff-icon-menu"></i>
88
+
</span>
89
+
</div>
90
+
91
+
<?php
92
+
do_action('fluentform/after_form_menu');
93
+
94
+
wp_add_inline_script('fluent_forms_global', "
95
+
//for mobile nav
96
+
let formHeaderMenuElem = jQuery('.form_internal_menu_inner');
97
+
jQuery('.ff_menu_toggle').on('click', function() {
98
+
formHeaderMenuElem.toggleClass('active');
99
+
});
100
+
101
+
// for setting sidebar
102
+
let formSettingSidebarElem = jQuery('.ff_settings_sidebar_wrap');
103
+
let formSettingOverlayElem = jQuery('#form-setting-overlay');
104
+
105
+
jQuery('.ff_sidebar_toggle').on('click', function() {
106
+
jQuery(formSettingSidebarElem).add(formSettingOverlayElem).toggleClass('active');
107
+
});
108
+
109
+
jQuery(formSettingOverlayElem).on('click', function() {
110
+
jQuery(formSettingOverlayElem).add(formSettingSidebarElem).removeClass('active');
111
+
});
112
+
113
+
114
+
");
115
+
?>
116
+
117
+
<div class="ff_form_application_container">
118
+
<?php
119
+
do_action_deprecated(
120
+
'ff_fluentform_form_application_view_' . $route,
121
+
[
122
+
$form_id
123
+
],
124
+
FLUENTFORM_FRAMEWORK_UPGRADE,
125
+
'fluentform/form_application_view_' . $route,
126
+
'Use fluentform/form_application_view_' . $route . ' instead of ff_fluentform_form_application_view_' . $route
127
+
);
128
+
do_action('fluentform/form_application_view_' . $route, $form_id);
129
+
?>
130
+
</div>
131
+
132
+
<?php
133
+
do_action_deprecated(
134
+
'fluentform_after_form_screen_wrapper',
135
+
[
136
+
$form_id,
137
+
$route
138
+
],
139
+
FLUENTFORM_FRAMEWORK_UPGRADE,
140
+
'fluentform/after_form_screen_wrapper',
141
+
'Use fluentform/after_form_screen_wrapper instead of fluentform_after_form_screen_wrapper.'
142
+
);
143
+
do_action('fluentform/after_form_screen_wrapper', $form_id, $route);
144
+
?>
145
+
</div>
146
+