mardi 11 mai 2021

How to put a condition inside the text result of another condition in Twig?

Is there any way to put a condition inside the result (text) of other condition in Twig?

What I need is check if is a mobile device and if it is, check if is necessary to put the class "scroll".

I tried some ways like that, but for now it didn't work:

<header>

Aucun commentaire:

Enregistrer un commentaire