本文整理汇总了PHP中Meta::getTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::getTitle方法的具体用法?PHP Meta::getTitle怎么用?PHP Meta::getTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meta
的用法示例。
在下文中一共展示了Meta::getTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setMeta
public function setMeta(Meta $meta)
{
$this->setTitle($meta->getTitle());
$this->setDescription($meta->getDescription());
$this->setKeywords($meta->getKeywords());
}
示例2: HTML
<?php
include 'common/dynamicHTML.php';
include 'common/meta.php';
$html = new HTML();
$meta = new Meta();
?>
<!doctype html>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="IE=Edge"/>
<title><?php
echo $meta->getTitle();
?>
</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="description" content="<?php
echo $meta->getMetaDesc();
?>
" />
<link rel="shortcut icon" type="image/x-icon" href="http://allearter.dk/grafik/images/favicons/favicon_fa.ico" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" language="javascript" src="DataTables-1.9.1/media/js/jquery.dataTables.js"></script>
<link rel="stylesheet" href="DataTables-1.9.1/media/css/jquery.dataTables.css" type="text/css" media="screen" />
<link rel="stylesheet" href="DataTables-1.9.1/media/css/jquery.dataTables_themeroller.css" type="text/css" media="screen" />
<script type="text/javascript" src="DataTables-1.9.1/extras/TableTools/media/js/TableTools.min.js"></script>
<script type="text/javascript" src="DataTables-1.9.1/extras/ColReorder/media/js/ColReorder.js"></script>
<script type="text/javascript" src="DataTables-1.9.1/extras/ColVis/media/js/ColVis.js"></script>
<link rel="stylesheet" href="DataTables-1.9.1/extras/ColReorder/media/css/ColReorder.css" type="text/css" media="screen" />