code/libraries/joomlatools/component/koowa/template/helper/ui.php
public function styles($config = array())
    {
        $identifier = $this->getTemplate()->getIdentifier();

        $config = new KObjectConfigJson($config);
        $config->append(array(
            'debug' => JFactory::getApplication()->getCfg('debug'),
            'package' => $identifier->package,
            'domain'  => $identifier->domain
        ))->append(array(
            'folder' => 'com_'.$config->package,
            'file'   => ($identifier->type === 'mod' ? 'module' : $config->domain) ?: 'admin',
            'media_path' => (defined('JOOMLATOOLS_PLATFORM') ? JPATH_WEB : JPATH_ROOT) . '/media'
        ));

        $html = '';

        $path = sprintf('%s/%s/css/%s.css', $config->media_path, $config->folder, $config->file);

        if (!file_exists($path))
        {
            if ($config->file === 'module') {
                $config->css_file = false;
            } else {
                $config->folder = 'koowa';
            }
        }

        if ($this->getTemplate()->decorator() == 'joomla')
        {
            $app      = JFactory::getApplication();
            $template = $app->getTemplate();

            // Load Bootstrap file if it's explicitly asked for
            if ($app->isSite() && file_exists(JPATH_THEMES.'/'.$template.'/enable-koowa-bootstrap.txt')) {
                $html .= $this->getTemplate()->helper('behavior.bootstrap', ['javascript' => false, 'css' => true]);
            }

            // Load overrides for the current admin template
            if ($app->isAdmin() && $config->file === 'admin')
            {
                if (file_exists((defined('JOOMLATOOLS_PLATFORM') ? JPATH_WEB : JPATH_ROOT) . '/media/koowa/com_koowa/css/'.$template.'.css')) {
                    $html .= '<ktml:style src="assets://koowa/css/'.$template.'.css" />';
                }
            }
        }

        $html .= parent::styles($config);

        return $html;
    }
public function styles($config = array())
    {
        $identifier = $this->getTemplate()->getIdentifier();

        $config = new KObjectConfigJson($config);
        $config->append(array(
            'debug' => JFactory::getApplication()->getCfg('debug'),
            'package' => $identifier->package,
            'domain'  => $identifier->domain
        ))->append(array(
            'folder' => 'com_'.$config->package,
            'file'   => ($identifier->type === 'mod' ? 'module' : $config->domain) ?: 'admin',
            'media_path' => (defined('JOOMLATOOLS_PLATFORM') ? JPATH_WEB : JPATH_ROOT) . '/media'
        ));

        $html = '';

        $path = sprintf('%s/%s/css/%s.css', $config->media_path, $config->folder, $config->file);

        if (!file_exists($path))
        {
            if ($config->file === 'module') {
                $config->css_file = false;
            } else {
                $config->folder = 'koowa';
            }
        }

        if ($this->getTemplate()->decorator() == 'joomla')
        {
            $app      = JFactory::getApplication();
            $template = $app->getTemplate();

            // Load Bootstrap file if it's explicitly asked for
            if ($app->isSite() && file_exists(JPATH_THEMES.'/'.$template.'/enable-koowa-bootstrap.txt')) {
                $html .= $this->getTemplate()->helper('behavior.bootstrap', ['javascript' => false, 'css' => true]);
            }

            // Load overrides for the current admin template
            if ($app->isAdmin() && $config->file === 'admin')
            {
                if (file_exists((defined('JOOMLATOOLS_PLATFORM') ? JPATH_WEB : JPATH_ROOT) . '/media/koowa/com_koowa/css/'.$template.'.css')) {
                    $html .= '<ktml:style src="assets://koowa/css/'.$template.'.css" />';
                }
            }
        }

        $html .= parent::styles($config);

        return $html;
    }
public function styles ( $ config = array ( ) ) { $ identifier = $ this -> getTemplate ( ) -> getIdentifier ( ) ; $ config = new KObjectConfigJson ( $ config ) ; $ config -> append ( array ( 'debug' => JFactory :: getApplication ( ) -> getCfg ( 'debug' ) , 'package' => $ identifier -> package , 'domain' => $ identifier -> domain ) ) -> append ( array ( 'folder' => 'com_' . $ config -> package , 'file' => ( $ identifier -> type === 'mod' ? 'module' : $ config -> domain ) ? : 'admin' , 'media_path' => ( defined ( 'JOOMLATOOLS_PLATFORM' ) ? JPATH_WEB : JPATH_ROOT ) . '/media' ) ) ; $ html = '' ; $ path = sprintf ( '%s/%s/css/%s.css' , $ config -> media_path , $ config -> folder , $ config -> file ) ; if ( ! file_exists ( $ path ) ) { if ( $ config -> file === 'module' ) { $ config -> css_file = false ; } else { $ config -> folder = 'koowa' ; } } if ( $ this -> getTemplate ( ) -> decorator ( ) == 'joomla' ) { $ app = JFactory :: getApplication ( ) ; $ template = $ app -> getTemplate ( ) ; // Load Bootstrap file if it's explicitly asked for if ( $ app -> isSite ( ) && file_exists ( JPATH_THEMES . '/' . $ template . '/enable-koowa-bootstrap.txt' ) ) { $ html .= $ this -> getTemplate ( ) -> helper ( 'behavior.bootstrap' , [ 'javascript' => false , 'css' => true ] ) ; } // Load overrides for the current admin template if ( $ app -> isAdmin ( ) && $ config -> file === 'admin' ) { if ( file_exists ( ( defined ( 'JOOMLATOOLS_PLATFORM' ) ? JPATH_WEB : JPATH_ROOT ) . '/media/koowa/com_koowa/css/' . $ template . '.css' ) ) { $ html .= '<ktml:style src="assets://koowa/css/' . $ template . '.css" />' ; } } } $ html .= parent :: styles ( $ config ) ; return $ html ; }
Loads admin.css in frontend forms and force-loads Bootstrap if requested

@param array $config
@return string
Loads admin . css in frontend forms and force - loads Bootstrap if requested