Hello, sorry if this is a noob question.
I am discovering PW and all the possibilities it offers. Thank you for this work!
I started to build my site in delayed output (with the Tailwind framework) and I was wondering if in the construction of the pages (as for example the basic-page.php page) it was possible to use "echo" rather than content .=
Below is an example of my current code for the main content below the banner. It works fine and displays correctly in _main.php but unfortunately in the IDE the code is not easy to write and proofread as it loses its colours and indentation. Also, I was wondering if I understood the method to use to code my pages. I tried to use "echo" but the content was displayed at the beginning of the page, above the banner.
The page _main.php contains the header codes (banner, menu, multilanguage buttons)
Thanks for your help!
$content .= "<div class='px-2 py-4'>";
$content .= "<p class='text-gray-400 text-2xl text-center'>".strtoupper($numero)."</p>";
$content .= "<a href='".$serie."/".substr($paper, 0, -4)."'>";
$content .= "<img class='hover:border-gray-400 border-solid border-2 border-gray-350' alt='' src='".$preview."'>";
$content .= "</a>";
$content .= "<button class='m-auto mt-2 bg-gray-400 hover:bg-yellow-400 text-white font-bold py-2 px-4 rounded inline-flex items-cente'>";
$content .= "<svg class='fill-current w-4 h-4 mr-2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z'/></svg>";
$content .= "<a href='".$paperurl."' download><span>QUICK DOWNLOAD</span></a><br>";
$content .= "</button>";
$content .= "</div>";
Translated with www.DeepL.com/Translator (free version)