src/FrontendLoader.php
public static function getAssetFolderName($file_name)
    {
        $file_extension = strtolower(substr(strrchr($file_name,"."), 1));
        if (preg_match('/jpg|jpeg|gif|png|ico/', $file_extension)) {
            return 'img';
        }
        if ($file_extension === 'js') {
            return 'js';
        }
        if ($file_extension === 'css') {
            return 'css';
        }
        if ($file_extension === 'pdf') {
            return 'pdf';
        }
        return false;
    }
public static function getAssetFolderName($file_name)
    {
        $file_extension = strtolower(substr(strrchr($file_name,"."), 1));
        if (preg_match('/jpg|jpeg|gif|png|ico/', $file_extension)) {
            return 'img';
        }
        if ($file_extension === 'js') {
            return 'js';
        }
        if ($file_extension === 'css') {
            return 'css';
        }
        if ($file_extension === 'pdf') {
            return 'pdf';
        }
        return false;
    }
public static function getAssetFolderName ( $ file_name ) { $ file_extension = strtolower ( substr ( strrchr ( $ file_name , "." ) , 1 ) ) ; if ( preg_match ( '/jpg|jpeg|gif|png|ico/' , $ file_extension ) ) { return 'img' ; } if ( $ file_extension === 'js' ) { return 'js' ; } if ( $ file_extension === 'css' ) { return 'css' ; } if ( $ file_extension === 'pdf' ) { return 'pdf' ; } return false ; }
Return the folder name for a given file
@param string $file_name
@return string bool
Return the folder name for a given file