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.
Splitting this suggestion off of http://drupal.org/node/582348#comment-2343434...
The theming is getting a bit scary around the outermost div for a give view:
<div class="view <?php if($css_class) print $css_class . ' '; ?>view-<?php print $css_name; ?> view-id-<?php print $name; ?> view-display-id-<?php print $display_id; ?> view-dom-id-<?php print $dom_id; ?>">
@bangpound's suggestion of creating an $attributes array to help organize is an excellent one.
Thoughts?
Comments
Comment #1
bleen CreditAttribution: bleen commentedComment #2
esmerel CreditAttribution: esmerel commenteddereine - I'm not sure this version is classified correctly, but you'd know better than I would.
Comment #3
dawehnerHere is an example of the node template of drupal7
This is what the tpl looks like in nowadays. Much easier.
But we could add a attributes too, which is quite cool if it's possible to use via preprocess_views_view
Comment #4
dawehnerMake it a task
Comment #5
MustangGB CreditAttribution: MustangGB commented