Concerning above post:
To use my concept you need these two edits to your /includes/functions/html_output.php
On or around line 267 is the function zen_image_submit();
edit the if statement to this:
Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class, $parameters );
Then just a bit lower comment out the original function zenCssButton() and put this code in:
Code:
/**
* generate CSS buttons in the current language
* revised code and concepts by Chadderuski and Sir John Steed
* Allows full control of all link and form buttons through CSS stylesheet.
* This revised function replaces the standard zenCssButton() above.
**/
function zenCssButton($image = '', $text, $type, $sec_class = '', $parameters = '') {
if (strrpos($image, '.') !== false) $sec_class = substr($image, 0, strrpos($image, '.'));
if (!empty($parameters)) $parameters = ' ' . $parameters;
// form input button
if ($type == 'submit'){
// $css_button = '<input class="cssButton ' . $sec_class . '" ' . ' type="submit" value="' . '"' . $parameters . ' />';
// $css_button = '<input class="cssButton ' . $sec_class . '" ' . ' type="submit" value="' .$text . '"' . $parameters . ' />';
$css_button = '<button class="cssButton ' . $sec_class . '" ' . ' type="submit" ' . $parameters . ' >' .$text . '</button>';
}
// link button
if ($type=='button'){
$css_button = '<div class="cssButton ' . $sec_class . '"' . $parameters . '>'. $text . '</div>';
}
return $css_button;
}
Notice the two commented out line under 'submit' ... you can experiment with this if you like. But code as is works well. There ARE some pages that seemed to need
tweaking for button placement.
As always, experiment on a backup/test site! If you want to try this with the three states buttons, PM me and I'll get you the buttons and CSS.
-cj