Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/lib/calendar_ui.php
Show First 20 Lines • Show All 375 Lines • ▼ Show 20 Lines | public function calendar_list_item($id, $prop, &$jsenv, $activeonly = false) | ||||
'class' => 'subscribed', | 'class' => 'subscribed', | ||||
'title' => $this->cal->gettext('calendarsubscribe'), | 'title' => $this->cal->gettext('calendarsubscribe'), | ||||
'role' => 'checkbox', | 'role' => 'checkbox', | ||||
'aria-checked' => !empty($prop['subscribed']) ? 'true' : 'false' | 'aria-checked' => !empty($prop['subscribed']) ? 'true' : 'false' | ||||
], ' ' | ], ' ' | ||||
); | ); | ||||
} | } | ||||
if (!isset($prop['subscriptions']) || $prop['subscriptions'] !== false) { | |||||
$content .= html::tag('input', [ | $content .= html::tag('input', [ | ||||
'type' => 'checkbox', | 'type' => 'checkbox', | ||||
'name' => '_cal[]', | 'name' => '_cal[]', | ||||
'value' => $id, | 'value' => $id, | ||||
'checked' => !empty($prop['active']), | 'checked' => !empty($prop['active']), | ||||
'aria-labelledby' => $label_id | 'aria-labelledby' => $label_id | ||||
]) | ]) | ||||
. html::span('actions', $actions) | . html::span('actions', $actions) | ||||
. html::span(['class' => 'handle', 'style' => "background-color: #$color"], ' '); | . html::span(['class' => 'handle', 'style' => "background-color: #$color"], ' '); | ||||
} | } | ||||
} | |||||
$content = html::div(join(' ', $classes), $content); | $content = html::div(join(' ', $classes), $content); | ||||
} | } | ||||
return $content; | return $content; | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 608 Lines • Show Last 20 Lines |