mirror of
https://github.com/flextype/flextype.git
synced 2025-08-16 10:04:21 +02:00
Updates according to the php template syntax guidelines
This commit is contained in:
@@ -196,18 +196,6 @@ class Entries
|
||||
}
|
||||
}
|
||||
|
||||
private static function getError404Entry() : array
|
||||
{
|
||||
Http::setResponseStatus(404);
|
||||
|
||||
$entry['title'] = Registry::get('settings.entries.error404.title');
|
||||
$entry['description'] = Registry::get('settings.entries.error404.description');
|
||||
$entry['content'] = Registry::get('settings.entries.error404.content');
|
||||
$entry['template'] = Registry::get('settings.entries.error404.template');
|
||||
|
||||
return $entry;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entries
|
||||
*
|
||||
@@ -307,6 +295,23 @@ class Entries
|
||||
return $entries;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Error404 entry
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private static function getError404Entry() : array
|
||||
{
|
||||
Http::setResponseStatus(404);
|
||||
|
||||
$entry['title'] = Registry::get('settings.entries.error404.title');
|
||||
$entry['description'] = Registry::get('settings.entries.error404.description');
|
||||
$entry['content'] = Registry::get('settings.entries.error404.content');
|
||||
$entry['template'] = Registry::get('settings.entries.error404.template');
|
||||
|
||||
return $entry;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns $shortcode object
|
||||
*
|
||||
|
@@ -10,9 +10,9 @@
|
||||
<meta name="robots" content="<?= (isset($entry['robots']) ? $entry['robots'] : Registry::get('settings.robots')) ?>">
|
||||
<meta name="generator" content="Powered by Flextype <?= Flextype::VERSION ?>" />
|
||||
|
||||
<?php Event::dispatch('onThemeMeta'); ?>
|
||||
<?php Event::dispatch('onThemeMeta') ?>
|
||||
|
||||
<title><?= Html::toText($entry['title']); ?> | <?= Html::toText(Registry::get('settings.title')); ?></title>
|
||||
<title><?= Html::toText($entry['title']) ?> | <?= Html::toText(Registry::get('settings.title')) ?></title>
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700' rel='stylesheet' type='text/css'>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php Event::dispatch('onThemeHeader'); ?>
|
||||
<?php Event::dispatch('onThemeHeader') ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php Themes::view('partials/navigation')->display() ?>
|
||||
|
@@ -6,4 +6,4 @@
|
||||
<script src="<?= $assets['asset'] ?>"></script>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
<?php Event::dispatch('onThemeFooter'); ?>
|
||||
<?php Event::dispatch('onThemeFooter') ?>
|
||||
|
Reference in New Issue
Block a user