Compare commits
No commits in common. "a60988f46805fbf3f8d31bb3e723830e4d3ae21e" and "f3643931243e0fd4e45b6ea635e6d2a05a8d5653" have entirely different histories.
a60988f468
...
f364393124
14
blog.php
14
blog.php
@ -97,10 +97,9 @@
|
|||||||
$blogentry->tags = explode(',', $blogentry->tags);
|
$blogentry->tags = explode(',', $blogentry->tags);
|
||||||
sort($blogentry->tags);
|
sort($blogentry->tags);
|
||||||
$blogentry->permalink = getServerUrl() . "/?p=blog&b=" . str_replace("/", POSTS_DIR_SEP, $blogentry->file);
|
$blogentry->permalink = getServerUrl() . "/?p=blog&b=" . str_replace("/", POSTS_DIR_SEP, $blogentry->file);
|
||||||
$blogentry->isVisible = ($blogentry->ctime <= time()) && (($blogentry->status == "released") || ($blogentry->status == "unlisted"));
|
$blogentry->isPublic = ($blogentry->status == "released");
|
||||||
$blogentry->isPublic = ($blogentry->status == "released") && $blogentry->isVisible;
|
|
||||||
}
|
}
|
||||||
$renderIt = $CMS_INDEXING || $blogentry->isVisible;
|
$renderIt = $CMS_INDEXING || ($blogentry->status == "released") || ($blogentry->status == "unlisted");
|
||||||
|
|
||||||
if ($renderIt && !isset($CMS_RSS)) {
|
if ($renderIt && !isset($CMS_RSS)) {
|
||||||
if (isset($postUrl) && !$CMS_INDEXING) { // Set meta information
|
if (isset($postUrl) && !$CMS_INDEXING) { // Set meta information
|
||||||
@ -144,6 +143,8 @@
|
|||||||
echo '<a href="/?p=blog&t=' . $v . '">' . $v . '</a> ';
|
echo '<a href="/?p=blog&t=' . $v . '">' . $v . '</a> ';
|
||||||
}
|
}
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function extended() {
|
function extended() {
|
||||||
@ -228,13 +229,10 @@
|
|||||||
echo '<div class="post">';
|
echo '<div class="post">';
|
||||||
// Header is rendered in renderPost()
|
// Header is rendered in renderPost()
|
||||||
require $postUrl; // This will render the body
|
require $postUrl; // This will render the body
|
||||||
if ($blogentry->isVisible) { // Render the blog footer
|
//if ($blogentry->isPublic) { // Render the blog footer
|
||||||
//echo "<p class=\"author\">Written by $blogentry->author</p>";
|
//echo "<p class=\"author\">Written by $blogentry->author</p>";
|
||||||
renderFooter();
|
renderFooter();
|
||||||
} else {
|
//}
|
||||||
echo("<h1>Private Post</h1>");
|
|
||||||
echo("<p>This post has not yet been made public by the publisher. Please check back again later. Thank you.</p>");
|
|
||||||
}
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user