這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Swift Demo Import

描述

Swift Demo Import imports the full demo with just one click. It is specially developed to add a demo importer functionality in the theme developed by Mystical Themes but it can also be used by any other themes as well.

You just need to define the array that includes the location of the demo zip files and other informations. The other information includes name of the demo, preview image, theme option array, menu array, home page and blog page slug(if any), required plugins array and the tags that categorizes the theme.

The demo zip should contain the XML file, customizer (.dat) file, widget (.wie) file, theme option (.json), revolutions slider zip. It is not necessary to add all these files in the demo zip. You can skip the files if your demo does not need it.

Features

  • Reset website(Optional)
  • Install recommended and required plugins automatically
  • Imports Revolution slider
  • Imports fully functional demo

安裝

The easy way to install the plugin is via WordPress.org plugin directory.

  1. Go to WordPress Dashboard > Plugins > Add New
  2. Search for “Swift Demo Import” and install the plugin.
  3. Activate Plugin from “Plugins” menu in WordPress.

常見問題

How to predefine demo imports?

An answer to that question.

<?php
function sdi_import_files_array(){
    return array(
        'demo-slug1' => array( // demo-slug should match the 'external_url' zip file name
            'name' => 'Demo Import One',
            'type' => 'pro', // the value should be either 'free' or 'pro' - default is 'free'
            'buy_url' => 'http://www.your_domain.com/theme-name/', // optional - only if the 'type' is set to 'pro'
            'external_url' => 'http://www.your_domain.com/import/demo-slug1.zip', // zip file should contain content.xml, customizer.dat, widget.wie, option_name1.json, option_name2.json, revslider.zip(exported slider content from revolution slider) - you can skip any of the files if your demo does not need it
            'image' => 'http://www.your_domain.com/import/screenshot.png',
            'preview_url' => 'http://www.your_domain.com/demo-slug',
            'options_array' => array('option_name1','option_name2'), // option_name1.json, option_name2.json file should be included in the zip file
            'menu_array' => array( // list of menus
                'primary' => 'Primary Menu',
                'secondary' => 'Secondary Menu'
            ),
            'plugins' => array( // these plugins will be installed automatically before demo import
                'simple-floating-menu' => array(
                    'name' => 'Simple Floating Menu', // name of the plugin
                    'source' => 'wordpress', // source is either 'wordpress' for plugins in WordPress directory or 'remote' for external stored 
                    'file_path' => 'simple-floating-menu/simple-floating-menu.php' // path of the main file of the plugin
                ),
                'contact-form-7' => array(
                    'name' => 'Contact Form 7',
                    'source' => 'wordpress',
                    'file_path' => 'contact-form-7/wp-contact-form-7.php'
                )
                'revslider' => array(
                    'name' => 'Slider Revolution',
                    'source' => 'remote',
                    'file_path' => 'revslider/revslider.php',
                    'location' => 'http://www.your_domain.com/import/revslider.zip' // if source is 'remote', add the location of the plugin zip
                )
            ),
            'home_slug' => 'home',
            'blog_slug' => 'blog',
            'tags' => array( // Optional - add filter tab on the header to sort the demo by their type
                'magazine' => 'Magazine',
                'business' => 'Business',
                'blog' => 'Blog'
            )
        ),
        'demo-slug2' => array(
            'name' => 'Demo Import Two',
            'external_url' => 'http://www.your_domain.com/import/demo-slug2.zip',
            'image' => 'http://www.your_domain.com/import/screenshot.png',
            'preview_url' => 'http://www.your_domain.com/demo-slug2',
            'menu_array' => array(
                'primary' => 'Primary Menu'
            ),
            'home_slug' => 'home',
            'blog_slug' => 'blog'
        )
    );
}

add_filter( 'sdi_import_files', 'sdi_import_files_array' );
?>

評價

There are no reviews for this plugin.

貢獻者及開發者

“Swift Demo Import” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Swift Demo Import 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0.6

5 June, 2022
* Fixed SVG not importing issue

2.0.5

25 Jan, 2022
* Meta Store Demos Added

2.0.3

  • Demo importing causing error on long time fixed

2.0.2

  • Added Support for Rezoto Theme

2.0.1

  • Minor Changes

2.0.0

  • Added Support for Resoto and Meta Store Demos

1.0.4

  • Fixed the minor js error
  • Fixed the compatibility issue with elementor

1.0.3

  • Added support for svg upload

1.0.2

  • Added Elementor Custom Fonts & Color Import options

1.0.1

  • Fixed menu import issue

1.0.0

  • Initial Release