The original code in the file templates/beez/html/com_content/category/blog.php from line 50 is:
Code: Select all
for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
<div class="article_row<?php echo $this->params->get('pageclass_sfx'); ?>">
<?php for ($z = 0; $z < $colcount && $ii < $introcount && $i < $this->total; $z++, $i++, $ii++) : ?>
<div class="article_column column<?php echo $z + 1; ?> cols<?php echo $colcount; ?>" >
<?php $this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item'); ?>
</div>
<span class="article_separator"> </span>
<?php endfor; ?>
<span class="row_separator<?php echo $this->params->get('pageclass_sfx'); ?>"> </span>
</div>
<?php endfor;
So i thought, if i have a strayed openning div, let's put a closing div right next where it is placed and i changed the code above to this:
Code: Select all
for ($y = 0; $y < $rowcount && $i < $this->total; $y++) : ?>
<div class="article_row<?php echo $this->params->get('pageclass_sfx'); ?>">
<?php for ($z = 0; $z < $colcount && $ii < $introcount && $i < $this->total; $z++, $i++, $ii++) : ?>
<div class="article_column column<?php echo $z + 1; ?> cols<?php echo $colcount; ?>" >
<?php $this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item'); ?>
</div></div>
<span class="article_separator"> </span>
<?php endfor; ?>
<span class="row_separator<?php echo $this->params->get('pageclass_sfx'); ?>"> </span>
</div>
<?php endfor;
I have tried to trace this div that has no closing, but i can't find where it comes from. I have read several posts about div bugs and they are all problems related to the hmtl in an article, this is not the case since i am only showing the title of the articles.
Is this a bug or a mistake of mine somewhere? Please help as i don't like the solution i found, it is blunt force and i'm not sure what problems it could cause somewhere else.
Thanks in advance for your patience and help.