1
0
Fork 0

[GIT] setup initial configuration

This commit is contained in:
Jannik Beyerstedt 2016-03-28 22:32:42 +02:00
commit 46b0df0faf
32 changed files with 10187 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
.DS_Store
/site/accounts
/assets/avatars
/thumbs/*
/content
/video

33
.gitmodules vendored Normal file
View file

@ -0,0 +1,33 @@
[submodule "kirby"]
path = kirby
url = https://github.com/getkirby/kirby
[submodule "panel"]
path = panel
url = https://github.com/getkirby/panel
[submodule "modules/getkirby-plugins"]
path = modules/getkirby-plugins
url = https://github.com/getkirby/plugins.git
[submodule "modules/kirby-widget-gitupdate"]
path = modules/kirby-widget-gitupdate
url = ssh://git@beyvpn.dnshome.de/home/git/repos/kirby-widget-gitupdate.git
[submodule "modules/kirby-template-sitemap"]
path = modules/kirby-template-sitemap
url = https://github.com/jbeyerstedt/kirby-template-sitemap
[submodule "modules/kirby-plugin-thumbExt"]
path = modules/kirby-plugin-thumbExt
url = https://github.com/jbeyerstedt/kirby-plugin-thumbExt.git
[submodule "modules/kirby-plugin-kirbytextRaw"]
path = modules/kirby-plugin-kirbytextRaw
url = https://github.com/jbeyerstedt/kirby-plugin-kirbytextRaw
[submodule "modules/kirby-site-snippets"]
path = modules/kirby-site-snippets
url = https://github.com/jbeyerstedt/kirby-site-snippets.git
[submodule "assets/vendors/swipebox"]
path = assets/vendors/swipebox
url = https://github.com/brutaldesign/swipebox.git
[submodule "assets/vendors/masonry"]
path = assets/vendors/masonry
url = https://github.com/desandro/masonry.git
[submodule "modules/kirby-kirbytag-html5video"]
path = modules/kirby-kirbytag-html5video
url = https://github.com/jbeyerstedt/kirby-kirbytag-html5video.git

9842
assets/vendors/jquery-2.2.2.js vendored Normal file

File diff suppressed because it is too large Load diff

5
assets/vendors/jquery-2.2.2.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
assets/vendors/jquery-2.2.2.min.map vendored Normal file

Binary file not shown.

1
assets/vendors/masonry vendored Submodule

@ -0,0 +1 @@
Subproject commit 641f7f01169c02f6c21a5153aad6a153891b8e2e

1
assets/vendors/swipebox vendored Submodule

@ -0,0 +1 @@
Subproject commit c6227436cdeef6237652d9bf7d3cf3b6bd9fc252

7
git-pull.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
git pull
git submodule update --init --recursive
echo -e "\nclear cache:\n"
rm site/cache/*

16
index.php Normal file
View file

@ -0,0 +1,16 @@
<?php
define('DS', DIRECTORY_SEPARATOR);
// load kirby
require(__DIR__ . DS . 'kirby' . DS . 'bootstrap.php');
// check for a custom site.php
if(file_exists(__DIR__ . DS . 'site.php')) {
require(__DIR__ . DS . 'site.php');
} else {
$kirby = kirby();
}
// render
echo $kirby->launch();

1
kirby Submodule

@ -0,0 +1 @@
Subproject commit 08c25b488f99962819035c14bfc8d5e2031d297d

73
license.md Normal file
View file

@ -0,0 +1,73 @@
# Kirby End User License Agreement
This End User License Agreement (the "Agreement") is a binding legal agreement between you and the Bastian Allgeier GmbH (the "Author"). By installing or using the Kirby CMS (the "Software"), you agree to be bound by the terms of this Agreement. If you do not agree to the Agreement, do not download, install, or use the Software. Installation or use of the Software signifies that you have read, understood, and agreed to be bound by the Agreement.
Revised on: 4 October, 2014
## Usage
This Agreement grants a non-exclusive, non-transferable license to install and use a single instance of the Software on a specific Website. Additional Software licenses must be purchased in order to install and use the Software on additional Websites. The Author reserves the right to determine whether use of the Software qualifies under this Agreement. The Author owns all rights, title and interest to the Software (including all intellectual property rights) and reserves all rights to the Software that are not expressly granted in this Agreement.
## Backups
You may make copies of the Software in any machine readable form solely for back-up purposes, provided that you reproduce the Software in its original form and with all proprietary notices on the back-up copy. All rights to the Software not expressly granted herein are reserved by the Author.
## Technical Support
Technical support is provided as described on <http://getkirby.com>. No representations or guarantees are made regarding the response time in which support questions are answered.
## Refund Policy
We offer a 14-day, money back refund policy.
## Restrictions
You understand and agree that you shall only use the Software in a manner that complies with any and all applicable laws in the jurisdictions in which you use the Software. Your use shall be in accordance with applicable restrictions concerning privacy and intellectual property rights.
### You may not:
Distribute derivative works based on the Software;
Reproduce the Software except as described in this Agreement;
Sell, assign, license, disclose, distribute, or otherwise transfer or make available the Software or its Source Code, in whole or in part, in any form to any third parties;
Use the Software to provide services to others;
Remove or alter any proprietary notices on the Software.
## No Warranty
THE SOFTWARE IS OFFERED ON AN "AS-IS" BASIS AND NO WARRANTY, EITHER EXPRESSED OR IMPLIED, IS GIVEN. THE AUTHOR EXPRESSLY DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. YOU ASSUME ALL RISK ASSOCIATED WITH THE QUALITY, PERFORMANCE, INSTALLATION AND USE OF THE SOFTWARE INCLUDING, BUT NOT LIMITED TO, THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USE THE SOFTWARE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE.
## Term, Termination, and Modification.
You may use the Software under this Agreement until either party terminates this Agreement as set forth in this paragraph. Either party may terminate the Agreement at any time, upon written notice to the other party. Upon termination, all licenses granted to you will terminate, and you will immediately uninstall and cease all use of the Software. The Sections entitled "No Warranty," "Indemnification," and "Limitation of Liability" will survive any termination of this Agreement.
The Author may modify the Software and this Agreement with notice to you either in email or by publishing content on the Software website, including but not limited to changing the functionality or appearance of the Software, and such modification will become binding on you unless you terminate this Agreement.
## Indemnification.
By accepting the Agreement, you agree to indemnify and otherwise hold harmless the Author, its officers, employers, agents, subsidiaries, affiliates and other partners from any direct, indirect, incidental, special, consequential or exemplary damages arising out of, relating to, or resulting from your use of the Software or any other matter relating to the Software.
## Limitation of Liability.
YOU EXPRESSLY UNDERSTAND AND AGREE THAT THE AUTHOR SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER INTANGIBLE LOSSES (EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES). SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES. ACCORDINGLY, SOME OF THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU. IN NO EVENT WILL THE AUTHOR'S TOTAL CUMULATIVE DAMAGES EXCEED THE FEES YOU PAID TO THE AUTHOR UNDER THIS AGREEMENT IN THE MOST RECENT TWELVE-MONTH PERIOD.
# Definitions
## Definition of Website
A "Website" is defined as a single domain including sub-domains that operate as a single entity. What constitutes a single entity shall be at the sole discretion of the Author.
## Definition of Source Code
The "Source Code" is defined as the contents of all HTML, CSS, JavaScript, and PHP files provided with the Software and includes all related image files and database schemas.
## Definition of an Update
An "Update" of the Software is defined as that which adds minor functionality enhancements or any bug fix to the current version. This class of release is identified by the change of the revision to the right of the decimal point, i.e. X.1 to X.2
The assignment to the category of Update or Upgrade shall be at the sole discretion of the Author.
## Definition of an Upgrade
An "Upgrade" is a major release of the Software and is defined as that which incorporates major new features or enhancement that increase the core functionality of the software. This class of release is identified by the change of the revision to the left of the decimal point, i.e. 4.X to 5.X
The assignment to the category of Update or Upgrade shall be at the sole discretion of the Author.

@ -0,0 +1 @@
Subproject commit cbc1fc1bd4d0e5a6856a593c94024aa504648ad2

@ -0,0 +1 @@
Subproject commit fa8126b931ca6a8af68a656dd0bad1e486f7424c

@ -0,0 +1 @@
Subproject commit 53d3521cc1799de0931c61ba2f32659537e97114

@ -0,0 +1 @@
Subproject commit 2ad641c19163672bc3fc1c2270998a13dd061719

@ -0,0 +1 @@
Subproject commit 04ccd3a2f2384eed49e06da8561156b3d8402eed

@ -0,0 +1 @@
Subproject commit 82bc94bf956abaeb9742137da2f06b21b1ff7b22

@ -0,0 +1 @@
Subproject commit 70c5566e525122348a89ad5540fb9a9550e57654

1
panel Submodule

@ -0,0 +1 @@
Subproject commit 606b782e9ccd454cc732668a7f73ab19bbd98d52

79
readme.md Normal file
View file

@ -0,0 +1,79 @@
# Kirby
Kirby is a file-based CMS.
Easy to setup. Easy to use. Flexible as hell.
## Trial
You can try Kirby on your local machine or on a test
server as long as you need to make sure it is the right
tool for your next project.
## Buy a license
You can purchase your Kirby license at
<http://getkirby.com/buy>
A Kirby license is valid for a single domain. You can find
Kirby's license agreement here: <http://getkirby.com/license>
## The Plainkit
Kirby's Plainkit is the most minimal setup you can get started with.
It does not include any content, styles or other kinds of decoration,
so it's perfect to use this as a starting point for your own project.
## The Panel
You can find the login for Kirby's admin interface at
http://yourdomain.com/panel. You will be guided through the signup
process for your first user, when you visit the panel
for the first time.
## Installation
Kirby does not require a database, which makes it very easy to
install. Just copy Kirby's files to your server and visit the
URL for your website in the browser.
**Please check if the invisible .htaccess file has been
copied to your server correctly**
### Requirements
Kirby runs on PHP 5.4+, Apache or Nginx.
### Download
You can download the latest version of the Starterkit
from http://download.getkirby.com
### With Git
If you are familiar with Git, you can clone Kirby's
Starterkit repository from Github.
git clone --recursive https://github.com/getkirby/plainkit.git
## Documentation
<http://getkirby.com/docs>
## Issues and feedback
If you have a Github account, please report issues
directly on Github:
- <https://github.com/getkirby/kirby/issues>
- <https://github.com/getkirby/panel/issues>
- <https://github.com/getkirby/plainkit/issues>
Otherwise you can use Kirby's forum: http://getkirby.com/forum
or send us an email: <support@getkirby.com>
## Support
<http://getkirby.com/support>
## Copyright
© 2009-2014 Bastian Allgeier (Bastian Allgeier GmbH)
<http://getkirby.com>

12
robots.txt Normal file
View file

@ -0,0 +1,12 @@
# robots.txt for jannikbeyerstedt.de
User-agent: *
Disallow: *
Disallow: /kirby/
Disallow: /panel/
Disallow: /site/
Disallow: /thumbs/
Disallow: /error/
# Sitemap: https://jannikbeyerstedt.de/sitemap

0
site/cache/.gitkeep vendored Normal file
View file

1
site/plugins/columns Symbolic link
View file

@ -0,0 +1 @@
../../modules/getkirby-plugins/columns

1
site/plugins/kirbytextraw Symbolic link
View file

@ -0,0 +1 @@
../../modules/kirby-plugin-kirbytextRaw

1
site/plugins/piwik/.gitignore vendored Executable file
View file

@ -0,0 +1 @@
.idea

33
site/plugins/piwik/Readme.md Executable file
View file

@ -0,0 +1,33 @@
# Piwik plugin
A plugin for [Kirby CMS](http://getkirby.com) that generates piwik analytics code to use in your templates.
## Installation
Put the `piwik` folder in `/site/plugins`.
Configure piwik URL and site id in your page config.
### Config Variables
- spicy.piwik.active: true / false (Default: true)
- spicy.piwik.url: 'stats.yourpage.com'
- spicy.piwik.id: 1 (replace with the page ID in your piwik installation)
## How to use it
You can use this in a template file.
## Example usage
### Snippets
```php
<!-- use this right before closing </body> tag -->
<?php echo piwik(); ?>
```
## Author
Michael Fürmann @ Spicy Web
<https://spicyweb.de>

18
site/plugins/piwik/piwik.php Executable file
View file

@ -0,0 +1,18 @@
<?php
/**
* Piwik Plugin
*
* @author Michael Fürmann <michael@spicyweb.de>
* @version 1.0.0
*/
function piwik($options = array()) {
if(!c::get('spicy.piwik.active', true) || !c::get('spicy.piwik.url') || !c::get('spicy.piwik.id'))
return;
$options['url'] = c::get('spicy.piwik.url');
$options['id'] = c::get('spicy.piwik.id');
// Return template HTML
return tpl::load(__DIR__ . DS . 'template.php', $options);
}
?>

15
site/plugins/piwik/template.php Executable file
View file

@ -0,0 +1,15 @@
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="<?= $url?>/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', <?= $id?>]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="<?= $url?>/piwik.php?idsite=<?= $id?>" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

1
site/plugins/thumbext Symbolic link
View file

@ -0,0 +1 @@
../../modules/kirby-plugin-thumbExt

1
site/tags/html5video.php Symbolic link
View file

@ -0,0 +1 @@
../../modules/kirby-kirbytag-html5video/html5video.php

View file

@ -0,0 +1,29 @@
<?php
/*
* kirbytag html5youtube
* responsive html5 youtube player embedding
*
* copyright: Jannik Beyerstedt | http://jannikbeyerstedt.de | code@jannikbeyerstedt.de
* license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
*
* version 2.0.1 (09.01.2015)
* changelog:
* - v2.0: kirby 2 support
* - v2.0.1: fix some html validation issues with & symbols
*/
kirbytext::$tags['html5youtube'] = array(
'attr' => array(
'options'
),
'html' => function($tag) {
$base = 'https://www.youtube-nocookie.com/embed/';
$end = '?rel=0&amp;html5=1';
$videoID = $tag->attr('html5youtube');
$options = $tag->attr('options');
return '<div class="video-container"><iframe src="' . $base . $videoID . $end . $options . '" allowfullscreen></iframe></div>';
}
);

1
site/widgets/gitupdate Symbolic link
View file

@ -0,0 +1 @@
../../modules/kirby-widget-gitupdate