Esempio n. 1
0
if (!empty($arrInfo['meta_Title'])) {
    $strTitle = $arrInfo['meta_Title'];
} else {
    $strTitle = $arrInfo['title'];
}
if (!empty($arrInfo['meta_Description'])) {
    $strDescription = $arrInfo['meta_Description'];
} else {
    $strDescription = $strTitle . ',' . $arrInfo['summary'];
}
if (!empty($arrInfo['meta_Keywords'])) {
    $strKeywords = $arrInfo['meta_Keywords'];
} else {
    $strKeywords = $arrInfo['title'];
}
if (!is_array($arrMType) || empty($arrMType)) {
    $arrMType = $objWebInit->getTypeList();
    $arrMType = $objWebInit->formatTypeList(0, $arrMType);
}
include '_block.php';
//print_r($arrInfo);
// 输出到模板
$arrMOutput["smarty_assign"]['arrData'] = $arrInfo;
$arrMOutput["smarty_assign"]['FileCallPath'] = $objWebInit->arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['arrMType'] = $arrMType;
$arrMOutput['smarty_assign']['Title'] = $strTitle . ' - ' . $arrGWeb['name'];
$arrMOutput['smarty_assign']['Description'] = $strDescription . ' - ' . $arrGWeb['name'];
$arrMOutput['smarty_assign']['Keywords'] = $strKeywords . ' - ' . $arrGWeb['name'];
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['main_dir'] . 'detail.html';
$objWebInit->output($arrMOutput);