| Server IP : 199.250.200.62 / Your IP : 216.73.217.89 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/jasonp18/www/wp-content/plugins/formidable/classes/views/styles/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( 'You are not allowed to call this page directly.' );
}
?>
<div>
<p class="howto">
<?php esc_html_e( 'Easily change which style your forms are using by making changes below.', 'formidable' ); ?>
</p>
<?php include FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; ?>
<table class="widefat fixed striped">
<thead>
<tr>
<th scope="col" class="column-locations">
<?php esc_html_e( 'Form Title', 'formidable' ); ?>
</th>
<th scope="col">
<?php esc_html_e( 'Assigned Style Templates', 'formidable' ); ?>
</th>
</tr>
</thead>
<tbody>
<?php
if ( $forms ) {
$row_view_file_path = FrmAppHelper::plugin_path() . '/classes/views/styles/_manage-styles-row.php';
array_walk(
$forms,
/**
* @param stdClass $form
* @param array<WP_Post> $styles
* @param WP_Post $default_style
* @param string $row_view_file_path
* @return void
*/
function( $form ) use ( $styles, $default_style, $row_view_file_path ) {
$active_style_id = isset( $form->options['custom_style'] ) ? (int) $form->options['custom_style'] : 1;
if ( 1 === $active_style_id ) {
// use the default style
$active_style_id = $default_style->ID;
}
include $row_view_file_path;
}
);
} else {
?>
<tr>
<td><?php esc_html_e( 'No Forms Found', 'formidable' ); ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>