A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| <?php | |
| // Get the repeater field | |
| $repeater = get_field( 'repeater_field_name' ); | |
| // Get a random rows. Change the second parameter in array_rand() to how many rows you want. | |
| $random_rows = array_rand( $repeater, 2 ); | |
| // Loop through the random rows if more than one is returned | |
| if( is_array( $random_rows ) ){ |
| <div class="testimonials__content"> | |
| <?php | |
| $repeater = get_field( 'testimonial','options' ); | |
| $rand = rand(0, (count($repeater) - 1)); | |
| echo $repeater[$rand]['quote']; | |
| echo $repeater[$rand]['citation']; | |
| ?> | |
| </div> |
| // Этот скрипт должен быть размещён в <head> над всеми внешними объявлениями стилей (link[rel=stylesheet]) | |
| function loadFont(fontName, woffUrl, woff2Url) { | |
| // 0. Многие неподдерживаемые браузеры должны останавливать работу тут. | |
| var nua = navigator.userAgent; | |
| var noSupport = !window.addEventListener // IE8 и ниже | |
| || (nua.match(/(Android (2|3|4.0|4.1|4.2|4.3))|(Opera (Mini|Mobi))/) && !nua.match(/Chrome/)) // Android Stock Browser до 4.4 и Opera Mini | |
| if (noSupport) { | |
| return; | |
| } |
| // Выполнение скрипта при изменении ширины | |
| $('document').ready(function() { | |
| // Начальное состояние | |
| my_func(); | |
| $(window).resize(function() { | |
| /** | |
| * При изменении ширины окна |
| jQuery(document).ready(function($){ | |
| var woocommerce_form = $( '.woocommerce-cart form' ); | |
| woocommerce_form.on('change', '.qty', function(){ | |
| form = $(this).closest('form'); | |
| // emulates button Update cart click | |
| $("<input type='hidden' name='update_cart' id='update_cart' value='1'>").appendTo(form); | |
| // get the form data before disable button... | |
| formData = form.serialize(); |
| // WooCommerce Rename Checkout Fields | |
| add_filter( 'woocommerce_checkout_fields' , 'custom_rename_wc_checkout_fields' ); | |
| // Change placeholder and label text | |
| function custom_rename_wc_checkout_fields( $fields ) { | |
| $fields['billing']['billing_first_name']['placeholder'] = 'Wonka'; | |
| $fields['billing']['billing_first_name']['label'] = 'Your Awesome First Name'; | |
| return $fields; | |
| } |
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync'); | |
| var concat = require('gulp-concat'); | |
| var rename = require('gulp-rename'); | |
| var uglify = require('gulp-uglify'); | |
| var minifyCSS = require('gulp-minify-css'); | |
| var htmlreplace = require('gulp-html-replace'); | |
| var clean = require('gulp-clean'); | |
| var imagemin = require('gulp-imagemin'); | |
| var cache = require('gulp-cache'); |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-size: 100%; |