for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
// Used by some children
require_once( AMP__ROOT__ . '/includes/utils/class-amp-html-utils.php' );
abstract class AMP_Base_Embed_Handler {
protected $DEFAULT_WIDTH = 600;
protected $DEFAULT_HEIGHT = 480;
protected $args = array();
protected $did_convert_elements = false;
abstract function register_embed();
abstract function unregister_embed();
function __construct( $args = array() ) {
$this->args = wp_parse_args( $args, array(
'width' => $this->DEFAULT_WIDTH,
'height' => $this->DEFAULT_HEIGHT,
) );
}
public function get_scripts() {
return array();