Spent a few hours today restructuring the MD5.0 theme files to make different components more accessible and MD's internal libraries easier to navigate. Not only is clean file organization necessary for ease of development but it is imperative a theme as far reaching as Marketers Delight is structured properly so all of the aggressive features and enhancements coming in this version are sustainably built.
The new root file structure of MD5.0 will look like this:
A few notes:
The content folder has been renamed templates, and all of MD's template files will now live here. This will make finding all of the files eligible to be overwritten from your child theme easier. Don't worry—if your child theme has the content folder in it MD5.0 will still read those files.
The css folder has been moved to the root as well and this will make finding different sections of MD's CSS templates easier too. In a nutshell, the style.css file in the root directory is generated from all of the template files in the css folder, which have been broken down into parts. For example, all of the CSS for buttons, columns, spacers, text formatting, menus, etc. all live in their own file. This makes finding specific blocks of CSS easier, and because these files are dynamic, we can use PHP to output dynamic settings which then print to the static CSS file. I will explain this CSS system more in depth as it is very cool, but I anticipate you will have a lot of fun with these template files!
This was done in MD4.9.4, and the scripts.js file is also located in the root directory. It makes sense to be here and goes well with style.css, which holds all of your site's frontend CSS.
Apart from some serious internal rearrangements MD5.0's main features will be the Optin capabilities shown off here so far. The Popups feature is getting an overhaul and is becoming far more flexible and getting loads of new templates. Admittedly the first version of the new interface I came up with is pretty uninspiring (screenshot below), but I am happy to have made progress on a way more uplifting and easier to use interface. I am slightly embarrassed to show this screenshot off, but it will be great to compare it to the inspired design which I will tease here shortly. 😛
More updates coming soon! MD5.0 is going to be a massive hit!