-// Generates meta description for given module and 'what' value
-function generateMetaDescriptionCode ($module, $what) {
- // Only include from guest area
- if ($module == 'index') {
- // Construct dynamic description
- $DESCR = '{?MAIN_TITLE?} '.trim(getConfig('title_middle')) . ' ' . getTitleFromMenu('guest', $what);
-
- // Output it directly
- $GLOBALS['page_header'] .= '<meta name="description" content="' . $DESCR . '" />';
- } // END - if
-
- // Remove depth
- unset($GLOBALS['ref_level']);
-}
-