diff --git a/common/_includes.php b/common/_includes.php index 7ca0e71b..183aa41a 100644 --- a/common/_includes.php +++ b/common/_includes.php @@ -4,6 +4,8 @@ include($includePath . './exceptions.php'); +include($includePath . './components/GalaxyPlanetLink/GalaxyPlanetLink.component.php'); + include($includePath . './modules/uni/utils/isEmailDomainBanned.util.php'); include($includePath . './utils/routing/galaxy.routing.php'); diff --git a/common/components/GalaxyPlanetLink/GalaxyPlanetLink.component.php b/common/components/GalaxyPlanetLink/GalaxyPlanetLink.component.php new file mode 100644 index 00000000..57db16bd --- /dev/null +++ b/common/components/GalaxyPlanetLink/GalaxyPlanetLink.component.php @@ -0,0 +1,26 @@ + 'a', + 'contentHTML' => $linkText, + 'attrs' => [ + 'href' => Routing\getGalaxyTargetUrl($props['coords']), + ], + ]); +} + +?> diff --git a/common/components/GalaxyPlanetLink/index.php b/common/components/GalaxyPlanetLink/index.php new file mode 100644 index 00000000..bc99142d --- /dev/null +++ b/common/components/GalaxyPlanetLink/index.php @@ -0,0 +1,5 @@ + diff --git a/common/components/index.php b/common/components/index.php new file mode 100644 index 00000000..bc99142d --- /dev/null +++ b/common/components/index.php @@ -0,0 +1,5 @@ +