PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.0.6
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.0.6
2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 2.7.1 All 27 releases
insert-php / admin / pages / export.php

export.php in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts 2.0.6, at admin/pages/export.php

77 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This class is implemented page: import, export in the admin panel.
4 *
5 * @author Alex Kovalev <alex.kovalevv@gmail.com>
6 * @copyright (c) 2018, OnePress Ltd
7 *s
8 * @package core
9 * @since 1.0.0
10 */
11
12 // Exit if accessed directly
13 if( !defined('ABSPATH') ) {
14 exit;
15 }
16
17 /**
18 * Common Settings
19 */
20 class WINP_ExportPage extends Wbcr_FactoryPages405_AdminPage {
21
22 /**
23 * @param Wbcr_Factory404_Plugin $plugin
24 */
25 public function __construct(Wbcr_Factory404_Plugin $plugin)
26 {
27 $this->menu_post_type = WINP_SNIPPETS_POST_TYPE;
28
29 $this->id = "export";
30 $this->menu_title = __('Import/Export', 'insert-php');
31
32 parent::__construct($plugin);
33
34 $this->plugin = $plugin;
35 }
36
37 /**
38 * Prints the contents of the page.
39 */
40 public function indexAction()
41 {
42 ?>
43 <div class="wrap ">
44 <div class="factory-bootstrap-404 factory-fontawesome-000">
45 <h3><?php _e('Import/Export', 'insert-php') ?></h3>
46
47 <p><?php _e('To export or migrate your snippets, you can use native WordPress functional or any other import/export plugin for custom post types.', 'insert-php'); ?></p>
48
49 <p><?php _e('Let\'s have a look how you can export your snippets:', 'insert-php'); ?></p>
50
51 <h3><?php _e('Export with WordPress', 'insert-php'); ?></h3>
52 <ul>
53 <li>1. <?php _e('Go to Tools -> Export', 'insert-php'); ?></li>
54 <li>2. <?php _e('Select "PHP snippets" custom post', 'insert-php'); ?></li>
55 <li>3. <?php _e('Press "Download Export File" button', 'insert-php'); ?></li>
56 </ul>
57 <img src="<?= WINP_PLUGIN_URL ?>/admin/assets/img/79018c6892.png" width="800" alt=""/>
58
59 <h3><?php _e('Import using other plugin', 'insert-php'); ?></h3>
60 <ul>
61 <li>1. <?php _e('Go to Tools -> Import', 'insert-php'); ?></li>
62 <li>2. <?php _e('Install WordPress import plugin', 'insert-php'); ?></li>
63 <li>3. <?php _e('Run Importer after installation', 'insert-php'); ?></li>
64 </ul>
65 <img src="<?= WINP_PLUGIN_URL ?>/admin/assets/img/b2347551e4.png" width="800" alt=""/>
66 <ul>
67 <li>1. <?php _e('Make sure you are on the import page', 'insert-php'); ?></li>
68 <li>2. <?php _e('Select the export file that you downloaded at the export stage', 'insert-php'); ?></li>
69 <li>3. <?php _e('Press "Upload file and import" button', 'insert-php'); ?></li>
70 </ul>
71 <img src="<?= WINP_PLUGIN_URL ?>/admin/assets/img/43d2351a21.png" width="800" alt=""/>
72 </div>
73 </div>
74 <?php
75 }
76 }
77