golden hour
/var/www/html/wp-content/plugins/yith-woocommerce-zoom-magnifier/plugin-fw/templates/fields
⬆️ Go Up
Upload
File/Folder
Size
Actions
ajax-customers.php
3.36 KB
Del
OK
ajax-posts.php
3.42 KB
Del
OK
ajax-products.php
609 B
Del
OK
ajax-terms.php
3.94 KB
Del
OK
buttons.php
958 B
Del
OK
checkbox-array.php
1.36 KB
Del
OK
checkbox.php
1.08 KB
Del
OK
colorpicker.php
1.23 KB
Del
OK
copy-to-clipboard.php
1.93 KB
Del
OK
country-select.php
2.38 KB
Del
OK
custom.php
295 B
Del
OK
customtabs.php
5.41 KB
Del
OK
date-format.php
3 KB
Del
OK
datepicker.php
868 B
Del
OK
dimensions.php
5.01 KB
Del
OK
hidden.php
1.04 KB
Del
OK
html.php
388 B
Del
OK
icons.php
2.5 KB
Del
OK
image-dimensions.php
1.3 KB
Del
OK
image-gallery.php
1.75 KB
Del
OK
inline-fields.php
2.41 KB
Del
OK
list-table.php
2.21 KB
Del
OK
multi-colorpicker.php
2.26 KB
Del
OK
multi-select.php
1.4 KB
Del
OK
number.php
1.2 KB
Del
OK
onoff.php
1.45 KB
Del
OK
password.php
1.06 KB
Del
OK
preview.php
769 B
Del
OK
radio.php
1.43 KB
Del
OK
resources
-
Del
OK
select-buttons.php
1.01 KB
Del
OK
select-images.php
2.26 KB
Del
OK
select-mailchimp.php
1.43 KB
Del
OK
select.php
2.49 KB
Del
OK
sep.php
347 B
Del
OK
sidebarlist.php
1.01 KB
Del
OK
sidebars.php
4.41 KB
Del
OK
simple-text.php
799 B
Del
OK
slider.php
1.9 KB
Del
OK
text-array.php
2.07 KB
Del
OK
text-button.php
1.6 KB
Del
OK
text.php
957 B
Del
OK
textarea-codemirror.php
1.17 KB
Del
OK
textarea-editor.php
2.03 KB
Del
OK
textarea.php
1.11 KB
Del
OK
title.php
771 B
Del
OK
toggle-element-fixed.php
3.31 KB
Del
OK
toggle-element.php
14.05 KB
Del
OK
upload.php
1.71 KB
Del
OK
Edit: select.php
<?php /** * Template for displaying the select field * * @var array $field The field. * @package YITH\PluginFramework\Templates\Fields */ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. list ( $field_id, $class, $name, $value, $options, $multiple, $placeholder, $buttons, $custom_attributes, $data ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'value', 'options', 'multiple', 'placeholder', 'buttons', 'custom_attributes', 'data' ); $multiple = ! empty( $multiple ); $class = isset( $class ) ? $class : 'yith-plugin-fw-select'; $name = isset( $name ) ? $name : ''; $name = ! ! $name && $multiple ? $name . '[]' : $name; if ( $multiple && ! is_array( $value ) ) { $value = array(); } ?> <select id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $name ); ?>" class="<?php echo esc_attr( $class ); ?>" data-value="<?php echo $multiple ? esc_attr( implode( ',', $value ) ) : esc_attr( $value ); ?>" <?php if ( $multiple ) : ?> multiple <?php endif; ?> <?php if ( isset( $std ) ) : ?> data-std="<?php echo $multiple && is_array( $std ) ? esc_attr( implode( ',', $std ) ) : esc_attr( $std ); ?>" <?php endif; ?> <?php if ( isset( $placeholder ) ) : ?> data-placeholder="<?php echo esc_attr( $placeholder ); ?>" <?php endif; ?> <?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> <?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?> > <?php foreach ( $options as $key => $item ) : ?> <?php if ( is_array( $item ) ) : ?> <optgroup label="<?php echo esc_attr( $item['label'] ); ?>"> <?php foreach ( $item['options'] as $option_key => $option ) : ?> <option value="<?php echo esc_attr( $option_key ); ?>" <?php selected( $option_key, $value ); ?>><?php echo esc_html( $option ); ?></option> <?php endforeach; ?> </optgroup> <?php else : ?> <option value="<?php echo esc_attr( $key ); ?>" <?php if ( $multiple ) { selected( true, in_array( $key, $value ) ); // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict } else { selected( $key, $value ); } ?> ><?php echo esc_html( $item ); ?></option> <?php endif; ?> <?php endforeach; ?> </select> <?php // Let's add buttons if they are set. if ( isset( $buttons ) ) { $button_field = array( 'type' => 'buttons', 'buttons' => $buttons, ); yith_plugin_fw_get_field( $button_field, true ); } ?>
Save