I hereby claim:
- I am acerus on github.
- I am acerus (https://keybase.io/acerus) on keybase.
- I have a public key ASBuLEcUtdg5pC3H4fJxOnKZ3FHzpeRjVnKqIqcX8NVeogo
To claim this, I am signing this object:
| // parallax | |
| import lax from 'lax.js'; | |
| const PARALLAX_ELEMENTS = document.getElementsByClassName('lax'); | |
| document.addEventListener('DOMContentLoaded', function() { | |
| if (0 < PARALLAX_ELEMENTS.length) { | |
| lax.init(); | |
| // Add a driver that we use to control our animations |
| <?php | |
| /** | |
| * Services class file. | |
| * | |
| * @package WTF | |
| */ | |
| namespace WTF; | |
| /** |
| // Adds app redirect rules | |
| add_action( 'wp_head', 'download' ); | |
| function download() { ?> | |
| <script type="text/javascript"> | |
| // redirect for iPhone / iPad: | |
| if (( navigator.userAgent.match( /iPhone|iPad|iPod/i ) )) { |
| <?php | |
| //Querying all posts in the argument | |
| $args = [ | |
| 'post_type' => 'post', | |
| 'order' => 'DESC', | |
| 'category_name' => 'news', | |
| 'posts_per_page' => 999, | |
| 'post_status' => 'publish' | |
| ]; |
| function addElement( $tagName, $content, $class, $appendAfter, $returnNode = false ) { | |
| // create a new div element | |
| const newEl = document.createElement( $tagName ); | |
| if ( $class ) { | |
| newEl.className = $class; | |
| } | |
| // and give it some content | |
| if ( $tagName === 'img' ) { |
| location ~ ^/wp-content/uploads/(.*) { | |
| try_files $uri @live_uploads; | |
| } | |
| location @live_uploads { | |
| rewrite ^/wp-content/uploads/(.*)$ https://livesite.com/wp-content/uploads/$1 permanent; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| class MyTheme | |
| { | |
| private function actionAfterSetup($function) | |
| { | |
| add_action('after_setup_theme', function() use ($function) { | |
| $function(); | |
| }); | |
| } |
| <?php # -*- coding: utf-8 -*- | |
| /** | |
| * Plugin Name: Plugin Class Demo | |
| * Description: How I am using the base class in plugins. | |
| * Plugin URI: | |
| * Version: 2012.09.29 | |
| * Author: Thomas Scholz | |
| * Author URI: http://toscho.de | |
| * License: GPL | |
| * Text Domain: plugin_unique_name |