community.aegirproject.org
Using contexts in your code
Getting the current context is really easy, just call the 'd' accessor:
<?php
d();
?>
d()
would return the site context. The values of the context are accessible as simple properties of this object.