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 ); $multiple = isset( $multiple ) && $multiple; $multiple_html = ( $multiple ) ? ' multiple' : ''; $placeholder = isset( $placeholder ) ? ' data-placeholder = "' . $placeholder .'" ': ''; if ( $multiple && !is_array( $value ) ) $value = array(); $class = isset( $class ) ? $class : 'yith-plugin-fw-select'; ?> <select<?php echo $multiple_html ?> id="<?php echo $id ?>" name="<?php echo $name ?><?php if ( $multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?> data-std="<?php echo ( $multiple ) ? implode( ' ,', $std ) : $std ?>"<?php endif ?> class="<?php echo $class ?>" <?php echo $placeholder ?> <?php echo $custom_attributes ?> <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>> <?php foreach ( $options as $key => $item ) : if( is_array( $item ) ): ?> <optgroup label="<?php esc_attr_e( $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 $option ?></option> <?php endforeach; ?> </optgroup> <?php else: ?> <option value="<?php echo esc_attr( $key ) ?>" <?php if ( $multiple ): selected( true, in_array( $key, $value ) ); else: selected( $key, $value ); endif; ?> ><?php echo $item ?></option> <?php endif; ?> <?php endforeach; ?> </select> <?php /* --------- BUTTONS ----------- */ if ( isset( $buttons ) ) { $button_field = array( 'type' => 'buttons', 'buttons' => $buttons ); yith_plugin_fw_get_field( $button_field, true ); } ?>
[+]
..
[-] 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]