I think the escaping happened automatically when the browser tried to process the output. It had a <p> from the file code and another <p> from your description. You can't have nested paragraphs in HTML, so the browser closed out the outer one before starting the inner one. It works correctly now with the div wrapper.
The name alignment issues are all as far as I can see caused by width issues - wide images and longer names can't fit on the same line in the set width, so the name drops to the next line and starts at the left edge. Increasing the width or putting the name above/below the image are the only ways to fix it. You really need a handle to style the name; it's not just subtext as the original design made it. Edit category_row.php, changing
. $categories->fields['categories_name'] . '</a>
to
. '<span class="catListingName">' . $categories->fields['categories_name'] . '</span></a>
to get
PHP Code:
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<span class="catListingName">' . $categories->fields['categories_name'] . '</span></a><div class="catListingDesc">' . $categories->fields['categories_description'] . '</div>');
or if you want the name above the image
PHP Code:
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' .'<span class="catListingName">' . $categories->fields['categories_name'] . '</span>' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a><div class="catListingDesc">' . $categories->fields['categories_description'] . '</div>');
Bookmarks