Move template based functions to the ..templates.php file. Fixes a bug in eo_locate_template
Ensures script is enqueued for showing/hiding upcoming dates