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 | |
| // 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 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 | |
| // в посте добавить | |
| [shortcodeName]Some content here[/shortcodeName] | |
| // в файле functions.php | |
| function fncName($atrs, $content) | |
| { | |
| $content = !empty($content) ? $content : 'No content' | |
| //body |
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 | |
| // в посте добавить | |
| [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 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
| Вы можете запретить редактирование файлов в панели администрирования с помощью константы в конфигурационном файле WordPress | |
| wp-config.php: | |
| define( 'DISALLOW_FILE_EDIT', true ); | |
| Учтите, что установив эту директиву вы больше не сможете устанавливать и обновлять темы и плагины через панель администратора. Вам придётся это делать вручную с помощью FTP или SSH. | |
| define( 'DISALLOW_FILE_MODS', true ); | |
| Плагин Exploit Scanner позволит просканировать ваш WordPress на вредоносные скрипты, плагины и темы. | |
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
| // ----------глобальные настроики--------- | |
| git config --global user.name "alexandr makovkin" | |
| git config --global user.email "[email protected]" | |
| git config --global core.editor "notepad.exe -wl1" | |
| git config --global color.ui true | |
| // ---------пльзовательские настроики--------- | |
| git config user.name "alexandr makovkin" | |
| git config user.email "[email protected]" | |
| git config core.editor "notepad.exe -wl1" |
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 | |
| echo getcwd(); | |
| ?> |
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
| /* 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 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
| <noscript> | |
| Для полной работы сайта необходимо, чтоб в вашем браузере был включен JavaScript.<br /> | |
| Здесь вы найдете <a href="http://www.enable-javascript.com/" target="_blank" rel="nofollow">инструкции</a> как включить | |
| JavaScript в вашем браузере. | |
| </noscript> | |
| <!--[if lt IE 8]> | |
| <p class="browserupgrade">Вы используете <strong>старую</strong> версию баузера. Пожалуйста, | |
| <a href="http://browsehappy.com/">обновите ваш браузер</a>.</p> | |
| <![endif]--> |
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 /* Template Name: Form */ ?> | |
| <?php get_header();?> | |
| <div> | |
| <!-- content here --> | |
| </div> | |
| <?php get_footer();?> |
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
| <!-- style="max-width:100%;height:auto;" --> | |
| <img src="motorcycle.jpg" alt="Motorcycle" style="max-width:100%;height:auto;" /> |