403Webshell
Server IP : 103.191.208.88  /  Your IP : 216.73.216.44
Web Server : Microsoft-IIS/10.0
System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64
User : IWPD_1831(willswel_) ( 0)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/themes/villapress/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/themes/villapress//functions.php
<?php
/**
	* Define Theme Version
 */
define( 'VILLAPRESS_THEME_VERSION', '10.1' );	
	
function villapress_css() {
	$parent_style = 'aravalli-parent-style';
	wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
	wp_enqueue_style( 'villapress-style', get_stylesheet_uri(), array( $parent_style ));
	
	wp_enqueue_style('villapress-color-default',get_stylesheet_directory_uri() .'/assets/css/color/default.css');
	wp_dequeue_style('aravalli-color-default');
	
	wp_enqueue_style('villapress-media-query',get_stylesheet_directory_uri().'/assets/css/responsive.css');
	wp_dequeue_style('aravalli-media-query');

	wp_enqueue_style('villapress-editor-style',get_stylesheet_directory_uri().'/assets/css/editor-style.css');
	wp_dequeue_style('aravalli-editor-style');

	wp_dequeue_script('aravalli-custom-js');
	wp_enqueue_script('villapress-custom', get_stylesheet_directory_uri() .'/assets/js/custom.js', array('jquery'), false, true);
}
add_action( 'wp_enqueue_scripts', 'villapress_css',999);
   	

function villapress_setup()	{	
	add_theme_support( 'custom-header', apply_filters( 'villapress_custom_header_args', array(
		'default-image'          => '',
		'default-text-color'     => 'ffffff',
		'width'                  => 2000,
		'height'                 => 200,
		'flex-height'            => true,
		'wp-head-callback'       => 'aravalli_header_style',
	) ) );
}
add_action( 'after_setup_theme', 'villapress_setup' );

/**
 * Called all the Customize file.
 */
require( get_stylesheet_directory() . '/inc/customize/villapress-premium.php');

/**
 * Import Options From Parent Theme
 *
 */
function villapress_parent_theme_options() {
	$aravalli_mods = get_option( 'theme_mods_aravalli' );
	if ( ! empty( $aravalli_mods ) ) {
		foreach ( $aravalli_mods as $aravalli_mod_k => $aravalli_mod_v ) {
			set_theme_mod( $aravalli_mod_k, $aravalli_mod_v );
		}
	}
}
add_action( 'after_switch_theme', 'villapress_parent_theme_options' );

Youez - 2016 - github.com/yon3zu
LinuXploit