Moved to the offical website: https://processwire.com/docs/tutorials/troubleshooting-guide/
View Preferences.sublime-settings
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
"._*" | |
], | |
"folder_exclude_patterns": |
View PHP: Browser language detect
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); // Outputs "fr", "en", "es", etc... |
View Gruntfile.js
var path = require('path'); | |
var fs = require('fs'); | |
module.exports = function (grunt) { | |
'use strict'; | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), |
View demo.js
/** | |
* A simple demo on how the new Intersection Observer API can be used to lazy load images. | |
* https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API | |
* | |
* Intersection Observer is available in most modern browsers and there's a decent polyfill, too: | |
* https://github.com/WICG/IntersectionObserver/tree/gh-pages/polyfill | |
*/ | |
let imageNodes = []; |
View split-processwire-array.php
<?php | |
// Thanks to netcarver > https://processwire.com/talk/topic/7803-implement-array-chunk/?p=75573 | |
$items = $pages->find('#whatever'); // Find your stuff | |
$parts = 3; // How many items should there be in 1 chunk? | |
$chunked = array_chunk($items->getArray(), $parts); | |
foreach ($chunked as $chunk) { | |
foreach ($chunk as $item) { |
View wcag-ids.md
- Perceivable
-
Text Alternatives
- Non-text Content
- WCAG 2.0 ID: text-equiv-all
- WCAG 2.1 ID: non-text-content
- Non-text Content
-
Time-based Media
- Audio-only and Video-only (Prerecorded)
- WCAG 2.0 ID: media-equiv-av-only-alt
- WCAG 2.1 ID: audio-only-and-video-only-prerecorded
- Audio-only and Video-only (Prerecorded)
-
View blueprints--contact.yml
title: Contact | |
pages: false | |
fields: | |
title: | |
label: Page | |
type: text | |
width: 1/4 | |
subtitle: | |
label: Title | |
type: text |
View Contract Killer 3.md
Contract Killer 3 deutsch
Letzte Änderung: 21.01.2013
Zwischen uns [Unser Firmenname] und Ihnen [Name des Kunden]
Zusammenfassung:
Wir tun immer unser Bestes um Ihre Bedürfnisse und Erwartungen zu erfüllen, jedoch ist es wichtig Dinge niederzuschreiben damit jeder weiß, was was ist, wer was und wann tuen soll und was passiert wenn etwas schief läuft. In diesem Vertrage werden Sie keine komplizierten, in Juristensprache verfassten Geschäftsbedingungen oder lange Passagen von unleserlichem Text finden.
View perferences.json
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".gitkeep", | |
"dump.rdb" | |
], |
OlderNewer