Aria Landmarks placement in page.tpl.php
In our page.tpl.php theme override, there exists the following line.
<!-- footer row: width = grid_width -->
<?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>In order to correctly insert Aira Landmarks, am I correct in assuming the following:
<!-- footer row: width = grid_width -->
<span role="contentinfo">
<?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>
</span>Omega template.php vs. preprocess/process
From what I understand, the proper place to put code to alter a form is in hook_form_alter. So I created a function mytheme_alpha_form_alter() and put it in template.php. Everything works fine, however the comments in template.php suggest that I should keep that file "as clean as possible" and to use the preprocess and process subfolders instead. So in trying to do things the proper alpha/omega way, I created a file preprocess/preprocess-page.inc and did the form modification code inside mytheme_alpha_preprocess_page(). This also works, but sure seems ugly.
Read more