getGlobalValue('blur'); $templates_tab_url = ControllersManager::getMenuLink( ControllersManager::TOOLS_SUBMENU_SLUG, ToolsPageController::L2_SLUG_TEMPLATE ); $edit_template_url = ControllersManager::getMenuLink( ControllersManager::TOOLS_SUBMENU_SLUG, ToolsPageController::L2_SLUG_TEMPLATE, null, array('inner_page' => 'edit') ); $bandListUrl = ControllersManager::getMenuLink( ControllersManager::SETTINGS_SUBMENU_SLUG, SettingsPageController::L2_SLUG_PACKAGE, SettingsPageController::L3_SLUG_PACKAGE_BRAND ); $brandDefaultEditUrl = ControllersManager::getMenuLink( ControllersManager::SETTINGS_SUBMENU_SLUG, SettingsPageController::L2_SLUG_PACKAGE, SettingsPageController::L3_SLUG_PACKAGE_BRAND, [ 'view' => 'edit', 'action' => 'default', ] ); $brandBaseEditUrl = ControllersManager::getMenuLink( ControllersManager::SETTINGS_SUBMENU_SLUG, SettingsPageController::L2_SLUG_PACKAGE, SettingsPageController::L3_SLUG_PACKAGE_BRAND, [ 'view' => 'edit', 'action' => 'edit', ] ); global $wp_version; global $wpdb; $global = DUP_PRO_Global_Entity::getInstance(); $nonce_action = 'duppro-template-edit'; $was_updated = false; $package_template_id = SnapUtil::sanitizeIntInput(SnapUtil::INPUT_REQUEST, 'package_template_id', -1); if (($package_templates = DUP_PRO_Package_Template_Entity::getAll()) === false) { $package_templates = array(); } $package_template_count = count($package_templates); // For now not including in filters since don't want to encourage use // with schedules since filtering creates incomplete multisite $displayMultisiteTab = (is_multisite() && License::can(License::CAPABILITY_MULTISITE_PLUS)); $view_state = DUP_PRO_UI_ViewState::getArray(); $ui_css_archive = (DUP_PRO_UI_ViewState::getValue('dup-template-archive-panel') ? 'display:block' : 'display:none'); $ui_css_install = (DUP_PRO_UI_ViewState::getValue('dup-template-install-panel') ? 'display:block' : 'display:none'); if ( $package_template_id == -1 || ($package_template = DUP_PRO_Package_Template_Entity::getById($package_template_id)) == false ) { $package_template = new DUP_PRO_Package_Template_Entity(); } DUP_PRO_Log::traceObject("getting template $package_template_id", $package_template); if (!empty($_REQUEST['action'])) { DUP_PRO_U::verifyNonce($_REQUEST['_wpnonce'], $nonce_action); if ($_REQUEST['action'] == 'save') { DUP_PRO_Log::traceObject('request', $_REQUEST); // Checkboxes don't set post values when off so have to manually set these $package_template->setFromInput(SnapUtil::INPUT_REQUEST); $package_template->save(); $was_updated = true; } elseif ($_REQUEST['action'] == 'copy-template') { $source_template_id = SnapUtil::sanitizeIntInput(SnapUtil::INPUT_REQUEST, 'duppro-source-template-id', -1); if ($source_template_id > 0) { $package_template->copy_from_source_id($source_template_id); $package_template->save(); } } } $installer_cpnldbaction = $package_template->installer_opts_cpnl_db_action; $upload_dir = DUP_PRO_Archive::getArchiveListPaths('uploads'); $content_path = DUP_PRO_Archive::getArchiveListPaths('wpcontent'); $archive_format = ($global->getBuildMode() == DUP_PRO_Archive_Build_Mode::DupArchive ? 'daf' : 'zip'); ?>

0) : $general_templates = array(); $existing_templates = array(); foreach ($package_templates as $copy_package_template) { if ($copy_package_template->getId() != $package_template->getId()) { if ($copy_package_template->is_default || $copy_package_template->is_manual) { $general_templates[$copy_package_template->getId()] = $copy_package_template->is_manual ? __("Active Build Settings", 'duplicator-pro') : $copy_package_template->name; } else { $existing_templates[$copy_package_template->getId()] = $copy_package_template->name; } } } ?> " onclick="DupPro.Template.Copy()"> " onclick="DupPro.Template.Copy()" disabled="disabled">

  recoveableHtmlInfo(); ?>


   
render( 'parts/filters/package_components', array( 'archiveFilterOn' => $package_template->archive_filter_on, 'archiveFilterDirs' => $package_template->archive_filter_dirs, 'archiveFilterFiles' => $package_template->archive_filter_files, 'archiveFilterExtensions' => $package_template->archive_filter_exts, 'components' => $package_template->components, ) ); ?>
database_filter_tables); $tplMng->render( 'parts/filters/tables_list_filter', array( 'dbFilterOn' => $package_template->database_filter_on, 'dbPrefixFilter' => $package_template->databasePrefixFilter, 'dbPrefixSubFilter' => $package_template->databasePrefixSubFilter, 'tablesSlected' => $tableList, ) ); ?>
" data-tooltip="" >
" . esc_html__('FAQ details', 'duplicator-pro') . ""; printf(esc_html__("Not enabled for template settings. Please see the full %s", 'duplicator-pro'), $url); ?>

render( 'admin_pages/packages/setup/archive-setup-tab', [ 'secureOn' => $package_template->installer_opts_secure_on, 'securePass' => $package_template->installerPassowrd, ] ); ?>

" data-tooltip="">
:   " data-tooltip="">








title = __('Transfer Error', 'duplicator-pro'); $alert1->message = __('You can\'t exclude all sites!', 'duplicator-pro'); $alert1->initAlert(); ?>