/**
  * Builds the HTML code for this component
  *
  * @return String the HTML code
  */
 public function getHtml()
 {
     $skintemplate = $this->getSkinTemplate();
     $idRegistry = IdRegistry::getRegistry();
     // START content
     $ret = $this->indent() . '<!-- start the content area -->' . $this->indent() . $idRegistry->openElement('div', array('id' => 'content', 'class' => 'mw-body ' . $this->getClassString())) . $idRegistry->element('a', array('id' => 'top')) . $this->indent() . '<div ' . \Html::expandAttributes(array('id' => $idRegistry->getId('mw-js-message'), 'style' => 'display:none;')) . $skintemplate->get('userlangattributes') . '></div>';
     // START contentHeader
     $ret .= $this->indent(1) . '<div class ="contentHeader">' . $this->indent(1) . '<!-- title of the page -->' . $this->indent() . $idRegistry->element('h1', array('id' => 'firstHeading', 'class' => 'firstHeading'), $skintemplate->get('title')) . $this->indent() . '<!-- tagline; usually goes something like "From WikiName" primary purpose of this seems to be for printing to identify the source of the content -->' . $this->indent() . $idRegistry->element('div', array('id' => 'siteSub'), $skintemplate->getMsg('tagline')->escaped());
     if ($skintemplate->get('subtitle')) {
         // TODO: should not use class 'small', better use class 'contentSub' and do styling in a less file
         $ret .= $this->indent() . '<!-- subtitle line; used for various things like the subpage hierarchy -->' . $this->indent() . $idRegistry->element('div', array('id' => 'contentSub', 'class' => 'small'), $skintemplate->get('subtitle'));
     }
     if ($skintemplate->get('undelete')) {
         // TODO: should not use class 'small', better use class 'contentSub2' and do styling in a less file
         $ret .= $this->indent() . '<!-- undelete message -->' . $this->indent() . $idRegistry->element('div', array('id' => 'contentSub2', 'class' => 'small'), $skintemplate->get('undelete'));
     }
     // TODO: Do we need this? Seems to be an accessibility thing. It's used in vector to jump to the nav wich 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() . '<a href="#mw-navigation">' . $skintemplate->getMsg('jumptonavigation')->escaped() . '</a>' . $skintemplate->getMsg('comma-separator')->escaped() . '<a href="#p-search">' . $skintemplate->getMsg('jumptosearch')->escaped() . '</a>');
     $ret .= $this->indent(-1) . '</div>';
     // END contentHeader
     // START content body
     $ret .= $idRegistry->element('div', array('id' => 'bodyContent'), $this->indent() . '<!-- body text -->' . "\n" . $this->indent() . $skintemplate->get('bodytext'));
     // END content body
     // TODO: Category links should be a separate component, but
     // * dataAfterContent should come after the the category links.
     // * only one extension is known to use it dataAfterContent and it is geared specifically towards MonoBook
     // => provide an attribut hideCatLinks for the XML and -if present- hide category links and assume somebody knows what they are doing
     $ret .= $this->indent() . '<!-- category links -->' . $this->indent() . $skintemplate->get('catlinks');
     if ($skintemplate->get('dataAfterContent')) {
         $ret .= $this->indent() . '<!-- data blocks which should go somewhere after the body text, but not before the catlinks block-->' . $this->indent() . $skintemplate->get('dataAfterContent');
     }
     $ret .= $this->indent(-1) . '</div>' . "\n";
     // END content
     return $ret;
 }
 /**
  * Builds the HTML code for this component
  *
  * @return String the HTML code
  */
 public function getHtml()
 {
     $skintemplate = $this->getSkinTemplate();
     $idRegistry = IdRegistry::getRegistry();
     // START content
     $ret = $this->indent() . '<!-- start the content area -->' . $this->indent() . $idRegistry->openElement('div', array('id' => 'content', 'class' => 'mw-body ' . $this->getClassString())) . $idRegistry->element('a', array('id' => 'top')) . $this->indent() . '<div ' . \Html::expandAttributes(array('id' => $idRegistry->getId('mw-js-message'), 'style' => 'display:none;')) . $skintemplate->get('userlangattributes') . '></div>';
     $ret .= $this->buildContentHeader();
     $ret .= $this->buildContentBody();
     $ret .= $this->buildCategoryLinks();
     $ret .= $this->indent(-1) . '</div>' . "\n";
     // END content
     return $ret;
 }
 /**
  * Builds the HTML code for this component
  *
  * @return string
  */
 public function getHtml()
 {
     $ret = $this->indent() . '<!-- search form -->' . $this->indent() . '<div ' . \Html::expandAttributes(array('id' => IdRegistry::getRegistry()->getId('p-search'), 'class' => 'p-search ' . $this->getClassString(), 'role' => 'search')) . Linker::tooltip('p-search') . '>' . $this->indent(1) . '<form ' . \Html::expandAttributes(array('id' => IdRegistry::getRegistry()->getId('searchform'), 'class' => 'mw-search form-inline')) . ' action="' . $this->getSkinTemplate()->data['wgScript'] . '">' . $this->indent(1) . '<input type="hidden" name="title" value="' . $this->getSkinTemplate()->data['searchtitle'] . '" />' . $this->indent() . '<div class="input-group">' . $this->indent(1) . $this->getSkinTemplate()->makeSearchInput(array('id' => IdRegistry::getRegistry()->getId('searchInput'), 'type' => 'text', 'class' => 'form-control')) . $this->indent() . '<div class="input-group-btn">' . $this->indent(1) . $this->getSearchButton('go') . $this->indent(0) . $this->getSearchButton('fulltext') . $this->indent(-1) . '</div>' . $this->indent(-1) . '</div>' . $this->indent(-1) . '</form>' . $this->indent(-1) . '</div>' . "\n";
     return $ret;
 }