protected function loadSkinAssets($aAssets, $aCssInline, $aJsInline, $sUrl)
    {
        $oAsset = Factory::service('Asset');

        //  CSS and JS
        if (!empty($aAssets) && is_array($aAssets)) {
            foreach ($aAssets as $asset) {
                if (is_string($asset)) {
                    $oAsset->load($asset);
                } else {
                    $oAsset->load($asset[0], $asset[1]);
                }
            }
        }

        // --------------------------------------------------------------------------

        //  CSS - Inline
        if (!empty($aCssInline) && is_array($aCssInline)) {
            foreach ($aCssInline as $asset) {
                $oAsset->inline($asset, 'CSS-INLINE');
            }
        }

        // --------------------------------------------------------------------------

        //  JS - Inline
        if (!empty($aJsInline) && is_array($aJsInline)) {

            foreach ($aJsInline as $asset) {

                $oAsset->inline($asset, 'JS-INLINE');
            }
        }
    }
protected function loadSkinAssets($aAssets, $aCssInline, $aJsInline, $sUrl)
    {
        $oAsset = Factory::service('Asset');

        //  CSS and JS
        if (!empty($aAssets) && is_array($aAssets)) {
            foreach ($aAssets as $asset) {
                if (is_string($asset)) {
                    $oAsset->load($asset);
                } else {
                    $oAsset->load($asset[0], $asset[1]);
                }
            }
        }

        // --------------------------------------------------------------------------

        //  CSS - Inline
        if (!empty($aCssInline) && is_array($aCssInline)) {
            foreach ($aCssInline as $asset) {
                $oAsset->inline($asset, 'CSS-INLINE');
            }
        }

        // --------------------------------------------------------------------------

        //  JS - Inline
        if (!empty($aJsInline) && is_array($aJsInline)) {

            foreach ($aJsInline as $asset) {

                $oAsset->inline($asset, 'JS-INLINE');
            }
        }
    }
protected function loadSkinAssets ( $ aAssets , $ aCssInline , $ aJsInline , $ sUrl ) { $ oAsset = Factory :: service ( 'Asset' ) ; //  CSS and JS if ( ! empty ( $ aAssets ) && is_array ( $ aAssets ) ) { foreach ( $ aAssets as $ asset ) { if ( is_string ( $ asset ) ) { $ oAsset -> load ( $ asset ) ; } else { $ oAsset -> load ( $ asset [ 0 ] , $ asset [ 1 ] ) ; } } } // -------------------------------------------------------------------------- //  CSS - Inline if ( ! empty ( $ aCssInline ) && is_array ( $ aCssInline ) ) { foreach ( $ aCssInline as $ asset ) { $ oAsset -> inline ( $ asset , 'CSS-INLINE' ) ; } } // -------------------------------------------------------------------------- //  JS - Inline if ( ! empty ( $ aJsInline ) && is_array ( $ aJsInline ) ) { foreach ( $ aJsInline as $ asset ) { $ oAsset -> inline ( $ asset , 'JS-INLINE' ) ; } } }
Loads any assets required by the skin
@param  array  $aAssets    An array of skin assets
@param  array  $aCssInline An array of inline CSS
@param  array  $aJsInline  An array of inline JS
@param  string $sUrl       The URL to the skin's root directory
@return void
Loads any assets required by the skin