| @@ 49-52 (lines=4) @@ | ||
| 46 | ||
| 47 | $myts = MyTextSanitizer::getInstance(); |
|
| 48 | ||
| 49 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
|
| 50 | require_once $GLOBALS['xoops']->path('class/template.php'); |
|
| 51 | $xoopsTpl = new XoopsTpl(); |
|
| 52 | } |
|
| 53 | ||
| 54 | $GLOBALS['xoopsTpl']->assign('api_key', $moduleHelper->getConfig('apcal_mapsapi')); |
|
| 55 | //Module specific elements |
|
| @@ 31-34 (lines=4) @@ | ||
| 28 | $moduleHelper = Xmf\Module\Helper::getHelper('system'); |
|
| 29 | } |
|
| 30 | ||
| 31 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
|
| 32 | require_once $GLOBALS['xoops']->path('class/template.php'); |
|
| 33 | $xoopsTpl = new XoopsTpl(); |
|
| 34 | } |
|
| 35 | ||
| 36 | $GLOBALS['xoopsTpl']->assign('api_key', $moduleHelper->getConfig('apcal_mapsapi')); |
|
| 37 | echo $moduleHelper->getConfig('apcal_mapsapi'); |
|