function theme_availability_calendar in Availability Calendars 7.5
Same name and namespace in other branches
- 7.3 availability_calendar.theme.inc \theme_availability_calendar()
- 7.4 availability_calendar.theme.inc \theme_availability_calendar()
Themes the availability calendar field.
Parameters
array $variables:
Return value
string
1 theme call to theme_availability_calendar()
- theme_availability_calendar_colorbox in ./
availability_calendar.theme.inc - Themes the availability calendar field.
File
- ./
availability_calendar.theme.inc, line 21
Code
function theme_availability_calendar($variables) {
availability_calendar_add_full_calendar_js($variables);
$output = '';
$output .= "<div id=\"cal-view-{$variables['cvid']}\" class=\"cal-{$variables['cid']} cal clearfix\">\n";
if ($variables['settings']['add_name'] == '1' && !empty($variables['name'])) {
$output .= '<div class="field-label">' . $variables['name'] . ': </div>' . "\n";
}
$output .= theme('availability_calendar_months', $variables);
$output .= "</div>\n";
return $output;
}