当前位置: 首页>>代码示例>>PHP>>正文


PHP Blog::getTitle方法代码示例

本文整理汇总了PHP中Blog::getTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Blog::getTitle方法的具体用法?PHP Blog::getTitle怎么用?PHP Blog::getTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Blog的用法示例。


在下文中一共展示了Blog::getTitle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: visitBlog

 function visitBlog(Blog $b)
 {
     $page = $b->getPage($this->_id);
     echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
     echo "<html><head>";
     echo '<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1">';
     echo "<title>" . $b->getTitle() . "</title>";
     echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="http://' . $_SERVER['SERVER_NAME'] . $this->_rootfolder . 'rss.php">';
     echo "</head><body>";
     $page->accept($this);
     echo "</body></html>";
 }
开发者ID:laiello,项目名称:abbov,代码行数:12,代码来源:pagevisitor.php

示例2: visitBlog

 function visitBlog(Blog $b)
 {
     $pages = $b->getPages();
     header('Content-type: application/rss+xml');
     echo '<?xml version="1.0" encoding="UTF-8"?>';
     echo '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">';
     echo '<channel>';
     echo '<atom:link href="http://' . $_SERVER['SERVER_NAME'] . $this->_rootfolder . 'rss.php" rel="self" type="application/rss+xml" />';
     echo "<title>" . $b->getTitle() . "</title>";
     echo '<link>http://' . $_SERVER['SERVER_NAME'] . $this->_rootfolder . '</link>';
     echo '<description>ABBOV test page</description>';
     echo '<language>pt-pt</language>';
     foreach ($pages as $pa) {
         $pa->accept($this);
     }
     echo '</channel>';
     echo '</rss>';
 }
开发者ID:laiello,项目名称:abbov,代码行数:18,代码来源:rssvisitor.php

示例3:







				<section class="content">
					<div class="scroll-wrap">

						<?php 
foreach ($posts as $key => $value) {
    //print_r($value);
    echo '
						<article class="content__item">
							
							<h2 class="title title--full">' . $blog->getTitle($value) . '</h2>
							<span class="category category--full">' . $blog->getTwitter($value) . '</span>
							
							<div class="meta meta--full">
								' . $blog->getShareButtons($value['id']) . '
								<img class="meta__avatar" src="' . $blog->getPhoto($value['photo']) . '" alt="' . $blog->getTitle($value) . '"  style="width:100%;border-radius:0;"/> 
								<center>' . $blog->embedPost($value) . '</center>
								<hr>
								<span class="meta__author">' . $value['user_name'] . '</span>
								<span class="meta__date"><i class="fa fa-calendar-o"></i> ' . $blog->datePosted(strtotime($value['submission_date'])) . '</span>
								<span class="meta__reading-time"><i class="fa fa-clock-o"></i> ' . $value['type'] . '</span>
							</div>
							
							<!--
							<p>I am fully aware of the shortcomings in these essays. I shall not touch upon those which are characteristic of first efforts at investigation. The others, however, demand a word of explanation.</p>
							<p>The four essays which are here collected will be of interest to a wide circle of educated people, but they can only be thoroughly understood and judged by those who are really acquainted with psychoanalysis as such. It is hoped that they may serve as a bond between students of ethnology, philology, folklore and of the allied sciences, and psychoanalysts; they cannot, however, supply both groups the entire requisites for such co-operation. They will not furnish the former with sufficient insight into the new psychological technique, nor will the psychoanalysts acquire through them an adequate command over the material to be elaborated. Both groups will have to content themselves with whatever attention they can stimulate here and there and with the hope that frequent meetings between them will not remain unproductive for science.</p>
开发者ID:mayoalexander,项目名称:fl-two,代码行数:25,代码来源:dashboard.php

示例4: date

							<img class="meta__avatar" src="' . $ads[0]['image'] . '" alt="' . $ads[0]['title'] . '"  style="border-radius:0;"/> 
							<h2 class="title title--preview">' . $ads[0]['title'] . '</h2>
							<span class="category">' . $ads[0]['caption'] . '</span>
							<div class="loader"></div>
							
							<div class="meta meta--preview">
								<span class="meta__date"><i class="fa fa-calendar-o"></i> ' . date('F j', strtotime($ads[0]['date'])) . '</span>
								<span class="meta__reading-time"><i class="fa fa-clock-o"></i> ' . $ads[0]['type'] . '</span>
							</div>

						</a>';
foreach ($posts as $key => $value) {
    echo '
						<a class="grid__item" href="#' . $value['twitter'] . '">
							<img class="meta__avatar" src="' . $blog->getPhoto($value['photo']) . '" alt="' . $blog->getTitle($value) . '"  style="border-radius:0;"/> 
							
							<h2 class="title title--preview">' . $blog->getTitle($value) . '</h2>
							<span class="category">' . $value['twitter'] . '</span>
							<div class="loader"></div>
							
							
							<div class="meta meta--preview">
								<span class="meta__date"><i class="fa fa-calendar-o"></i> ' . $blog->datePosted(strtotime($value['submission_date'])) . '</span>
								<span class="meta__reading-time"><i class="fa fa-clock-o"></i> ' . $value['type'] . '</span>
							</div>

						</a>';
}
?>
					<footer class="page-meta load-more-button-testing">
开发者ID:mayoalexander,项目名称:fl-two,代码行数:30,代码来源:stream.php


注:本文中的Blog::getTitle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。