$offerings * @var \Unsupervised\Schedular\Offering\Offering|null $editing Offering loaded into the form, or null when adding. * @var list $instructors Instructors offered in the assignment picker (studio admins only). * @var bool $manageAll Whether the current user may assign classes to other instructors. * @var string $notice Status message from the last save (slot-clearing / conflicts). */ $baseUrl = admin_url('admin.php?page=us-offerings'); // Prefill the sessions control from the stored term dates: a term longer than // one day was created as weekly sessions one week apart. $termRecurrence = 'single'; $termSessions = 10; if ($editing && null !== $editing->termStart && null !== $editing->termEnd && $editing->termEnd !== $editing->termStart) { $termRecurrence = 'weekly'; $termSessions = (int) round(((int) strtotime($editing->termEnd) - (int) strtotime($editing->termStart)) / 604800) + 1; } ?>

 

id); ?> title); ?> isInviteOnly()) : ?> kind); ?> durationMinutes ? esc_html((string) $offering->durationMinutes . ' min') : '—'; ?> price, 2) . ' ' . $offering->currency); ?> billingMode); ?> termStart) : ?> — termEnd || $offering->termEnd === $offering->termStart) { echo esc_html((string) mysql2date('M j, Y', $offering->termStart)); } else { echo esc_html((string) mysql2date('M j, Y', $offering->termStart) . ' – ' . (string) mysql2date('M j, Y', $offering->termEnd)); } if (null !== $offering->classTime) { echo '
' . esc_html((string) mysql2date('g:i a', $offering->termStart . ' ' . $offering->classTime)) . ''; } ?>
isActive ? esc_html__('Yes', 'unsupervised-schedular') : esc_html__('No', 'unsupervised-schedular'); ?>