Skip to content

Instantly share code, notes, and snippets.

View guelzow's full-sized avatar
Count Doku: "Come to the dark side, we've got documentation!"

Tobias Gülzow guelzow

Count Doku: "Come to the dark side, we've got documentation!"
View GitHub Profile
@guelzow
guelzow / focusTrap.js
Last active June 12, 2025 13:56
Focus Trap
/**
* Focus Trap
*
* This script provides a focus trap functionality for modal dialogs.
*
* @usage
* To use this focus trap, call `focusTrap.init()` with the selector of the modal dialog element.
* You can also provide an optional selector for a close button within the modal dialog.
* This will ensure that when the modal dialog is open, the focus remains within the dialog,
* cycling through the focusable elements and preventing focus from leaving the dialog.
@guelzow
guelzow / RecordsXmlSitemap.php
Last active June 27, 2019 11:24
RecordsXmlSitemapDataProvider with sql-join support for categories
<?php
declare(strict_types = 1);
namespace Brainworxx\NewsSitemap;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Seo\XmlSitemap\Exception\MissingConfigurationException;
use TYPO3\CMS\Seo\XmlSitemap\RecordsXmlSitemapDataProvider;