View comments.php
<?php
/**
* The template for displaying comments
*
* The area of the page that contains both current comments
* and the comment form.
*
* @package Twenty_Fifteen_AMP
*/
View amp.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View amp-jetpack-hacks.php
<?php
/**
* Plugin Name: Jetpack Hacks for AMP
* Description: Temporary workarounds to get Jetpack features to play nice with AMP theme support.
* Plugin URI: https://gist.github.com/westonruter/034e15dd7bfd011a9c73c96df86aa291
* Author: Weston Ruter, XWP
* Author URI: https://make.xwp.co
*
* @package AMP_Jetpack_Hacks
*/
View remember-me.php
<?php
/**
* Plugin Name: Remember Me
* Description: Play song from Coco when checking the Remember Me checkbox on the login screen.
* Plugin URI: https://gist.github.com/westonruter/86a191a898015f26e603d6594cc282d2
* Author: Weston Ruter
* Author URI: https://weston.ruter.net
*/
add_action( 'login_footer', function() {
View test-object-cache-availability-in-output-buffer-callback-at-shutdown.php
<?php
/**
* Plugin Name: Test $wp_object_cache availability in output buffer callback in shutdown.
* Author: Weston Ruter, XWP
* Description: Add ?erasable=false to the URL to try calling ob_start() with its erasable=false.
*/
if ( ! isset( $_SERVER['REQUEST_URI'] ) || false !== strpos( $_SERVER['REQUEST_URI'], '/wp-admin/' ) ) {
return;
}
View amp-content-styles-workaround.php
<?php
/**
* Plugin Name: AMP Content Styles Workaround
* Description: Temporary measure for dealing with external stylesheets and style elements in content.
* Author: Weston Ruter, XWP
*/
add_action( 'amp_init', function() {
// Version compare because this should be addressed by 1.0.
View add-notice-block-edit.js
wp.hooks.addFilter(
'blocks.BlockEdit',
'example/add-notice',
function( BlockEdit ) {
var NewBlockEdit = function( props ) {
return [
wp.element.createElement(
BlockEdit,
_.extend( {}, props, { key: 'example-original-edit' } )
)
View twentyfifteen-css-classes.txt
150 .widget
112 .widecolumn
74 .comment-content
70 .entry-title
66 .entry-content
62 .mu_register
62 .entry-summary
60 .page-content
54 .pagination
52 .social-navigation
View amp-invalid.php
<?php
/**
* Plugin Name: AMP Invalid
* Description: Do stuff that is invalid in AMP.
*/
namespace AMP_Invalid;
add_action( 'bad_amp_footer', function() {
?>
View amp-attributes-with-value-url.txt
action
action-xhr
background-audio
bookend-config-src
cite
config
content
data-dismiss-href
data-href
data-iframe-src