本文整理匯總了PHP中BigTree::currentURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP BigTree::currentURL方法的具體用法?PHP BigTree::currentURL怎麽用?PHP BigTree::currentURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BigTree
的用法示例。
在下文中一共展示了BigTree::currentURL方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: catch404
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:
<?php
$current_url = BigTree::currentURL();
$home_page = $cms->getPage(0);
if ($bigtree["page"]["id"]) {
$bigtree["page"]["title"] .= " · " . $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"];