Skip to content

Instantly share code, notes, and snippets.

@Christian-Roth
Christian-Roth / stars-block.js
Created Jan 30, 2018 — forked from pento/stars-block.js
Gutenberg Stars Block
View stars-block.js
( 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 Oct 13, 2017 — forked from elimn/tribe_remove_single_calendar_links.php
MT | TEC | Remove the iCal and Google cal links from the single event page
View tribe_remove_single_calendar_links.php