| @@ 1705-1719 (lines=15) @@ | ||
| 1702 | /** |
|
| 1703 | * @return bool |
|
| 1704 | */ |
|
| 1705 | public static function isTagModuleIncluded() |
|
| 1706 | { |
|
| 1707 | static $wfl_tag_module_included; |
|
| 1708 | if (!isset($wfl_tag_module_included)) { |
|
| 1709 | $modulesHandler = xoops_getHandler('module'); |
|
| 1710 | $tag_mod = $modulesHandler->getByDirName('tag'); |
|
| 1711 | if (!$tag_mod) { |
|
| 1712 | $tag_mod = false; |
|
| 1713 | } else { |
|
| 1714 | $wfl_tag_module_included = $tag_mod->getVar('isactive') == 1; |
|
| 1715 | } |
|
| 1716 | } |
|
| 1717 | ||
| 1718 | return $wfl_tag_module_included; |
|
| 1719 | } |
|
| 1720 | ||
| 1721 | // Add item_tag to Tag-module |
|
| 1722 | ||
| @@ 1742-1756 (lines=15) @@ | ||
| 1739 | /** |
|
| 1740 | * @return bool |
|
| 1741 | */ |
|
| 1742 | public static function isNewsModuleIncluded() |
|
| 1743 | { |
|
| 1744 | static $wfl_news_module_included; |
|
| 1745 | if (!isset($wfl_news_module_included)) { |
|
| 1746 | $modulesHandler = xoops_getHandler('module'); |
|
| 1747 | $news_mod = $modulesHandler->getByDirName('news'); |
|
| 1748 | if (!$news_mod) { |
|
| 1749 | $news_mod = false; |
|
| 1750 | } else { |
|
| 1751 | $wfl_news_module_included = $news_mod->getVar('isactive') == 1; |
|
| 1752 | } |
|
| 1753 | } |
|
| 1754 | ||
| 1755 | return $wfl_news_module_included; |
|
| 1756 | } |
|
| 1757 | ||
| 1758 | /** |
|
| 1759 | * @param $banner_id |
|