//<?php

/* To prevent PHP errors (extending class does not exist) revealing path */
if (!\defined('\IPS\SUITE_UNIQUE_KEY')) {
    exit;
}

abstract class axenfontawesome6_hook_loadJSandCSS extends _HOOK_CLASS_
{
    public static function baseCss()
    {
	try
	{
	        try {
	            parent::baseCss();
	            \IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('all.min.css', 'axenfontawesome6', 'global'));
	            \IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('convert.css', 'axenfontawesome6', 'global'));
	            \IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('v4-font-face.min.css', 'axenfontawesome6', 'global'));
	        } catch (\RuntimeException$e) {
	            if (method_exists(get_parent_class(), __FUNCTION__)) {
	                return \call_user_func_array('parent::' . __FUNCTION__, \func_get_args());
	            } else {
	                throw $e;
	            }
	        }
	}
	catch ( \Error | \RuntimeException $e )
	{
		if( \defined( '\IPS\DEBUG_HOOKS' ) AND \IPS\DEBUG_HOOKS )
		{
			\IPS\Log::log( $e, 'hook_exception' );
		}

		if ( method_exists( get_parent_class(), __FUNCTION__ ) )
		{
			return \call_user_func_array( 'parent::' . __FUNCTION__, \func_get_args() );
		}
		else
		{
			throw $e;
		}
	}
    }
}
