Skip to content

Instantly share code, notes, and snippets.

View hertsch's full-sized avatar

Ralf Hertsch hertsch

View GitHub Profile
@hertsch
hertsch / kitframework_list_routing_patterns.php
Last active April 26, 2017 08:28
Silex: get a list of all routing URI patterns
// get all routing objects
$patterns = $app['routes']->getIterator(); // seems to be changed in Silex 1.1.0 !!! ... ->current()->all();
// walk through the routing objects
foreach ($patterns as $pattern) {
$match = $pattern->getPattern();
echo "$match<br />";
}
@hertsch
hertsch / wb_fix_logout_redirect
Last active December 15, 2015 20:19
WebsiteBaker/Lepton: if an intro page and frontend login/logout is used at a logout the user will be redirected to the info page 'Website Under Construction'. To redirect the user to the intro page you must fix a problem in /account/logout.php as described below.
// in /account/logout.php replace line 50-57 with the following code:
if(INTRO_PAGE) {
// header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
header('Location: '.WB_URL.PAGES_DIRECTORY.'/intro.php');
} else {
header('Location: '.WB_URL.'/index.php');
}
@hertsch
hertsch / kitcommand_help_de.md
Last active December 16, 2015 20:39
General help file for kitCommands in german language

Hilfe zu kitCommands

Diese Hilfedatei ist noch nicht ins Deutsche übersetzt, bitte verwenden Sie die englischsprachige Hilfe
@hertsch
hertsch / kitcommand_sitemodified_en
Last active December 16, 2015 21:09
kitCommand: Show the date and time of the last modification of the website
<h2>~~ sitemodified ~~</h2>
<p>This kitCommand show you the date and time the website was last modified.</p>
<p>Just place <code>~~ sitemodified ~~</code> anywhere at a WYSIWYG section or within your template.</p>
<p><i>For this kitCommand are no additional parameters available.</i></p>
<h2>~~ sitemodified ~~</h2>
<p>Dieses kitCommand zeigt Ihnen Datum und Uhrzeit der letzten Veränderung der Website an.</p>
<p>Platzieren Sie <code>~~ sitemodified ~~</code> in einem beliebigen WYSIWYG Abschnitt oder in Ihrem Template (Designvorlage) an der gewünschten Stelle.</p>
<p><i>Für dieses kitCommand stehen keine ergänzenden Parameter zur Verfügung.</i></p>
@hertsch
hertsch / kitcommand_facebookgallery_en.md
Last active December 17, 2015 08:39
Helpfile for the kitCommand FacebookGallery
@hertsch
hertsch / ral_standard.csv
Last active December 19, 2015 01:29 — forked from lunohodov/ral_classic.csv
RAL Standard table
RAL RGB HEX DE EN FR ES IT NL
RAL 1000 190-189-127 #BEBD7F Grünbeige Green beige Beige vert Beige verdoso Beige verdastro Groenbeige
RAL 1001 194-176-120 #C2B078 Beige Beige Beige Beige Beige Beige
RAL 1002 198-166-100 #C6A664 Sandgelb Sand yellow Jaune sable Amarillo arena Giallo sabbia Zandgeel
RAL 1003 229-190-001 #E5BE01 Signalgelb Signal yellow Jaune de sécurité Amarillo señales Giallo segnale Signaalgeel
RAL 1004 205-164-052 #CDA434 Goldgelb Golden yellow Jaune or Amarillo oro Giallo oro Goudgeel
RAL 1005 169-131-007 #A98307 Honiggelb Honey yellow Jaune miel Amarillo miel Giallo miele Honinggeel
RAL 1006 228-160-016 #E4A010 Maisgelb Maize yellow Jaune maïs Amarillo maiz Giallo polenta Maisgeel
RAL 1007 220-156-000 #DC9D00 Narzissengelb Daffodil yellow Jaune narcisse Amarillo narciso Giallo narciso Narcissengeel
RAL 1011 138-102-066 #8A6642 Braunbeige Brown beige Beige brun Beige pardo Beige marrone Bruinbeige

~~ event ~~

Introduction

For a general help to the kitCommands, the usage and the general available parameters please refer the kitCommand help.

Parameters

@hertsch
hertsch / kitcommand_loremipsum_en.md
Last active December 21, 2015 13:49
Help file for the kitCommand ~~ LoremIpsum ~~

The LoremIpsum kitCommand help you generate blind text and placeholders for testing purposes.

The usage is simple, just use

~~ LoremIpsum ~~

to generate three paragraphs with a lorem ipsum text.

~~ LoremIpsum paragraph[5] ~~