skeleton: PHP 8 compat fixes

This commit is contained in:
onli 2021-07-04 19:00:50 +02:00
parent 07272ec3c6
commit d2a7784073
3 changed files with 5 additions and 5 deletions

View File

@ -59,9 +59,9 @@ $template_config = array(
);
$template_global_config = array('navigation' => true);
$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option'], true);
$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option'] ?? '', true);
serendipity_loadGlobalThemeOptions($template_config, $template_loaded_config, $template_global_config);
if ($_SESSION['serendipityUseTemplate']) {
if (isset($_SESSION['serendipityUseTemplate']) and $_SESSION['serendipityUseTemplate']) {
$template_loaded_config['use_corenav'] = false;
}

View File

@ -111,8 +111,8 @@
<p class="serendipity_msg_notice">{$CONST.NO_ENTRIES_TO_PRINT}</p>
{/if}
{/foreach}
{if not $is_preview}
{if $staticpage_pagetitle == ''}
{if not $is_preview and not $is_single_entry}
{if ! isset($staticpage_pagetitle) or $staticpage_pagetitle == ''}
<nav class="pager u-cf" role="navigation">
<p>{$footer_info}</p>
{if $footer_prev_page || $footer_next_page}

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$head_title|default:$blogTitle}{if $head_subtitle} | {$head_subtitle}{/if}</title>
<meta name="generator" content="Serendipity v.{$head_version}">
{if ($view == "entry" || $view == "start" || $view == "feed" || $view == "plugin" || $staticpage_pagetitle != "" || $robots_index == 'index')}
{if ($view == "entry" || $view == "start" || $view == "feed" || $view == "plugin" || (isset($staticpage_pagetitle) and $staticpage_pagetitle != "") || (isset($robots_index) and $robots_index == 'index'))}
<meta name="robots" content="index,follow">
{else}
<meta name="robots" content="noindex,follow">