I hereby claim:
- I am johnregan3 on github.
- I am johnregan3 (https://keybase.io/johnregan3) on keybase.
- I have a public key whose fingerprint is BF11 701D 8DF1 68F1 8796 28ED A894 0B45 6721 8112
To claim this, I am signing this object:
<?php | |
/** | |
* Add Theme Support for wide and full-width images. | |
* | |
* Add this to your theme's functions.php, or wherever else | |
* you are adding your add_theme_support() functions. | |
* | |
* @action after_setup_theme | |
*/ | |
function jr3_theme_setup() { |
<?php | |
/** | |
* Add custom Genesis favicon | |
* | |
* Dude, replace the default Genesis favicon so you don't look like a n00b. | |
* Create your custom favicon.ico and place it in your child theme's directory. | |
* Add this code to your child theme's functions.php | |
* | |
* Images can be converted to the .ico format here: http://www.favicon-generator.org/ |
<?php | |
/** | |
* Allow custom actions in our AMP template. | |
*/ | |
function jr3_amp_add_custom_actions() { | |
add_filter( 'the_content', 'jr3_amp_add_featured_image' ); | |
} | |
add_action( 'pre_amp_render_post', 'jr3_amp_add_custom_actions' ); | |
/** |
I hereby claim:
To claim this, I am signing this object:
server { | |
listen 80; | |
listen 443 ssl; | |
server_name local-www.network.rogersradio.ca local-www.kiss925.com local-www.sonic1029.com local-www.jackfm.com; | |
root /srv/www/musicradio/build/webroot; | |
include /etc/nginx/nginx-wp-common.conf; | |
} |
<?php | |
/** | |
* Add a custom AMP template file. | |
* | |
* Registers templates in a templates subdirectory by post type slug. | |
* (e.g., "./templates/book.php") | |
* | |
* @filter amp_post_template_file | |
* | |
* @param string $file The file name input. |
<?php | |
/** | |
* Add custom AMP template files. | |
* | |
* Registers templates in a /templates subdirectory. | |
* | |
* @filter amp_post_template_file | |
* | |
* @param string $file The file name input. | |
* @param string $type The type of template. |
<?php | |
/** | |
* Show an Admin Notice if the AMP plugin is not found. | |
* | |
* This is a basic implementation. Naturally, you'll want | |
* to add ajax support so that once this is dismissed, it goes | |
* away permanently. Also, you may want to limit the admin | |
* pages this displays to prevent annoying your users. | |
* | |
* @return bool |
<?php | |
/** | |
* Register the amp-sidebar and amp-accordion component scripts with WP AMP. | |
* | |
* This goes in your amp.php | |
*/ | |
function jr3_amp_component_scripts( $data ) { | |
$data['amp_component_scripts']['amp-sidebar'] = 'https://cdn.ampproject.org/v0/amp-sidebar-0.1.js'; | |
$data['amp_component_scripts']['amp-accordion'] = 'https://cdn.ampproject.org/v0/amp-accordion-0.1.js'; |