We use some line to display if we are open or not. For this we use this line:
<?php $weekday = Mage::getSingleton('core/date')->date('w'); ?> <?php $hour = Mage::getSingleton('core/date')->date('G'); ?> <?php if ($weekday >= 1 && $weekday <= 5 && $hour >= 8.30 && $hour < 17.30) : ?> <p>Open</p> <?php else : ?> <p>Closed</p> <?php endif; ?>
But I want to expand this line, that we are closed because of a national day of the year.
How can I expand this code with some specific dates. For example 14/05/2015 and 24/05/2015 and 25/05/2015.
How can I achieve that?