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
| const { __ } = wp.i18n; | |
| const { registerBlockType } = wp.blocks; | |
| const el = wp.element.createElement; | |
| registerBlockType( 'hiRoy/serverSide', { | |
| title: __( 'Server Side Block', 'text-domain' ), | |
| icon: 'networking', | |
| category: 'common', | |
| attributes: { |
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
| @mixin striped-bg($bg-color: #ccc, $darken-amount: 5%, $stripe-color: darken($bg-color, $darken-amount)) | |
| background-color: $bg-color | |
| @include background-image(linear-gradient(-45deg, $stripe-color 25%, transparent 25%, transparent 50%, $stripe-color 50%, $stripe-color 75%, transparent 75%, transparent)) | |
| background-size: 40px 40px | |
| .warning | |
| font-family: sans-serif | |
| font-weight: bold | |
| color: #333 | |
| text-align: center |
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
| /** | |
| * Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers | |
| * @author ShirtlessKirk. Copyright (c) 2012. | |
| * @license WTFPL (http://www.wtfpl.net/txt/copying) | |
| */ | |
| var luhnChk = (function (arr) { | |
| return function (ccNum) { | |
| var | |
| len = ccNum.length, | |
| bit = 1, |
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
| @mixin category-colors($after: false) | |
| @each $category in $categories | |
| @if $after == true | |
| .cat-#{nth($category, 1)}:after | |
| background-color: nth($category, 2) | |
| @else | |
| .cat-#{nth($category, 1)} | |
| background-color: nth($category, 2) |