# formidable/trunk/classes/views/frm-forms/landing-page-preview-option.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 19 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/frm-forms/landing-page-preview-option.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/classes/views/frm-forms/landing-page-preview-option.php
- Modified: 2025-12-09T17:47:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/trunk/code/classes/views/frm-forms/landing-page-preview-option.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}

$data      = FrmAppHelper::get_landing_page_upgrade_data_params( 'landing-preview' );
$data_keys = array_keys( $data );
$params    = array();

foreach ( $data_keys as $key ) {
	$params[ 'data-' . $key ] = $data[ $key ];
}
$params['class'] = 'frm_show_upgrade frm_noallow';
$params['href']  = '#';
?>
<a <?php FrmAppHelper::array_to_html_params( $params, true ); ?>>
	<?php esc_html_e( 'Generate Form Page', 'formidable' ); ?>
</a>

```
