나는 동적 레이아웃을 설계하고 있으며 모든 페이지는 index.php에 포함되어 있습니다.
해당 페이지에는 코드가 없습니다. 그냥 콘텐츠. 이 내가 제목에 대한을 충분히 추가되었다 문질러서하지만하지 않습니다PHP 제목 및 메타 태그 다이나믹
<html>
<head>
<title>Text | <?php echo'$text;'?></title>
<meta http-equiv="Content-Language" content="it" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="template/style.css">
<link rel="stylesheet" type="text/css" href="config/jsmenu.css">
<link rel="stylesheet" type="text/css" href="config/menu.css">
<script type="text/javascript" src="config/expand.js"></script>
<script type="text/javascript" src="config/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="config/scriptbreaker-multiple-accordion-1.js"></script>
<script language="JavaScript">
$(document).ready(function() {
$(".topnav").accordion({
accordion:false,
speed: 500,
closedSign: '[+]',
openedSign: '[-]'
});
});
</script>
</head>
<body>
<div id="container">
<div id="banner"><?php include('template/banner.php') ?></div>
<!--<div id="nav_main"><?php include('template/nav_main.php') ?></div> -->
<div id="navigation_left"><?php include("template/link_left.php") ?></div>
<div id="navigation_right" align="left"><?php include("template/link_right.php") ?></div>
<div id="content"><?php include("$page.php") ?></div>
<div id="footer"><?php include('template/footer.php') ?></div>
</div>
</body>
</html>
$ 페이지 link_left.php 또는 link_right.php
<?php
isset($_GET["page"]) ? $page=$_GET["page"] : $page="home";
$links=array(
"fmp_trama" => "Full Metal Panic!",
"fumoffu_trama" => "Full Metal Panic? Fumoffu",
"fmptsr" => "Full Metal Panic! TSR",
"riassunti" => "Riassunti Episodi",
"manga" => "Manga",
"listamanga" => "Lista Manga",
"lnrecensione" => "Romanzo",
"romanzi" => "Lista Romanzi",
"sigma" => "Sigma",
"overload" => "Overload",
"comicmission" => "Comic Mission",
"another" => "Another",
"sdnefd" => "SDNED",
"zero" => "Zero",
"riassunti_manga" => "Riassunti Manga",
"riassuntiromanzi" => "Riassunti Romanzi"
);
foreach($links as $href=>$text){
if($page!=$links){
echo '<li><a href="?page='.$href.'">'.$text.'</a></li>';
}else{echo $text;}
}
?>
에 포함이 다른 조각에 의해 생성되는 내 인덱스 작업. 나는 키워드와 설명을 위해 무엇을해야할지 모른다. 나는 데이터베이스를 사용하지 않는다. 여기, @RST 에서 수정 및 설명 질문을 사용하여
<p style="background:#ffa">
Lorem ipsum dolor sit amet, consectetaur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.
</p>
이 '한다면, 시도 ($ 페이지를! = $의 HREF) {' – RST
질문하고 당신이 당신이 동적에 메타 설명 및 메타 키워드를 포함 할 것을 이해 달성하려고 시도를 명확히하십시오 페이지 당 기준이 맞습니까? 문제는 "page.php"에서 메타에 액세스 할 수 없다는 것입니다. – XhkUnlimit
RST : 아무 것도 변경되지 않습니다. @XhkUnlimit : 맞습니다. 실제로 page.php는 존재하지 않습니다. 메뉴가 페이지를 만듭니다. .php는? 페이지가 .php 파일을로드한다는 것을 말합니다. 내가 잘 설명하는지 모르겠다. – Shika93