Changeset 11981
- Timestamp:
- 09/04/07 11:38:23 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/services/metadata.php
r11779 r11981 132 132 } 133 133 134 // Append current topic to page class 135 $page_class .= ' ' . str_replace('.', '_', $_MIDCOM->get_context_data(MIDCOM_CONTEXT_COMPONENT)); 134 // Append current topic to page class if enabled 135 if ($GLOBALS['midcom_config']['page_class_include_component']) 136 { 137 $page_class .= ' ' . str_replace('.', '_', $_MIDCOM->get_context_data(MIDCOM_CONTEXT_COMPONENT)); 138 } 136 139 137 140 // Append a custom class from topic to page class … … 142 145 } 143 146 144 $this->_page_classes[$context_id] = $page_class;147 $this->_page_classes[$context_id] = trim($page_class); 145 148 } 146 149
