HEX
Server: LiteSpeed
System:
User: ()
PHP: 7.3.33
Disabled: ln,cat,popen,pclose,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,system,dl,passthru,exec,shell_exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,mysql_list_dbs,get_current_user,getmyuid,pconnect,link,symlink,pcntl_exec,ini_alter,pfsockopen,leak,apache_child_terminate,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,stream_select,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual,ini_get_all,php_passthru,posix_uname,php_uname,highlight_file,define_syslog_variables,ftp_exec,inject_code,eval
Upload Files
File: /var/www/vhosts/miroglu.net/httpdocs/wp-content/themes/the-landscaper/assets/js/main.js
// Require JS Configurations
require.config({

	paths: {
		jquery: 'assets/js/return.jquery',
		underscore: 'assets/js/return.underscore'
	}
});

// Get the base url of the teme
require.config( {
	baseUrl: TheLandscaper.themePath
});

require([
	'jquery',
	'underscore',
	'assets/js/maps',
	'assets/js/stickynav',
	'assets/js/scrollToTop',
	'assets/js/doubletaptogo',
	'assets/js/jquery-mobile-touch-support.min'
], function ( $, _ ) {

	// Properly update the ARIA states on blur (keyboard) and mouse out events
	$( '.main-navigation' ).on( 'focus.aria  mouseenter.aria', '[aria-haspopup="true"]', function(ev) {
		$( ev.currentTarget ).attr( 'aria-expanded', true );
	});

	$( '.main-navigation' ).on( 'blur.aria  mouseleave.aria', '[aria-haspopup="true"]', function(ev) {
		$( ev.currentTarget ).attr( 'aria-expanded', false );
	});

	// Check if setting is enabled for touch device fix for submenus
	if ( $( 'body' ).hasClass( 'doubletap' ) && ( 'ontouchstart' in window ) && window.matchMedia( "(min-width: 992px)" ).matches || window.DocumentTouch && document instanceof DocumentTouch ) {
		$( '.menu-item-has-children' ).doubleTapToGo();
	}

	// Add toggle button for sub menu's on mobile view
	$( '.main-navigation li.menu-item-has-children' ).each( function() {
		$( this ).prepend( '<div class="nav-toggle-mobile-submenu"><i class="fas fa-caret-down"></i></div>' );
	});

	$( '.nav-toggle-mobile-submenu' ).on( 'click', function() {
		$( this ).parent().toggleClass( 'nav-toggle-dropdown' );
	});

	// Bootstrap Tooltip used for awards hover
	$( '[data-toggle="tooltip"]' ).tooltip();

	// Add child page arrow to max mega menu parent links
	$( '#mega-menu-wrap-primary li.mega-menu-item-has-children > a' ).prepend( $( '<i class="fas fa-caret-down"></i>' ) );

	// Wrap mega menu around default header div
	$( '#mega-menu-wrap-primary' ).wrap( $( '<div class="main-navigation"></div>' ) );

	// Scroll to #href link (one-page option)
	$( '.main-navigation a[href^="#"]' ).on( 'click', function( event ) {
	    var target = $( this.getAttribute( 'href' ) );
	    if( target.length ) {
	        event.preventDefault();
	        $( 'html, body' ).stop().animate({
	            scrollTop: target.offset().top
	        }, 1000);
	    }
	});

	// Bootstrap accordion - active panel
	$( '.panel-title a' ).on( 'click', function(e) {
        e.preventDefault();
        if(!$(this).parents( '.panel-title' ).hasClass( 'active' ) ) {
            $( '.panel-title' ).removeClass( 'active' );
            $(this).parent().addClass( 'active' ).next().addClass( 'active' );
        } else {
            $( '.panel-title' ).removeClass( 'active' );
        }
    });

    // Bootstrap accordion - open by url hash
	$( document ).ready( function() {

		var hash = window.location.hash;
		var sticky = $( 'body' ).hasClass( 'fixed-navigation' ) ? $( '.navigation' ).outerHeight() + 110 : 110;

	    if( hash.length ) {

	        var accordion = $( '.accordion-toggle[href="' + hash + '"]' );

	        if ( accordion.length ) {
		        $( 'html,body' ).animate({
		            scrollTop: accordion.parents( '.panel' ).offset().top - sticky
		        }, 500, function() {
		            accordion.trigger( 'click' );
		        });
		    }
	    }
	});

	// Bootstrap carousel - jumbotron functions
	if( $( '.jumbotron' ).length ) {

		var $this = $( this ),
			sliderTouch = $( '.carousel-touch' );

		// Touch support
		sliderTouch.swiperight( function() {
			$( this ).carousel( 'prev' );
		});
		
		sliderTouch.swipeleft( function() {
			$( this ).carousel( 'next' );
		});
	}

	// Bootstrap carousel - testimonial functions
	if( $( '.testimonial-carousel' ).length ) {

		var $this = $( this ),
			sliderTouch = $( '.carousel-touch' );

		sliderTouch.swiperight( function() {
			$( this ).carousel( 'prev' );
		});
		
		sliderTouch.swipeleft( function() {
			$( this ).carousel( 'next' );
		});
	}

	// Wrap qt table in html for responsive view
	if( $( '.qt-table' ).length > 0 ) {
		$( '.qt-table' ).wrap( "<div class='qt-table-wrap'></div>" );
	}
});