PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7
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 / shared / images-dropdown.php

images-dropdown.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.7, at classes/views/shared/images-dropdown.php

45 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Images dropdown option view
4 *
5 * @since 5.0.04
6 * @package Formidable
7 *
8 * @var array $args The arguments of images_dropdown() method.
9 * @var array $option The option data.
10 * @var string $image The image HTML.
11 * @var string $classes The HTML classes.
12 * @var string $custom_attrs The custom HTML attributes.
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 die( 'You are not allowed to call this page directly.' );
17 }
18 ?>
19 <div class="frm_images_dropdown frm_grid_container <?php echo esc_attr( $args['classes'] ); ?>">
20 <?php
21 foreach ( $args['options'] as $key => $option ) {
22 $option['key'] = $key;
23
24 $image = self::get_images_dropdown_option_image( $option, $args );
25 $classes = self::get_images_dropdown_option_classes( $option, $args );
26 $custom_attrs = self::get_images_dropdown_option_html_attrs( $option, $args );
27 ?>
28 <div class="frm_radio frm_image_option frm<?php echo esc_attr( $args['col_class'] ); ?>">
29 <label class="<?php echo esc_attr( $classes ); ?>" data-value="<?php echo esc_attr( $option['key'] ); ?>"<?php echo $custom_attrs; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
30 <input value="<?php echo esc_attr( $option['key'] ); ?>" <?php checked( $option['key'], $args['selected'] ); ?> <?php echo $input_attrs_str; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> />
31 <div class="frm_image_option_container frm_grid_container">
32 <span class="frm_images_dropdown__image frm4">
33 <?php echo FrmAppHelper::kses( $image, 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
34 </span>
35 <span class="frm_text_label_for_image frm8">
36 <?php echo esc_html( $option['text'] ); ?>
37 </span>
38 </div>
39 </label>
40 </div>
41 <?php
42 }
43 ?>
44 </div>
45