<?php if (!defined('ABSPATH')) { exit; } // Exit if accessed directly $staffScheduleItem = new AB_StaffScheduleItem(); $staffScheduleItem->load($list_item->staff_schedule_item_id); $breaks_list = $staffScheduleItem->getBreaksList(); $display = count($breaks_list) ? 'inline-block' : 'none;'; ?> <table class="breaks-list hide-on-non-working-day" cellspacing="0" cellpadding="0"<?php if ($day_is_not_available) { ?> style="display: none"<?php } ?> > <tr> <td class="breaks-list-label"> <span style="display: <?php echo $display; ?> "> <?php _e('breaks:', 'ab'); ?> </span> </td> <td class="breaks-list-content"> <?php