. * * @file * @ingroup Skins */ namespace Skins\Chameleon\Components; /** * The NewtalkNotifier class. * * A message to a user about new messages on their talkpage * * @author Stephan Gambke * @since 1.0 * @ingroup Skins */ class NewtalkNotifier extends Component { /** * Builds the HTML code for this component * * @return String the HTML code */ public function getHtml() { $data = $this->getSkinTemplate()->data; if ( array_key_exists( 'newtalk', $data ) && $data[ 'newtalk' ] ) { return $this->indent() . '' . $this->indent() . '' . $this->getSkinTemplate()->data[ 'newtalk' ] . ''; } else { return ''; } } }