HTML loop PHP without messing with this " over ' -


i have php code html loop

if($contenido_index === 1 || $contenido_index === "1") {                                                       echo "         <div class='portcontrol'>             <div class='info_container cssemigrey'>                 <a href='". $contenido_link."'><h2 class='naranja'>". $contenido_titulo."</h2></a>             </div>              <div class='wrapimg'>                 <a href='". $contenido_link."'><img alt='image de ". $contenido_titulo."' src='". $contenido_imagen."'></a>             </div>         </div> ";} 

i dont want change example href=" " href=' '

is there other way write can paste normal html code i'm going use loop.

just figure out joomla template...

<?php if($contenido_index === 1 || $contenido_index === "1"): ?>   <div class="portcontrol">               <div class="info_container cssemigrey">                     <a href="<?php echo $contenido_link; ?>"><h2 class='naranja'>"<?php echo $contenido_titulo; ?></h2></a>                 </div>                  <div class="wrapimg">                     <a href="<?php echo $contenido_link; ?>"><img alt="image de <?php echo $contenido_titulo; ?>" src="<?php echo $contenido_imagen; ?>"></a>                 </div>             </div> <?php endif; ?> 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -