src/Components.php
public static function skins($sModule, $sSubType = ''): array
    {
        $aSkins = static::filter('skin');
        $aOut   = [];

        foreach ($aSkins as $oSkin) {

            //  Provide a url field for the skin
            if (Functions::isPageSecure()) {
                $oSkin->url = SECURE_BASE_URL . $oSkin->relativePath;
            } else {
                $oSkin->url = BASE_URL . $oSkin->relativePath;
            }

            if ($oSkin->forModule == $sModule) {
                if (!empty($sSubType) && $sSubType == $oSkin->subType) {
                    $aOut[] = $oSkin;
                } elseif (empty($sSubType)) {
                    $aOut[] = $oSkin;
                }
            }
        }

        return $aOut;
    }
public static function skins($sModule, $sSubType = ''): array
    {
        $aSkins = static::filter('skin');
        $aOut   = [];

        foreach ($aSkins as $oSkin) {

            //  Provide a url field for the skin
            if (Functions::isPageSecure()) {
                $oSkin->url = SECURE_BASE_URL . $oSkin->relativePath;
            } else {
                $oSkin->url = BASE_URL . $oSkin->relativePath;
            }

            if ($oSkin->forModule == $sModule) {
                if (!empty($sSubType) && $sSubType == $oSkin->subType) {
                    $aOut[] = $oSkin;
                } elseif (empty($sSubType)) {
                    $aOut[] = $oSkin;
                }
            }
        }

        return $aOut;
    }
public static function skins ( $ sModule , $ sSubType = '' ) : array { $ aSkins = static :: filter ( 'skin' ) ; $ aOut = [ ] ; foreach ( $ aSkins as $ oSkin ) { //  Provide a url field for the skin if ( Functions :: isPageSecure ( ) ) { $ oSkin -> url = SECURE_BASE_URL . $ oSkin -> relativePath ; } else { $ oSkin -> url = BASE_URL . $ oSkin -> relativePath ; } if ( $ oSkin -> forModule == $ sModule ) { if ( ! empty ( $ sSubType ) && $ sSubType == $ oSkin -> subType ) { $ aOut [ ] = $ oSkin ; } elseif ( empty ( $ sSubType ) ) { $ aOut [ ] = $ oSkin ; } } } return $ aOut ; }
Returns registered skins, optionally filtered

@param string $sModule The module to filter for
@param string $sSubTyp The sub-type to filter by

@return Component[]
Returns registered skins optionally filtered