Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(HX logo): HX logo.png + configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashad Jamara authored and KaiSchwarz-cnic committed Aug 9, 2021
1 parent 083f72d commit aa0a664
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/addons/ispapidomainimport/ispapidomainimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,15 @@
*/
function ispapidomainimport_config()
{
$data = file_get_contents(implode(DIRECTORY_SEPARATOR, [ROOTDIR, "modules", "addons", "ispapidomainimport", "logo.png"]));
$src = ($data) ? 'data:image/png;base64,' . base64_encode($data) : '';

$logo_src = file_get_contents(implode(DIRECTORY_SEPARATOR, [ROOTDIR, "modules", "addons", "ispapidomainimport", "logo.png"]));
$logo_data = ($logo_src) ? 'data:image/png;base64,' . base64_encode($logo_src) : '';
return [
// Display name for your module
"name" => "ISPAPI Domain Import",
// Description displayed within the admin interface
"description" => "This module allows to import existing Domains from HEXONET System.",
// Module author name
"author" => '<a href="https://www.hexonet.net/" target="_blank"><img style="max-width:100px" src="' . $src . '" alt="HEXONET" /></a>',
"author" => '<a href="https://www.hexonet.net/" target="_blank"><img style="max-width:100px" src="' . $logo_data . '" alt="HEXONET" /></a>',
// Default language
"language" => "english",
// Version number
Expand Down
Binary file modified modules/addons/ispapidomainimport/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aa0a664

Please sign in to comment.