mostly single updates

This commit is contained in:
2019-07-11 03:40:11 +02:00
parent d1dbc518e3
commit 99e2082e42
13 changed files with 497 additions and 188 deletions

View File

@@ -10,7 +10,16 @@ External Modules/Files
// Load any external files you have here
//include 'ChromePhp.php';
//chromephp:
// include 'ChromePhp.php';
//usage:
//ChromePhp::log('Hello console!');
// Debug $data will display in console
function console_debug( $data ) {
$data = json_encode($data);
echo "<script>console.dir($data)</script>";
}
/*------------------------------------*\
Theme Support
@@ -513,13 +522,15 @@ function dis_2019_more_posts_on_home(&$query)
if (!$query->is_home() && !$query->is_archive()) {
return;
}
if ($query->is_home()) {
$pposts = 14;
} elseif ($query->is_tag()) {
$pposts = 10;
} elseif (!$query->in_the_loop()) {
return;
} else {
$pposts = 11;
$pposts = 6;
}
//set post_per_page if it's homepage