13 Sep 2006, 16:42
#1
Totally Zenned
- Join Date:
- Sep 2004
- Posts:
- 605
- Plugin Contributions:
- 1
Possible typo in tpl_search.php sidebox
We don't use css buttons but we do use custom buttons but button didn't show up properly in the search sidebox. Looking in tpl_search.php code I see:
However, this seems backwards and to get the custom button to show up I had to change the first line to read:
Is this a bug or something I'm misunderstanding?
Thanks,
Jeff
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
$content .= zen_draw_input_field('keyword', '', 'class="input3"', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
$content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
} else {
$content .= zen_draw_input_field('keyword', '', 'class="input3"', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '<br /><input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 50px" />';
$content .= '<br /><a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a>';
}However, this seems backwards and to get the custom button to show up I had to change the first line to read:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'no')Is this a bug or something I'm misunderstanding?
Thanks,
Jeff