Да, а также tpl файлы используемого шаблона (на них нужно обратить внимание в первую очередь)
Сохраните файл в кодировке UTF-8 без BOM
https://wordpress.org/plugins/contact-form-7-phone-mask-module/
Попробуйте этот плагин https://wordpress.org/plugins/ultimate-posts-widget/
echo '<p class="mobil">Мобильная версия: <p class="'.($fieldvar=="Да"?'green':'red').'">'.$fieldvar.'</p></p>';
Извиняюсь
<script>jQuery(document).ready(function() { var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; var path = window.location.pathname; if(width > 1024) { jQuery.get("/scripts/spike/left.html", function(data){ jQuery("#panel-left").html(data); }); if(!path.match(/stranica.html/) && !path.match(/razdel(.*)/)) { jQuery.get("/scripts/spike/right.html", function(data){ jQuery("#panel-right").html(data); }); } }});</script>
<script>jQuery(document).ready(function() { var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; var path = window.location.pathname; if(width > 1024) { jQuery.get("/scripts/spike/left.html", function(data){ jQuery("#panel-left").html(data); }); if(path.match(/stranica.html/) || path.match(/razdel(.*)/)) { jQuery.get("/scripts/spike/right.html", function(data){ jQuery("#panel-right").html(data); }); } }});</script>
if (isset($_SERVER['HTTP_REFERER'])) { $file = __DIR__ . '/referers.txt'; file_put_contents($file, $_SERVER['HTTP_REFERER'] . "\n", FILE_APPEND | LOCK_EX);}
1. dirname(__FILE__) по старой привычке, нужно переучиваться :)
2. Полностью согласен, но мы ведь рассматриваем здесь базовый пример, хотя htmlspecialchars, безусловно, добавить стоило бы.
В общем, победа, безусловно, за Вами ;)
С помощью php, например
if(isset($_SERVER['HTTP_REFERER'])) { $file = dirname(__FILE__)."/referers.html"; $current = file_get_contents($file); file_put_contents($file, $current.$_SERVER['HTTP_REFERER']."\r\n");}
предварительно создав файл referers.html
С помощью голого Javascript нельзя реализовать запись в файл