.
*
* @file
* @ingroup Skins
*/
namespace Skins\Chameleon\Components;
/**
* The PersonalTools class.
*
* An unordered list of personal tools:
...
*
* @author Stephan Gambke
* @since 1.0
* @ingroup Skins
*/
class PersonalTools extends Component {
/**
* Builds the HTML code for this component
*
* @return String the HTML code
*/
public function getHtml() {
$ret = $this->indent() . '' .
$this->indent() . '';
$ret .= $this->indent( 1 ) . '
' .
$this->indent( -1 ) . '
' . "\n" .
$this->getNewtalkNotifier();
return $ret;
}
/**
* @return string
*/
private function getNewtalkNotifier() {
if ( $this->getDomElement() !== null && filter_var( $this->getDomElement()->getAttribute( 'hideNewtalkNotifier' ), FILTER_VALIDATE_BOOLEAN ) ) {
return '';
}
// include message to a user about new messages on their talkpage
$newtalkNotifier = new NewtalkNotifier( $this->getSkinTemplate(), null, $this->getIndent() + 2 );
return $this->indent() . '' . $newtalkNotifier->getHtml() .
$this->indent() . '
';
}
}