Changeset 14331
- Timestamp:
- 01/09/08 10:51:48 (1 year ago)
- Files:
-
- trunk/midcom/fi.protie.navigation/documentation/CHANGES (modified) (1 diff)
- trunk/midcom/fi.protie.navigation/main.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/fi.protie.navigation/documentation/CHANGES
r13624 r14331 6 6 which might even break existing functionality. 7 7 - All items marked with "+" represent completely new features. 8 9 2008-01-09 adrenalin 10 - Added configurable option for inserting the class name to the link tag as well. 8 11 9 12 2007-11-23 adrenalin trunk/midcom/fi.protie.navigation/main.php
r14140 r14331 126 126 */ 127 127 var $show_only_current = false; 128 129 /** 130 * Should the CSS class be in the link as well 131 * 132 * @access public 133 * @var boolean 134 */ 135 var $class_to_link = false; 128 136 129 137 /** … … 693 701 694 702 $get_params = $this->_get_parameter_string(); 703 704 if ($this->class_to_link) 705 { 706 $link_class = $class; 707 } 708 else 709 { 710 $link_class = ''; 711 } 695 712 696 713 echo "{$indent} <li{$class}>\n"; 697 echo "{$indent} <a href=\"{$item[MIDCOM_NAV_FULLURL]}{$get_params}\" >{$item[MIDCOM_NAV_NAME]}</a>\n";714 echo "{$indent} <a href=\"{$item[MIDCOM_NAV_FULLURL]}{$get_params}\"{$link_class}>{$item[MIDCOM_NAV_NAME]}</a>\n"; 698 715 699 716 // If either of the follow nodes switches is on, follow all the nodes
