本文整理汇总了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"];