403Webshell
Server IP : 178.63.100.251  /  Your IP : 216.73.216.228
Web Server : LiteSpeed
System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64
User : truewayi ( 1855)
PHP Version : 7.4.33
Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/truewayi/public_html/wp-content/themes/omexo/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/truewayi/public_html/wp-content/themes/omexo/inc/theme-css-js.php
<?php
/*
Register Google Fonts
*/
function omexo_fonts_url() {
    $fonts_url = '';
     
    /* Translators: If there are characters in your language that are not
    * supported by Rajdhani, translate this to 'off'. Do not translate
    * into your own language.
    */
    $rajdhani = _x( 'on', 'Rajdhani font: on or off', 'omexo' );

    /* Translators: If there are characters in your language that are not
    * supported by Urbanist, translate this to 'off'. Do not translate
    * into your own language.
    */
    $urbanist = _x( 'on', 'Urbanist font: on or off', 'omexo' );
     
    /* Translators: If there are characters in your language that are not
    * supported by Rubik, translate this to 'off'. Do not translate
    * into your own language.
    */
    $rubik = _x( 'on', 'Rubik font: on or off', 'omexo' );
     
    if ( 'off' !== $rajdhani || 'off' !== $rubik || 'off' !== $urbanist ) {
        $font_families = array();
        
        if ( 'off' !== $rajdhani ) {
            $font_families[] = 'Rajdhani:400,500,600,700' ;
        }

        if ( 'off' !== $urbanist ) {
            $font_families[] = 'Urbanist:400,500,600,700,800,900' ;
        }
        
        if ( 'off' !== $rubik ) {
            $font_families[] = 'Rubik:400,500,600,700';
        }
        
        $query_args = array(
            'family' => rawurlencode( implode( '|', $font_families ) ),
            'subset' => rawurlencode( 'latin,latin-ext' ),
        );
        
        $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
    }
     
    return esc_url_raw( $fonts_url );
}

/**
 * Enqueue scripts and styles.
 */
function omexo_scripts() {
    // Theme styles
    // Deregister style so that the Font Awesome 4.7 can't load from Elementor
    if (class_exists('Elementor\\Plugin')) {
        wp_deregister_style('font-awesome');
    }
    wp_enqueue_style( 'omexo-google-fonts', omexo_fonts_url(), array(), null );
    wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.min.css', array(), '4.0.0', 'all' );
    wp_enqueue_style( 'font-awesome-6', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), '6.6.0', 'all' );
    wp_enqueue_style( 'omexo-main-style', get_template_directory_uri() . '/assets/css/main.css', array(), OMEXO_VERSION, 'all' );
    wp_enqueue_style( 'omexo-dynamic-style', get_template_directory_uri() . '/assets/css/dynamic-style.css', array(), OMEXO_VERSION, 'all' );
    wp_enqueue_style( 'omexo-style', get_stylesheet_uri(), array(), OMEXO_VERSION );

    // Theme scripts
    wp_enqueue_script( 'omexo-custom', get_template_directory_uri() . '/assets/js/custom.js', array('jquery'), OMEXO_VERSION, true );

    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
        wp_enqueue_script( 'comment-reply' );
    }
}
add_action( 'wp_enqueue_scripts', 'omexo_scripts' );

/**
 * Enqueue Backend scripts and styles.
 **/

function omexo_backend_scripts(){
    wp_enqueue_style('omexo-admin-style', get_template_directory_uri() . '/assets/css/admin.css', array(), '1.0.0', 'all');
}

add_action( 'admin_enqueue_scripts', 'omexo_backend_scripts' );

Youez - 2016 - github.com/yon3zu
LinuXploit