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
/* scroll to top buttton */ | |
a.scrollToTop{ | |
width:75px; | |
height:75px; | |
text-align:center; | |
background: whiteSmoke; | |
text-decoration: none; | |
position:fixed; | |
bottom:30px; | |
right:30px; |
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 | |
echo getcwd(); | |
?> |
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
// ----------глобальные настроики--------- | |
git config --global user.name "alexandr makovkin" | |
git config --global user.email "info@makovkin.com" | |
git config --global core.editor "notepad.exe -wl1" | |
git config --global color.ui true | |
// ---------пльзовательские настроики--------- | |
git config user.name "alexandr makovkin" | |
git config user.email "info@makovkin.com" | |
git config core.editor "notepad.exe -wl1" |
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
Вы можете запретить редактирование файлов в панели администрирования с помощью константы в конфигурационном файле WordPress | |
wp-config.php: | |
define( 'DISALLOW_FILE_EDIT', true ); | |
Учтите, что установив эту директиву вы больше не сможете устанавливать и обновлять темы и плагины через панель администратора. Вам придётся это делать вручную с помощью FTP или SSH. | |
define( 'DISALLOW_FILE_MODS', true ); | |
Плагин Exploit Scanner позволит просканировать ваш WordPress на вредоносные скрипты, плагины и темы. | |
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 | |
// в посте добавить | |
[shortcodeName user="Alex" login="Phpist85"] | |
// в файле functions.php | |
function fncName($atrs) | |
{ | |
$user = isset($atrs['user']) ? $atrs['user'] : 'EmptyUser' | |
$login = isset($atrs['login']) ? $atrs['login'] : 'EmptyLogin' |
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 | |
// в посте добавить | |
[shortcodeName]Some content here[/shortcodeName] | |
// в файле functions.php | |
function fncName($atrs, $content) | |
{ | |
$content = !empty($content) ? $content : 'No content' | |
//body |
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 | |
// remove line breaks | |
$_descr = str_replace(array("\r\n", "\r", "\n"), "", $_descr); | |
// remove tabulation | |
$_descr = preg_replace('/\t+/', '', $_descr); | |
// $xmlString = rtrim($xmlString, "\r\n"); | |
// $xmlString = rtrim($xmlString, "\r"); | |
// $xmlString = rtrim($xmlString, "\n"); |
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
// ----------глобальные настроики--------- | |
git config --global user.name "alexandr makovkin" | |
git config --global user.email "info@makovkin.com" | |
git config --global core.editor "notepad.exe -wl1" | |
git config --global color.ui true | |
// ---------пльзовательские настроики--------- | |
git config --global user.name "alexandr makovkin" | |
git config --global user.email "info@makovkin.com" | |
git config --global core.editor "notepad.exe -wl1" |
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 | |
switch($_SERVER["HTTP_HOST"]) | |
{ | |
case "makovkin.info": define('ENVIRONMENT', 'production'); | |
break; | |
case "makovkin.loc": define('ENVIRONMENT', 'development'); | |
break; | |
default: define('ENVIRONMENT', 'development'); | |
break; | |
} |
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://sitename.com | |
var sitename = location.protocol + '//' + location.hostname; |