Changeset 11317


Ignore:
Timestamp:
06/11/11 16:35:38 (8 years ago)
Author:
mistic100
Message:

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

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r11039 r11317  
    21082108      $taglist, 
    21092109      array( 
    2110         'name' => $row['tag_name'], 
     2110        'name' => trigger_event('render_tag_name', $row['tag_name']), 
    21112111        'id' => '~~'.$row['tag_id'].'~~', 
    21122112        ) 
  • trunk/admin/tags.php

    r8762 r11317  
    8585            'id' => $tag_id, 
    8686            'name' => addslashes($tag_name), 
    87             'url_name' => str2url($tag_name), 
     87            'url_name' => str2url(trigger_event('render_tag_url', $tag_name)), 
    8888            ) 
    8989          ); 
     
    175175        array( 
    176176          'name' => $tag_name, 
    177           'url_name' => str2url($tag_name), 
     177          'url_name' => str2url(trigger_event('render_tag_url', $tag_name)), 
    178178          ) 
    179179        ) 
  • trunk/admin/themes/default/template/tags.tpl

    r8128 r11317  
    1818      <tr> 
    1919        <td>{$tag.NAME}</td> 
    20         <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}"></td> 
     20        <td><input type="text" name="tag_name-{$tag.ID}" value="{$tag.NAME}" size="30"></td> 
    2121      </tr> 
    2222      {/foreach} 
     
    3636    <label> 
    3737      {'New tag'|@translate} 
    38       <input type="text" name="add_tag"> 
     38      <input type="text" name="add_tag" size="30"> 
    3939    </label> 
    4040     
  • 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.