コード例 #1
0
ファイル: cms.php プロジェクト: matthisamoto/Graphfan
 function catch404()
 {
     global $cms, $bigtree;
     if ($this->handle404(str_ireplace(WWW_ROOT, "", BigTree::currentURL()))) {
         $bigtree["layout"] = "default";
         ob_start();
         include "../templates/basic/_404.php";
         $bigtree["content"] = ob_get_clean();
         ob_start();
         include "../templates/layouts/" . $bigtree["layout"] . ".php";
         die;
     }
 }
コード例 #2
0
ファイル: _header.php プロジェクト: matthisamoto/Graphfan
<?php

$current_url = BigTree::currentURL();
$home_page = $cms->getPage(0);
if ($bigtree["page"]["id"]) {
    $bigtree["page"]["title"] .= "&nbsp;&middot;&nbsp;" . $home_page["nav_title"];
}
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		
		<meta name="keywords" content="<?php 
echo $bigtree["page"]["meta_keywords"];
?>
" />
		<meta name="description" content="<?php 
echo $bigtree["page"]["meta_description"];
?>
" />
		<meta name="author" content="<?php 
echo $home_page["nav_title"];
?>
" />
		
		<!-- G+ AND FACEBOOK META TAGS -->
		<meta property="og:title" content="<?php 
echo $bigtree["page"]["title"];