skeleton: PHP 8 compat fixes
This commit is contained in:
@@ -59,9 +59,9 @@ $template_config = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
$template_global_config = array('navigation' => true);
|
$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);
|
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;
|
$template_loaded_config['use_corenav'] = false;
|
||||||
}
|
}
|
@@ -111,8 +111,8 @@
|
|||||||
<p class="serendipity_msg_notice">{$CONST.NO_ENTRIES_TO_PRINT}</p>
|
<p class="serendipity_msg_notice">{$CONST.NO_ENTRIES_TO_PRINT}</p>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{if not $is_preview}
|
{if not $is_preview and not $is_single_entry}
|
||||||
{if $staticpage_pagetitle == ''}
|
{if ! isset($staticpage_pagetitle) or $staticpage_pagetitle == ''}
|
||||||
<nav class="pager u-cf" role="navigation">
|
<nav class="pager u-cf" role="navigation">
|
||||||
<p>{$footer_info}</p>
|
<p>{$footer_info}</p>
|
||||||
{if $footer_prev_page || $footer_next_page}
|
{if $footer_prev_page || $footer_next_page}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{$head_title|default:$blogTitle}{if $head_subtitle} | {$head_subtitle}{/if}</title>
|
<title>{$head_title|default:$blogTitle}{if $head_subtitle} | {$head_subtitle}{/if}</title>
|
||||||
<meta name="generator" content="Serendipity v.{$head_version}">
|
<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">
|
<meta name="robots" content="index,follow">
|
||||||
{else}
|
{else}
|
||||||
<meta name="robots" content="noindex,follow">
|
<meta name="robots" content="noindex,follow">
|
||||||
|
Reference in New Issue
Block a user