[GIT] add even more dependencies and basic project structure
This commit is contained in:
parent
9f5109d65f
commit
b6a4368226
22 changed files with 3100 additions and 2 deletions
45
site/blueprints/carousel.php
Normal file
45
site/blueprints/carousel.php
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?php if(!defined('KIRBY')) exit ?>
|
||||
|
||||
# carousel pseudo-site blueprint
|
||||
|
||||
title: Foto-Diashow
|
||||
pages: false
|
||||
preview: parent
|
||||
files:
|
||||
sortable: true
|
||||
fields:
|
||||
title:
|
||||
label: Title (z.Zt. nicht benutzt)
|
||||
type: text
|
||||
heading:
|
||||
label: Bildüberschrift
|
||||
type: text
|
||||
caption:
|
||||
label: Bildtext
|
||||
type: textarea
|
||||
header1: h3
|
||||
header2: h4
|
||||
options:
|
||||
preview: true
|
||||
status: false
|
||||
template: false
|
||||
url: false
|
||||
delete: true
|
||||
|
||||
fields:
|
||||
info:
|
||||
label: HINWEIS
|
||||
type: info
|
||||
text: >
|
||||
Hier können Bilder abgelegt werden, die in einer großen Bildergallerie am Anfang der Seite dargestellt werden.<br>
|
||||
Die Bilder sollte im QUERFORMAT vorliegen.<br><br>
|
||||
Diese Seite muss! den Namen und die URL "carousel" haben. Diese Seite kann aber auch leer sein, wenn keine Bilder angezeigt werden sollen.<br><br>
|
||||
Die Bilder können mit einer Bildüberschrift und einem Beschreibungstext versehen werden. Dafür einfach auf die Datei klicken und entsprechende Texte eintrage und speichern.
|
||||
HINWEIS: Es gibt mit unter keine Vorschau der Bilder, wenn die Abmessungen zu groß sind.<br>
|
||||
Die Bilder können unter "bearbeiten" per Hand sortiert werden.
|
||||
|
||||
title:
|
||||
label:
|
||||
en: Title (has no fuction)
|
||||
de: Seitenüberschrift (hat keine Funktion)
|
||||
type: text
|
10
site/blueprints/default.yaml
Normal file
10
site/blueprints/default.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
title: Page
|
||||
pages: true
|
||||
files: true
|
||||
fields:
|
||||
title:
|
||||
label: Title
|
||||
type: text
|
||||
text:
|
||||
label: Text
|
||||
type: textarea
|
|
@ -1 +0,0 @@
|
|||
../../modules/kirby-template-sitemap/blueprints/htmlsitemap.php
|
46
site/blueprints/site.yaml
Normal file
46
site/blueprints/site.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
Title: Site
|
||||
|
||||
pages:
|
||||
template:
|
||||
- default
|
||||
|
||||
fields:
|
||||
title:
|
||||
label:
|
||||
en: Title (shown in browser tab)
|
||||
de: Titel der Website (im Browser Tab)
|
||||
type: text
|
||||
|
||||
author:
|
||||
label:
|
||||
en: Author (for meta data)
|
||||
de: Autor (für Metadaten)
|
||||
type: text
|
||||
description:
|
||||
label:
|
||||
en: Description (for meta data)
|
||||
de: Beschreibung (für Metadaten)
|
||||
type: textarea
|
||||
keywords:
|
||||
label:
|
||||
en: Keywords (for meta data)
|
||||
de: Stichwörter (für Metadaten)
|
||||
type: tags
|
||||
|
||||
title_image:
|
||||
label:
|
||||
en: header image / logo (drag and drop)
|
||||
de: Logo für Kopf der Seite (drag and drop)
|
||||
type: image
|
||||
copyright:
|
||||
label:
|
||||
en: Copyright (footer)
|
||||
de: Copyright (für Footertext)
|
||||
type: text
|
||||
width: 1/2
|
||||
webdesigner:
|
||||
label:
|
||||
en: Webdesign by (footer text right)
|
||||
de: Webdesign von (rechter Footertext)
|
||||
type: text
|
||||
width: 1/2
|
13
site/config/config.localhost.php
Normal file
13
site/config/config.localhost.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
// config deltas for localhost:
|
||||
|
||||
c::set('debug', true);
|
||||
|
||||
c::set('cache', false);
|
||||
|
||||
c::set('ssl', false);
|
||||
|
||||
/*
|
||||
Piwik Plugin configuration
|
||||
*/
|
||||
c::set('spicy.piwik.active', false);
|
67
site/config/config.php
Normal file
67
site/config/config.php
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
header("Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src https://*.youtube-nocookie.com; script-src 'self' 'unsafe-inline' https://jannikb.aquila.uberspace.de/piwik/; img-src 'self' https://jannikb.aquila.uberspace.de/piwik/");
|
||||
//header("X-Content-Type-Options: nosniff"); // enabled at server-side
|
||||
//header("X-Frame-Options: deny"); // enabled at server-side
|
||||
//header("X-Xss-Protection: 1; mode=block"); // enabled at server-side
|
||||
|
||||
/*
|
||||
License Setup
|
||||
*/
|
||||
c::set('license', 'K2-PRO-153c9c6accc73d9547e255a0daba8911');
|
||||
|
||||
/*
|
||||
Kirby Configuration
|
||||
*/
|
||||
c::set('cache', true);
|
||||
c::set('cache.ignore', array('sitemap'));
|
||||
|
||||
c::set('ssl', true);
|
||||
|
||||
c::set('routes', array(
|
||||
array(
|
||||
'pattern' => 'sitemap.xml',
|
||||
'action' => function() {
|
||||
return site()->visit('sitemap');
|
||||
}
|
||||
)
|
||||
));
|
||||
|
||||
/*
|
||||
Modules Configuration
|
||||
*/
|
||||
|
||||
// plg-carousel
|
||||
//c::set('plg_carousel.enable', true);
|
||||
//c::set('plg_carousel.sort', 'sort'); // sortBy parameter: sort, title, etc.
|
||||
//c::set('plg_carousel.dir', 'asc'); // sortBy direction: asc, desc
|
||||
|
||||
// plg-masonry
|
||||
//c::set('plg_masonry.enable', true);
|
||||
//c::set('plg_masonry.width', 170);
|
||||
//c::set('plg_masonry.sizelimit', 1300); // limit the source image size (long edge)
|
||||
//c::set('plg_masonry.sort', 'sort'); // sortBy parameter: sort, title, etc.
|
||||
//c::set('plg_masonry.dir', 'asc'); // sortBy direction: asc, desc
|
||||
//c::set('plg_masonry.lightbox', 'swipebox');
|
||||
|
||||
// plg-navbar style:
|
||||
//c::set('navbar-class', 'navbar-inverse navbar-fixed-top');
|
||||
//c::set('navbar-ignoreChildren', true);
|
||||
//c::set('navbar-affix', true);
|
||||
|
||||
// bastians columns.php plugin from https://github.com/getkirby/plugins/tree/master/columns
|
||||
//c::set('columns.container', 'row');
|
||||
//c::set('columns.item', 'col-sm-6 columns');
|
||||
|
||||
// enhanced sitemap by Jannik Beyerstedt:
|
||||
c::set('smap_ignoreSite', array('sitemap', 'error', 'home'));
|
||||
c::set('smap_ignoreTemplate', array('carousel'));
|
||||
c::set('smap_heading_visible', 'Hauptmenü');
|
||||
c::set('smap_heading_invisible', 'weitere Seiten');
|
||||
//c::set('smap_column_class_id', 'class="foo" id="bar"');
|
||||
|
||||
/*
|
||||
Piwik Plugin configuration
|
||||
*/
|
||||
c::set('spicy.piwik.active', true);
|
||||
c::set('spicy.piwik.url', 'https://jannikb.aquila.uberspace.de/piwik');
|
||||
c::set('spicy.piwik.id', 2);
|
15
site/snippets/base/cont-footer.php
Normal file
15
site/snippets/base/cont-footer.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby snippet FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
?>
|
||||
<footer class="section" id="footer" role="contentinfo">
|
||||
<div class="container">
|
||||
<p id="copyright"><?php echo $site->copyright()->kirbytextRaw() ?></p>
|
||||
<p id="info"><?php echo $site->webdesigner()->kirbytextRaw() ?></p>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</footer>
|
15
site/snippets/base/cont-header.php
Normal file
15
site/snippets/base/cont-header.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby snippet FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
?>
|
||||
<header class="section" id="header" role="banner">
|
||||
<div class="container">
|
||||
<a class="logo" href="<?php echo url() ?>">
|
||||
<h1 id="logo">Jannik Beyerstedt</h1>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
62
site/snippets/base/html-end.php
Normal file
62
site/snippets/base/html-end.php
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby snippet FOR GENERAL
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
?>
|
||||
|
||||
<!-- Bootstrap core JavaScript-->
|
||||
<?php echo js('assets/vendors/jquery-2.2.2.min.js') ?>
|
||||
<?php //echo js('assets/vendors/bootstrap/js/bootstrap.min.js') ?>
|
||||
|
||||
<?php if (c::get('navbar-affix')) : ?>
|
||||
<script>
|
||||
$('.navbar-wrapper').affix({
|
||||
offset: {
|
||||
top: $('header').height()
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (c::get('plg_masonry.enable')) {
|
||||
echo js('assets/vendors/masonry/dist/masonry.pkgd.min.js');
|
||||
}?>
|
||||
|
||||
<?php if (c::get('plg_masonry.lightbox')=='swipebox') {
|
||||
echo js('assets/vendors/swipebox/src/js/jquery.swipebox.min.js');
|
||||
}?>
|
||||
|
||||
<?php if (c::get('plg_carousel.enable')) : ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('.carousel').carousel('cycle');
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ((c::get('plg_masonry.lightbox')=='swipebox')) : ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('.swipebox' ).swipebox();
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (c::get('plg_masonry.enable')) : ?>
|
||||
<script type="text/javascript">
|
||||
$('#masonry').masonry({
|
||||
isFitWidth: true,
|
||||
columnWidth: <?php echo c::get('plg_masonry.width') ?>,
|
||||
gutter: 10,
|
||||
itemSelector: '.masonryitem'
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo piwik(); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
48
site/snippets/base/html-head.php
Normal file
48
site/snippets/base/html-head.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby snippet FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<?php if( $page->isHomePage() ) : ?>
|
||||
<title><?php echo $site->title()->html() ?> </title>
|
||||
<?php else : ?>
|
||||
<title><?php echo $site->title()->html() ?> | <?php echo $page->title()->html() ?></title>
|
||||
<?php endif; ?>
|
||||
<meta name="description" content="<?php echo $site->description()->html() ?>">
|
||||
<meta name="keywords" content="<?php echo $site->keywords()->html() ?>">
|
||||
<meta name="author" content="<?php echo $site->author()->html() ?>" >
|
||||
<?php if ($page->meta_robots()->html() != "") : ?>
|
||||
<meta name="robots" content="<?php echo $page->meta_robots()->html() ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo css('assets/vendors/font-awesome/css/font-awesome.min.css') ?>
|
||||
<?php echo css('assets/vendors/font-awesome/css/font-awesome.min.css') ?>
|
||||
|
||||
<?php echo css('assets/css/main.css') ?>
|
||||
<?php echo css('@auto') ?>
|
||||
|
||||
<!-- Google web fonts -->
|
||||
|
||||
|
||||
<?php if (c::get('plg_masonry.enable')) : $width = c::get('plg_masonry.width'); ?>
|
||||
<style>
|
||||
#masonry {margin: 0 auto;}
|
||||
.masonryitem { width: <?php echo $width ?>px; margin-bottom: 10px;}
|
||||
.masonryitem.w2 { width: 40%; }
|
||||
</style>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (c::get('plg_masonry.lightbox')=='swipebox') : ?>
|
||||
<?php echo css('assets/vendors/swipebox/src/css/swipebox.css') ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</head>
|
||||
<body>
|
19
site/templates/default.php
Normal file
19
site/templates/default.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby template FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
|
||||
snippet('base/html-head');
|
||||
snippet('base/cont-header');
|
||||
|
||||
?>
|
||||
|
||||
<h1><?php echo $page->title()->html() ?></h1>
|
||||
|
||||
<?php echo $page->text()->kirbytext() ?>
|
||||
|
||||
<?php snippet('base/cont-footer') ?>
|
||||
<?php snippet('base/html-end') ?>
|
|
@ -1 +0,0 @@
|
|||
../../modules/kirby-template-sitemap/templates/htmlsitemap.php
|
Loading…
Add table
Add a link
Reference in a new issue