HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/www/wp-content/themes/titan-branding-agency/functions.php
<?php
/**
 * Titan Branding Agency functions
 */

if ( ! function_exists( 'titan_branding_agency_setup' ) ) :
function titan_branding_agency_setup() {

    load_theme_textdomain( 'titan-branding-agency', get_template_directory() . '/languages' );	

	// Set up the WordPress core custom background feature.
    add_theme_support( 'custom-background', apply_filters( 'titan_branding_agency_custom_background_args', array(
	    'default-color' => 'ffffff',
	    'default-image' => '',
    ) ) );

	/**
	 * About Theme Function
	 */
	require get_theme_file_path( '/about-theme/about-theme.php' );
	/**
	 * Customizer
	 */
	require get_template_directory() . '/inc/customizer.php';
}
endif; 
add_action( 'after_setup_theme', 'titan_branding_agency_setup' );

if ( ! function_exists( 'titan_branding_agency_styles' ) ) :
	function titan_branding_agency_styles() {
		// Register theme stylesheet.
		wp_register_style('titan-branding-agency-style',
			get_template_directory_uri() . '/style.css',array(),
			wp_get_theme()->get( 'Version' )
		);

		// Enqueue theme stylesheet.
		wp_enqueue_style( 'titan-branding-agency-style' );

		wp_style_add_data( 'titan-branding-agency-style', 'rtl', 'replace' );

		// Enqueue dashicons
		wp_enqueue_style( 'dashicons' );

		// Enqueue scroll to top CSS
		wp_enqueue_style( 'scroll-to-top-style',
			get_template_directory_uri() . '/assets/css/scroll-to-top.css',
			array(),
			wp_get_theme()->get( 'Version' )
		);

		// Enqueue scroll to top JS
		wp_enqueue_script( 'scroll-to-top-js',
			get_template_directory_uri() . '/assets/js/scroll-to-top.js',
			array(),
			wp_get_theme()->get( 'Version' ),
			true
		);
	}
endif;
add_action( 'wp_enqueue_scripts', 'titan_branding_agency_styles' );