screen = get_current_screen();
switch (strtoupper($active_tab)) {
case 'LIST': $content = $this->get_list_help(); break;
case 'NEW1': $content = $this->get_step1_help(); break;
case 'NEW2': $content = $this->get_step2_help(); break;
case 'NEW3': $content = $this->get_step3_help(); break;
case 'DETAIL': $content = $this->get_details_help(); break;
default:
$content = $this->get_list_help();
break;
}
$guide = '#guide-packs';
$faq = '#faq-package';
$content .= "References:
"
. "User Guide | "
. "FAQs | "
. "Quick Start";
$this->screen->add_help_tab( array(
'id' => 'dup_help_package_overview',
'title' => esc_html__('Overview','duplicator'),
'content' => "
{$content}
"
)
);
$this->getSupportTab($guide, $faq);
$this->getHelpSidbar();
}
public function get_list_help()
{
return __(" Packages » All
The 'Packages' section is the main interface for managing all the packages that have been created. "
. "A Package consists of two core files, the 'archive.zip' and the 'installer.php' file. The archive file is a zip file containing all your WordPress files and a "
. "copy of your WordPress database. The installer file is a php file that when browsed to via a web browser presents a wizard that redeploys/installs the website "
. "by extracting the archive file and installing the database. To create a package, click the 'Create New' button and follow the prompts.
"
. " Downloads
"
. "To download the package files click on the Installer and Archive buttons after creating a package. The archive file will have a copy of the installer inside of it named "
. "installer-backup.php in case the original installer file is lost. To see the details of a package click on the details button.
"
. " Archive Types
"
. "An archive file can be saved as either a .zip file or .daf file. A zip file is a common archive format used to compress and group files. The daf file short for "
. "'Duplicator Archive Format' is a custom format used specifically for working with larger packages and scale-ability issues on many shared hosting platforms. Both "
. "formats work very similar. The main difference is that the daf file can only be extracted using the installer.php file or the "
. "DAF extraction tool. The zip file can be used by the installer.php "
. "or other zip tools like winrar/7zip/winzip or other client-side tools.
"
,'duplicator');
}
public function get_step1_help()
{
return __("Packages New » 1 Setup
"
. "The setup step allows for optional filtered directory paths, files, file extensions and database tables. To filter specific system files, click the 'Enable File Filters' "
. "checkbox and add the full path of the file or directory, followed by a semicolon. For a file extension add the name (i.e. 'zip') followed by a semicolon.
"
. "To exclude a database table, check the box labeled 'Enable Table Filters' and check the table name to exclude. To include only a copy of your database in the "
. "archive file check the box labeled 'Archive Only the Database'. The installer.php file can optionally be pre-filled with data at install time but is not "
. "required.
",'duplicator');
}
public function get_step2_help()
{
return __("Packages » 2 Scan
"
. "The plugin will scan your system files and database to let you know if there are any concerns or issues that may be present. All items in green mean the checks "
. "looked good. All items in red indicate a warning. Warnings will not prevent the build from running, however if you do run into issues with the build then investigating "
. "the warnings should be considered. Click on each section for more details about each scan check.
",'duplicator');
}
public function get_step3_help()
{
return __("Packages » 3 Build
"
. "The final step in the build process where the installer script and archive of the website can be downloaded. To start the install process follow these steps: "
. ""
. "- Download the installer.php and archive.zip files to your local computer.
"
. "- For localhost installs be sure you have PHP, Apache & MySQL installed on your local computer with software such as XAMPP, Instant WordPress or MAMP for MAC. "
. "Place the package.zip and installer.php into any empty directory under your webroot then browse to the installer.php via your web browser to launch the install wizard.
"
. "- For remote installs use FTP or cPanel to upload both the archive.zip and installer.php to your hosting provider. Place the files in a new empty directory under "
. "your host's webroot accessible from a valid URL such as http://your-domain/your-wp-directory/installer.php to launch the install wizard. On some hosts the root directory "
. "will be a something like public_html -or- www. If your're not sure contact your hosting provider.
"
. "
"
. "For complete instructions see:
How do I install this Package?
",'duplicator');
}
public function get_details_help()
{
return __("Packages » Details
"
. "The details view will give you a full break-down of the package including any errors that may have occured during the install.
",'duplicator');
}
}