aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-06-22 21:05:37 +0000
committerrub <rub@piwigo.org>2007-06-22 21:05:37 +0000
commit94a89e8f10bf95bb898d693204df4c6ba894291d (patch)
tree4f5538c721c75000862bf30049c3f6b5f44154b7
parent97703aa9deebdb6d7e9c3bed2917e78dd39d7be0 (diff)
Resolved issue 0000711: Add triggers and template block in order to add quickly new informations
Merge BSF 2040:2041 into branch-1_7 git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2042 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/user_list.php9
-rw-r--r--template/yoga/admin/user_list.tpl9
2 files changed, 18 insertions, 0 deletions
diff --git a/admin/user_list.php b/admin/user_list.php
index fa670efc0..1c7a752d4 100644
--- a/admin/user_list.php
+++ b/admin/user_list.php
@@ -778,6 +778,7 @@ $template->assign_vars(array('NAVBAR' => $navbar));
$profile_url = get_root_url().'admin.php?page=profile&amp;user_id=';
$perm_url = get_root_url().'admin.php?page=user_perm&amp;user_id=';
+$visible_user_list = array();
foreach ($page['filtered_users'] as $num => $local_user)
{
// simulate LIMIT $start, $conf['users_page']
@@ -790,6 +791,13 @@ foreach ($page['filtered_users'] as $num => $local_user)
break;
}
+ $visible_user_list[] = $local_user;
+}
+
+$visible_user_list = trigger_event('loc_visible_user_list', $visible_user_list);
+
+foreach ($visible_user_list as $num => $local_user)
+{
$groups_string = preg_replace(
'/(\d+)/e',
"\$groups['$1']",
@@ -833,6 +841,7 @@ foreach ($page['filtered_users'] as $num => $local_user)
? $lang['is_high_enabled'] : $lang['is_high_disabled']
)
);
+ trigger_action('loc_assign_block_var_local_user_list', $local_user);
}
// +-----------------------------------------------------------------------+
diff --git a/template/yoga/admin/user_list.tpl b/template/yoga/admin/user_list.tpl
index 8f38fc9ae..07c303ec4 100644
--- a/template/yoga/admin/user_list.tpl
+++ b/template/yoga/admin/user_list.tpl
@@ -74,6 +74,9 @@
<th>{lang:Email address}</th>
<th>{lang:Groups}</th>
<th>{lang:properties}</th>
+ <!-- BEGIN cpl_title_user -->
+ <th>{cpl_title_user.CAPTION}</th>
+ <!-- END cpl_title_user -->
<th>{lang:actions}</th>
</tr>
<!-- BEGIN user -->
@@ -84,9 +87,15 @@
<td>{user.EMAIL}</td>
<td>{user.GROUPS}</td>
<td>{user.PROPERTIES}</td>
+ <!-- BEGIN cpl_user -->
+ <td>{user.cpl_user.DATA}</td>
+ <!-- END cpl_user -->
<td style="text-align:center;">
<a href="{user.U_PERM}"><img src="{themeconf:icon_dir}/permissions.png" class="button" style="border:none" alt="{lang:permissions}" title="{lang:permissions}" /></a>
<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>
+ <!-- BEGIN cpl_link_user -->
+ {user.cpl_link_user.DATA}
+ <!-- END cpl_link_user -->
</td>
</tr>
<!-- END user -->