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
<script type="text/javascript">var mdate = new Date(); document.write(mdate.getFullYear());</script> |
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 wp_deregister_script('jquery'); ?> | |
//добавить перед <?php wp_head(); ?> |
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
npm install rimraf -g | |
rimraf node_modules |
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
<script> | |
var ourMailTop = document.getElementById("ymOurMail"); | |
function copyMail(name) { | |
if(name) { | |
name.addEventListener('copy', function() { | |
yaCounter32108701.reachGoal('copyMail'); | |
}); | |
} | |
} |
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 () { | |
yaCounter32108701.reachGoal('page404'); | |
} |
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
В файл настройки плагина, дополнительные настройки для главной страницы: | |
if ((is_front_page()==true)) { | |
$meta_string = sprintf("<meta name=\"description\" content=\"%s\"/>", 'Компания АО «БиГ» занимается производством и реализацией металлоконструкций, железобетонных конструкций и опор ЛЭП. Более 10-ти лет наша Компания на рынке электроэнергетики России и стран СНГ.'); | |
$meta_string .= "\n"; | |
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>\n", 'Производство металлоконструкций, Производство железобетонных конструкций, Производство опор ЛЭП, Плазменная резка, Обработка металла'); | |
} | |
else{ | |
if (isset ($description) && !empty($description)) { | |
$meta_string = sprintf("<meta name=\"description\" content=\"%s\"/>", $description); |
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
UPDATE таблица SET поле = REPLACE(поле, 'что_меняем', 'на_что_меняем') |
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
<? global $wpcf7_contact_form; | |
if ( ! ( $wpcf7_contact_form = wpcf7_contact_form( 34 ) ) ) | |
return 'Contact form not found!'; | |
$form = $wpcf7_contact_form->form_html(); | |
echo $form; ?> |
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
<?if (!empty($arResult["PROPERTIES"]["ANOTHER_LINKS"]["VALUE"])):?> | |
<?foreach($arResult["PROPERTIES"]["ANOTHER_LINKS"]["VALUE"] as $photo): | |
$arFileTmp = CFile::ResizeImageGet( | |
$photo, | |
array( | |
"width" => 280, | |
"height" => 180), | |
BX_RESIZE_IMAGE_EXACT, | |
false, | |
array() |
OlderNewer