did_convert_elements ) { return array(); } return array( self::$script_slug => self::$script_src ); } public function oembed( $matches, $attr, $url, $rawattr ) { return $this->render( array( 'url' => $url ) ); } public function render( $args ) { $args = wp_parse_args( $args, array( 'url' => false, ) ); if ( empty( $args['url'] ) ) { return ''; } $this->did_convert_elements = true; return AMP_HTML_Utils::build_tag( 'amp-facebook', array( 'data-href' => $args['url'], 'layout' => 'responsive', 'width' => $this->args['width'], 'height' => $this->args['height'], ) ); } }