Compare commits
No commits in common. "6d00ffdffb30a432314564470a01ad698b07f46a" and "7371902fd13392884386cd72021e09af58644a75" have entirely different histories.
6d00ffdffb
...
7371902fd1
6
blog.php
6
blog.php
@ -261,7 +261,6 @@
|
|||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$morePosts = 0;
|
$morePosts = 0;
|
||||||
$firstRendered = 0;
|
|
||||||
foreach($posts as $k=>$v) {
|
foreach($posts as $k=>$v) {
|
||||||
if ($v->isPublic) {
|
if ($v->isPublic) {
|
||||||
if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) {
|
if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) {
|
||||||
@ -283,14 +282,11 @@
|
|||||||
<dc:creator>' . $v->author . '</dc:creator>
|
<dc:creator>' . $v->author . '</dc:creator>
|
||||||
</item>';
|
</item>';
|
||||||
} else {
|
} else {
|
||||||
if ($firstRendered) {
|
|
||||||
echo '<hr class="postSeparator">';
|
|
||||||
}
|
|
||||||
$firstRendered = 1;
|
|
||||||
echo '<div class="post">';
|
echo '<div class="post">';
|
||||||
require $v->includeFile;
|
require $v->includeFile;
|
||||||
renderFooter();
|
renderFooter();
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
echo '<hr class="postSeparator">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (($i % POSTS_PAGE_SIZE) == 0) {
|
if (($i % POSTS_PAGE_SIZE) == 0) {
|
||||||
|
@ -115,9 +115,9 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</content>
|
</content>
|
||||||
</div>
|
<div id="footer">
|
||||||
<div id="footer">
|
Copyright <?php echo PAGE_AUTHOR; ?><!-- and <a href="/?p=extcontent">others</a>--> | <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/us/"><img style="position:relative;top:4px;opacity:0.75;" src="/img/cc-byncsa.png"></a> | <a href="/?p=contact#privacy">Privacy Policy</a> | <?php echo date("Y"); ?>
|
||||||
Copyright <?php echo PAGE_AUTHOR; ?><!-- and <a href="/?p=extcontent">others</a>--> | <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/us/"><img style="position:relative;top:4px;opacity:0.75;" src="/img/cc-byncsa.png"></a> | <a href="/?p=contact#privacy">Privacy Policy</a> | <?php echo date("Y"); ?>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -137,7 +137,7 @@
|
|||||||
} else if (opted_in('y')) {
|
} else if (opted_in('y')) {
|
||||||
echo '<iframe width="100%" height="100%" src="' . $url . '" frameborder="0" allowfullscreen></iframe>';
|
echo '<iframe width="100%" height="100%" src="' . $url . '" frameborder="0" allowfullscreen></iframe>';
|
||||||
} else {
|
} else {
|
||||||
echo "<div style='width:100%;height:100%;background-color:black;background-image: url(" . YT_PREVIEW . $youtube['vid'] . ".jpg);background-size:contain;'><table border=0 style='height:100%;width:100%;background-color:rgba(0,0,0,0.55);backdrop-filter:blur(3px);text-shadow:1px 1px black;'><tr><td style='text-align:center;'>Embedded content has been disabled to protect your privacy.<br><br><br><strong><form action='' method='post'><input type='hidden' name='optin-once' value='y' /><input type='submit' value='Click here to load the videos on this site once,'/></form></strong><br><br><strong><a href='/?p=privacy-controls'>or click here to allow them permanently,</a><br><br><a href=\"" . $youtube['link'] . "\">" . "or click here to watch the video on YouTube:<br>" . $youtube['link'] . "</a></strong><br><br><br>Please note that, by enabling this video, data is transferred <br>to YouTube LLC, and is subject to their privacy policy.</td></tr></table></div>";
|
echo "<div style='width:100%;height:100%;background-color:black;background-image: url(" . YT_PREVIEW . $youtube['vid'] . ".jpg);background-size:contain;'><table border=0 style='height:100%;width:100%;backdrop-filter:blur(3px);background-color:rgba(0,0,0,0.55);text-shadow:1px 1px black;'><tr><td style='text-align:center;'>Embedded content has been disabled to protect your privacy.<br><br><br><strong><form action='' method='post'><input type='hidden' name='optin-once' value='y' /><input type='submit' value='Click here to load the videos on this site once,'/></form></strong><br><br><strong><a href='/?p=privacy-controls'>or click here to allow them permanently,</a><br><br><a href=\"" . $youtube['link'] . "\">" . "or click here to watch the video on YouTube:<br>" . $youtube['link'] . "</a></strong><br><br><br>Please note that, by enabling this video, data is transferred <br>to YouTube LLC, and is subject to their privacy policy.</td></tr></table></div>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO: HTML5 video
|
// TODO: HTML5 video
|
||||||
|
Loading…
Reference in New Issue
Block a user