Project

General

Profile

Bug #3272 » 3272_rev1.patch

krileon, 15 February 2012 15:37

View differences:

administrator/components/com_comprofiler/view/view.users.php
<?php
if ( version_compare( checkJversion( 'release' ), '2.5', '>=' ) && $row->note_count ) {
// Filter notes:
echo '<a href="' . JRoute::_( 'index.php?option=com_users&view=notes&filter_search=uid:' . (int) $row->id ) . '">'
. JHtml::image( 'images/filter_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_('COM_USERS_FITLER_NOTES'), 'height' => '16', 'width' => '16' ), true) . '</a>';
echo '<a href="' . JRoute::_( 'index.php?option=com_users&view=notes&filter_search=uid:' . (int) $row->id) . '">'
. JHtml::_( 'image', 'admin/filter_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_( 'COM_USERS_FILTER_NOTES' ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
// Show notes:
echo '<a class="modal" href="' . JRoute::_( 'index.php?option=com_users&view=notes&tmpl=component&layout=modal&u_id=' . (int) $row->id ) . '"' .
' rel="{handler: \'iframe\', size: {x: 800, y: 450}}">' .
JHtml::image( 'images/note_16.png', 'COM_USERS_NOTES', array( 'title' => JText::plural( 'COM_USERS_N_USER_NOTES', $row->note_count ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
echo '<a class="modal"' .
' href="' . JRoute::_( 'index.php?option=com_users&view=notes&tmpl=component&layout=modal&u_id=' . (int) $row->id) . '"' .
' rel="{handler: \'iframe\', size: {x: 800, y: 450}}">' .
JHtml::_( 'image', 'menu/icon-16-user-note.png', 'COM_USERS_NOTES', array( 'title' => JText::plural( 'COM_USERS_N_USER_NOTES', $row->note_count ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
}
echo '<a href="' . JRoute::_( 'index.php?option=com_users&task=note.add&u_id=' . (int) $row->id ) . '">'
. JHtml::image( 'images/note_add_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_( 'COM_USERS_ADD_NOTE' ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
echo '<a href="' . JRoute::_( 'index.php?option=com_users&task=note.add&u_id=' . (int) $row->id) . '">'
. JHtml::_( 'image', 'admin/note_add_16.png', 'COM_USERS_NOTES', array( 'title' => JText::_( 'COM_USERS_ADD_NOTE' ), 'height' => '16', 'width' => '16' ), true ) . '</a>';
?>
</div>
<?php
(5-5/8)