From 15f34801554c1377ea8ac90763c073cc39197c50 Mon Sep 17 00:00:00 2001 From: AmitPaul-akp <95674193+AmitPaul-akp@users.noreply.github.com> Date: Sun, 28 Jun 2026 02:15:20 +0600 Subject: [PATCH] NX Bar: show the actual Elementor design in the admin Design preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The admin Design preview (top PREVIEW pane + THEMES → Custom card) showed a static starter-theme thumbnail keyed on `elementor_bar_theme` instead of the Elementor-built design. The design was saved correctly and rendered fine on the frontend; only the admin preview was wrong. - PressBar: add `render_elementor_bar_preview()` (template_redirect, served at `?nx_bar_preview={id}&_wpnonce=`, nonce `nx_bar_preview` + cap `edit_notificationx`). It renders the same `get_builder_content_for_display()` as the live bar, but prints only Elementor stylesheets and no scripts / wp_head()/wp_footer() — so the preview shows the bar and nothing else (no admin toolbar, no chat widgets, no other notifications). - PostType: localize site `home` URL + `bar_preview_nonce` for the iframe URL. - Admin source (PressbarAdminPreview.jsx, NxBarPresets.jsx): render an