PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.26
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.26
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-entries / direct.php

direct.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.26, at classes/views/frm-entries/direct.php

42 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 add_filter(
7 'document_title',
8 function ( $title ) use ( $form ) {
9 $form_name = '' === $form->name ? FrmFormsHelper::get_no_title_text() : $form->name;
10 return get_bloginfo( 'name', 'display' ) . ' | ' . wp_strip_all_tags( $form_name );
11 }
12 );
13 ?>
14 <!DOCTYPE html>
15 <html <?php language_attributes(); ?>>
16 <head>
17 <meta charset="<?php bloginfo( 'charset' ); ?>" />
18 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
19 <?php
20 if ( ! current_theme_supports( 'title-tag' ) ) {
21 ?>
22 <title><?php bloginfo( 'name' ); ?> | <?php echo esc_html( $form->name ); ?></title>
23 <?php
24 }
25
26 wp_head();
27 FrmFormsController::maybe_load_css( $form, 1, false );
28 ?>
29 </head>
30 <body class="frm_preview_page">
31 <?php
32 if ( is_callable( 'twentynineteen_setup' ) ) {
33 ?>
34 <div class="site-branding frm_hidden"></div>
35 <?php
36 }
37 echo FrmFormsController::show_form( $form->id, '', 'auto', 'auto' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
38 ?>
39 <?php wp_footer(); ?>
40 </body>
41 </html>
42