function theme_minisite_widget in Mini site 7
Returns HTML for a minisite field widget.
File
- includes/
minisite.field.inc, line 309 - Minisite field.
Code
function theme_minisite_widget($variables) {
$element = $variables['element'];
$output = '';
$output .= '<div class="minisite-widget form-managed-file clearfix">';
$output .= '<div class="minisite-widget-data">';
if ($element['fid']['#value'] != 0) {
$element['filename']['#markup'] .= ' <span class="file-size">(' . format_size($element['#file']->filesize) . ')</span> ';
}
$output .= drupal_render_children($element);
$output .= '</div>';
$output .= '</div>';
return $output;
}