PageRenderTime 23ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/blocks/nav_links.php

http://github.com/MightyGorgon/icy_phoenix
PHP | 41 lines | 19 code | 8 blank | 14 comment | 9 complexity | 6010a56fb4058094783d8a787497a2ae MD5 | raw file
Possible License(s): AGPL-1.0
  1. <?php
  2. /**
  3. *
  4. * @package Icy Phoenix
  5. * @version $Id$
  6. * @copyright (c) 2008 Icy Phoenix
  7. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8. *
  9. */
  10. /**
  11. *
  12. * @Extra credits for this file
  13. * masterdavid - Ronald John David
  14. *
  15. */
  16. if (!defined('IN_ICYPHOENIX'))
  17. {
  18. die('Hacking attempt');
  19. }
  20. if(!function_exists('cms_block_nav_links'))
  21. {
  22. function cms_block_nav_links()
  23. {
  24. global $config, $template, $user, $lang, $cms_page, $cms_page_blocks;
  25. $switch_cms_show_hide = (empty($user->data['is_bot']) && ($config['cms_block_pos'] == 'hl')) ? true : false;
  26. if(!defined('HAS_DIED') && !defined('IN_LOGIN') && ($cms_page['global_blocks'] || $cms_page_blocks || $switch_cms_show_hide))
  27. {
  28. $template->assign_var('SWITCH_CMS_SHOW_HIDE', true);
  29. }
  30. }
  31. }
  32. cms_block_nav_links();
  33. ?>