PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | templates/single-form.php +5 -2 2.8.2 → 2.12.8 View file →
@@ -4,8 +4,9 @@
4 4 *
5 5 * @package SureForms
6 6 */
7 7
8 +use SRFM\Inc\Compatibility\Multilingual\String_Translator;
8 9 use SRFM\Inc\Generate_Form_Markup;
9 10 use SRFM\Inc\Helper;
10 11
11 12 if ( ! defined( 'ABSPATH' ) ) {
@@ -11,8 +12,10 @@
11 12 if ( ! defined( 'ABSPATH' ) ) {
12 13 exit; // Exit if accessed directly.
13 14 }
14 15
16 +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-scoped variables consumed only within this template, not true plugin globals.
17 +
15 18 $srfm_custom_post_id = absint( get_the_ID() );
16 19 $srfm_form_preview = isset( $_GET['form_preview'] ) ? boolval( wp_unslash( $_GET['form_preview'] ) ) : false; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce verification is not required here.
17 20 $srfm_live_mode_data = Helper::get_instant_form_live_data();
18 21
@@ -153,13 +156,13 @@
153 156 <?php
154 157 }
155 158
156 159 if ( ! empty( $single_page_form_title ) ) {
160 + $srfm_banner_title = String_Translator::get_instance()->translate_form_title( (int) get_the_ID(), Helper::get_string_value( get_the_title() ) );
157 161 ?>
158 - <h1 class="srfm-single-banner-title"><?php echo esc_html( get_the_title() ); ?></h1>
162 + <h1 class="srfm-single-banner-title"><?php echo esc_html( $srfm_banner_title ); ?></h1>
159 163 <?php
160 164 }
161 -
162 165 ?>
163 166 </div>
164 167 <div class="srfm-form-wrapper">
165 168 <?php