Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.96.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : hooks.php
<?php
/**
 * Admin Hooks
 *
 * Hooks used on admin screens only.
 *
 * @package  Zoo_Theme\Core\Admin
 * @author   Zootemplate
 * @link     http://www.zootemplate.com
 *
 */

/**
 * @see  https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/
 */
add_action('admin_enqueue_scripts', function($hook_suffix)
{
    if (isset($_GET['page']) && 'zoo-theme-settings' === $_GET['page']) {
        wp_add_inline_style('dashicons', '#wpcontent{padding-left:0 !important}');
    }

    if (isset($_GET['page']) && 'zoo-theme-setup-demo' === $_GET['page']) {
        wp_add_inline_style('dashicons', '#wpcontent #wpbody #wpbody-content .notice{display:none !important}');
    }

    wp_enqueue_media();

    wp_enqueue_style('zoo-theme-admin', ZOO_THEME_URI.'core/assets/css/admin.min.css', array('dashicons'), ZOO_THEME_VERSION);
//
    wp_enqueue_script('zoo-theme-admin', ZOO_THEME_URI.'core/assets/js/admin.min.js', array('jquery'), ZOO_THEME_VERSION, true);
    wp_localize_script('zoo-theme-admin', 'zooAdminL10n', [
        'install' => esc_html__('Install', 'doma'),
        'installing' => esc_html__('Installing...', 'doma'),
        'installed' => esc_html__('Installed', 'doma'),
        'uninstall' => esc_html__('Uninstall', 'doma'),
        'uninstalling' => esc_html__('Uninstalling...', 'doma')
    ]);
});
© 2025 XylotrechusZ