Implemented optional link to subscription
This commit is contained in:
parent
e28b52b4fd
commit
64a74100a2
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user