. * * @file * @ingroup Skins */ namespace Skins\Chameleon\Components; use Linker; use Skins\Chameleon\IdRegistry; /** * The Logo class. * * The logo image as a link to the wiki main page wrapped in a div: ' . "\n"; } /** * Return true if addLink attribute is unset or set to 'yes' in the Logo * component description. Clicking on the logo should redirect to Main Page * in that case. Else the logo should just display an inactive image. * * @return bool */ private function addLink() { if ( $this->getDomElement() === null ) { return true; } $addLink = $this->getDomElement()->getAttribute( 'addLink' ); if ( $addLink === '' ) { return true; } return filter_var( $addLink, FILTER_VALIDATE_BOOLEAN ); } }