Changeset 11317 for trunk/include


Ignore:
Timestamp:
Jun 11, 2011, 4:35:38 PM (13 years ago)
Author:
mistic100
Message:

feature:2322 Add two new trigger events for tag name display and tag url

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r9367 r11317  
    276276
    277277    $output.=
    278       '>'
     278      '> '
    279279      .$tag['name']
    280280      .'</label>'
     
    442442      .l10n('display photos linked to this tag')
    443443      .'">'
    444       .$page['tags'][$i]['name']
     444      .trigger_event('render_tag_name', $page['tags'][$i]['name'])
    445445      .'</a>';
    446446
  • trunk/include/functions_tag.inc.php

    r8728 r11317  
    6969    {
    7070      $row['counter'] = $counter;
     71      $row['name'] = trigger_event('render_tag_name', $row['name']);
    7172      array_push($tags, $row);
    7273    }
     
    9091  while ($row = pwg_db_fetch_assoc($result))
    9192  {
     93    $row['name'] = trigger_event('render_tag_name', $row['name']);
    9294    array_push($tags, $row);
    9395  }
     
    239241  while($row = pwg_db_fetch_assoc($result))
    240242  {
     243    $row['name'] = trigger_event('render_tag_name', $row['name']);
    241244    array_push($tags, $row);
    242245  }
Note: See TracChangeset for help on using the changeset viewer.