2016-11-19 16:13:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
addTitle($_locale['entries']);
|
|
|
|
|
|
|
|
if (isset($seo[1]) && isnum($seo[1]))
|
|
|
|
$blog = new blog(null, $seo[1]);
|
|
|
|
else
|
|
|
|
$blog = new blog();
|
|
|
|
|
|
|
|
if (theme_component('entries'))
|
|
|
|
include theme_component('entries');
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (LOGGEDIN && $user['userLevel'] > 2) echo "<a href='/admin/entry'><p class='phantom'>{locale:new_entry}</p></a>";
|
|
|
|
if ($blog->entries)
|
|
|
|
{
|
|
|
|
while ($data = $blog->entries())
|
|
|
|
echo "<article>
|
|
|
|
<header itemscope itemtype='http://schema.org/Article'>
|
|
|
|
<h2><a href='".get_entry_link($data['entrySlug'])."' itemprop='name'>".htmlspecialchars($data['entryTitle'])."</a></h2>
|
|
|
|
<p class='meta'><time class='date' title='{locale:published_on}' itemprop='datePublished' content='".date('Y-m-d', $data['entryPublished'])."'>".show_date($data['entryPublished'])."</time><span itemprop='author' itemscope itemtype='http://schema.org/Person'><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}' itemprop='url'><span itemprop='name'>$data[publicName]</span></a></span>".get_entry_admin($data)."</p>
|
|
|
|
</header>
|
|
|
|
<div class='content' itemprop='articleBody'>".entry_show_init($data['entryContent'], $data['entrySlug'])."</div>
|
|
|
|
</article>\n";
|
|
|
|
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]+1)."'>{locale:next_page}</a><a href='/p/".($seo[1]-1)."'>{locale:prev_page}</a>" : "<a href='/p/2'>{locale:next_page}</a>")."</p>";
|
|
|
|
} else
|
|
|
|
echo "<h1>{locale:entry_not_found_title}</h1>"
|
|
|
|
."<p>{locale:entry_not_found}</p>\n";
|
2016-06-18 10:07:35 +02:00
|
|
|
}
|