-// Generates meta description for given module and 'what' value
-function generateMetaDescriptionCode ($module, $what) {
- // Exclude admin and member's area
- if (($module != 'admin') && ($module != 'login')) {
- // Construct dynamic description
- $DESCR = '{?MAIN_TITLE?} '.trim(getConfig('title_middle')) . ' ' . getTitleFromMenu('guest', $what);
-
- // Output it directly
- outputHtml('<meta name="description" content="' . $DESCR . '" />');
- } // END - if
-
- // Remove depth
- unset($GLOBALS['ref_level']);
-}
-