-
Склонировать d7dull в папку
/local/modules
-
Заменить названия во всех файлах с учётом регистра
maycat
— ваш ник, разрешены ТОЛЬКО латинские буквыd7dull
— название модуля Для этого нужно пройтись контекстным поиском по всей папке и внести изменения + переименовать файл в папке admin в соответствии с названияем модуля -
Продумать структуру классов и завести их в папке
lib/
(подробнее о приёмах организации структуры - смотри видео) С помощьюinclude.php
подключить автолоад созданным классам
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
/** | |
* Create `version.json` and `buildHash` | |
*/ | |
const path = require('path') | |
const git = require('git-rev-sync') | |
const fs = require('fs') | |
const dotenv = require('dotenv') | |
dotenv.config({silent: true}) |
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
// knockout 3.5.0 | |
ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ } | |
ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ } | |
ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } |
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
/** | |
* Функция для склонения русских слов | |
* Пример использования: ruDeclination(5,'комментари|й|я|ев') | |
* | |
* @author Павел Белоусов <pafnuty10@gmail.com> | |
* | |
* @param {number} number Число, для которого будет расчитано окончание | |
* @param {string} words Слово и варианты окончаний для 1|2|1 (1 комментарий, 2 комментария, 100 комментариев) | |
* @return {string} Cлово с правильным окончанием | |
*/ |
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
/** | |
* Работаем с классами у SVG-элементов | |
* Код добавляет возможность использовать следующие функции: | |
* hasClass, addClass, removeClass, toggleClass | |
* | |
* Использование: | |
* var svgEl = document.querySelector('.svg-selector'); | |
* svgEl.hasClass('className'); // hasClass | |
* svgEl.addClass('className'); // addClass | |
* svgEl.removeClass('className'); // removeClass |
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
# Блокируем рекламу в skype | |
# http://git.io/vkfQv | |
#------------------------------ | |
127.0.0.1 ads1.msn.com | |
127.0.0.1 a.ads2.msads.net | |
127.0.0.1 b.ads2.msads.net | |
127.0.0.1 *.msads.net | |
127.0.0.1 *.msecn.net | |
127.0.0.1 *.rad.msn.com | |
127.0.0.1 *.rads.msn.com |
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 | |
/** | |
* ============================================================================= | |
* AntiShell - Скрипт для котроля за изменениями в файлах на сайте. | |
* ============================================================================= | |
* Автор: Sander | |
* URL: http://sandev.pro/ | |
* ICQ: 404-037-556 | |
* email: olalod@mail.ru | |
* ----------------------------------------------------------------------------- |
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
<!-- Этот код можно поместить в шаблон статическй страницы --> | |
<style> | |
#allPlacemarks.loading {position: relative;} | |
#allPlacemarks.loading:after { | |
content: " "; | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; |
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
{ | |
"extends": "stylelint-config-standard", | |
"rules": { | |
"indentation": 2, | |
"string-quotes": "single", | |
"no-duplicate-selectors": true, | |
"color-hex-case": "lower", | |
"color-hex-length": "long", | |
"color-named": "never", | |
"selector-no-id": true, |