jeudi 4 novembre 2021

If statement not working in html page using TWIG

This is how I am sending values to view

tte::ts($header, [
            "name" => $data['tName'],
            "attentionText" => $data['tAttentionText'],
            "background" => $data['tBackground'],
            "steamLink" => $data['tSteamLink'],
            "banner" => $data['tBanner'],
            "metaDesc" => strip_tags($data['tDescriptionShort']),
            "metaTitle" => $data['tName'],
            "metaUrl" => $actual_link,
            "metaImage" => $data['tBanner'],
            'age' => 20
        ]);

and this is how I am tryna apply condition in the header


and the out that I am getting [![


<meta property="og:type" content="product"> ][1]][1]

Aucun commentaire:

Enregistrer un commentaire