Example #1
0
function zen_image_button($image, $alt = '', $parameters = '', $sec_class = '')
{
    global $template, $current_page_base, $zco_notifier;
    // inject rollover class if one is defined. NOTE: This could end up with 2 "class" elements if $parameters contains "class" already.
    if (defined('IMAGE_ROLLOVER_CLASS') && IMAGE_ROLLOVER_CLASS != '') {
        $parameters .= (zen_not_null($parameters) ? ' ' : '') . 'class="rollover"';
    }
    $zco_notifier->notify('PAGE_OUTPUT_IMAGE_BUTTON');
    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        return zenCssButton($image, $alt, 'button', $sec_class, $parameters = '');
    }
    return zen_image($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', $parameters);
}
Example #2
0
function zen_image_button($image, $alt = '', $parameters = '', $sec_class = '')
{
    return zenCssButton($image, $alt, 'button', $sec_class, $parameters = '');
}
 function imageButton($image, $alt = '', $parameters = '', $sec_class = '')
 {
     global $current_page_base;
     if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
         return zenCssButton($image, $alt, 'button', $sec_class, $parameters = '');
     }
     return $this->image($this->_getTemplateDir($image, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', $parameters);
 }
Example #4
0
function zen_image_button($image, $alt = '', $parameters = '', $sec_class = '')
{
    global $template, $current_page_base, $zco_notifier;
    $zco_notifier->notify('PAGE_OUTPUT_IMAGE_BUTTON');
    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        return zenCssButton($image, $alt, 'button', $sec_class, $parameters = '');
    }
    return zen_image($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image, $alt, '', '', $parameters);
}