Skip to content

Instantly share code, notes, and snippets.

View akroii's full-sized avatar
:bowtie:
Busy Agenturfutzie

Andreas Kroll akroii

:bowtie:
Busy Agenturfutzie
View GitHub Profile
@akroii
akroii / .css
Created May 3, 2023 11:48 — forked from AgainPsychoX/.css
Utility code to fix transition animations when closing HTML5 dialog
dialog {
margin: auto;
width: 100%;
min-width: 30vw;
min-height: 20vw;
border: none;
box-shadow: 0 0 16px -4px rgba(0, 0, 0, 0.7);
opacity: 0;
}
page.5 {
dataProcessing {
70 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
70 {
special = list
special.value.stdWrap.cObject = CONTENT
special.value.stdWrap.cObject {
table = pages
select {
pidInList = root
@akroii
akroii / html
Last active July 22, 2022 14:36
Ultra performant device checking
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>huhu</title>
<meta name="viewport" content="width=device-width">
<style>
html {
touch-action: manipulation;
$docSrc = \FilesModel::findByUuid($this->origin['document']);
@akroii
akroii / gist:67621bce3fc0a8a1b8e5137f2e5f28d4
Created October 11, 2021 07:54
create images directly
$imagePath = \Contao\Image::get(…);
(new \Contao\File($imagePath))->createIfDeferred();
@akroii
akroii / gist:b803f8691d3919cfd3f1f5da0703714d
Created October 9, 2021 11:50
get cssclass from maeeventcategories
<?php
$categoriesModel = MaeEventCatModel::findAll();
$information = array();
$chunks = deserialize($this->categories);
foreach ($chunks as $chunk) {
if (array_key_exists($chunk, $information)) {
continue;
}
if ($categoriesModel) {
@akroii
akroii / gist:5b8a3631697ddeb6155f99751265c460
Created October 6, 2021 12:43
tranform a valid string
StringUtil::standardize
$image = FilesModel::findByPath($col->singleSRC);
$audio = FilesModel::findByUuid($image->audiolink);
@akroii
akroii / php
Created September 2, 2021 06:47
time format from config
$strFormat = isset($GLOBALS['objPage']) ? $GLOBALS['objPage']->dateFormat : $GLOBALS['TL_CONFIG']['dateFormat'];
@akroii
akroii / gist:44569067f04b97ef94c7b3d5ed0c47f1
Created August 19, 2021 14:12
Get image dimensions from svg
$image = FilesModel::findByUuid($singleSRC); und $imagesize = getimagesize($image->path);