.
*
* @file
* @ingroup Skins
*/
namespace Skins\Chameleon\Components;
/**
* The SiteNotice class.
*
* A simple div containing the site notice text:
*
* @author Stephan Gambke
* @since 1.0
* @ingroup Skins
*/
class SiteNotice 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( 'sitenotice', $data ) && $data[ 'sitenotice' ] ) {
return $this->indent() . '' .
$this->indent() . '
' . $data[ 'sitenotice' ] . '
'
. "\n";
} else {
return "\n";
}
}
}