This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @param mixed $start: start time, e.g., 7:30am or 7:30 | |
| * @param mixed $end: end time, e.g., 8:30pm or 20:30 | |
| * @param string $interval: time intervals, 1 hour, 1 mins, 1 secs, etc. | |
| * @param string $format: time format, e.g., 12 or 24 | |
| */ | |
| function time_range( $start, $end, $interval = '30 mins', $format = '12' ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Symfony\Bridge\Twig\Extension\TranslationExtension; | |
| use Symfony\Component\Translation\Translator; | |
| use Symfony\Component\Translation\Loader\ArrayLoader; | |
| require dirname( __DIR__, 3 ) . '/vendor/autoload.php'; | |
| $translator = new Translator('fr_FR'); |