[Scummvm-git-logs] scummvm-web master -> a33c10e3a934f0b8c58484db491fc21d729f9c58
lotharsm
noreply at scummvm.org
Fri Aug 25 06:18:15 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
a33c10e3a9 WEB: Adding ZOOM Platform link to Compatibility pages
Commit: a33c10e3a934f0b8c58484db491fc21d729f9c58
https://github.com/scummvm/scummvm-web/commit/a33c10e3a934f0b8c58484db491fc21d729f9c58
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2023-08-25T08:18:11+02:00
Commit Message:
WEB: Adding ZOOM Platform link to Compatibility pages
Includes affiliate link
Changed paths:
include/Constants.php
include/OrmObjects/Compatibility.php
schema.xml
diff --git a/include/Constants.php b/include/Constants.php
index 7dc61337..f77e3ce0 100644
--- a/include/Constants.php
+++ b/include/Constants.php
@@ -37,6 +37,9 @@ class Constants
// ScummVM affiliate id
define('GOG_URL_SUFFIX', '?pp=22d200f8670dbdb3e253a90eee5098477c95c23d');
define('STEAM_URL_PREFIX', 'https://store.steampowered.com/app/');
+ define('ZOOM_URL_PREFIX', 'https://www.zoom-platform.com/product/');
+ // ScummVM affiliate id
+ define('ZOOM_URL_SUFFIX', '?affiliate=c049516c-9c4c-42d6-8649-92ed870e8b53');
/* Paths */
define('DIR_BASE', __DIR__ . '/..');
diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index 8312bc8e..3b7c161a 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -96,6 +96,10 @@ class Compatibility extends BaseCompatibility
if ($steamId) {
$availableSites[] = "- [Steam](" . STEAM_URL_PREFIX . $steamId. ")";
}
+ $zoomId = $this->getGame()->getZoomId();
+ if ($zoomId) {
+ $availableSites[] = "- [ZOOM Platform](" . ZOOM_URL_PREFIX . $zoomId . GOG_URL_SUFFIX . ") (affiliate link)";
+ }
// Additional stores could include the ScummVM Freeware Games page
$additionalStores = $this->getGame()->getAdditionalStores();
if ($additionalStores) {
diff --git a/schema.xml b/schema.xml
index af165590..3507652a 100644
--- a/schema.xml
+++ b/schema.xml
@@ -12,6 +12,7 @@
<column name="moby_id" type="integer"/>
<column name="steam_id" type="integer"/>
<column name="gog_id" type="varchar"/>
+ <column name="zoom_id" type="varchar"/>
<column name="additional_stores" type="varchar"/>
<column name="wikipedia_page" type="varchar"/>
<column name="series_id" type="varchar"/>
More information about the Scummvm-git-logs
mailing list