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
| <!-- delete folder git --> | |
| rm -rf .git |
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 | |
| function getShortText($text, $end_count) | |
| { | |
| $text = mb_substr($text, 0, $end_count); | |
| //divide by space | |
| $pos_end_space = stripos($text, ' '); | |
| $text = mb_substr($text, 0, $pos_end_space); | |
| return $text; | |
| } |
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 | |
| <?= form->field($model, 'rememberMe')->checkbox()->label() ?> | |
| <?= | |
| $form->field($model, 'rememberMe')->checkbox([ | |
| 'template' => '<div class="col-md-1">{label}</div><div class="col-md-5">{input}</div><div class="col-md-6">{error}</div>' | |
| ]) | |
| ?> |
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
| @font-face { | |
| font-family: 'Novecento Sans'; | |
| src: url('Novecentosanswide-Light-webfont.eot'); | |
| src: url('Novecentosanswide-Light-webfont.eot?#iefix') format('embedded-opentype'), | |
| url('Novecentosanswide-Light-webfont.woff2') format('woff2'), | |
| url('Novecentosanswide-Light-webfont.woff') format('woff'), | |
| url('Novecentosanswide-Light-webfont.ttf') format('truetype'), |
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 | |
| //Подключение стилей используя событие wp_print_styles | |
| add_action('wp_print_styles', 'theme_add_styles'); | |
| function theme_add_styles() { | |
| //подключения главного файла стилей темы style.css | |
| wp_enqueue_style( 'style-name', get_stylesheet_uri() ); | |
| wp_enqueue_style( 'style-layout', get_template_directory_uri() .'/assets/css/layout.css'); | |
| } |
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
| var x = document.getElementById("myList").lastChild.innerHTML; |
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
| let parent = node.parentNode; |
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 checkout <filename> | |
| <!-- отменить все изменения --> | |
| git reset --hard HEAD |
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
| <?= $form->field($model, 'id_text')->hiddenInput(['value' => $id_text])->label(false) ?> |
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
| photosop gradient figura | |
| на панели фигуры | |
| fill > filtype > gradient > click on line gradient |