Friday, November 25, 2016

php variable inside echo 'html code'

array_splice($items_array, 2, 0, '<li class="drowpdown">
<a href="#">Team <span><i class="fa fa-angle-double-right"></i></span></a>
<ul class="clearfix inner-menu">
<li><a href="'.get_permalink(27).'">Founder</a></li>
<li><a href="'.get_permalink(29).'">Board of Directors</a></li>
<li><a href="'.get_permalink(31).'">Contact Person</a></li>
<li><a href="'.get_permalink(33).'">Member</a></li>
</ul>
</li>'); // insert custom item after 2nd one