diff --git a/Application.php b/Application.php index 4520b0b..1858620 100644 --- a/Application.php +++ b/Application.php @@ -23,8 +23,6 @@ class _Application extends \IPS\Application public function __construct() { require_once static::getRootPath().'/applications/stripeverification/sources/vendor/autoload.php'; - - \IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('fontawesome.css', 'stripeverification', 'global')); } /** diff --git a/data/build.xml b/data/build.xml index c1b6c46..c20af91 100644 --- a/data/build.xml +++ b/data/build.xml @@ -11,4 +11,5 @@ + diff --git a/data/hooks.json b/data/hooks.json index 18f5e54..4f89b12 100755 --- a/data/hooks.json +++ b/data/hooks.json @@ -10,5 +10,9 @@ "profileHeader": { "type": "S", "class": "\\IPS\\Theme\\class_core_front_profile" + }, + "css": { + "type": "S", + "class": "\\IPS\\Theme\\class_core_front_global" } } \ No newline at end of file diff --git a/data/javascript.xml b/data/javascript.xml index f1f0b26..3c8667d 100644 --- a/data/javascript.xml +++ b/data/javascript.xml @@ -1,6 +1,6 @@ - - + Stripe Identity Verification Stripe Verification cc-stripe diff --git a/data/theme.xml b/data/theme.xml index 4980239..66d7ec1 100644 --- a/data/theme.xml +++ b/data/theme.xml @@ -27,14 +27,14 @@ ]]> - .fa-solid { - font-family: 'Font Awesome 6 Free'; } + .fa-solid { + font-family: 'Stripe Verification'; } .fa-circle-check::before { content: "\f058"; } @font-face { - font-family: 'Font Awesome 6 Free'; + font-family: 'Stripe Verification'; font-style: normal; font-weight: 900; font-display: block; diff --git a/data/versions.json b/data/versions.json index d65de3a..15008cb 100755 --- a/data/versions.json +++ b/data/versions.json @@ -3,5 +3,6 @@ "10001": "1.0.1", "10002": "1.0.2", "10003": "1.0.3", - "10004": "1.0.4" + "10004": "1.0.4", + "10005": "1.0.5" } \ No newline at end of file diff --git a/dev/css/global/fontawesome.css b/dev/css/front/stripeverification.css similarity index 82% rename from dev/css/global/fontawesome.css rename to dev/css/front/stripeverification.css index 7e1dd5c..b239a3c 100644 --- a/dev/css/global/fontawesome.css +++ b/dev/css/front/stripeverification.css @@ -1,11 +1,11 @@ .fa-solid { - font-family: 'Font Awesome 6 Free'; } + font-family: 'Stripe Verification'; } .fa-circle-check::before { content: "\f058"; } @font-face { - font-family: 'Font Awesome 6 Free'; + font-family: 'Stripe Verification'; font-style: normal; font-weight: 900; font-display: block; diff --git a/hooks/css.php b/hooks/css.php new file mode 100644 index 0000000..bc1c46a --- /dev/null +++ b/hooks/css.php @@ -0,0 +1,29 @@ +// [ + 0 => [ + 'selector' => 'html > head', + 'type' => 'add_inside_end', + 'content' => 'css(\'stripeverification.css\', \'stripeverification\', \'front\')))->setQueryString(\'v\',\IPS\Theme::i()->cssCacheBustKey())"}\' media=\'all\'> +', + ], + ], + ], parent::hookData()); + } + /* End Hook Data */ + +} diff --git a/setup/upg_10005/data.json b/setup/upg_10005/data.json new file mode 100644 index 0000000..2df6de8 --- /dev/null +++ b/setup/upg_10005/data.json @@ -0,0 +1,23 @@ +{ + "id": 10005, + "name": "1.0.5", + "steps": { + "queries": false, + "lang": false, + "theme": true, + "themeSettings": false, + "javascript": false, + "emailTemplates": false, + "hooks": true, + "acpSearchKeywords": false, + "settings": false, + "tasks": false, + "modules": false, + "widgets": false, + "customOptions": false, + "customRoutines": false + }, + "forceMainUpgrader": false, + "forceManualDownloadNoCiC": false, + "forceManualDownloadCiC": false +} \ No newline at end of file diff --git a/setup/upg_10005/hooks.json b/setup/upg_10005/hooks.json new file mode 100644 index 0000000..439f49b --- /dev/null +++ b/setup/upg_10005/hooks.json @@ -0,0 +1,7 @@ +{ + "added": [ + "css" + ], + "edited": [], + "removed": [] +} \ No newline at end of file diff --git a/setup/upg_10005/theme.json b/setup/upg_10005/theme.json new file mode 100644 index 0000000..423c2e1 --- /dev/null +++ b/setup/upg_10005/theme.json @@ -0,0 +1,21 @@ +{ + "html": { + "added": [], + "edited": [], + "removed": [] + }, + "css": { + "added": [ + "front\/stripeverification.css" + ], + "edited": [], + "removed": [ + "global\/fontawesome.css" + ] + }, + "resources": { + "added": [], + "edited": [], + "removed": [] + } +} \ No newline at end of file