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 | |
| // This should replace the DisplayPracticeTimes function. | |
| $startTime = strtotime('08:00'); | |
| $endTime = strtotime('21:00'); | |
| $increment = 30 * 60; // 30 minutes in seconds | |
| $times = array(); |
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 | |
| // This is leading zeros: | |
| $n = 10; // The desired end number | |
| $numbers = range(1, $n); | |
| $numbersWithLeadingZeros = array_map(function ($number) { | |
| return sprintf('%02d', $number); | |
| }, $numbers); |
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 | |
| namespace Drupal\custom_module\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| use Drupal\Core\Pager\PagerManagerInterface; | |
| class ListNonDrupalItems extends ControllerBase { |
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
| .parent { display: grid; } | |
| .child { grid-area: 1/1; } | |
| Instead of: | |
| .parent { position: relative } | |
| .child { position: absolute; top: 0; left: 0; width: 100%; height: 100% } |
OlderNewer