griimnak
You're a slave to the money then you die
So, atm i have a very poor widget handler in ghabbo
I kinda wanna just have a folder with widgets like widget.footer.html, but i'm not sure how i'd do that in php.
perhaps get_file_contents and return the data??
PHP:
class gWidget {
public static function loadFooter() {
return'
<div id="container-footer">
<p id="footer">
'.gConfig::get('site->name').' Hotel is not affiliated with Sulake Co or Habbo Hotel .
<br>
<a href="'.gConfig::get('site->path').'/me" target="_self">Homepage</a> | <a href="'.gConfig::get('site->path').'/rules" target="_self">Rules</a> | <a href="#" target="_self">Privacy Policy</a>
</p>
</div>
';
}
}
I kinda wanna just have a folder with widgets like widget.footer.html, but i'm not sure how i'd do that in php.
perhaps get_file_contents and return the data??