Skip to content

Instantly share code, notes, and snippets.

View Rubsel's full-sized avatar
🍔

Ruben Zwiers Rubsel

🍔
View GitHub Profile
@mklasen
mklasen / social-media-buttons.php
Last active October 23, 2019 11:11
Snippet for displaying social media buttons without using external libraries
<?php
public function social_media_buttons() {
$output = '';
$enabled_platforms = array(
'googleplus',
'facebook',
'twitter',
@cristianstan
cristianstan / gutenberg-demo-content.html
Last active October 3, 2023 09:32
Gutenberg Demo Data for Testing Purposes - WordPress v5.0
<!-- wp:cover {"url":"https://cldup.com/Fz-ASbo2s3.jpg","align":"wide"} -->
<div class="wp-block-cover has-background-dim alignwide" style="background-image:url(https://cldup.com/Fz-ASbo2s3.jpg)"><p class="wp-block-cover-text">Of Mountains &amp; Printing Presses</p></div>
<!-- /wp:cover -->
<!-- wp:paragraph -->
<p>The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of <em>pieces of content</em>—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>What you are reading now is a <strong>text block</strong> the most basic block of all. The text block has its own controls to be moved freely around the post...</p>