public function style($config = array())
    {
        require_once 'less/compiler.php';

        $config = new AnConfig($config);

        $config->append(array(
            'parse_urls' => true,
            'style' => pick($this->_params->cssStyle, 'style1'),
            'compile' => pick($this->_params->compilestyle, 0),
            'compress' => pick($this->_params->compresstyle, 1),
        ));

        $paths = array(
            ANPATH_ROOT.DS.'media'.DS.'lib_anahita'.DS.'css',
            ANPATH_THEMES.DS.'base'.DS.'css',
            $css_folder = ANPATH_ROOT.DS.'templates'.DS.$this->getIdentifier()->package.DS.'css'.DS.$config->style,
        );

        $finder = $this->getService('anahita:file.pathfinder');
        $finder->addSearchDirs($paths);
        $style = $finder->getPath('style.less');
        $css = $css_folder.DS.'style.css';

        //compile
        if ($config->compile > 0 && !empty($style)) {
            $this->_template->renderHelper('less.compile', array(
                'force' => $config->compile > 1,
                'compress' => $config->compress,
                'parse_urls' => $config->parse_urls,
                'import' => $finder->getSearchDirs(),
                'input' => $style,
                'output' => $css,
            ));
        }

        $cssHref = str_replace('\\', '/', str_replace(ANPATH_ROOT.DS, 'base://', $css));

        return '<link rel="stylesheet" href="'.$cssHref.'" type="text/css" />';
    }