get_player_settings(); $privacy_settings = $this->get_privacy_settings(); $this->embed_url = aiovg_get_player_page_url( $this->post_id, $this->args ); // Enqueue dependencies if ( ! empty( $privacy_settings['show_consent'] ) ) { wp_enqueue_script( AIOVG_PLUGIN_SLUG . '-player' ); } // Output $html = sprintf( '
', ( ! empty( $player_settings['width'] ) ? (int) $player_settings['width'] . 'px' : '100%' ) ); $html .= sprintf( '
', (float) $player_settings['ratio'] ); $html .= sprintf( '', esc_attr( $this->embed_url ), esc_attr( $this->post_title ) ); $html .= '
'; $html .= '
'; return $html; } }