Answer the question
In order to leave comments, you need to log in
How to get url from smarty?
Hello, can you please tell me how to get smarty url out of the tag
<img src="https://api.qrserver.com/v1/create-qr-code/?size=70x70&data={$details_url}"/>
<script type="text/javascript">(function() {
if (window.pluso)if (typeof window.pluso.start == "function") return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js';
var h=d[g]('body')[0];
h.appendChild(s);
}})();
var pluso_div = querySelector('div.pluso');
pluso_div.setAttribute('data-url', '{$details_url}', 'data-title', '{$listing.title}');
</script>
Answer the question
In order to leave comments, you need to log in
and what is displayed instead of a variable?
if {$details_url} then see if the code is wrapped in {literal}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question