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

bleen’s picture

Title: Add an $attribs array to handle HTML attributes in outermos <div> » Add an $attribs array to handle HTML attributes in outermost <div>
esmerel’s picture

Assigned: Unassigned » dawehner

dereine - I'm not sure this version is classified correctly, but you'd know better than I would.

dawehner’s picture

Here is an example of the node template of drupal7

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<div class="<?php print $classes; ?>">

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

dawehner’s picture

Assigned: dawehner » Unassigned
Category: feature » task

Make it a task

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)