/home/techb158/balacoffee.com/wp-content/plugins/updraftplus/addons
NameSizeModeActions
anonymisation.php152630644editdlrm
autobackup.php524980644editdlrm
cloudfiles-enhanced.php167210644editdlrm
dropbox-folders.php42830644editdlrm
fixtime.php267240644editdlrm
google-enhanced.php70330644editdlrm
importer.php147680644editdlrm
incremental.php213390644editdlrm
lockadmin.php111680644editdlrm
migrator.php893260644editdlrm
moredatabase.php288570644editdlrm
morefiles.php565070644editdlrm
morestorage.php147310644editdlrm
multisite.php374030644editdlrm
noadverts.php3530644editdlrm
pcloud.php264860644editdlrm
reporting.php281050644editdlrm
s3-enhanced.php268840644editdlrm
sftp.php458490644editdlrm
webdav.php504300644editdlrm
wp-cli.php463930644editdlrm
Edit: /home/techb158/balacoffee.com/wp-content/plugins/updraftplus/addons/google-enhanced.php (7033B)
id_from_path($folder, $one_only); } } /** * Get partial templates of the Google Drive remote storage, the partial template is recognised by its name. To find out a name of partial template, look for the partial call syntax in the template, it's enclosed by double curly braces (i.e. {{> partial_template_name }}) * * @param Array $partial_templates A collection of filterable partial templates * @return Array an associative array keyed by name of the partial templates */ public function get_partial_templates($partial_templates) { ob_start(); ?> {{input_folder_label}}:
{{input_enhanced_folder_label}} sprintf(__('Enter the path of the %s folder you wish to use here.', 'updraftplus'), 'Google Drive').' '.__('If the folder does not already exist, then it will be created.').' '.sprintf(__('e.g. %s', 'updraftplus'), 'MyBackups/WorkWebsite.').' '.sprintf(__('If you leave it blank, then the backup will be placed in the root of your %s', 'updraftplus'), 'Google Drive').' '.sprintf(__('In %s, path names are case sensitive.', 'updraftplus'), 'Google Drive'), 'input_enhanced_folder_label' => sprintf(__('In %s, path names are case sensitive.', 'updraftplus'), 'Google Drive'), ); } /** * Returns the Google Drives addon HTML content to be displayed on the page * DEVELOPER NOTE: Please don't use/call this method anymore as it was used as a partial template of Google Drive storage, and it's consider to be removed in future versions. Once the Google Drive template is CSP-compliant, this should be removed and should be placed in the class child instead of the base class. @see get_partial_templates() * * @param [String] $folder_opts - the free HTML content that will be replaced by the content in this method * @param [Object] $backup_module_object - the backup module object this will allow us to get and use various functions * @return [String] the premium HTML content that will be displayed on the page */ public function options_googledrive_others($folder_opts, $backup_module_object) {// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found -- Unused parameters are for future use. $classes = $backup_module_object->get_css_classes(); return ' '.__('Google Drive', 'updraftplus').' '.__('Folder', 'updraftplus').': output_settings_field_name_and_id('folder', true).' value="{{folder}}" class="updraft_input--wide">
'.htmlspecialchars(sprintf(__('In %s, path names are case sensitive.', 'updraftplus'), 'Google Drive')).' '; } /** * Modifies handlebar template options * * @param array $opts * @return array - New handerbar template options */ public function transform_options_googledrive_options($opts) { if (!isset($opts['folder'])) { if (isset($opts['parentid'])) { if (is_array($opts['parentid'])) { if (isset($opts['parentid']['name'])) { $opts['folder'] = $opts['parentid']['name']; } else { $opts['folder'] = empty($opts['parentid']['id']) ? '' : '#'.$opts['parentid']['id']; } } else { $opts['folder'] = empty($opts['parentid']) ? '' : '#'.$opts['parentid']; } } else { $opts['folder'] = 'UpdraftPlus'; } } return $opts; } }