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 /** | |
| * Discovers and registers template part hooks | |
| * Uses transient caching for performance | |
| */ | |
| add_action('after_setup_theme', function () { | |
| $tp_dir = get_stylesheet_directory() . '/template-parts'; | |
| if (! is_dir($tp_dir)) { | |
| return; | |
| } |
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 | |
| /** | |
| * Generates a dynamic URL for a placeholder image. | |
| * | |
| * @param int $width The width of the image. Default: 600. | |
| * @param int $height The height of the image. Default: 400. | |
| * @param string $backgroundColor The background color of the image. Default: 'black'. | |
| * @param string $textColor The text color of the image. Default: 'white'. | |
| * @param string $text The text to display on the image. Default: 'Placeholder'. | |
| * @param author Ian Garcia |
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
| /** | |
| * All config options can be found here | |
| * https://unlighthouse.dev/api/config/ | |
| */ | |
| export default { | |
| // set site url | |
| site: '', | |
| // set max routes / pages | |
| scanner: { | |
| maxRoutes: 500, |
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
| *:focus-visible { | |
| outline: auto; | |
| } | |
| img { | |
| height: auto; | |
| max-width: 100%; | |
| display: block; | |
| } |