I have a ddblock on my home page, validated the page and got an error:

duplicate specification of attribute "class"

Checked the tpl file specified in the title (ddblock-cycle-pager-content.tpl.php)

and saw line 28 was:

print $delta " class=" print $pager " class="clear-block border">

moved those classes.

Also, saw same validation problem on line 29 of this tpl file.

Comments

SethM’s picture

Could have been a bit more specific..

Saw this issue in these 3 tpl files:

in the ddblock module folder: ddblock-cycle-pager-content.tpl.php
line 28: <div id="ddblock-pager-<?php print $delta ?>" class="<?php print $pager ?>" class="clear-block border">
line 29: <div class="<?php print $pager ?>-inner" class="clear-block border">

in the custom theme folder: ddblock-cycle-pager-content-modest-grey50l.tpl.php
line 30: <div class="<?php print $pager ?>-inner" class="clear-block border">

in the custom theme folder: ddblock-cycle-pager-content.tpl.php
line 28: <div id="ddblock-pager-<?php print $delta ?>" class="<?php print $pager ?>" class="clear-block border">
line 29: <div class="<?php print $pager ?>-inner" class="clear-block border">

Any of these duplicated classes, I moved into one class attribute.

ppblaauw’s picture

Status: Active » Postponed

Thanks for reporting this bug.
Will cleanup the duplicate classes in the next version of the module.

ppblaauw’s picture

Status: Postponed » Needs review

committed to dev version of module