Support

Account

Home › Forums › Front-end Issues › Show content based on timepicker value › Reply To: Show content based on timepicker value

  • So its setup so that content:
    <h2>We’re streaming</h2>

    Will show between the times –
    $morning = $now >= new DateTime(’13:30′) && $now <= new DateTime(’13:40′);
    $afternoon = $now >= new DateTime(’15:20′) && $now <= new DateTime(’15:45′);

    Any other time it will show:
    <h2>No streaming</h2>