1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 00:24:15 +02:00

Code cleanup and refactoring #5

This commit is contained in:
Awilum
2018-03-17 14:42:34 +03:00
parent 370a4a17a7
commit 2452ba2244
4 changed files with 5 additions and 12 deletions

View File

@@ -1,10 +1,3 @@
<?php Rawilum\Templates::display('partials/head'); ?>
<?php echo Rawilum\readingTime($page['content']); ?>
<?php echo Rawilum\readingTime($page['content'], [
'minute' => 'Minute!',
'minutes' => 'Minutes!',
'second' => 'Second',
'seconds' => 'Seconds']);
?>
<?php //cho Rawilum\redirect(); ?>
<?php echo $page['content']; ?>
<?php Rawilum\Templates::display('partials/footer'); ?>

View File

@@ -1,5 +1,5 @@
<?php $this->rawilum['themes']->getTemplate('partials/tail'); ?>
<?php Rawilum\Templates::display('partials/tail'); ?>
<div class="powered">
Powered by <a href="http://rawilum.org">Rawilum</a>

View File

@@ -6,7 +6,7 @@
<meta name="description" content="">
<meta name="author" content="">
<?php Rawilum\Events::dispatch('theme_meta'); ?>
<?php Rawilum\Events::dispatch('onThemeMeta'); ?>
<link rel="shortcut icon" href="<?php echo Url::getBase(); ?>/favicon.ico">
@@ -19,7 +19,7 @@
<!-- Custom styles for this template -->
<link href="<?php echo Url::getBase(); ?>/site/themes/<?php echo Rawilum\Config::get('site.theme'); ?>/assets/css/theme.css" rel="stylesheet">
<?php Rawilum\Events::dispatch('theme_header'); ?>
<?php Rawilum\Events::dispatch('onThemeHeader'); ?>
</head>
<body>
<?php Rawilum\Templates::display('partials/navigation'); ?>

View File

@@ -1,3 +1,3 @@
<script src="<?php echo Url::getBase(); ?>/site/themes/<?php echo Rawilum\Config::get('site.theme'); ?>/node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="<?php echo Url::getBase(); ?>/site/themes/<?php echo Rawilum\Config::get('site.theme'); ?>/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<?php Rawilum\Events::dispatch('theme_footer'); ?>
<?php Rawilum\Events::dispatch('onThemeFooter'); ?>