From: <chr...@us...> - 2018-06-29 01:28:35
|
Revision: 13379 http://sourceforge.net/p/xoops/svn/13379 Author: chronolabscoop Date: 2018-06-29 01:28:30 +0000 (Fri, 29 Jun 2018) Log Message: ----------- API's AuthKey/XoopsKey (prealpha) ~ almost there! Modified Paths: -------------- XoopsModules/authkey/trunk/modules/authkey/apis.php Modified: XoopsModules/authkey/trunk/modules/authkey/apis.php =================================================================== --- XoopsModules/authkey/trunk/modules/authkey/apis.php 2018-06-29 01:26:22 UTC (rev 13378) +++ XoopsModules/authkey/trunk/modules/authkey/apis.php 2018-06-29 01:28:30 UTC (rev 13379) @@ -30,7 +30,7 @@ $xoopsOption['template_main'] = 'authkeys_apis.html'; require_once dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'header.php'; -$GLOBALS['xoopsTpl']->assign('moddirname', basename(dirname(__DIR__))); +$GLOBALS['xoopsTpl']->assign('moddirname', basename(__DIR__)); $criteria = new Criteria('1', '1'); $criteria->setSort('`api-type` ASC, `api-http` ASC, `api-https`'); @@ -58,6 +58,10 @@ $GLOBALS['xoopsTpl']->append('apis', $apiarr); } +$GLOBALS['xoopsTpl']->assign('apis_count', xoops_getModuleHandler('apis', basename(__DIR__))->getCount($criteria)); +$GLOBALS['xoopsTpl']->assign('authkeys_module_version', $authkeyModule->getVar('version') / 100); +$GLOBALS['xoopsTpl']->assign('authkeys_module_namings', $authkeyModule->getVar('name')); + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . '/module/' . basename(__DIR__) . '/assets/css/style.css'); if (is_file(XOOPS_ROOT_PATH . '/module/' . basename(__DIR__) . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/style.css')) $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . '/module/' . basename(__DIR__) . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/style.css'); |