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 | |
| add_filter( 'woocommerce_debug_tools', function( $tools ) { | |
| $tools['wc_jilt_clear_persistent_carts'] = array( | |
| 'name' => __( 'Clear Persistent Carts from customers who signed up over 30 days ago.', 'jilt-for-woocommerce' ), | |
| 'button' => __( 'Clear', 'woocommerce-plugin-framework' ), | |
| 'desc' => __( 'This tool will clear the persistent cart for all registered customers who signed up over 30 days ago.', 'jilt-for-woocommerce' ), | |
| 'callback' => 'wc_jilt_clear_persistent_carts' | |
| ); | |
| return $tools; |
| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
Give developers more knowledge about how the classes behave in a non-relative sense: BEM + ITCSS = BEMIT
BEM:
| <?php | |
| $args = array( | |
| 'post_status'=>'publish', | |
| 'post_type'=>array(TribeEvents::POSTTYPE), | |
| 'posts_per_page'=>10, | |
| //order by startdate from newest to oldest | |
| 'meta_key'=>'_EventStartDate', | |
| 'orderby'=>'_EventStartDate', | |
| 'order'=>'DESC', |
| function fwp_pager_handler() { | |
| ?> | |
| <script> | |
| (function($) { | |
| $(document).on('facetwp-refresh', function() { | |
| if (! FWP.loaded) { | |
| $(document).on('click', '.pagination a', function(e) { | |
| e.preventDefault(); | |
| var matches = jQuery(this).attr('href').match(/\/page\/(\d+)/); | |
| if (null != matches) { |
| <?php | |
| function custom_facetwp_pager( $output, $params ) { | |
| $output = ''; | |
| $page = (int) $params['page']; | |
| $total_pages = (int) $params['total_pages']; | |
| // Only show pagination when > 1 page | |
| if ( 1 < $total_pages ) { |