Implemented optional link to subscription

This commit is contained in:
Rooty 2021-09-24 15:14:27 +02:00
parent e28b52b4fd
commit 64a74100a2

View File

@ -95,10 +95,14 @@ class UserPrint extends Printing
$MaTemplate->MxAttribut("urlActionNewAccount", Navigation::formatUrl($urlArray["id"],"Home","formLecture","",recupCommunity()));
// var_dump($node->getCType());
if ($node->getCType() == "asso")
var_dump($node->getRegisterEnable);
if( $node->getRegisterEnable )
{
$MaTemplate->MxText("blocSubscription".".NEWSUBSCRIPTION", getMessage("UserPrintNewSubscription"));
$MaTemplate->MxAttribut("blocSubscription".".urlActionNewSubscription", Navigation::formatUrl($urlArray["id"], "Home", "formLectureAdh", "", recupCommunity()));
if ($node->getCType() == "asso")
{
$MaTemplate->MxText("blocSubscription".".NEWSUBSCRIPTION", getMessage("UserPrintNewSubscription"));
$MaTemplate->MxAttribut("blocSubscription".".urlActionNewSubscription", Navigation::formatUrl($urlArray["id"], "Home", "formLectureAdh", "", recupCommunity()));
}
}
else
$MaTemplate->MxBloc("blocSubscription", "delete");