This file contains 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
<div class="news_card{{ class|default('') }}" data-aos="fade-down" data-aos-duration="600" data-aos-once="true" data-aos-anchor-placement="top-bottom" itemscope itemtype="http://schema.org/Article"> | |
<div class="card"> | |
{% if addImage|default %} | |
<a href="{{ insert_tag('news_url::'~id) }}" title="weiterlesen"> | |
{% set picture = picture|merge({"alt": headline}) %} | |
<div class="image-zoom-in"> | |
{% include '@Contao/picture_default' with picture %} | |
</div> | |
</a> | |
{% endif %} |
This file contains 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
{# Speichere dieses Template unter contao/templates/twig/content_element/gallery/gal_col4_bs.html.twig #} | |
{# Das Template wird dann im Inhaltselement Galerie verfügbar sein unter dem Namen "content_element/gallery/gal_col4_bs.html.twig #} | |
{# Vergiss nicht die .twig-root dotfile in contao/templates/twig/ abzulegen und den Contao cache neu aufzubauen #} | |
{% extends "@Contao/content_element/_base.html.twig" %} | |
{% use "@Contao/component/_list.html.twig" %} | |
{% use "@Contao/component/_figure.html.twig" %} | |
{# Ein weiteres Galerie Template für Contao 5. Als Vorlage dient das Galerie Core Template vendor/contao/core-bundle/contao/templates/twig/content_element/gallery.html.twig #} |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style> | |
#outerBox { | |
display: inline-flex; | |
flex-wrap: wrap; | |
width: 100%; |
This file contains 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
(async () => { | |
await (() => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
console.log('first'); | |
resolve('first'); | |
}, 5000); | |
}); | |
})(); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#myVueAppInner { | |
transition: opacity 1.4s linear 0.2s; | |
opacity: 0; | |
} | |
#myVueAppInner[data-show-app="true"] { |
This file contains 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 | |
// src/EventListener/SendNotificationMessage.php | |
declare(strict_types=1); | |
namespace App\EventListener; | |
use Contao\CoreBundle\ServiceAnnotation\Hook; | |
use Contao\FilesModel; | |
use NotificationCenter\Model\Message; |
This file contains 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 | |
// For contao > 4.4: | |
// For extending your dca, store your custom dca file in: TL_ROOT/contao/dca/tl_calendar_events_member.php | |
use Contao\CoreBundle\DataContainer\PaletteManipulator; | |
PaletteManipulator::create() | |
->addField( | |
['mycustom1', 'mycustom2'], | |
'notes_legend', |
NewerOlder