./Themes/default/Packages.template.php
- template_main
- template_view_package
- template_extract_package
- template_list
- template_examine
- template_browse
- template_servers
- template_package_confirm
- template_package_list
- template_downloaded
- template_install_options
- template_control_chmod
- template_ftp_required
- template_view_operations
- template_file_permissions
- template_permission_show_contents
- template_action_permissions
template_main
function template_main(): void
The main template
template_view_package
function template_view_package(): void
View package details when installing/uninstalling
template_extract_package
function template_extract_package(): void
Extract package contents
template_list
function template_list(): void
List files in a package
template_examine
function template_examine(): void
Examine a single file within a package
template_browse
function template_browse(): void
List all packages
template_servers
function template_servers(): void
List package servers
template_package_confirm
function template_package_confirm(): void
Confirm package operation
template_package_list
function template_package_list(): void
List packages.
template_downloaded
function template_downloaded(): void
Confirmation page showing a package was uploaded/downloaded successfully.
template_install_options
function template_install_options(): void
Installation options - FTP info and backup settings
template_control_chmod
function template_control_chmod(): bool
CHMOD control form
template_ftp_required
function template_ftp_required(): void
Wrapper for the above template function showing that FTP is required
template_view_operations
function template_view_operations(): void
View operation details.
template_file_permissions
function template_file_permissions(): void
The file permissions page.
template_permission_show_contents
function template_permission_show_contents(string $ident, array $contents, int $level, bool $has_more = false): void
Shows permissions for items within a directory (called from template_file_permissions)
Type | Parameter | Description |
---|---|---|
string |
$ident |
A unique ID - typically the directory name |
array |
$contents |
An array of items within the directory |
int |
$level |
How far to go inside the directory |
bool |
$has_more |
Whether there are more files to display besides what’s in $contents |
template_action_permissions
function template_action_permissions(): void
A progress page showing what permissions changes are being applied