Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature Request: Add plugin's ID to table row class on Plugins page.
I develop the GetSimple Blog plugin, and one of the things it comes with is an icon in the tab is creates at the top of the admin area. I'd like to be able to add the same icon to the plugin's title in the list of plugins using a bit of CSS. To do that, I would need to know the class of the TR row where the plugins show on the 'Plugins' tab, but as this currently changes according to how many plugins are installed, this has not been easily possible. So, adding the plugin's id to the class would enable the ability to do this, and you would end up with something that looks like:
<tr id="tr-0" class="enabled gs-blog">

File Modification - plugins.php:62

Change the following:
$table .= '<tr id="tr-'.$counter.'" class="'.$trclass.'" >';

$table .= '<tr id="tr-'.$counter.'" class="'.$trclass.' '.$pathName.'" >';
Check out my website:
    $('#plugins .edittable tr td:first-child b').each(function(i,elem){
        $(elem).closest('tr').addClass(elem.innerHTML.toLowerCase().replace(/ /g, '_').replace(/.php/g, ''));

<tr id="tr-0" class="disabled anonymous_data"><td style="width:150px"><b>anonymous_data.php</b></td><td>
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix

Users browsing this thread: 1 Guest(s)