Changeset 11981

Show
Ignore:
Timestamp:
09/04/07 11:38:23 (1 year ago)
Author:
w_i
Message:

Made the topic appending to the page class configurable. refs #102

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/services/metadata.php

    r11779 r11981  
    132132        } 
    133133         
    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        } 
    136139         
    137140        // Append a custom class from topic to page class 
     
    142145        } 
    143146 
    144         $this->_page_classes[$context_id] = $page_class
     147        $this->_page_classes[$context_id] = trim($page_class)
    145148    } 
    146149