}
    }
    // now do sunrise or sunset
    if (true === $context->sunrise_sunset['sunrise_to_be_inserted'] && $value->time == $context->sunrise_sunset['sunrise_hour_timestamp']) {
        $output .= TkEventWeather__Functions::template_start_of_each_item($context->template_class_name, $index);
        $output .= sprintf(' sunrise">
			<span data-timestamp="%1$d" class="%2$s__time">%3$s</span>
			<span class="%2$s__icon sunrise" title="%4$s">%5$s</span>
			<span>&nbsp;</span>', $context->sunrise_sunset['sunrise_timestamp'], $context->template_class_name, TkEventWeather__Functions::timestamp_to_display($context->sunrise_sunset['sunrise_timestamp'], $context->utc_offset_hours, __('g:i')), __('Sunrise', 'tk-event-weather'), TkEventWeather__Functions::icon_html('sunrise'));
        $output .= PHP_EOL;
        $output .= '</div>';
        // close template_start_of_each_item()
        $index++;
        // increment index
    } elseif (true === $context->sunrise_sunset['sunset_to_be_inserted'] && $value->time == $context->sunrise_sunset['sunset_hour_timestamp']) {
        $output .= TkEventWeather__Functions::template_start_of_each_item($context->template_class_name, $index);
        $output .= sprintf(' sunset">
			<span data-timestamp="%1$d" class="%2$s__time">%3$s</span>
			<span class="%2$s__icon sunset" title="%4$s">%5$s</span>
			<span>&nbsp;</span>', $context->sunrise_sunset['sunset_timestamp'], $context->template_class_name, TkEventWeather__Functions::timestamp_to_display($context->sunrise_sunset['sunset_timestamp'], $context->utc_offset_hours, __('g:i')), __('Sunset', 'tk-event-weather'), TkEventWeather__Functions::icon_html('sunset'));
        $output .= PHP_EOL;
        $output .= '</div>';
        // close template_start_of_each_item()
        $index++;
        // increment index
    } else {
        // nothing
    }
}
// end foreach()
echo $output;