Is it possible to add to add the following code into a string such as below. I need to give the "Terms" a text-domain such as below.
<?php _e('Terms','footer-text'); ?>
Need to essentially do string interpolation with the php code where the "Terms" string is.
echo '<div class="col-xs-6 col-md-2 col-md-push-8 social-buttons">
<div class="row">
<a class="pull-right" href="'. $instance['facebook'] .'" target="_blank">
<span class="icon-facebook-icon"></span>
</a>
<!--<a class="pull-right" href="'. $instance['tripadvisor'] .'" target="_blank">
<span class="icon-tripadvisor-icon"></span>
</a>-->
<a class="pull-right" href="'. $instance['twitter'] .'" target="_blank">
<span class="icon-twitter-icon"></span>
</a>
</div>
<div class="row pull-right terms-links">
<ul>
<li><a href="'. $instance['tac-url'] .'">Terms</a></li>
<li><a href="'. $instance['priv-url'] .'">Privacy</a></li>
<li><a href="'. $instance['sitemap-url'] .'">Sitemap</a></li>
</ul>
</div>
</div>';
}
Sorry PHP not my language. Working with translator plugin and need to give the word a text domain for it to find it. Thanks.