Skip to content

Instantly share code, notes, and snippets.

View Tolala9's full-sized avatar
🎯
Focusing

Anatolii Lukavenko Tolala9

🎯
Focusing
View GitHub Profile
{"lastUpload":"2020-03-27T09:02:12.683Z","extensionVersion":"v3.4.3"}
var gulp = require('gulp'),
gutil = require('gulp-util' ),
ftp = require('vinyl-ftp');
gulp.task('deploy', function() {
var conn = ftp.create({
host: '******',
user: '******',
password: '******',
<?php
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
?>
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<?php endwhile; endif; wp_reset_query(); ?>
@Tolala9
Tolala9 / button.sass
Created September 20, 2017 14:27 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
Самый легкий способ установить цель.
Важно чтобы на сайте был скрипт jQuery!
<script>
jQuery(document).ready(function(){
jQuery('form .btn-class').click(function(){
ga('send', 'event', 'knopka', 'click');
});
});
Переходим в меню: "Настройки" > "Контроль доступа"
Переходим на вкладку "Политики доступа"
Копируем "Content Editor", редактируем и называем новую политику "Менеджер"
Устанавливаем разрешения:
Установить галку "Изменять права доступа (chmod) к каталогам"
Установить галку "Создавать каталоги в файловой системе"
Установить галку "Получать список подкаталогов для каталога в файловой системе"
Установить галку "Переименовывать каталоги в файловой системе"
Установить галку "Создавать файлы"
Установить галку "Смотреть список файлов в определенном каталоге"
@Tolala9
Tolala9 / migx-sample.js
Created May 10, 2017 08:15 — forked from agragregra/migx-sample.js
MIGX Sample
Tabs:
[
{"caption":"Tab Title", "fields": [
{"field":"title","caption":"Name"},
{"field":"description","caption":"Description","inputTVtype":"textarea"},
{"field":"imageTV","caption":"Photo","inputTV":"imageTV"}
]}
]
Table:
@Tolala9
Tolala9 / SVG to inline
Created March 24, 2017 09:29
Replace all SVG images with inline SVG
/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
@Tolala9
Tolala9 / animate_number
Created March 20, 2017 15:27
jQuery Number Animation with Blur + Number Separator
//Html
<div class="container">
<div class="row">
<div class="col-xs-6">
<div class="lines" data-count="20000"></div>
</div>
<div class="col-xs-6">
<div class="lines" data-count="160000"></div>
</div>