Server IP : 172.67.157.199 / Your IP : 18.191.239.146 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/ultimate-dashboard/modules/admin-page/templates/ |
Upload File : |
<?php /** * Icon selector. * * @package Ultimate_Dashboard */ defined( 'ABSPATH' ) || die( "Can't access directly" ); $dashicons = file_get_contents( ULTIMATE_DASHBOARD_PLUGIN_DIR . '/assets/json/dashicons.json' ); $dashicons = json_decode( $dashicons, true ); $dashicons = $dashicons ? $dashicons : array(); $fontawesome = file_get_contents( ULTIMATE_DASHBOARD_PLUGIN_DIR . '/assets/json/fontawesome5.json' ); $fontawesome = json_decode( $fontawesome, true ); $fontawesome = $fontawesome ? $fontawesome : array(); $udb_icons = array_merge( $dashicons, $fontawesome ); wp_localize_script( 'udb-edit-admin-page', 'iconPickerIcons', $udb_icons ); ?> <div class="udb-metabox-field" data-show-if-field="udb_menu_type" data-show-if-value="parent"> <label class="label" for="udb_menu_icon"><?php _e( 'Menu Icon', 'ultimate-dashboard' ); ?></label> <div class="icon-preview"></div> </div> <div class="udb-metabox-field" data-show-if-field="udb_menu_type" data-show-if-value="parent"> <label class="label" for="udb_menu_icon"><?php _e( 'Select Icon', 'ultimate-dashboard' ); ?></label> <input type="text" class="icon-picker is-full" name="udb_menu_icon" id="udb_menu_icon" value="<?php echo esc_attr( $menu_icon ? $menu_icon : 'dashicons dashicons-admin-post' ); ?>" placeholder="dashicons dashicons-admin-generic" /> </div>