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

Commit

Permalink
fix(logo): reviewed, now also displayed nicely in the addon overview
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Jul 20, 2021
1 parent 6276801 commit 76e84e2
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/addons/ispapidomainimport/ispapidomainimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@
*/
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) : '';

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" => "HEXONET",
"author" => '<a href="https://www.hexonet.net/" target="_blank"><img style="max-width:100px" src="' . $src . '" 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.
33 changes: 33 additions & 0 deletions modules/addons/ispapidomainimport/whmcs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"schema": "1.0",
"type": "whmcs-addons",
"name": "ispapidomainimport",
"license": "MIT",
"category": "digitalservices",
"description": {
"name": "ISPAPI Domain Import Addon v3.1.0",
"tagline": "Import your existing HEXONET domain portfolio to WHMCS",
"long": "",
"features": [
"Import single domains",
"Bulk Import",
"Automatic Create Client Accounts based on Registrant Data",
"Import to given Client Account"
]
},
"logo": {
"filename": "logo.png"
},
"support": {
"homepage": "https:\/\/www.hexonet.net\/",
"learn_more": "https:\/\/github.com\/hexonet\/whmcs-ispapi-domainimport\/blob\/master\/README.md",
"support_url": "https:\/\/github.com\/hexonet\/whmcs-ispapi-domainimport\/wiki\/Contact-Us",
"docs_url": "https:\/\/github.com\/hexonet\/whmcs-ispapi-domainimport\/wiki\/Usage-Guide"
},
"authors": [
{
"name": "HEXONET",
"homepage": "https:\/\/www.hexonet.net\/"
}
]
}
3 changes: 3 additions & 0 deletions updateVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ date="$(date +'%Y-%m-%d')"
printf -v sed_script 's/"version" => "[0-9]\+\.[0-9]\+\.[0-9]\+"/"version" => "%s"/g' "${newversion}"
sed -i -e "${sed_script}" modules/addons/ispapidomainimport/ispapidomainimport.php

printf -v sed_script 's/"ISPAPI Domain Import Addon v[0-9]+\.[0-9]+\.[0-9]+"/"ISPAPI Domain Import Addon v%s"/g' "${newversion}"
sed -E -i -e "${sed_script}" modules/addons/ispapidomainimport/whmcs.json

printf -v sed_script 's/"version": "[0-9]\+\.[0-9]\+\.[0-9]\+"/"version": "%s"/g' "${newversion}"
sed -i -e "${sed_script}" release.json

Expand Down

0 comments on commit 76e84e2

Please sign in to comment.