assets
data
dependencies
inc
lang
views
admin-pages
base
broadcast
checkout
customers
dashboard-statistics
dashboard-widgets
domain
dynamic-styles
email
emails
events
invoice
legacy
limitations
memberships
payments
settings
fields
field-ajax_button.php
field-checkbox.php
field-color.php
field-heading.php
field-heading_collapsible.php
field-image.php
field-multi_checkbox.php
field-note.php
field-select.php
field-select2.php
field-text.php
field-textarea.php
field-wp_editor.php
widget-settings-body.php
shortcodes
sites
system-info
taxes
ui
wizards
about.php
admin-notices.php
classes.php
phpcs.xml
.gitignore
LICENSE
autoload.php
composer.json
constants.php
loco.xml
readme.txt
sunrise.php
uninstall.php
wp-multisite-waas.php
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Color field view.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
?>
|
|
<div class="wu-my-6">
|
|
|
|
<div class="wu-flex">
|
|
|
|
<div class="wu-w-1/3">
|
|
|
|
<label for="<?php echo esc_attr($field->id); ?>">
|
|
|
|
<?php echo $field->title; ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="wu-w-2/3">
|
|
|
|
<input class="field-<?php echo esc_attr($field->id); ?>" name="<?php echo esc_attr($field->id); ?>" type="text" id="<?php echo esc_attr($field->id); ?>" class="regular-text" value="<?php echo wu_get_setting($field->id); ?>" placeholder="<?php echo $field->placeholder ? $field->placeholder : ''; ?>">
|
|
|
|
<?php if ($field->desc) : ?>
|
|
|
|
<p class="description" id="<?php echo $field->id; ?>-desc">
|
|
|
|
<?php echo $field->desc; ?>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php // if (isset($field['tooltip'])) {echo WU_Util::tooltip($field['tooltip']);} ?>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
(function($) {
|
|
$(function() {
|
|
// Add Color Picker to all inputs that have 'color-field' class
|
|
$('.field-<?php echo esc_attr($field->id); ?>').wpColorPicker();
|
|
});
|
|
})(jQuery);
|
|
</script>
|