Skip to content

Instantly share code, notes, and snippets.

Working from home

Christopher Boutillé starckio

Working from home
Block or report user

Report or block starckio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View blueprints--contact.yml
title: Contact
preset: page
icon: 📮
draft: Draft
listed: Published
starckio / controller-send.php
Last active Jan 18, 2018
Create a page with send image[s] from the frontend.
View controller-send.php
return function($site, $pages, $page) {
$alert = null;
$messages = null;
if(r::is('post') && get('submit')) {
if(!empty(get('subject'))) {
// lets tell the bot that everything is ok
starckio / blueprints--contact.yml
Last active Feb 8, 2019 — forked from bastianallgeier/controllers--contact.php
Plain contactform example for Kirby 2
View blueprints--contact.yml
title: Contact
pages: false
label: Page
type: text
width: 1/4
label: Title
type: text
starckio / cart.php
Last active Aug 20, 2017
The Params :)
View cart.php
<?php snippet('header') ?>
<?php if($count > 0): ?>
<main id="cart" class="main cf" role="main">
<?php if(param('checkout') == 'cheque'): ?>
<!-- Formulaire -->
starckio / header.php
Created May 4, 2017
Minimisation des fichiers CSS et affichage direct dans la balise <style></style>.
View header.php
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title><?php echo $site->title()->html() ?> | <?php echo $page->title()->html() ?></title>
<meta name="description" content="<?php echo $site->description()->html() ?>">
<meta name="keywords" content="<?php echo $site->keywords()->html() ?>">
starckio / menu.php
Last active Mar 18, 2017
Correct - Theme Roon
View menu.php
<nav role="navigation">
<ul class="menu cf">
<?php foreach($pages->visible() as $p): ?>
<a <?php e($p->isOpen(), ' class="active"') ?> href="<?php echo $p->url() ?>"><?php echo $p->title()->html() ?></a>
<?php endforeach ?>
<?php foreach($site->languages() as $language): ?>
View or.php
<meta name="description" content="<?php echo $page->description()->or($site->description()) ?>">
starckio / donate.js
Created Oct 20, 2016
Systeme de donation PayPal - For
View donate.js
function getEventTarget(e) {
e = e || window.event;
return || e.srcElement;
function removeClass (argument) {
for (var i = argument.length - 1; i >= 0; i--) {
argument[i].className = ""
View submodules
git submodule add
git submodule add
git submodule update --init --recursive
View blog.php
$blogs = $pages->findByUID('blog1', 'blog2');
$articles = $blogs->children()->sortBy('date', 'desc');
// if you want you can add a limit or pagination to that set of articles
// afterwards just use a regular foreach loop to go through them all.
You can’t perform that action at this time.