While working on implementing an admin panel into my bootstrap template, I encountered a problem. When I tried to change the slider elements into a loop to retrieve data from the database and display them as list items, the theme ended up broken. Despite having checked the code multiple times, I couldn't find any issues with it.
Links for reference:
Proper link:
Broken link:
Here is the static HTML list item element:
<li>
<div class="shad">
<div class="mask">
<div class="box-detail">
<h3>Royal Gayrimenkul</h3>
<div class="box-detail-item">
<div class="item-price pull-left">$278.7800</div>
<a hrf="#" class="item-lin "></a>
</div>
</div>
</div>
<img src="proper_theme/images/properties/p7.jpg" alt="property"/>
</div>
</li>
This is the skeleton of the PHP function:
return "
<li>
<div class=\"shad\">
<div class=\"mask\">
<div class=\"box-detail\">
<h3>$title</h3>
<div class=\"box-detail-item\">
<div class=\"item-price pull-left\">$price</div>
<a href=\"#\" class=\"item-lin \"></a>
</div>
</div>
</div>
<img src=\"$img\" alt=\"property\"/>
</div>
</li>";
No errors are showing in the console.