New Zenner
- Join Date:
- Aug 2012
- Posts:
- 46
- Plugin Contributions:
- 0
specials and new items should be 3 pictures across, instead is 2, 1, 2, 1.
/includes/templates/[your template]/common/tpl_columnar_display.php
There are a ton of unnecessary "?><?php" pairs. That and the "\n" at the end of
echo '<div' . $r_params . '>' . $list_box_contents[$row][$col]['text'] . '</div>'. "\n";
are breaking the 3-column display of monthly specials and new arrivals.
If you are experiencing similar problems, take out the extra junk and things should be better.
The meat of my tpl_columnar_display.php now looks like this:
if($title) echo $title;
if (is_array($list_box_contents) > 0 ) {
for($row=0;$row<sizeof($list_box_contents);$row++) {
$box=$list_box_contents[$row];
$params = "";
//if (isset($box['params'])) $params .= ' ' . $box['params'];
for($col=0;$col<sizeof($box);$col++) {
$r_params = (isset($box[$col]['params'])) ? (' '.(string)$box[$col]['params']) : '';
if (isset($box[$col]['text'])) {
echo '<div' . $r_params . '>' . $box[$col]['text'] . '</div>';
}
}
echo "<br class='clearBoth' />";
}
}
Thank you!