🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:enqueue.php
<?php /** * Enqueue scripts and styles * * @package Ophiro_Ventures */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Enqueue front-end styles */ function ophiro_enqueue_styles() { // Main stylesheet wp_enqueue_style( 'ophiro-style', get_stylesheet_uri(), array(), OPHIRO_VERSION ); // Components stylesheet wp_enqueue_style( 'ophiro-components', OPHIRO_URI . '/assets/css/components.css', array( 'ophiro-style' ), OPHIRO_VERSION ); // Responsive stylesheet wp_enqueue_style( 'ophiro-responsive', OPHIRO_URI . '/assets/css/responsive.css', array( 'ophiro-components' ), OPHIRO_VERSION ); // Presum layout design globally wp_enqueue_style( 'ophiro-presum-design', OPHIRO_URI . '/assets/css/presum-design.css', array(), OPHIRO_VERSION ); } add_action( 'wp_enqueue_scripts', 'ophiro_enqueue_styles' ); /** * Enqueue front-end scripts */ function ophiro_enqueue_scripts() { // Main theme script wp_enqueue_script( 'ophiro-navigation', OPHIRO_URI . '/assets/js/navigation.js', array(), OPHIRO_VERSION, true ); // Scroll reveal animations wp_enqueue_script( 'ophiro-reveal', OPHIRO_URI . '/assets/js/reveal.js', array(), OPHIRO_VERSION, true ); // Hero parallax wp_enqueue_script( 'ophiro-hero', OPHIRO_URI . '/assets/js/hero.js', array(), OPHIRO_VERSION, true ); // Localize script for AJAX wp_localize_script( 'ophiro-navigation', 'ophiroData', array( 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ophiro_nonce' ), ) ); } add_action( 'wp_enqueue_scripts', 'ophiro_enqueue_scripts' ); /** * Preload critical assets */ function ophiro_preload_assets() { ?> <link rel="preload" href="<?php echo esc_url( OPHIRO_URI . '/assets/css/components.css' ); ?>" as="style"> <link rel="preload" href="<?php echo esc_url( OPHIRO_URI . '/assets/js/navigation.js' ); ?>" as="script"> <?php } add_action( 'wp_head', 'ophiro_preload_assets', 1 );
Save Changes
Cancel
Create New File
Create New Folder