PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.10
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.10
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 / styles / show.php

show.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.10, at classes/views/styles/show.php

49 lines 1.4 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 // This is the main view file used in the visual styler. It is used for both the "list" and "edit" view types.
6 // It is accessed from /wp-admin/admin.php?page=formidable-styles&frm_action=edit&form=782
7
8 ?>
9 <div class="frm_page_container">
10 <?php
11 // The embed button expects that the form ID is available as a #form_id field.
12 ?>
13 <input type="hidden" id="form_id" value="<?php echo absint( $form->id ); ?>" />
14
15 <?php
16 // Wrap the header in a .frm_wrap element so the h1 tag gets styled properly.
17 // We want to avoid putting .frm_wrap on the whole page container to avoid back end styling in the visual styler preview.
18 ?>
19 <div class="frm_wrap">
20 <?php
21 FrmAppHelper::get_admin_header(
22 array(
23 'form' => $form,
24 'hide_title' => true,
25 'publish' => array(
26 'FrmFormsController::form_publish_button',
27 array(
28 'values' => array(
29 // Pass this so that the Preview dropdown works.
30 'form_key' => $form->form_key,
31 ),
32 ),
33 ),
34 )
35 );
36 ?>
37 </div>
38 <div id="frm_styler_wrapper" class="columns-2">
39 <?php
40 $view_file = 'list' === $view ? 'list' : 'edit';
41 // Render view based on type (either _styles-list.php or _styles-edit.php).
42 require $style_views_path . '_styles-' . $view_file . '.php';
43
44 // Render preview container.
45 require $style_views_path . '_style-preview-container.php';
46 ?>
47 </div>
48 </div>
49