.
*
* @file
* @ingroup Chameleon
*/
namespace Skins\Chameleon\Components;
use Skins\Chameleon\ChameleonTemplate;
use Skins\Chameleon\IdRegistry;
/**
* The FooterIcons class.
*
* A inline list containing icons:
*
* @author Stephan Gambke
* @since 1.0
* @ingroup Skins
*/
class ContentHeader extends Component {
/**
* Builds the HTML code for this component
*
* @return String the HTML code
*/
public function getHtml() {
global $bannerImage;
$skintemplate = $this->getSkinTemplate();
$idRegistry = IdRegistry::getRegistry();
if ($bannerImage) {
$ret = $this->indent() . '
';
} else {
$ret = $this->indent() . '
';
}
$ret .= $this->indent( 1 ) . '' .
$this->indent() . $idRegistry->element( 'h1', array( 'id' => 'firstHeading', 'class' => 'firstHeading' ), $skintemplate->get( 'title' ) ) .
$this->indent() . '' .
$this->indent() . $idRegistry->element( 'div', array( 'id'=> 'siteSub' ), $skintemplate->getMsg( 'tagline' )->escaped() );
// TODO: Do we need this? Seems to be an accessibility thing. It's used
// in vector to jump to the nav which is at the bottom of the document,
// but our nav is usually at the top
$ret .= $idRegistry->element( 'div', array( 'id' => 'jump-to-nav', 'class' => 'mw-jump' ),
$skintemplate->getMsg( 'jumpto' )->escaped() . '' . $skintemplate->getMsg( 'jumptonavigation' )->escaped() . '' .
$skintemplate->getMsg( 'comma-separator' )->escaped() . '' . $skintemplate->getMsg( 'jumptosearch' )->escaped() . ''
);
$ret .= $this->indent( -1 ) . '