render( array( 'url' => $url ) ); } /** * Gets the rendered embed markup. * * @param array $args Embed rendering arguments. * @return string HTML markup for rendered embed. */ 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-pinterest', array( 'width' => $this->args['width'], 'height' => $this->args['height'], 'data-do' => 'embedPin', 'data-url' => $args['url'], ) ); } }