Ich verstehe das mit Twig auch nicht.
Zumal bei manchen Core Elemente wie Individuelle Navigation scheinbar noch die "alten" Templates verwendet werden können.
Bei der Galerie kann ich unter templates noch immer default_gallery.html hinzufügen und editieren aber greift nicht.
Wie und wo schreibe ich nachfolgendes in Twig um?
PHP-Code:
<ul>
<?php foreach ($this->body as $class=>$row): ?>
<?php foreach ($row as $col): ?>
<?php if ($col->addImage): ?>
<li class="col-lg-3 col-md-4 col-sm-6 col-6">
<figure class="image_container"<?php if ($col->margin): ?> style="<?= $col->margin ?>"<?php endif; ?>>
<?php if ($col->href): ?>
<a href="<?= $col->href ?>"<?= $col->attributes ?> title="<?= $col->alt ?>"><?php $this->insert('picture_default', $col->picture); ?></a>
<?php else: ?>
<?php $this->insert('picture_default', $col->picture); ?>
<?php endif; ?>
<?php if ($col->caption): ?>
<figcaption class="caption"><?= $col->caption ?></figcaption>
<?php endif; ?>
</figure>
</li>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>