1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

Infrastructure changes: Default theme will have a name - simple. and default template will not have a name index.php anymore - now it is default.php

This commit is contained in:
Awilum
2018-04-22 01:37:07 +03:00
parent a456c7ae38
commit 63985cd922
11 changed files with 30 additions and 0 deletions

20
site/themes/simple/package-lock.json generated Normal file
View File

@@ -0,0 +1,20 @@
{
"name": "flextype",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"bootstrap": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.0.0.tgz",
"integrity": "sha512-gulJE5dGFo6Q61V/whS6VM4WIyrlydXfCgkE+Gxe5hjrJ8rXLLZlALq7zq2RPhOc45PSwQpJkrTnc2KgD6cvmA==",
"dev": true
},
"jquery": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz",
"integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg==",
"dev": true
}
}
}

3
site/themes/simple/project.php Executable file
View File

@@ -0,0 +1,3 @@
<?php Flextype\Templates::display('partials/head'); ?>
<?php echo $page['content']; ?>
<?php Flextype\Templates::display('partials/footer'); ?>

View File

@@ -0,0 +1,7 @@
<?php Flextype\Templates::display('partials/head'); ?>
<?php echo $page['content']; ?>
<?php $projects = Flextype\Pages::getPages('projects', false , 'date'); ?>
<?php foreach ($projects as $project) { ?>
<a href="<?php echo $project['url']; ?>"><?php echo $project['title']; ?></a>
<?php } ?>
<?php Flextype\Templates::display('partials/footer'); ?>