Project:Block Class
Version:6.x-1.1
Component:Documentation
Category:support request
Priority:normal
Assigned:Todd Nienkerk
Status:closed (fixed)

Issue Summary

Provide a steps 1-_ on how to get it working.
Edit block in theme dir, enable module, go to block page & add class, ect...

Comments

#1

The readme is added but contains an error.

The call to block_class should get the block from the $variables like

<?php
    $variables
['block_classes'] .= ' '. block_class($variables['block']);
?>
AttachmentSize
block_class_readme.patch 548 bytes

#2

Title:add readme file to distribution » Add README file to distribution
Assigned to:Anonymous» Todd Nienkerk
Status:active» fixed

clemens.tolboom: Good catch! I'll commit this shortly.

#3

also, isset() should be testing $variables['block_classes'] not 'block_class' (right? unless i'm missing something)

#4

Brad Bulger: Another good catch.

After reviewing the README file, however, it's clear that template_preprocess_block() should be implemented inside the module itself instead of requiring the user to add it to their theme. (The user must still add $block_classes to their block.tpl.php file, of course.)

I'll submit the changes to README and the module shortly.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here