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

39 lines 847 B
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 *
7 * @package Formidable
8 *
9 * @var array $args The arguments of images_dropdown() method.
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 die( 'You are not allowed to call this page directly.' );
14 }
15
16 $component_options = array();
17
18 foreach ( $args['options'] as $key => $option ) {
19 $option['key'] = $key;
20 $image_details = FrmAppHelper::get_images_dropdown_atts( $option, $args );
21
22 $component_options[] = array(
23 'label' => $option['text'],
24 'value' => $key,
25 'classes' => $image_details['classes'],
26 'custom_attrs' => $image_details['custom_attrs'],
27 );
28 }
29
30 new FrmTextToggleStyleComponent(
31 $args['name'],
32 $args['selected'] ?? 0,
33 array(
34 'classname' => $args['classes'],
35 'options' => $component_options,
36 'input_attrs_str' => $input_attrs_str,
37 )
38 );
39