See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
@function str-split($string, $separator: " ") { | |
$i: str-index($string, $separator); | |
@if $i != null { | |
@return append( | |
str-slice($string, 1, $i - 1), | |
str-split(str-slice($string, $i + str-length($separator)), $separator) | |
); | |
} | |
@return $string | |
} |
<?php | |
/** | |
* @author delphinpro <[email protected]> | |
* @copyright copyright © 2019 delphinpro | |
* @license licensed under the MIT license | |
* | |
* File: core/custom/packages/custom/src/Console/BackupCommand.php | |
*/ | |
<?php | |
/** | |
* PageBuilderInheritable | |
* | |
* @author delphinpro <[email protected]> | |
* @copyright copyright © 2019 delphinpro | |
* @license licensed under the MIT license | |
*/ | |
<?php | |
$InstallData = EvoInstaller::getPackageInfo(); | |
EvoInstaller::doInstall('2.0'); | |
class EvoInstaller{ | |
static public function downloadFile ($url, $path) { | |
$newfname = $path; | |
$rs = file_get_contents($url); | |
if($rs) $rs = file_put_contents($newfname,$rs); | |
return $rs; |
<?php | |
/* | |
Usage: | |
[[includeStylesheet? &file=`/path/to/style.css` ]] | |
*/ | |
if (!isset($file)) { | |
return ''; | |
} | |
$filePath = MODX_BASE_PATH.$file; |
<div class="accordion accordion_open"> | |
<div class="accordion__header"> | |
<div class="accordion__title">Заголовок</div> | |
<button class="accordion__toggle" type="button"><span class="sr-only">Открыть</span></button> | |
</div> | |
<div class="accordion__body"> | |
<div class="accordion__content"> | |
<p>Сайт рыбатекст поможет дизайнеру, верстальщику, вебмастеру сгенерировать | |
несколько абзацев более менее осмысленного текста рыбы на русском языке, | |
а начинающему оратору отточить навык публичных выступлений в домашних условиях. |
<div class="block"> | |
<img class="img" src="image.png" alt=""> | |
</div> |
config.sprite.bitmap = { | |
srcPath : 'source/sprites/bitmap', | |
srcFiles : '*.{jpg,jpeg,png,gif}', | |
src2x : 'source/sprites/bitmap/services/*@2x.png', | |
destImage: path.join(root.build, root.staticDir, 'images'), | |
destStyle: 'source/sass/', | |
}; |
<div class="upload-file"> | |
<label class="upload-file__button"> | |
<input class="upload-file__element" type="file" name=""> | |
<span class="upload-file__icon">{{ svgIcon('plus') }}</span> | |
<span class="upload-file__button-text">Добавить файл</span> | |
</label> | |
<div class="upload-file__file"> | |
<div class="upload-file__filename"></div> | |
<div class="upload-file__clear">×</div> | |
</div> |