A base theme that restores Drupal-7-style markup.
This theme makes it possible to run a Drupal 7 theme on a Backdrop website
without needing to switch all the CSS selectors from IDs to classes.
Some changes may still be necessary, but this should make the task of getting a
Drupal 7 theme to work on Backdrop site much easier.
Specific changes are noted below.
Page template changes:
- Add back unique classes for each page (
page--node-1234) - Add back legacy
frontandnot-frontclasses.
Node template changes:
- Restore the legacy node ID as the css ID.
- Restore the legacy
node-teaserclass. - Add more template suggestions based on view mode.
- Convert
classesback to a string. - Convert
attributesback to a string. - Convert
content_attributesback to a string.
Block template changes:
- Restore legacy
block-titleclass. - Restore legacy block ID.
- Add the
navigationID to the main menu block in the header (if it is
configured to dispay the top menu only). - Convert
classesback to a string. - Convert
attributesback to a string. - Convert
title_attributesback to a string. - Convert
content_attributesback to a string.
Field template changes:
- Convert
classesback to a string. - Convert
attributesback to a string. - Convert
title_attributesback to a string. - Convert
content_attributesback to a string.
Menu markup changes:
- added the ID
main-menu-linksto the UL tag for the main menu.
Installation
-
Install this theme using the official Backdrop CMS instructions at
https://docs.backdropcms.org/documentation/skin-with-themes. -
Add your Drupal 7 theme to your Backdrop site.
-
Make the following changes to the info file of your Drupal 7 theme:
- add
base theme = d7compatible - add
backdrop = 1.x - add
type = theme
- add
-
Make the following changes to the templates of your Drupal 7 theme:
- Remove your old
page.tpl.phpfile
(or rename it tolayout--mytheme.tpl.php-- you will need it later to
create a Layout Template)
- Remove your old
Issues
Bugs and Feature Requests should be reported in the Issue Queue:
https://github.com/backdrop-contrib/d7compatible/issues.
Current Maintainers
- Jen Lampton
- Seeking additional maintainers
Credits
- Originally written for Backdrop CMS by Jen Lampton.
- Sponsored by Strategic Content.
- Sponsored by David Bollier.
License
This project is GPL v2 software.
See the LICENSE.txt file in this directory for complete text.