Active Class for individual items
dvasquez - February 28, 2009 - 15:10
| Project: | Control Panel |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | dvasquez |
| Status: | active |
| Issue tags: | control panel, CSS, Drupal 5 |
Jump to:
Description
This modify mays apply CSS to individual items on Control Panel:
$content .= '';
$content .= '';
$file_name = $image_directory . '/' . str_replace('/', '_', $working_path) . '.png';
//drupal_set_message($file_name);
if (file_exists($file_name)) {
$src = $file_name;
}
This asign de path on a class for the item DIV.

#1
correction:
$content .= '<div class="boton_' . str_replace('/', '_', $working_path) .' control-panel-item control-panel-icon-size-' . variable_get('controlpanel_icon_size' . $block, '48x48') . '">';$content .= '<a href="' . url($menu_visible[$mid]['path']) . '">';
$file_name = $image_directory . '/' . str_replace('/', '_', $working_path) . '.png';
//drupal_set_message($file_name);
if (file_exists($file_name)) {
$src = $file_name;
}