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/7-Zip/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()
{
$status1 = sprintf('%1$s Good %2$s', '', '');
$status2 = sprintf('%1$s Notice %2$s', '', '');
//TITLE
$msg = sprintf('%1$s Packages » 2 Scan %2$s', '', '
');
//MESSAGE
$msg .= sprintf(
'In Step-2 of the build process Duplicator scans your WordPress site files and database for any possible issues. Each section is expandable '
. 'and will show more details regarding the parameters of that section. The following indicators will be present for each section: %3$s'
. '%1$s Indicates that no issues were detected. It is best to try and get all the values to display this status if possible, but not required. %3$s'
. '%2$s Indicates a possible issue. A notice will not prevent the build from running however, if you do have issues then the section should be observed. %4$s',
$status1,
$status2,
'
',
'
'
);
return $msg;
}
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');
}
}