Giter Club home page Giter Club logo

dt-demo-importer's Introduction

DT Demo Importer for WordPress themes

A One Click Demo Installer Class for WordPress Themes. This class developed for creating a quick installer for wordpress.

Quick Usage

Place this code in functions.php

/**
 * Initialize DT Importer
 */
$settings      = array(
  'menu_parent' => 'tools.php',
  'menu_title'  => __('Demo Importer', 'dt-importer'),
  'menu_type'   => 'add_submenu_page',
  'menu_slug'   => 'dt_demo_importer',
);
$options        = array(
    'demo-1' => array(
      'title'         => __('Demo 1', 'dt-importer'),
      'preview_url'   => 'https://www.google.com/',
      'front_page'    => 'Home',
      'blog_page'     => 'Blog',
      'menus'         => array(
            'primary'   => 'Primary', // Menu Location and Title
            'secondary' => 'Secondary',
        )
    ),
    'demo-2' => array(
      'title'         => __('Demo 2', 'dt-importer'),
      'preview_url'   => 'https://www.yahoo.com/',
      'front_page'    => 'Home',
      'blog_page'     => 'Blog',
      'menus'         => array(
            'primary'   => 'Primary',
            'secondary' => 'Secondary',
        )
    ),
    'demo-3' => array(
      'title'         => __('Demo 3', 'dt-importer'),
      'preview_url'   => 'https://www.google.com/',
      'front_page'    => 'Home',
      'blog_page'     => 'Blog',
      'menus'         => array(
            'primary'   => 'Primary',
            'secondary' => 'Secondary',
        )
    ),
);
DT_Demo_Importer::instance( $settings, $options );

Create Folder by id in dt_importer/demos/ by same id

demos
  - demo-1
    - content.xml // WP Exported Data
    - options.txt // Codestar Exported Options data
    - screenshot.php // Preview Image
  - demo-2
    - content.xml // WP Exported Data
    - options.txt // Codestart Exported Options data
    - screenshot.php // Preview Image
  - demo-3
    - content.xml // WP Exported Data
    - options.txt // Codestar Exported Options data
    - screenshot.php // Preview Image

Now go to the Tools >> Demo Importer :)

Few screenshots

Dashboard

Under Development

  • This class only import codestar settings only and planned to support others framework (Like: redux, option tree)
  • Planned to support widget import.

create content.xml and options.txt file

You can create content.xml by exporting your content from the WordPress dashboard (Dashboard > Tools > Export) and you can options string from backup field on the codestar option panel.

Credits

Licence

GPL V2+

dt-demo-importer's People

Contributors

aminulbd avatar kingrayhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.