Skip to content

Instantly share code, notes, and snippets.

View barking-horse's full-sized avatar
👋

Agence Appaloosa barking-horse

👋
View GitHub Profile
@rastandy
rastandy / solutions-json.php
Last active October 1, 2024 13:31
A Wordpress page template for obtaining a GeoJSON file from a list of posts with custom fields
<?php
/*
Template Name: Solutions JSON
*/
header( 'Content-Type: application/geo+json' . '; charset=' . get_option( 'blog_charset' ), true );
$more = 1;
echo '{"type": "FeatureCollection", "features": [';
@seebz
seebz / reusable-blocks-extended.php
Created September 27, 2021 13:49
Reusable Blocks Extended v0.7-patch
<?php
/**
* Plugin Name: Reusable Blocks Extended
* Plugin URI: https://jeanbaptisteaudras.com/en/2019/09/reusable-block-extended-a-cool-wordpress-plugin-to-extend-gutenberg-reusable-block-feature/
* Description: Extend Gutenberg Reusable Blocks feature with a complete admin panel, widgets, shortcodes and PHP functions.
* Version: 0.7-patch
* Author: audrasjb
* Author URI: https://jeanbaptisteaudras.com/en
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@kjtolsma
kjtolsma / _gf_toggle.scss
Last active September 25, 2023 14:58
CSS3 toggle switch for Gravity Forms
// Gravity Forms checkbox toggle
// @use .pt-toggle
$pt-toggle-height: 32px;
$pt-toggle-border: 4px;
$pt-toggle-radius: 60px;
$pt-color-grey: #ddd;
$pt-color-white: #fff;
$pt-color-primary: #5cb85c;