Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
SethM CreditAttribution: SethM commentedCould 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.
Comment #2
ppblaauw CreditAttribution: ppblaauw commentedThanks for reporting this bug.
Will cleanup the duplicate classes in the next version of the module.
Comment #3
ppblaauw CreditAttribution: ppblaauw commentedcommitted to dev version of module