'.$option['title'].''; // Add the new link in the menubar for this section. $fields_html .= '
'; // Open the new section. break; case 'close': $fields_html .= '
'; // Close the current section break; case 'displayonly': switch ($option['data'][0]) { case 'colors': $bg = get_option($option['data'][1]); $fg = get_option($option['data'][2]); $id = (isset($option['id']) ? ' id="' . $option['id'] . '"' : ''); $fields_html .= '
' . (isset($option['title']) ? '
' . $option['title'] . '
' : '') . (isset($option['desc' ]) ? '
' . $option['desc' ] . '
' : '') . '
' . '' . '
'; break; case 'info': $fields_html .= '
' . (isset($option['title']) ? '
' . $option['title'] . '
' : '') . (isset($option['desc' ]) ? '
' . $option['desc' ] . '
' : '') . $option['data'][1] . '
'; break; case 'delimiter': $fields_html .= '
' . ($option['data'][1] == 'top' ? '
' : '') . (isset($option['title']) ? '
' . $option['title'] . '
' : '') . (isset($option['desc' ]) ? '
' . $option['desc' ] . '
' : '') . ($option['data'][1] == 'bottom' ? '
' : '') . '
'; break; case 'form': $fields_html .= '
' . (isset($option['title']) ? '
' . $option['title'] . '
' : '') . (isset($option['desc' ]) ? '
' . $option['desc' ] . '
' : '') . $option['data'][1] . '
'; break; } break; case 'text': $fields_html .= '
'; $fields_html .= ''; if (isset($option['desc'])) $fields_html .= '
' . $option['desc'] . '
'; if (isset($option['note'])) $fields_html .= '
' . $option['note'] . '
'; $fields_html .= ''; $fields_html .= '
'; break; case 'checkbox': $fields_html .= '
'; $fields_html .= ''; if (isset($option['desc'])) $fields_html .= '
' . $option['desc'] . '
'; if (isset($option['note'])) $fields_html .= '
' . $option['note'] . '
'; if ($real_value == 'on') $checked = 'checked'; else $checked = ''; $fields_html .= '

'; $fields_html .= '
'; break; case 'color': $fields_html .= '
'; $fields_html .= '
'; $fields_html .= ''; $fields_html .= '
'; if (isset($option['desc'])) $fields_html .= $option['desc']; $fields_html .= '
'; if (isset($option['note'])) $fields_html .= '
' . $option['note'] . '
'; if ((isset($option['data'][0])) && (isset($option['data'][0]))) { $onchange = ' onblur="' . 'jQuery(' . "'" . '#' . $option['data'][0] . "'" . ').css(' . "'" . $option['data'][1] . "',jQuery(this).val());" . '"'; } else $onchange = ''; $fields_html .= ''; $fields_html .= '
'; $fields_html .= '
'; $fields_html .= '
'; $fields_html .= '
'; break; case 'image': $fields_html .= '
'; $fields_html .= ''; if (isset($option['desc'])){ $fields_html .= '
'; $fields_html .= $option['desc']; $fields_html .= '
'; } if (isset($option['note'])) $fields_html .= '
' . $option['note'] . '
'; if (!empty($real_value['url'])) { $fields_html .= ''; } if (!empty($real_value['width']) && (!empty($real_value['height']))) { $fields_html .= '

' . __('Size:','bwt_kiss') . ' ' . $real_value['width'] . 'x' . $real_value['height'] . '

'; } if (!empty($real_value['file'])) { $fields_html .= ''; } $fields_html .= ''; $fields_html .= '
'; break; case 'textarea': $fields_html .= '
'; if (isset($option['title'])) $fields_html .= ''; if (isset($option['desc' ])) $fields_html .= '
' . $option['desc' ] . '
'; if (isset($option['note' ])) $fields_html .= '
' . $option['note' ] . '
'; $fields_html .= ''; $fields_html .= '
'; break; } }