Novex Demo Importer

Aprašymas

Novex Demo Importer is a guided, AJAX-powered wizard for importing Elementor-based starter sites. It installs required plugins, fetches demo XML content, sets Elementor global kits, widgets, theme mods, and can optionally reset existing data. It supports both Pro (license-gated) and Free fallback flows with auto-detected XML/required plugins when the theme config is missing.

Key features:
* Three-step wizard: License (optional), Plugins, Import.
* AJAX actions for license activation/deactivation, plugin install/activate (wp.org + custom zip), and XML import (auto-installs WordPress Importer).
* Fallback config when the theme file is missing: auto-installs Elementor + ST Elementor Addons and pulls XML based on the current theme text domain (or a static Novex free XML).
* Automatic Elementor kit selection and “home” front-page assignment post-import.
* Optional reset (clears posts/menus/widgets/theme mods/Elementor kit option).
* Custom admin top-level menu with SVG icon and tabbed UI.

Configuration

Place a novex-demo-import-config.php in your theme to control the importer:
* xml_url (string): Demo XML URL.
* plugins (array): Required plugins (slug, name, source = wp.org/custom, zip_path for custom).
* Optional keys: options, theme_mods / theme_mods_url, widgets / widgets_url, elementor_global_kit.
* Hooks: novex_demo_importer_before_import(), novex_demo_importer_after_import().

If the config is missing, the importer auto-loads Elementor + ST Elementor Addons and picks an XML:
* For Novex themes or NX_THEMES_FREE: https://novexthemes.com/demo/free-theme-xml/{textdomain}/{textdomain}.xml
* Otherwise: https://novexthemes.com/demo/free-theme-xml/nt-real-estate-consultant/nt-real-estate-consultant.xml

License

If NX_THEMES_PRO is true, a license step appears. Licenses are activated against https://novexthemes.com using the included SLM API keys.

Diegimas

  1. Upload the plugin to /wp-content/plugins/novex-demo-importer and activate it.
  2. If you have a theme config file (novex-demo-import-config.php) in your theme, the plugin will use it. Otherwise, it falls back to a default XML and required plugins.
  3. Go to NT Demo Importer in the admin menu and follow the steps:
    • (Optional) Activate license if NX_THEMES_PRO is defined.
    • Install & activate required plugins.
    • Run the Import Demo (optionally reset existing data first).

Atsiliepimai

Įskiepis neturi atsiliepimų.

Programuotojai ir komandos nariai

“Novex Demo Importer” yra atviro kodo programa. Prie jos sukūrimo prisidėję žmonės surašyti toliau.

Autoriai

Pakeitimų istorija

0.0.1

  • Initial release with AJAX wizard, fallback import, license handling, and Elementor setup.