当前目录:帝国CMS笔记

帝国cms内容页标题 关键词 描述不带符号调用

帝国CMS笔记 2025-04-03 16:17:38

帝国cms内容页标题 关键词 描述不带符号调用
标题,不带空格的跟不带 `  符号的。
<?
$qian=array("`"," "," ","t","n","r","&lt;","&gt;","&","l","t",";","g","/","p","quo");$hou=array("","","","","","","","","","","","","","","","");
$title=str_replace($qian,$hou,$navinfor[title]);
echo $title;
?>
关键词不带空格跟 `  符号的。
<?
$qian=array("`"," "," ","t","n","r","&lt;","&gt;","&","l","t",";","g","/","p","quo");$hou=array("","","","","","","","","","","","","","","","");
$keyboard=str_replace($qian,$hou,$navinfor[keyboard]);
echo $keyboard;
?>

内容简介,不带空格的跟不带 `  符号的。
<meta name="description" content="<?
$qian=array("`"," "," ","t","n","r","&lt;","&gt;","&","l","t",";","g","/","p","quo");$hou=array("","","","","","","","","","","","","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>" />


正文中调用内容简介显示某个时间段之前的简介不显示。
<?
if($navinfor['newstime'] > 1722441600) {
$qian=array("`"," "," ","t","n","r","&lt;","&gt;","&","l","t",";","g","/","p","quo");$hou=array("","","","","","","","","","","","","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
}else{
 echo '';
}
?>





<meta name="description" content="<?
$qian=array(" "," ","t","n","r");$hou=array("","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>" />

<meta name="description" content="<?
$qian=array(" "," ","t","n","r");$hou=array("","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>" />

帝国cms内容页标题 关键词 描述不带符号调用