This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Image Align | |
$grid = $this->el('div', [ | |
'class' => [ | |
'uk-grid-small uk-child-width-expand uk-flex-nowrap', | |
'uk-flex-middle {@image_vertical_align}', | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('scroll', function () { | |
var scrolled = window.scrollY, | |
coords = document.querySelector('.tm-header-mobile').clientHeight; // querySelector('.tm-header-mobile') - элемент на высоту которого определяем появление, можно использовать documentElement | |
document.querySelectorAll('[radicalmart-cart-module="bottom"]').forEach(module => { // querySelectorAll('[radicalmart-cart-module="bottom"]') - появляющаяся область | |
if (scrolled > coords) { | |
module.style.bottom = '0'; // module.style.bottom = '0'; - что делаем при наступлении события | |
} else { | |
module.style.bottom = '-80px' // module.style.bottom = '-80px'; - что делаем при окончании события | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //вывод позиции модулей | |
$document = JFactory::getDocument(); | |
$renderer = $document->loadRenderer('modules'); | |
$options = array('style' => 'xhtml'); | |
$position = 'user1'; | |
echo $renderer->render($position, $options, null); | |
?> | |
<!-- или --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('DOMContentLoaded', function () { | |
// Parse the URL | |
function getParameterByName(name) { | |
var name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"); | |
var results = regex.exec(location.search); | |
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
} | |
// make array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function() { | |
// Parse the URL | |
function getParameterByName(name) { | |
var name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"); | |
var results = regex.exec(location.search); | |
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
} | |
// Give the URL parameters variable names | |
var source = getParameterByName('utm_source'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$document = &JFactory::getDocument(); | |
$renderer = $document->loadRenderer('modules'); | |
$options = array('style' => 'xhtml'); | |
$position = 'breadcrumbs'; | |
echo $renderer->render($position, $options, null); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* @package RadicalMart Package | |
* @subpackage com_radicalmart | |
* @version __DEPLOY_VERSION__ | |
* @author Delo Design - delo-design.ru | |
* @copyright Copyright (c) 2021 Delo Design. All rights reserved. | |
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html | |
* @link https://delo-design.ru/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="el-content uk-panel uk-margin-top"> | |
<form class="uk-form-horizontal"> | |
<div class="uk-margin-small"> | |
<label class="uk-form-label" for="donation-amount">Сумма пожертвования:</label> | |
<div class="uk-form-controls"> | |
<div class="uk-inline uk-width-expand"> | |
<input class="uk-input uk-text-right" id="donation-amount" type="text" placeholder="10" value="" onchange="donate(this)"> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Добавить в начале строки Найти ^ Заменить 0; | |
^\W пробел в начале строки | |
\d{8} найти 8 цыфр подряд | |
^\d{4};92 найти В НАЧАЛЕ ЧЕТЫРЕХзначные числа после которы есть ;92 | |
[^=]*$ любые символы, кроме "=" | |
;(.*) все после ; | |
(\b\S+\b)(?=.*\1) повторение на строке | |
^$\n - удалить пустые строки | |
\d [0-9] Цифровой символ |