This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $colours: | |
| "red" #FF0000, | |
| "blue" #001EFF, | |
| "green" #00FF00, | |
| "yellow" #F6FF00; | |
| @each $i in $colours{ | |
| .#{nth($i, 1)}-background { | |
| background: nth($i, 2); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Better: use nonces, or less obvious query arguments. | |
| * http://glueckpress.com/?show_me=💩 | |
| */ | |
| if ( isset( $_GET['show_me'] ) && $_GET['show_me'] === '💩') { | |
| define( 'WP_DEBUG', true ); | |
| define( 'WP_DEBUG_DISPLAY', true ); | |
| } else { | |
| define( 'WP_DEBUG', false ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Real Favicons | |
| * Description: Adds favicons, touch icons and tiles for desktop browsers, iOS, Android and Windows. Generate HTML output via <a href="http://realfavicongenerator.net/">realfavicongenerator.net</a>. Store all generated images in sub-directory /img. | |
| * Version: 2014.01 | |
| * Author: Caspar Hübinger | |
| * Author URI: http://glueckpress.com/ | |
| * License: GNU General Public License v2 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Separate sticky posts from the main loop into their own query. | |
| * | |
| * Display a query of sticky posts anywhere in your templates | |
| * using a simple echo glckprss_sticky_posts(). | |
| * Query template output is stored in a transient for performance win, | |
| * updated any time the 'sticky_posts' option get updated. | |
| * | |
| * Require in theme’s functions.php like: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Custom Text Strings for Foo Plugin | |
| * Description: Modify default (not translated) language strings of a plugin. Beware: Might result in performance issues when applied to many strings. | |
| * Version: 2014.10 | |
| * Author: Caspar Hübinger | |
| * Author URI: http://glueckpress.com/ | |
| * License: GNU General Public License v2 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Vertically align team member content to clicked ui tabs. | |
| * | |
| * @link http://hmn.md/is/ | |
| * | |
| */ | |
| ( function( $ ) { | |
| $( '.ui-tabs-anchor', '.about-teamlist' ).on( 'click', function( e ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Trim Spam Comment Text | |
| * Description: Trims text of spam comments on <a href="/wp-admin/edit-comments.php?comment_status=spam">Admin→Comments→Spam</a> down to a maximum of 42 characters. Will save you a heck of annoyance when you need to skim through spam comments. Because many of them tend to have looong paragraphs of text you don’t really wanna deal with; they are spam, after all. | |
| * Version: 0.0.2 | |
| * Author: Caspar Hübinger | |
| * Author URI: https://glueckpress.com/ | |
| * Plugin URI: https://gist.github.com/glueckpress/7316116faa491e09d199/ | |
| * License: GNU General Public License v2 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Line-breaks suiting auto-p in WordPress: --> | |
| Paragraph with a footnote<a id="a1" href="#f1"><sup>[1]</sup></a> and more text afterwards. | |
| Another paragraph with another footnote<a id="a2" href="#f2"><sup>[2]</sup></a> and more text afterwards. | |
| <!-- At the end of all paragraphs: --> | |
| <footer class="footnotes"> | |
| <a id="f1" href="#a1">[1]</a> Footnote #1 here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ol { | |
| list-style-type: decimal; | |
| } | |
| ol ol { | |
| list-style-type: lower-roman; | |
| } |