PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.11.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.11.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | app/Views/auth/login_form.php +14 -7 2.4.012.11.0 View file →
@@ -1,14 +1,21 @@
1 -<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?>
1 +<?php if (!defined('ABSPATH')) { exit;} // Exit if accessed directly ?>
2 +<?php
3 +/** @var array $settings @var array $defaults @var array $hiddenFields @var string $redirect */
4 +$fluentCommunitySettings = $settings ?? [];
5 +$fluentCommunityDefaults = $defaults ?? [];
6 +$fluentCommunityHiddenFields = $hiddenFields ?? [];
7 +$fluentCommunityRedirect = $redirect ?? '';
8 +?>
2 9 <div id="fcom_user_onboard_wrap" class="fcom_user_onboard">
3 10 <?php do_action('fluent_community/before_auth_form_header', 'login'); ?>
4 11 <div class="fcom_onboard_header">
5 12 <div class="fcom_onboard_header_title">
6 13 <h2>
7 - <?php echo esc_html($settings['title']); ?>
14 + <?php echo esc_html($fluentCommunitySettings['title']); ?>
8 15 </h2>
9 16 <p>
10 - <?php echo wp_kses_post($settings['description']); ?>
17 + <?php echo wp_kses_post($fluentCommunitySettings['description']); ?>
11 18 </p>
12 19 </div>
13 20 </div>
14 21 <div class="fcom_onboard_body">
@@ -19,11 +26,11 @@
19 26 'echo' => true,
20 27 'form_id' => 'fcom_user_login_form',
21 28 'value_remember' => true,
22 29 'redirect' => !empty($redirect_to) ? $redirect_to : '',
23 - 'value_username' => $defaults ? \FluentCommunity\Framework\Support\Arr::get($defaults, 'email') : '',
24 - 'label_log_in' => $settings['button_label'],
25 - ], $hiddenFields);
30 + 'value_username' => $fluentCommunityDefaults ? \FluentCommunity\Framework\Support\Arr::get($fluentCommunityDefaults, 'email') : '',
31 + 'label_log_in' => $fluentCommunitySettings['button_label'],
32 + ], $fluentCommunityHiddenFields);
26 33 ?>
27 34
28 35 <div class="fcom_spaced_divider">
29 36 <?php if (!empty($signupUrl)): ?>
@@ -34,9 +41,9 @@
34 41 </a>
35 42 </div>
36 43 <?php endif; ?>
37 44 <p class="fcom_reset_pass_text">
38 - <a href="<?php echo esc_url(wp_lostpassword_url($redirect)); ?>">
45 + <a href="<?php echo esc_url(wp_lostpassword_url($fluentCommunityRedirect)); ?>">
39 46 <?php esc_html_e('Lost your password?', 'fluent-community'); ?>
40 47 </a>
41 48 </p>
42 49 </div>