Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| <?php | |
| /** | |
| * This is free and unencumbered software released into the public domain. | |
| * | |
| * Anyone is free to copy, modify, publish, use, compile, sell, or | |
| * distribute this software, either in source code form or as a compiled | |
| * binary, for any purpose, commercial or non-commercial, and by any | |
| * means. | |
| * |
| $sprites: sprite-map("sprites/*.png"); | |
| $sprites-retina: sprite-map("sprites-retina/*.png"); | |
| @mixin sprite-background($name) { | |
| background-image: sprite-url($sprites); | |
| background-position: sprite-position($sprites, $name); | |
| background-repeat: no-repeat; | |
| display: block; | |
| height: image-height(sprite-file($sprites, $name)); | |
| width: image-width(sprite-file($sprites, $name)); |
| // you can pass it only the following direction keywords: | |
| // up, down, left, right | |
| // | |
| // HOW TO USE | |
| // | |
| // $direction: up; | |
| // $color: #c00; | |
| // $size: 20px; | |
| // .class { | |
| // $include arrow($direction, $color, $size); |
| <?php | |
| $k3r_env = getenv('environment'); | |
| if ($k3r_env === 'kimber') { | |
| define('PERCH_LICENSE_KEY', ''); | |
| define("PERCH_DB_USERNAME", ''); | |
| define("PERCH_DB_PASSWORD", ''); | |
| define("PERCH_DB_SERVER", "localhost"); | |
| define("PERCH_DB_DATABASE", "harewood"); |
| <?php | |
| /** | |
| * A field type for Vimeo videos | |
| * | |
| * @package default | |
| * @author Bryan Swift | |
| */ | |
| class PerchFieldType_vimeo extends PerchAPI_FieldType | |
| { |
| <?php | |
| /** | |
| * Checklist Field Type. | |
| * | |
| * File: PERCH_PATH/addons/fieldtypes/checklist/checklist.class.php | |
| * Usage: <perch:content id="features" type="checklist" label="Features" options="Feature 1, Feature 2, Feature 3" /> | |
| * @author Jamie York | |
| **/ | |
| class PerchFieldType_checklist extends PerchAPI_FieldType | |
| { |
| <?php | |
| /** | |
| * Composite Slug Field Type. | |
| * | |
| * File: PERCH_PATH/addons/fieldtypes/compslug/compslug.class.php | |
| * Usage: <perch:content id="slug" type="compslug" for="lastname firstname" suppress="true" /> | |
| * @author Jamie York | |
| **/ | |
| class PerchFieldType_compslug extends PerchFieldType | |
| { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.