I'm new to Magento and I've been converting an existing bespoke web site to Magento.
I have occasional PHP includes on the existing site that need to be inserted into CMS pages on the new site. I've managed to do this by adding blocks that call a phtml file within the layouts directory. However, I would like to make sure that the PHP include is available to all themes. The way I've done it means that it's only easily available to the theme I'm using - I need to develop a mobile theme and use the same PHP includes.
I've spent some time looking at modules and widgets. I finally got my head around widgets but now seem unable to insert PHP into it - it seems it only supports HTML so I'm back to square one.
Can someone please explain what the best practice is and possibly expand on that so I can implement it in my site?