9 $site->deleteIcon(
'favicon');
11 $site->saveIconFromUploadedFile(
'icon');
12 $site->saveIconFromUploadedFile(
'icon',
'favicon');
24 if (
get_input(
'remove_font_awesome_zip')) {
26 }
elseif (
$zip instanceof UploadedFile && extension_loaded(
'zip')) {
27 $archive = new \ZipArchive();
28 if ($archive->open(
$zip->getPathname()) !==
true) {
39 $archive->extractTo($base_folder);
42 foreach (glob($base_folder .
'/*', GLOB_ONLYDIR) as
$item) {
44 rename($item, $base_folder .
'/webfont');
elgg_ok_response($content= '', string|array $message= '', string $forward_url=null, int $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
elgg_get_uploaded_file(string $input_name, bool $check_for_validity=true)
Returns a single valid uploaded file object.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
elgg_invalidate_caches()
Invalidate all the registered caches.
elgg_error_response(string|array $message= '', string $forward_url=REFERRER, int $status_code=ELGG_HTTP_BAD_REQUEST)
Prepare an error response to be returned by a page or an action handler.
elgg_save_config(string $name, $value)
Save a configuration setting.
elgg_remove_config(string $name)
Removes a config setting.
elgg_get_site_entity()
Get the current site entity.
elgg_delete_directory(string $directory, bool $leave_base_directory=false)
Delete a directory and all its contents.
elgg_get_data_path()
Get the data directory path for this installation, ending with slash.