Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following patch makes a number of small, non-functional, changes to get the template.php and page.tpl.php more inline with Drupal coding standards.
Secondly it moves the site logo and social icons logic out of the page.tpl.php and into the page_preprocess function in the template.php. This really cleans up the page.tpl.php and will make it easier for front-end folks to work with the template.
Comment | File | Size | Author |
---|---|---|---|
#1 | touch-code-cleanup-2.patch | 11.35 KB | acouch |
touch-code-cleanup.patch | 11.31 KB | acouch |
Comments
Comment #1
acouch CreditAttribution: acouch commentedUpdated the above patch.
Comment #2
ravis CreditAttribution: ravis commentedthank you very much @acouch
I highly appreciate your contribution :)
Will apply this patch with next release.
Comment #3
drzraf CreditAttribution: drzraf commentedbetter to generate without whitespace changes...
You didn't removed
<em><a id="main-content"></a></em>
.what is this markup useful for ?