Skip to content

Instantly share code, notes, and snippets.

View Thiousi's full-sized avatar

Mathieu Etienne Thiousi

  • Paris, France
View GitHub Profile
@brendandawes
brendandawes / ifttt-instagram-to-blog.php
Created July 28, 2016 08:22
IFTTT Make channel action to create blog post from new post on Instagram
<?php
/*
Action to create a blog post entry in my Kirby powered site via an IFTTT recipe. In IFTTT I have a an Instagram trigger that calls
this script, sending a POST using the Maake channel with this body: params={{EmbedCode}}&caption=<<<{{CaptionNoTag}}>>>
*/
if((isset($_POST['params']))){
$subject = urldecode($_POST['caption']);
@koop-bremen
koop-bremen / Panel Text
Last active August 21, 2016 10:44 — forked from tobiasfabian/Panel Text
kirbytext: email with subject and body with linebreaks (\n)
(email: name@domain.com subject: reserve tickets body: Hi!\n I need the following tickets:\n\n\nBest,\n)
@samnabi
samnabi / showIndex.php
Created June 7, 2015 10:39
showIndex for Kirby
<?php
/**
Translates Kirby's index() function to a nested list by building a string of markdown text then converting it to HTML. Useful for navigation menus of unknown depth.
@param must be an index() object
@return string of HTML
*/
function showIndex($pages) {
// Initialize output string
@mbecher
mbecher / figure.php
Last active August 1, 2019 11:33
getkirby tags/figure.php with srcset and thumbnail creation
<?php
kirbytext::$tags['figure'] = array(
'attr' => array(
'width',
'height',
'alt',
'text',
'title',
'class',
@fanningert
fanningert / tags_code.php
Last active August 7, 2016 18:00
Code KirbyText tag for Kirby CMS
<?php
/**
* This KirbyText is for display the code of an file as a code block.
*
* Install
* =======
* Move this file to /site/tags/ and rename it code.php
*
* @author: Thomas Fanninger <thomas@fanninger.at>