@@ 1465-1479 (lines=15) @@ | ||
1462 | // End functions for Google PageRank |
|
1463 | ||
1464 | // Check if Tag module is installed |
|
1465 | function wfl_tag_module_included() |
|
1466 | { |
|
1467 | static $wfl_tag_module_included; |
|
1468 | if (!isset($wfl_tag_module_included)) { |
|
1469 | $modules_handler = xoops_gethandler('module'); |
|
1470 | $tag_mod = $modules_handler -> getByDirName('tag'); |
|
1471 | if (!$tag_mod) { |
|
1472 | $tag_mod = false; |
|
1473 | } else { |
|
1474 | $wfl_tag_module_included = $tag_mod -> getVar('isactive') == 1; |
|
1475 | } |
|
1476 | } |
|
1477 | ||
1478 | return $wfl_tag_module_included; |
|
1479 | } |
|
1480 | ||
1481 | // Add item_tag to Tag-module |
|
1482 | function wfl_tagupdate($lid, $item_tag) |
|
@@ 1493-1507 (lines=15) @@ | ||
1490 | } |
|
1491 | ||
1492 | // Check if News module is installed |
|
1493 | function wfl_news_module_included() |
|
1494 | { |
|
1495 | static $wfl_news_module_included; |
|
1496 | if (!isset($wfl_news_module_included)) { |
|
1497 | $modules_handler = xoops_gethandler('module'); |
|
1498 | $news_mod = $modules_handler -> getByDirName('news'); |
|
1499 | if (!$news_mod) { |
|
1500 | $news_mod = false; |
|
1501 | } else { |
|
1502 | $wfl_news_module_included = $news_mod -> getVar('isactive') == 1; |
|
1503 | } |
|
1504 | } |
|
1505 | ||
1506 | return $wfl_news_module_included; |
|
1507 | } |
|
1508 | ||
1509 | function wfl_getbanner_from_id_banner($banner_id) |
|
1510 | { |