Esempio n. 1
0
             }
             break;
         case 'introtext_' . $langId:
             $standardTVs['5'] = YAMSTVDataToMMName($name, $id, 'tv', $mm_version);
             break;
         case 'menutitle_' . $langId:
             $standardTVs['6'] = YAMSTVDataToMMName($name, $id, 'tv', $mm_version);
             break;
         case 'content_' . $langId:
             $standardTVs['7'] = YAMSTVDataToMMName($name, $id, 'tv', $mm_version);
             break;
         default:
             if (array_key_exists($rank, $customTVs)) {
                 $customTVs[] = YAMSTVDataToMMName($name, $id, 'tv', $mm_version);
             } else {
                 $customTVs[$rank] = YAMSTVDataToMMName($name, $id, 'tv', $mm_version);
             }
     }
 }
 // sort the standard tvs
 ksort($standardTVs);
 ksort($customTVs);
 $nStandardTVs = count($standardTVs);
 $nCustomTVs = count($customTVs);
 if ($nStandardTVs == 0 && $nCustomTVs == 0) {
     continue;
 }
 // Convert to list...
 $tvString = '';
 if ($nStandardTVs > 0) {
     $tvString .= implode(',', $standardTVs);
Esempio n. 2
0
         // Set it's value to an empty string for the moment...
         $tmplvars[$tvIdentifier] = array($tvIdentifier, '');
     }
 }
 if ($tmplvars[$tvIdentifier][1] == '') {
     // Use the pagetitle...
     $tmplvars[$tvIdentifier][1] = $langPagetitle;
 }
 // $langMenutitle = $tmplvars[ $tvIdentifier ][1];
 // Get the alias...
 $tvName = 'alias_' . $langId;
 $tvId = YAMSGetTempVarId($tvName);
 if ($tvId === FALSE) {
     continue;
 }
 $tvIdentifier = YAMSTVDataToMMName($tvName, $tvId, '');
 if (!array_key_exists($tvIdentifier, $tmplvars)) {
     if (!array_key_exists($tvName, $tmplvars)) {
         continue;
     } else {
         // The alias has been marked for deletion because it is empty
         // Undo that...
         unset($tmplvars[$tvName]);
         // Set it's value to an empty string for the moment...
         $tmplvars[$tvIdentifier] = array($tvIdentifier, '');
     }
 }
 if ($friendly_urls) {
     // Do alias auto-completion
     if ($automatic_alias) {
         // Check if the alias is empty...