set linker for Text- and HTML-mails
This commit is contained in:
parent
c580668112
commit
5a0a07fccc
4 changed files with 8 additions and 6 deletions
|
|
@ -34,8 +34,8 @@
|
||||||
parent::preFilter($request, $response);
|
parent::preFilter($request, $response);
|
||||||
|
|
||||||
|
|
||||||
// Set application URL
|
// Set linker
|
||||||
$this->set('url', \nre\configs\AppConfig::$app['url']);
|
$this->set('linker', ($request instanceof \hhu\z\requests\MailRequest && !is_null($request->getLinker())) ? $request->getLinker() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@
|
||||||
parent::preFilter($request, $response);
|
parent::preFilter($request, $response);
|
||||||
|
|
||||||
|
|
||||||
// Set application URL
|
// Set linker
|
||||||
$this->set('url', \nre\configs\AppConfig::$app['url']);
|
$this->set('linker', ($request instanceof \hhu\z\requests\MailRequest && !is_null($request->getLinker())) ? $request->getLinker() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
<?=$intermediate?>
|
<?=$intermediate?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>– <a href="<?=$url?>"><?=$appname?></a></p>
|
<p>–
|
||||||
|
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array(),0,true,null,false,null,true)?>"><?=$appname?></a><?php else : ?><?=$appname?><?php endif ?>
|
||||||
|
</p>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@
|
||||||
|
|
||||||
– <?=$appname?>
|
– <?=$appname?>
|
||||||
|
|
||||||
<?=$url?>
|
<?php if(!is_null($linker)) : ?><?=$linker->link(array(),0,true,null,false,null,true)?><?php endif ?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue