本文整理汇总了PHP中Meta::description方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::description方法的具体用法?PHP Meta::description怎么用?PHP Meta::description使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meta
的用法示例。
在下文中一共展示了Meta::description方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: url
">
<meta property="og:type" content="website">
<meta property="og:url" content="<?php
Meta::url();
?>
">
<meta property="og:image" content="<?php
echo url('/apple-touch-icon-114x114-precomposed.png');
?>
">
<meta property="og:site_name" content="<?php
echo $config['main']['site_name'];
?>
">
<meta property="og:description" content="<?php
Meta::description();
?>
">
<meta property="og:locale" content="en_US">
<base href="<?php
echo url('/');
?>
">
<link rel="shortcut icon" href="<?php
echo url('/favicon.ico');
?>
">
<link rel="apple-touch-icon" href="<?php
echo url('/apple-touch-icon.png');
示例2:
require_once "global/assets.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="<?php
echo Meta::keyword($title, $meta_keywords);
?>
">
<meta name="description" content="<?php
echo Meta::description($title, $meta_descriptions);
?>
">
<meta name="author" content="VitalStorm.com">
<link href="css/style.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,800,700,600,300" rel="stylesheet" type="text/css">
<script src="http://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="js/init.js" type="text/javascript"></script>
</head>
<body>
<!-- MOBILE MENU -->
<section id="off_canvas_menu">
<div class="close-button">
<div>
<img alt="close_button" src="images/close_off_canvas_light.png" >