Changeset 19067


Ignore:
Timestamp:
Nov 18, 2012, 12:21:25 PM (11 years ago)
Author:
mistic100
Message:

improve display with Typetags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/modules/Tags/main.inc.php

    r18062 r19067  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $conf, $template;
     5global $conf, $template, $pwg_loaded_plugins;
    66
    77function counter_compare($a, $b)
     
    2323
    2424$block['TITLE_URL'] = 'tags.php';
     25
     26// hack typetags
     27if (isset($pwg_loaded_plugins['typetags']))
     28{
     29  $typetags = true;
     30  $template->assign('display_mode', $datas[0]);
     31  if ($conf['TypeTags']['show_all'])
     32  {
     33    remove_event_handler('render_tag_name', 'typetags_render', 0);
     34  }
     35}
    2536
    2637$tags = get_available_tags();
     
    141152}
    142153
     154if (isset($typetags))
     155{
     156  typetags_tags();
     157  if ($conf['TypeTags']['show_all'])
     158  {
     159    add_event_handler('render_tag_name', 'typetags_render', 0);
     160  }
     161}
     162
    143163$template->assign('display_mode', $datas[0]);
    144164
Note: See TracChangeset for help on using the changeset viewer.