Changeset 2041 for trunk


Ignore:
Timestamp:
Jun 22, 2007, 11:02:55 PM (17 years ago)
Author:
rub
Message:

Resolved issue 0000711: Add triggers and template block in order to add quickly new informations

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r2024 r2041  
    779779$perm_url = get_root_url().'admin.php?page=user_perm&user_id=';
    780780
     781$visible_user_list = array();
    781782foreach ($page['filtered_users'] as $num => $local_user)
    782783{
     
    791792  }
    792793
     794  $visible_user_list[] = $local_user;
     795}
     796
     797$visible_user_list = trigger_event('loc_visible_user_list', $visible_user_list);
     798
     799foreach ($visible_user_list as $num => $local_user)
     800{
    793801  $groups_string = preg_replace(
    794802    '/(\d+)/e',
     
    834842      )
    835843    );
     844  trigger_action('loc_assign_block_var_local_user_list', $local_user);
    836845}
    837846
  • trunk/template/yoga/admin/user_list.tpl

    r1900 r2041  
    7575    <th>{lang:Groups}</th>
    7676    <th>{lang:properties}</th>
     77    <!-- BEGIN cpl_title_user -->
     78    <th>{cpl_title_user.CAPTION}</th>
     79    <!-- END cpl_title_user -->
    7780    <th>{lang:actions}</th>
    7881  </tr>
     
    8588    <td>{user.GROUPS}</td>
    8689    <td>{user.PROPERTIES}</td>
     90    <!-- BEGIN cpl_user -->
     91    <td>{user.cpl_user.DATA}</td>
     92    <!-- END cpl_user -->
    8793    <td style="text-align:center;">
    8894      <a href="{user.U_PERM}"><img src="{themeconf:icon_dir}/permissions.png" class="button" style="border:none" alt="{lang:permissions}" title="{lang:permissions}" /></a>
    8995      <a href="{user.U_PROFILE}"><img src="{themeconf:icon_dir}/edit_s.png" class="button" style="border:none" alt="{lang:Profile}" title="{lang:Profile}" /></a>
     96      <!-- BEGIN cpl_link_user -->
     97      {user.cpl_link_user.DATA}
     98      <!-- END cpl_link_user -->
    9099    </td>
    91100  </tr>
Note: See TracChangeset for help on using the changeset viewer.