This file contains hidden or 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
//- ---------------------------------- | |
//- Usage: | |
//- include lorem | |
//- p | |
//- mixin lorem(25) | |
//- ---------------------------------- | |
//- new sentece after N words | |
- var colonEvery = 10 |
This file contains hidden or 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
@function strip-units($number) { | |
@return $number / ($number * 0 + 1); | |
} | |
// Mixins | |
//requires strip-units function | |
@mixin baseline-grid($baseline, $line-color-01: #ccc, $line-color-02: transparent) { | |
$browser-fz-base:16; |
This file contains hidden or 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: GF file upload to ACF image field | |
Plugin URI: https://gist.github.com/certainlyakey/8c19791b3133beb62d323bf060bf4270 | |
Description: Map Gravity forms file upload field to ACF image/file field so GF would upload the file and save id to DB instead of URL. | |
Version: 1.0.0 | |
Author: Kellen Mace | |
*/ | |
This file contains hidden or 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 | |
// We could use wpml-config.xml to turn off the sync, but it wouldn't support repeater-like fields | |
function themeprefix_dont_sync_specific_fields( $metas ) { | |
$unsync = array( | |
'office_country', | |
'uspage_liftups_repeater' | |
); | |
// Support for repeaters, flexible content fields etc. | |
if ( is_array( $metas ) && is_array( $unsync ) ) { |