2016-07-06 7 views

Antwort

0
<?php $title = "My Test Title"; ?> 
<ul> 
      <li> 
     <a href="#" class="offset" title="<?php echo htmlspecialchars($title); ?>"> 
      <img src="img/2.jpg" alt="" class="imagequery"> 
     </a> 
    </li> 
     </ul> 
+0

Titel ist dynamisch, es kommt aus veröffentlichten Posts ist keine statische Notiz. – djhru

2
//yes it is possible 
    <ul> 
    <li> 
    <?php $title="The sun escaping the horizon";?> 
    <a href="#" class="offset" title="<?php echo $title;?>"> 
    <img src="img/2.jpg" alt="" class="imagequery"> 
    </a> 
    </li> 
    </ul>