Add base class to the layouts
Merge pull request #732 from lonelyplanet/if-base

Add base class to the layouts