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
front
andnot-front
classes.
Node template changes:
- Restore the legacy node ID as the css ID.
- Restore the legacy
node-teaser
class. - Add more template suggestions based on view mode.
- Convert
classes
back to a string. - Convert
attributes
back to a string. - Convert
content_attributes
back to a string.
Block template changes:
- Restore legacy
block-title
class. - Restore legacy block ID.
- Add the
navigation
ID to the main menu block in the header (if it is
configured to dispay the top menu only). - Convert
classes
back to a string. - Convert
attributes
back to a string. - Convert
title_attributes
back to a string. - Convert
content_attributes
back to a string.
Field template changes:
- Convert
classes
back to a string. - Convert
attributes
back to a string. - Convert
title_attributes
back to a string. - Convert
content_attributes
back to a string.
Menu markup changes:
- added the ID
main-menu-links
to 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.php
file
(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.