public function favicon($config = array())
    {
        $config = new AnConfig($config);

        $config->append(array(
            'favicon' => pick($this->_params->favicon, 'favicon.ico'),
            'type' => 'image/png',
            'style' => pick($this->_params->cssStyle, 'style1'),
            'url' => 'base://',
        ));

        $paths = array(
            ANPATH_THEMES.DS.'base'.DS.'css'.DS.'images',
            ANPATH_THEMES.DS.$this->getIdentifier()->package.DS.'css'.DS.$config->style.DS.'images',
        );

        $finder = $this->getService('anahita:file.pathfinder');

        $finder->addSearchDirs($paths);

        $path = str_replace('\\', '/', str_replace(ANPATH_ROOT.DS, 'base://', $finder->getPath('favicon.ico')));

        return '<link rel="icon" type="'.$config->type.'" href="'.$path.'" />';
    }
public function favicon($config = array())
    {
        $config = new AnConfig($config);

        $config->append(array(
            'favicon' => pick($this->_params->favicon, 'favicon.ico'),
            'type' => 'image/png',
            'style' => pick($this->_params->cssStyle, 'style1'),
            'url' => 'base://',
        ));

        $paths = array(
            ANPATH_THEMES.DS.'base'.DS.'css'.DS.'images',
            ANPATH_THEMES.DS.$this->getIdentifier()->package.DS.'css'.DS.$config->style.DS.'images',
        );

        $finder = $this->getService('anahita:file.pathfinder');

        $finder->addSearchDirs($paths);

        $path = str_replace('\\', '/', str_replace(ANPATH_ROOT.DS, 'base://', $finder->getPath('favicon.ico')));

        return '<link rel="icon" type="'.$config->type.'" href="'.$path.'" />';
    }
public function favicon ( $ config = array ( ) ) { $ config = new AnConfig ( $ config ) ; $ config -> append ( array ( 'favicon' => pick ( $ this -> _params -> favicon , 'favicon.ico' ) , 'type' => 'image/png' , 'style' => pick ( $ this -> _params -> cssStyle , 'style1' ) , 'url' => 'base://' , ) ) ; $ paths = array ( ANPATH_THEMES . DS . 'base' . DS . 'css' . DS . 'images' , ANPATH_THEMES . DS . $ this -> getIdentifier ( ) -> package . DS . 'css' . DS . $ config -> style . DS . 'images' , ) ; $ finder = $ this -> getService ( 'anahita:file.pathfinder' ) ; $ finder -> addSearchDirs ( $ paths ) ; $ path = str_replace ( '\\' , '/' , str_replace ( ANPATH_ROOT . DS , 'base://' , $ finder -> getPath ( 'favicon.ico' ) ) ) ; return '<link rel="icon" type="' . $ config -> type . '" href="' . $ path . '" />' ; }
Renders the favicon tag.

@param $config Configuration

@return string
Renders the favicon tag .