Skip to content

Instantly share code, notes, and snippets.

@Christian-Roth
Christian-Roth / stars-block.js
Created January 30, 2018 14:53 — forked from pento/stars-block.js
Gutenberg Stars Block
( function( blocks, element ) {
var el = element.createElement;
function Stars( { stars } ) {
return el( 'div', { key: 'stars' },
'★'.repeat( stars ),
( ( stars * 2 ) % 2 ) ? '½' : '' );
}
blocks.registerBlockType( 'stars/stars-block', {
@Christian-Roth
Christian-Roth / tribe_remove_single_calendar_links.php
Created October 13, 2017 15:30 — forked from elimn/tribe_remove_single_calendar_links.php
MT | TEC | Remove the iCal and Google cal links from the single event page