Hello guys.
I'm starting to work on Drupal and I'm gonna build a few themes based on Zen.
But I'm still not used with the .info file. I'd like to add some custom classes and function on the subthemes, by adding new .php files, and if possible it should be added just once on the base Zen theme and just referenced on the other themes.
The problem is that I can't make it work... It works if on each page/story I use the include_once function, as in this exemple:
include_once("sites/all/themes/zen/zen/Mailto.php");
$mailto = new Mailto();
$encrypted_link = $mailto->createLink('email@email.com','mail me');But I can't find out how to add this file to zen.info and subtheme.info, so that those classes and functions are visible directly. And of course, keeping template.php and all .tpl.php working as always.
I've already tried to include them in template.php but it didn't work, I even tried to paste the whole codes into it and also no success. Only way I found was to use include_once everytime I need any of those files.
I know this is a noob question, but I'm just starting on it. I see all those php files being accessible directly and I can't find out how Drupal sees them and how to add mine.