if($processor=="credits") {
$needed_credits = $amount/$credits_settings['unit'];
$needed_credits = format_price($needed_credits, '', '', '.');
$current_credits = floatval($credits_formatted);
$current_credits = credits($credits_formatted)::creditsForUser($crt_usr,$credits_formatted);
$current_credits = floatval($current_credits);
$current_credits = credits::creditsForUser($crt_usr);
$current_credits = credits::creditsForUser($crt_usr);
$db->query('insert into ' . TABLE_OPTIONS . ' set `object_id` = \'' . $id . '\', `option` = \'' . $type . '\', `date_added` = \'' . $timestamp . '\\', ' . $str_expires . ' ');
return 1;
}
<price>*</price>
точнее то, что между ними. Нужно какое-то регулярное выражение, только какое не могу понять {literal}
<a target="_blank" href="https://site.ru/sharer?url=https://{/literal}{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{literal}">Click me</a>
{/literal}
<button onclick="OpenWindow(' ')">Click me</button>
{literal}
<script>
function OpenWindow({$details_url}, windowName) {
newwindow = window.open('https://site.ru/sharer?url=' + {$details_url}, windowName, 'height=600,width=800');
if (window.focus) {
newwindow.focus();
}
return false;
}
</script>
<button onclick="OpenWindow('{$details_url}')">Click me</button>
{/literal}
<button onclick="OpenWindow(' ')">Click me</button>
<button onclick="OpenWindow('{$details_url}')">Click me</button>
изначально она выглядела так
<button onclick="OpenWindow('https://site.ru')">Click me</button>
url отсюда брался
<script>
function OpenWindow(url, windowName) {
newwindow = window.open('https://site.ru/sharer?url=' + url, windowName, 'height=600,width=800');
if (window.focus) {
newwindow.focus();
}
return false;
}
</script>
{literal}
<div class="sdfdfw_thRY" style="text-align: center;">
<p style="margin-bottom:5px;">Рассказать</p>
<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>
<div class="pluso" data-background="#ebebeb" data-options="big,square,line,horizontal,nocounter,theme=04"
data-services="bookmark,vkontakte,odnoklassniki,facebook,twitter,google,moimir"></div>
</div>
{/literal}
https://site/25490-%D0%9F%D0%B5%D1%81%D0%BA%D0%BE%D1%81%D1%82%D1%80%D1%83%D0%B9%D0%BD%D0%B0%D1%8F-%D0%BE%D1%87%D0%B8%D1%81%D1%82%D0%BA%D0%B0-%D1%80%D0%B0%D0%BC%D1%8B-%D0%BE%D1%82-%D0%B2%D0%BD%D0%B5%D0%B4%D0%BE%D1%80%D0%BE%D0%B6%D0%BD%D0%B8%D0%BA%D0%B0-%D0%B4%D0%B6%D0%B8%D0%BF/details.html