advanced-import
Last commit date
admin
6 years ago
assets
6 years ago
includes
6 years ago
languages
6 years ago
LICENSE.txt
6 years ago
advanced-import.php
6 years ago
example.php
6 years ago
index.php
6 years ago
readme.txt
6 years ago
uninstall.php
6 years ago
example.php
80 lines
| 1 | <?php |
| 2 | function prefix_demo_import_lists(){ |
| 3 | $demo_lists = array( |
| 4 | 'demo1' =>array( |
| 5 | 'title' => __( 'Title 1', 'text-domain' ),/*Title*/ |
| 6 | 'is_pro' => false,/*Is Premium*/ |
| 7 | 'type' => 'gutentor',/*Optional eg gutentor, elementor or other page builders or type*/ |
| 8 | 'author' => __( 'Gutentor', 'text-domain' ),/*Author Name*/ |
| 9 | 'keywords' => array( 'medical', 'multipurpose' ),/*Search keyword*/ |
| 10 | 'categories' => array( 'medical','multipurpose' ),/*Categories*/ |
| 11 | 'template_url' => array( |
| 12 | 'content' => 'full-url-path/content.json',/*Full URL Path to content.json*/ |
| 13 | 'options' => 'full-url-path/master/options.json',/*Full URL Path to options.json*/ |
| 14 | 'widgets' => 'full-url-path/widgets.json'/*Full URL Path to widgets.json*/ |
| 15 | ), |
| 16 | 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6',/*Full URL Path to demo screenshot image*/ |
| 17 | 'demo_url' => 'https://www.demo.cosmoswp.com/',/*Full URL Path to Live Demo*/ |
| 18 | /* Recommended plugin for this demo */ |
| 19 | 'plugins' => array( |
| 20 | array( |
| 21 | 'name' => __( 'Gutentor', 'text-domain' ), |
| 22 | 'slug' => 'gutentor', |
| 23 | ), |
| 24 | ) |
| 25 | ), |
| 26 | 'demo2' =>array( |
| 27 | 'title' => __( 'Title 2', 'text-domain' ),/*Title*/ |
| 28 | 'is_pro' => false,/*Is Premium*/ |
| 29 | 'type' => 'gutentor',/*Optional eg gutentor, elementor or other page builders or type*/ |
| 30 | 'author' => __( 'Gutentor', 'text-domain' ),/*Author Name*/ |
| 31 | 'keywords' => array( 'about-block', 'about 3' ),/*Search keyword*/ |
| 32 | 'categories' => array( 'contact','multipurpose','woocommerce' ),/*Categories*/ |
| 33 | 'template_url' => array( |
| 34 | 'content' => 'full-url-path/content.json',/*Full URL Path to content.json*/ |
| 35 | 'options' => 'full-url-path/master/options.json',/*Full URL Path to options.json*/ |
| 36 | 'widgets' => 'full-url-path/widgets.json'/*Full URL Path to widgets.json*/ |
| 37 | ), |
| 38 | 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6',/*Full URL Path to demo screenshot image*/ |
| 39 | 'demo_url' => 'https://www.demo.cosmoswp.com/',/*Full URL Path to Live Demo*/ |
| 40 | /* Recommended plugin for this demo */ |
| 41 | 'plugins' => array( |
| 42 | array( |
| 43 | 'name' => __( 'Gutentor', 'text-domain' ), |
| 44 | 'slug' => 'gutentor', |
| 45 | ), |
| 46 | array( |
| 47 | 'name' => __( 'Contact Form 7', 'text-domain' ), |
| 48 | 'slug' => 'contact-form-7', |
| 49 | 'main_file' => 'wp-contact-form-7.php',/*the main plugin file of contact form 7 is different from plugin slug */ |
| 50 | ), |
| 51 | ) |
| 52 | ), |
| 53 | 'demo3' =>array( |
| 54 | 'title' => __( 'Title 1', 'text-domain' ),/*Title*/ |
| 55 | 'is_pro' => true,/*Is Premium : Support Premium Version*/ |
| 56 | 'pro_url' => 'https://www.cosmoswp.com/pricing/',/*Premium version/Pricing Url*/ |
| 57 | 'type' => 'gutentor',/*Optional eg gutentor, elementor or other page builders or type*/ |
| 58 | 'author' => __( 'Gutentor', 'text-domain' ),/*Author Name*/ |
| 59 | 'keywords' => array( 'woocommerce', 'shop' ),/*Search keyword*/ |
| 60 | 'categories' => array( 'woocommerce','multipurpose' ),/*Categories*/ |
| 61 | 'template_url' => array(/* Optional for premium theme, you can add your own logic by hook*/ |
| 62 | 'content' => 'full-url-path/content.json',/*Full URL Path to content.json*/ |
| 63 | 'options' => 'full-url-path/master/options.json',/*Full URL Path to options.json*/ |
| 64 | 'widgets' => 'full-url-path/widgets.json'/*Full URL Path to widgets.json*/ |
| 65 | ), |
| 66 | 'screenshot_url' => 'full-url-path/screenshot.png?ver=1.6',/*Full URL Path to demo screenshot image*/ |
| 67 | 'demo_url' => 'https://www.demo.cosmoswp.com/',/*Full URL Path to Live Demo*/ |
| 68 | /* Recommended plugin for this demo */ |
| 69 | 'plugins' => array( |
| 70 | array( |
| 71 | 'name' => __( 'Gutentor', 'text-domain' ), |
| 72 | 'slug' => 'gutentor', |
| 73 | ), |
| 74 | ) |
| 75 | ), |
| 76 | /*and so on ............................*/ |
| 77 | ); |
| 78 | return $demo_lists; |
| 79 | } |
| 80 | add_filter('advanced_import_demo_lists','prefix_demo_import_lists'); |