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
| flex-flow:column-reverse wrap-reverse; | |
| justify-content:center; | |
| align-content:space-between; |
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
| .column-row{ | |
| @include flex-row(); | |
| min-height:30px; | |
| .column{ | |
| @include flex( 1 ); | |
| margin-right:30px; | |
| &:last-of-type{ | |
| margin-right:0; | |
| } |
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
| ## Product configurator | |
| Build entirely in JS. Products + Orders are queried and created using the REST api or | |
| custom ajax-functions. We've used this module on two seperate sites: | |
| * http://www.rondfoto.nl/bestellen/bestelmodule | |
| * http://woodsnap.nl/bestellen/ | |
| ## Vinden & Verbinden profiles | |
| Profile editting with instant saving and field-validation. Field-groups are created with Advanced Custom Fields, |
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
| var _value = 'whatever you want to copy'; | |
| $( 'body' ).append("<input type='text' id='temp' style='position:absolute;opacity:0;'>"); | |
| $( '#temp' ).val( _value ).select(); | |
| document.execCommand( 'copy' ); | |
| $( '#temp' ).remove(); |
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
| /* | |
| * Mixins: | |
| */ | |
| //make flex rows a bit easier: | |
| @mixin flex-row( $equalize:stretch ){ | |
| @include display(flex); | |
| @include flex-direction(row); | |
| @include align-items($equalize); | |
| } |
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
| .screen-reader-text { | |
| clip: rect(1px, 1px, 1px, 1px); | |
| position: absolute !important; | |
| height: 1px; | |
| width: 1px; | |
| overflow: hidden; | |
| &:focus{ | |
| background-color: #f1f1f1; | |
| border-radius: 3px; |
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
| $args = array( | |
| 'post_type' => 'portfolio', | |
| 'posts_per_page' => 6, | |
| 'sites' => array( | |
| 'sites__not_in' => array( 1 ) | |
| ), | |
| 'orderby' => 'date', | |
| 'order' => 'DESC' | |
| ); |
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
| add_action( 'woocommerce_add_to_cart', 'check_total_weight' ); | |
| function check_total_weight( $itemkey, $product_id, $quantity ){ | |
| $product = wc_get_product( $product_id ); | |
| $weight = $product->get_weight() * $quantity; | |
| $cart_weight = WC()->cart->cart_contents_weight; | |
| if( $weight + $cart_weight > {TOTAL} ){ |
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
| var inputs = {}; | |
| jQuery('.gfield input, .gfield textarea' ).each( function(){ | |
| var _id = jQuery( this ).attr('id'); | |
| var _string = jQuery( this ).val(); | |
| inputs[_id] = _string; |
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
| #!/bin/sh | |
| cd ../your/staging/location | |
| echo -e "\033[32m Downloading WordPress... " | |
| echo -e "\033[0m" | |
| printf "De url van deze site is: your/staging/location/..." | |
| read NEWDIR | |
| mkdir $NEWDIR |