0 ? wp_get_attachment_image_url( $logo_id, 'full' ) : ''; $current_full_url = AgeWallet_Helpers::instance()->get_current_url(); $script_data = array( 'cookieName' => defined( 'AgeWallet_Gating_Manager::VERIFIED_COOKIE_NAME' ) ? AgeWallet_Gating_Manager::VERIFIED_COOKIE_NAME : 'agewallet_verified', 'isStrictMode' => true, 'currentPostId' => $post_id, // gate.js issues a POST; the query params on the URL are fine. 'apiEndpoint' => add_query_arg( array( 'url' => rawurlencode( $current_full_url ), 'id' => $post_id, ), rest_url( 'agewallet/v1/content' ) ), 'launchUrl' => AgeWallet_Helpers::instance()->get_launch_url(), 'redirectUrl' => $current_full_url, 'signedMetadata' => ( class_exists( 'AgeWallet_Metadata_Builder' ) && ( $aw_md_value = AgeWallet_Metadata_Builder::build() ) ) ? AgeWallet_Helpers::instance()->sign_metadata( $aw_md_value ) : '', 'bodyClassPending' => 'agewallet-strict-loading', ); $script_data = apply_filters( 'agewallet_gate_script_data', $script_data ); $body_classes = apply_filters( 'agewallet_skeleton_body_classes', 'aw-verify-body' ); // Register + enqueue everything the skeleton needs (gate.css, gate-skeleton.css, CSS vars, // Customizer CSS, gate.js + agewallet_gate_data, analytics vendor scripts). All of this // lands on our enqueue handles so the emissions below are pure wp_enqueue output — no raw //