Redundant php open and close tags in Garland theme page templates php file.They should either be removed or appropriate documentation should be added to it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gaurav.kapoor created an issue. See original summary.

gaurav.kapoor’s picture

Status: Active » Needs review
FileSize
922 bytes
gaurav.kapoor’s picture

Assigned: gaurav.kapoor » Unassigned
Chi’s picture

I propose instead of removing it we place file documentation within these tags. Just as it is done in Bartik's templates.

cchoudhary’s picture

cchoudhary’s picture

poker10’s picture

Status: Needs review » Needs work

Thanks for working on this!

Personally I think that the approach which adds the documentation is better (#5). However there seems to be some problems:

+++ b/themes/garland/page.tpl.php
@@ -1,4 +1,89 @@
+ * Regions:
+ * - $page['header']: Items for the header region.
+ * - $page['featured']: Items for the featured region.
+ * - $page['highlighted']: Items for the highlighted content region.
+ * - $page['help']: Dynamic help text, mostly for admin pages.
+ * - $page['content']: The main content of the current page.
+ * - $page['sidebar_first']: Items for the first sidebar.
+ * - $page['triptych_first']: Items for the first triptych.
+ * - $page['triptych_middle']: Items for the middle triptych.
+ * - $page['triptych_last']: Items for the last triptych.
+ * - $page['footer_firstcolumn']: Items for the first footer column.
+ * - $page['footer_secondcolumn']: Items for the second footer column.
+ * - $page['footer_thirdcolumn']: Items for the third footer column.
+ * - $page['footer_fourthcolumn']: Items for the fourth footer column.
+ * - $page['footer']: Items for the footer region.

Garland theme does not define any regions in the .info file, so I suppose that only default regions will be available in the page.tpl.php (not all as in the Bartik theme) - see: https://www.drupal.org/docs/7/theming/default-info-values

Also I think it would be better to check the coding standards in the comments, as it seems to me that some comments are longer than 80 characters (see: https://www.drupal.org/node/1354).

Thanks!