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
| sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl; curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo npm i -g gulp rimraf npm-check-updates bower; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config |
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.ignoreMissingGitWarning": true, | |
| "workbench.startupEditor": "newUntitledFile", | |
| "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe", | |
| "window.menuBarVisibility": "toggle", | |
| "workbench.statusBar.visible": true, | |
| "workbench.activityBar.visible": false, | |
| "editor.minimap.enabled": false, | |
| "files.defaultLanguage": "html", | |
| "editor.fontSize": 16, |
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
| sudo sysctl net.ipv4.ip_default_ttl=65 |
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> | |
| .loader { | |
| background: none repeat scroll 0 0 #ffffff; | |
| bottom: 0; | |
| height: 100%; | |
| left: 0; | |
| position: fixed; | |
| right: 0; | |
| top: 0; | |
| width: 100%; |
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
| Изменения проводил на версии OpenCart 2.0.3.1 от издателя "OpenCart Russia" | |
| В этот уроке мы создадим в "Настройках магазина" во вкладке "Основное" новое поле, где мы будем вводить дополнительный телефон для нашего интернет магазина и выведем его на странице контактов. Приступим! | |
| * - префикс, может отличатся | |
| Идем в базу данных MySQL. Находим в базе данных структуру таблицу *_setting. Ищем по ключу (key) значение - config_telephone, копируем эту таблицу с новым ключом (key) config_telephone2, а в поле значение (value) можем указать телефон. | |
| На этом этапе мы закончили работу с базой данных, теперь приступим к создание самих полей. | |
| Идем в admin/view/template/setting и редактируем файл setting.tpl | |
| 1. включаем быстрый поиск CTRL+F вбиваем <?php echo $config_telephone; ?> |
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
| $('.main-menu').on('click', function(e){ | |
| $('.down-menu, .btn_mnu, .main-menu, .bg-color, .search').toggleClass('active'); | |
| return false; | |
| }); | |
| $('html,body').on('click', function(e){ | |
| if( !$(e.target).closest(".down-menu").length ) { | |
| $('.down-menu, .btn_mnu, .main-menu, .bg-color, .search').removeClass('active'); | |
| } | |
| }); |
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
| <div class="main-menu"> | |
| [[pdoMenu? &parents=`6, 9, 11, 13, 15, 16` &displayStart=`1` | |
| &tplStart=`mnu_Tpl` | |
| &tplOuter=`@INLINE <ul>[[+wrapper]]</ul>` &level=`1` | |
| &tplInner=`@INLINE <div class="drop"><ul>[[+wrapper]]</ul></div>` | |
| ]] | |
| </div> | |
| В чанке mnu_Tpl пишем | |
| [[+isfolder:is=`1`:then=`<li> <a> [[+menutitle]] </a> [[+wrapper]]</li>`:else=`<li> <a href="[[+link]]"> [[+menutitle]] </a> [[+wrapper]]</li>`]] |
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
| Источник http://wordsmall.ru/html-i-css/kruglaya-knopka-obratnogo-zvonka-css-s-animaciej.html | |
| Кнопка заказа звонка | |
| <div type="button" class="callback-bt"> | |
| <div class="text-call"> | |
| <i class="fa fa-phone"></i> | |
| <span>Заказать<br>звонок</span> | |
| </div> | |
| </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
| Renat Fox, [20.03.18 12:02] | |
| config { | |
| index_enable = 1 | |
| index_externals = 1 | |
| no_cache = 0 | |
| compressCss = 1 | |
| #compressJs =1 | |
| concatenateCss = 1 | |
| concatenateJs = 1 | |
| #moveJsFromHeaderToFooter = 1 |
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
| Есть задача — для всех посетителей, при первом заходе на сайт выводить определенный чанк. | |
| При рефреше страниц и при последующем заходе, в течении 1 часа — чанк не выводить. | |
| Сниппет, который сессии или куки будет записывать и затем проверять их. | |
| <?php | |
| if($_COOKIE['foo'] != '1') { | |
| setcookie("foo","1", time()+3600); | |
| return $modx->getChunk($chunk); | |
| } |
NewerOlder