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

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