PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
yith-woocommerce-wishlist
/
plugin-fw
/
templates
/
fields
<?php /** * This file belongs to the YIT Plugin Framework. * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt * * @var array $field */ !defined( 'ABSPATH' ) && exit; // Exit if accessed directly extract( $field ); $class = isset( $class ) ? $class : 'yith-plugin-fw-select-images'; $wrapper_id = $id . '-wrapper'; ?> <div id="<?php echo $wrapper_id ?>" class="yith-plugin-fw-select-images__wrapper" data-type="select-images"> <select id="<?php echo $id ?>" name="<?php echo $name ?>" class="<?php echo $class ?>" style="display: none" <?php echo $custom_attributes ?> <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>> <?php foreach ( $options as $key => $item ) : $label = !empty( $item[ 'label' ] ) ? $item[ 'label' ] : $key; ?> <option value="<?php echo esc_attr( $key ) ?>" <?php selected( $key, $value ); ?> ><?php echo $label ?></option> <?php endforeach; ?> </select> <ul class="yith-plugin-fw-select-images__list"> <?php foreach ( $options as $key => $item ) : $label = ! empty( $item['label'] ) ? $item['label'] : $key; $image = ! empty( $item['image'] ) ? $item['image'] : ''; $img_data = ! empty( $item['data'] ) ? yith_plugin_fw_html_data_to_string( $item['data'] ): ''; if ( $image ) : $selected_class = 'yith-plugin-fw-select-images__item--selected'; $current_class = $key === $value ? $selected_class : ''; ?> <li class="yith-plugin-fw-select-images__item <?php echo $current_class ?>" data-type="select-images-item" data-key="<?php echo $key ?>" <?php echo $img_data; ?>> <?php if ( $label ) : ?> <div class="yith-plugin-fw-select-images__item__label"><?php echo $label ?></div> <?php endif; ?> <img class="yith-plugin-fw-select-images_src" src="<?php echo $image ?>" /> </li> <?php endif; ?> <?php endforeach; ?> </ul> </div>
[+]
..
[-] textarea-codemirror.php
[edit]
[-] onoff.php
[edit]
[-] checkbox-array.php
[edit]
[-] simple-text.php
[edit]
[-] password.php
[edit]
[-] html.php
[edit]
[-] custom.php
[edit]
[-] select-images.php
[edit]
[-] radio.php
[edit]
[-] text-button.php
[edit]
[-] colorpicker.php
[edit]
[-] text.php
[edit]
[-] toggle-element-fixed.php
[edit]
[-] checkbox.php
[edit]
[-] multi-colorpicker.php
[edit]
[-] toggle-element.php
[edit]
[-] hidden.php
[edit]
[-] ajax-products.php
[edit]
[-] text-array.php
[edit]
[-] title.php
[edit]
[-] ajax-posts.php
[edit]
[-] upload.php
[edit]
[-] country-select.php
[edit]
[-] .fields.php
[edit]
[-] sidebarlist.php
[edit]
[-] number.php
[edit]
[-] slider.php
[edit]
[-] datepicker.php
[edit]
[-] select-buttons.php
[edit]
[-] image-gallery.php
[edit]
[-] ajax-customers.php
[edit]
[-] dimensions.php
[edit]
[-] sidebars.php
[edit]
[-] sep.php
[edit]
[-] preview.php
[edit]
[-] date-format.php
[edit]
[+]
resources
[-] select-mailchimp.php
[edit]
[-] textarea.php
[edit]
[-] select.php
[edit]
[-] list-table.php
[edit]
[-] textarea-editor.php
[edit]
[-] multi-select.php
[edit]
[-] ajax-terms.php
[edit]
[-] icons.php
[edit]
[-] buttons.php
[edit]
[-] customtabs.php
[edit]