PluginProbe
Elementor Website Builder – more than just a page builder / 3.13.2
Elementor Website Builder – more than just a page builder v3.13.2
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/template-library/forms/new-template-form.php +4 -4 4.1.0-dev23.13.2 View file →
@@ -4,9 +4,9 @@
4 4 use Elementor\Controls_Manager;
5 5 use Elementor\Controls_Stack;
6 6
7 7 if ( ! defined( 'ABSPATH' ) ) {
8 - exit; // Exit if accessed directly.
8 + exit; // Exit if accessed directly
9 9 }
10 10
11 11 class New_Template_Form extends Controls_Stack {
12 12
@@ -14,9 +14,9 @@
14 14 return 'add-template-form';
15 15 }
16 16
17 17 /**
18 - * @throws \Exception If control type is not supported.
18 + * @throws \Exception
19 19 */
20 20 public function render() {
21 21 foreach ( $this->get_controls() as $control ) {
22 22 switch ( $control['type'] ) {
@@ -23,9 +23,9 @@
23 23 case Controls_Manager::SELECT:
24 24 $this->render_select( $control );
25 25 break;
26 26 default:
27 - throw new \Exception( sprintf( "'%s' control type is not supported.", esc_html( $control['type'] ) ) );
27 + throw new \Exception( "'{$control['type']}' control type is not supported." );
28 28 }
29 29 }
30 30 }
31 31
@@ -40,9 +40,9 @@
40 40 <div class="elementor-form-field__select__wrapper">
41 41 <select id="<?php echo esc_attr( $control_id ); ?>" class="elementor-form-field__select" name="meta[<?php echo esc_html( $control_settings['name'] ); ?>]">
42 42 <?php
43 43 foreach ( $control_settings['options'] as $key => $value ) {
44 - printf( '<option value="%1$s">%2$s</option>', esc_html( $key ), esc_html( $value ) );
44 + echo sprintf( '<option value="%1$s">%2$s</option>', esc_html( $key ), esc_html( $value ) );
45 45 }
46 46 ?>
47 47 </select>
48 48 </div>