Exemplo n.º 1
0
 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>";
 }
Exemplo n.º 2
0
 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>';
 }
Exemplo n.º 3
0





				<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>
Exemplo n.º 4
0
							<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">