3 This script embeds meta data (from meta edit box) into generated .html
5 - <meta name="keywords" ...
8 include() this fragment AFTER you have loaded 'ewiki.php' and have
9 run ewiki_page() at least once:
13 $CONTENT = ewiki_page();
16 <title><&php echo $ewiki_title; &></title>
17 <&php include("fragments/head/meta.php"); &>
18 <&php include("fragments/css.php"); &>
23 if ($ewiki_data && function_exists("ewiki_script")) {
24 if ($m = &$ewiki_data["meta"]["meta"]) {
26 #-- real page <meta> data
27 $real_meta = array("keywords", "description", "author", "robots");
28 foreach ($real_meta as $i) {
30 echo '<meta name="'.$i.'" content="'.htmlentities($m[$i]).'">'."\n";
34 #-- site structure meta <link>s
35 $rel_links = array("prev", "next", "contents", "chapter", "section", "start");
36 foreach ($rel_links as $i) {
38 echo '<link rel="'.$i.'" href="'.ewiki_script("", $m[$i]).'">'."\n";
42 #-- alternate representations
43 $alt_repr = array("links", "edit");
44 foreach ($alt_repr as $i) {
45 if ($ewiki_action==$i) { $i = ""; }
46 echo '<link rel="alternate" href="'.ewiki_script($i, $ewiki_id).'" title="'.htmlentities($i?$i:$ewiki_id).'">'."\n";