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:
20
site/themes/simple/package-lock.json
generated
Normal file
20
site/themes/simple/package-lock.json
generated
Normal 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
3
site/themes/simple/project.php
Executable file
@@ -0,0 +1,3 @@
|
||||
<?php Flextype\Templates::display('partials/head'); ?>
|
||||
<?php echo $page['content']; ?>
|
||||
<?php Flextype\Templates::display('partials/footer'); ?>
|
7
site/themes/simple/projects.php
Executable file
7
site/themes/simple/projects.php
Executable 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'); ?>
|
Reference in New Issue
Block a user