Admin HEAD content
Starting in Zen Cart 1.5.7, a new file
admin/includes/admin_html_head.php was introduced to consolidate the code required to build the
<head> element in an admin page. This includes such things as:
- setting the page title
- pulling in stylesheets
In prior versions, the code to do this was replicated on each admin page.
Since then, admin pages have updated over time to remove the replicated blocks of code in favor of a single inclusion of
admin_html_head.php. As of Zen Cart 2.0.0, this change is complete, and older files used by the old method have been deprecated. This includes:
Some older plugins may still use these files. Migrating to the new standard is straightforward; simply replace the old contents of the
<head> element by a reference to
You will also want to remove references to the old
If you maintain a plugin which needs to work on both older and newer versions of Zen Cart simultaneously, see this forum post for an example block of code that can be used to support both.