Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
firepot
/
themes
/
momota
/
lib
/
colibriwp
/
src
/
Customizer
/
Controls
:
IconControl.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace ColibriWP\Theme\Customizer\Controls; class IconControl extends VueControl { public $type = 'colibri-icon'; public static function sanitize( $value, $control_data, $default = '' ) { $keys = array( 'name', 'content' ); $diff = array_diff( array_keys( $value ), $keys ); if ( is_array( $value ) && count( $diff ) === 0 ) { } return array( 'content' => '', 'name' => '', ); } protected function printVueContent() { ?> <icon-picker :value="value" :icons="icons"></icon-picker> <?php } }