Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
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
// Перезапишите параметры, поместив их в файл параметров. | |
// Наиболее часто используемые настройки см. по адресу http://go.microsoft.com/fwlink/?LinkId=808995. | |
{ | |
// Редактор | |
// Определяет семейство шрифтов. | |
"editor.fontFamily": "Consolas, 'Courier New', monospace", | |
// Управляет насыщенностью шрифта. |
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
/****1.-----Защита от XSS-инъекций. Доб код в htaccess----------------------****/ | |
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] | |
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] | |
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) | |
RewriteRule ^(.*)$ index.php [F,L] | |
/****1.-----END of 1.----------------------****/ | |
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
/* | |
* Function for post duplication. Dups appear as drafts. User is redirected to the edit screen | |
*/ | |
function rd_duplicate_post_as_draft(){ | |
global $wpdb; | |
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'rd_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) { | |
wp_die('No post to duplicate has been supplied!'); | |
} | |
/* |
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
.file-upload | |
span.file-upload__text Прикрепите файл | |
.file-upload__btn | |
label.file-upload__btn_label | |
input(type="file") | |
span.file-upload__btn_text Загрузить | |
.file-upload { | |
align-items: center; |
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
/*-----Убираем показ лишней информации----------------------****/ | |
add_filter('login_errors', create_function('$a', "return null;")); | |
remove_action('wp_head', 'wp_generator'); | |
/** | |
* Закрытие страниц пагинации от индексирования | |
*/ | |
/*add_action( 'wpseo_head', 'art_noindex_paged', 0 ); | |
function art_noindex_paged() { |
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
<p>Друг! Если тебе нужно со мной пообщаться, то пиши сразу на почту | |
<code>YorEmail[dog]gmail.com</code>, //ПОМОГАЕТ!!!))) | |
а еще лучше сразу в | |
<a href="https://vk.com/nameORid" rel="nofollow noopener" target="_blank">ВК</a> | |
или <a href="https://tlgg.ru/@ID" rel="nofollow noopener" target="_blank">Telegramm</a>. </p> |
NewerOlder