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
/* custom-reset.css | 27.08.2018 | https://yurch-html.github.io/dist/custom-reset.html */ | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
html { | |
box-sizing: border-box; |
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 | |
/** | |
* Plugin Name: WPCF Redirect | |
*/ | |
add_filter( 'shortcode_atts_wpcf7', 'shortcode_atts_wpcf7' ); | |
add_filter( 'wpcf7_editor_panels', 'wpcf7_add_redirect_panels' ); | |
add_action( 'wpcf7_after_save', 'wpcf7_redirect_save_field' ); | |
add_action( 'wp_footer', 'wpcf7_redirect_enqueue_assets' ); |
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 | |
/** | |
* Plugin Name: Code Editor for Contact Form 7 | |
* Plugin URI: https://gist.github.com/campusboy87/2daad24e45116721759991549b626977 | |
* Author: Campusboy (wp-plus) | |
* Author URI: https://www.youtube.com/wp-plus | |
*/ | |
add_action( 'admin_print_styles-toplevel_page_wpcf7', function () { |
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 ********************************// | |
<?php | |
function filter_deals_example($data){ | |
$args = array( | |
'posts_per_page' => '5', | |
'post_type' => 'deals', | |
'tax_query' => array( | |
'relation' => 'AND' | |
) |
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
// awesome semantic comment | |
function better_comment($comment, $args, $depth) { | |
$GLOBALS['comment'] = $comment; | |
extract($args, EXTR_SKIP); | |
if ( 'article' == $args['style'] ) { | |
$tag = 'article'; | |
$add_below = 'comment'; | |
} else { |
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
//Для начала подключаем animate_plugin | |
//Далее подключаем плагин waypoints https://github.com/imakewebthings/waypoints | |
//Далее на странице подключаем "animate" стили в | |
<head> | |
<link rel="stylesheet" href="libs/animate-plugin/animate.min.css"> | |
</head> | |
//После в самом низу тега | |
<body> | |
<script type="text/javascript" src="libs/animate-plugin/animate-css.js"></script> | |
<script type="text/javascript" src="libs/animate-plugin/jquery.waypoints.min.js"></script> |
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
// Non-standard checkbox type: circle + birdie marker | |
// Подробнее - https://paulund.co.uk/how-to-style-a-checkbox-with-css | |
input[type="checkbox"] { | |
position: absolute; | |
opacity: 0; | |
+ label { | |
position: relative; | |
cursor: pointer; | |
padding: 0 0 0 22px; |
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
{ | |
"name": "bootstrap-4", | |
"version": "1.0.0", | |
"description": "Practical training with bootstrap 4", | |
"author": "sxidsvit", | |
"devDependencies": { | |
"bootstrap": "^4.1.0", | |
"browser-sync": "^2.23.7", | |
"gulp": "^3.9.1", | |
"gulp-autoprefixer": "^5.0.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
'use strict'; | |
var gulp = require('gulp'), | |
watch = require('gulp-watch'), | |
prefixer = require('gulp-autoprefixer'), | |
uglify = require('gulp-uglify'), | |
sass = require('gulp-sass'), | |
sourcemaps = require('gulp-sourcemaps'), | |
rigger = require('gulp-rigger'), | |
cssmin = require('gulp-minify-css'), |
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
// Источник: https://www.youtube.com/playlist?list=PLbr5YJBVly_5cIevS7GPZTDH-oNntnqXK (урок 17) + https://github.com/pit6262/landing-1 | |
// Документация по slick-слайдеру: http://kenwheeler.github.io/slick/ | |
======================= js-код =================== | |
$nav_tabs_slider = $('.nav-tab-list'); | |
settings = { | |
slidesToShow: 1, | |
prevArrow: '<button type="button" class="slick-prev"><i class="fa fa-chevron-left"></i></button>', |