Skip to content
Permalink
Browse files

Renamed features and themes

  • Loading branch information...
markseu committed Mar 4, 2019
1 parent 3e49417 commit 91082095b25625a7875a22976edab1d305514fea
Showing with 375 additions and 370 deletions.
  1. +5 −5 features/README.md
  2. +2 −2 features/bundle/README.md
  3. +1 −1 features/bundle/extension.ini
  4. +0 −9 features/links/extension.ini
  5. +9 −9 features/{links → previousnext}/README.md
  6. +9 −0 features/previousnext/extension.ini
  7. BIN features/{links/links-screenshot.png → previousnext/previousnext-screenshot.png}
  8. +18 −14 features/{links/links.php → previousnext/previousnext.php}
  9. +8 −8 themes/README.md
  10. +23 −0 themes/bern/README.md
  11. BIN themes/{stockholm/stockholm-banner.jpg → bern/bern-banner.jpg}
  12. BIN themes/bern/bern-icon.png
  13. BIN themes/bern/bern-screenshot.png
  14. +88 −112 themes/{flatsite/flatsite.css → bern/bern.css}
  15. +2 −2 themes/{knowhow/knowhow.php → bern/bern.php}
  16. +15 −0 themes/bern/extension.ini
  17. BIN themes/{flatsite → bern}/opensans-bold.woff
  18. BIN themes/{flatsite → bern}/opensans-light.woff
  19. BIN themes/{flatsite → bern}/opensans-regular.woff
  20. BIN themes/blogsite/blogsite-screenshot.png
  21. +0 −12 themes/blogsite/extension.ini
  22. +0 −23 themes/flatsite/README.md
  23. +0 −14 themes/flatsite/extension.ini
  24. BIN themes/flatsite/flatsite-icon.png
  25. BIN themes/flatsite/flatsite-screenshot.png
  26. +6 −6 themes/{blogsite → helsinki}/README.md
  27. +12 −0 themes/helsinki/extension.ini
  28. BIN themes/{knowhow/knowhow-icon.png → helsinki/helsinki-icon.png}
  29. BIN themes/{knowhow/knowhow-logo.png → helsinki/helsinki-logo.png}
  30. BIN themes/helsinki/helsinki-screenshot.png
  31. +2 −2 themes/{knowhow/knowhow.css → helsinki/helsinki.css}
  32. +2 −2 themes/{blogsite/blogsite.php → helsinki/helsinki.php}
  33. +0 −21 themes/knowhow/README.md
  34. +0 −12 themes/knowhow/extension.ini
  35. BIN themes/knowhow/knowhow-screenshot.png
  36. +21 −0 themes/lund/README.md
  37. +12 −0 themes/lund/extension.ini
  38. BIN themes/{blogsite/blogsite-banner.jpg → lund/lund-banner.jpg}
  39. BIN themes/{blogsite/blogsite-icon.png → lund/lund-icon.png}
  40. BIN themes/lund/lund-screenshot.png
  41. +2 −2 themes/{blogsite/blogsite.css → lund/lund.css}
  42. +2 −2 themes/{flatsite/flatsite.php → lund/lund.php}
  43. +1 −1 themes/stockholm/README.md
  44. +2 −3 themes/stockholm/extension.ini
  45. BIN themes/stockholm/stockholm-icon.png
  46. BIN themes/stockholm/stockholm-screenshot.png
  47. +111 −87 themes/stockholm/stockholm.css
  48. +6 −6 version.ini
  49. +16 −15 waffle.ini
  50. BIN zip/bern.zip
  51. BIN zip/bundle.zip
  52. BIN zip/flatsite.zip
  53. BIN zip/helsinki.zip
  54. BIN zip/knowhow.zip
  55. BIN zip/links.zip
  56. BIN zip/{blogsite.zip → lund.zip}
  57. BIN zip/previousnext.zip
  58. BIN zip/stockholm.zip
@@ -8,7 +8,7 @@ The following features are available:
* [Breadcrumbs](https://github.com/datenstrom/yellow-extensions/tree/master/features/breadcrumbs):
Breadcrumbs navigation.
* [Bundle](https://github.com/datenstrom/yellow-extensions/tree/master/features/bundle):
Bundle CSS and JavaScript.
Bundle website files.
* [Command](https://github.com/datenstrom/yellow-extensions/tree/master/features/command):
Run commands in a terminal window.
* [Contact](https://github.com/datenstrom/yellow-extensions/tree/master/features/contact):
@@ -39,14 +39,14 @@ The following features are available:
Images and thumbnails.
* [Instagram](https://github.com/datenstrom/yellow-extensions/tree/master/features/instagram):
Embed Instagram photos.
* [Links](https://github.com/datenstrom/yellow-extensions/tree/master/features/links):
Show links to previous/next page.
* [Markdown](https://github.com/datenstrom/yellow-extensions/tree/master/features/markdown):
Text formatting for humans.
* [Matomo](https://github.com/datenstrom/yellow-extensions/tree/master/features/matomo):
Matomo web analytics.
* [Preview](https://github.com/datenstrom/yellow-extensions/tree/master/features/preview):
Show pages with image preview.
* [Previousnext](https://github.com/datenstrom/yellow-extensions/tree/master/features/previousnext):
Show links to previous/next page.
* [Release](https://github.com/datenstrom/yellow-extensions/tree/master/features/release):
Create releases.
* [Search](https://github.com/datenstrom/yellow-extensions/tree/master/features/search):
@@ -77,7 +77,7 @@ The following features are experimental:
* [About](https://github.com/schulle4u/yellow-extensions-schulle4u/tree/master/about):
Author profile for blog pages.
* [Antispam](https://github.com/schulle4u/yellow-extensions-schulle4u/tree/master/antispam):
Email address obfuscator using ROT13 and CSS.
Alternative email address obfuscator.
* [Audio](https://github.com/schulle4u/yellow-extensions-schulle4u/tree/master/audio):
HTML5 audio player.
* [Comments](https://github.com/GiovanniSalmeri/yellow-comments):
@@ -105,7 +105,7 @@ The following features are experimental:
* [Spoiler](https://github.com/schulle4u/yellow-extensions-schulle4u/tree/master/spoiler):
Hide certain page elements.
* [Ticker](https://github.com/schulle4u/yellow-extensions-schulle4u/tree/master/ticker):
RSS feed parser using SimpleXML or SimplePie.
RSS feed parser.
* [Tunein](https://github.com/schulle4u/yellow-extensions-schulle4u/tree/master/tunein):
Embed TuneIn Radio player.

@@ -1,6 +1,6 @@
Bundle 0.8.2
============
Bundle CSS and JavaScript.
Bundle website files.

<p align="center"><img src="bundle-screenshot.png?raw=true" alt="Screenshot"></p>

@@ -12,7 +12,7 @@ Bundle CSS and JavaScript.

To uninstall delete the [extension files](extension.ini).

## How to bundle CSS and JavaScript
## How to bundle website files

The extension bundles and minifies files for a better loading time. Your website may contain multiple CSS and JavaScript. Usually these files will be cached in the browser, but nevertheless each file has to be checked. This is where a file bundler comes in. It looks for included files and replaces them with one single bundle for CSS and one for JavaScript.

@@ -2,7 +2,7 @@

Extension: Bundle
Version: 0.8.2
Description: Bundle CSS and JavaScript.
Description: Bundle website files.
Published: 2019-02-21 00:48:59
Developer: Datenstrom

This file was deleted.

Oops, something went wrong.
@@ -1,29 +1,29 @@
Links 0.8.2
===========
Previousnext 0.8.3
==================
Show links to previous/next page. [See demo](https://developers.datenstrom.se/features/blog/blog-example).

<p align="center"><img src="links-screenshot.png?raw=true" alt="Screenshot"></p>
<p align="center"><img src="previousnext-screenshot.png?raw=true" alt="Screenshot"></p>

## How to install extension

1. [Download and install Datenstrom Yellow](https://github.com/datenstrom/yellow/).
2. [Download and install blog extension](https://github.com/datenstrom/yellow-extensions/tree/master/features/blog).
3. [Download extension](https://github.com/datenstrom/yellow-extensions/raw/master/zip/links.zip). If you are using Safari, right click and select 'Download file as'.
4. Copy `links.zip` into your `system/extensions` folder.
3. [Download extension](https://github.com/datenstrom/yellow-extensions/raw/master/zip/previousnext.zip). If you are using Safari, right click and select 'Download file as'.
4. Copy `previousnext.zip` into your `system/extensions` folder.

To uninstall delete the [extension files](extension.ini).

## How to show links

The extension adds links to previous/next page, which allows users to navigate between pages. Links are shown on blog and wiki pages. To show links on other pages add a `[links]` shortcut to a page.
The extension adds links to previous/next page, which allows users to navigate between pages. Links are shown on blog and wiki pages. To show links on other pages add a `[previousnext]` shortcut to a page.

## How to configure links

The following settings can be configured in file `system/settings/system.ini`:

`LinksPagePrevious` = show link to previous page, 1 or 0
`LinksPageNext` = show link to next page, 1 or 0
`LinksStyle` = links style, e.g. `entry-links`, `simple`
`PreviousnextPagePrevious` = show link to previous page, 1 or 0
`PreviousnextPageNext` = show link to next page, 1 or 0
`PreviousnextStyle` = links style, e.g. `entry-links`, `simple`

## Developer

@@ -0,0 +1,9 @@
# Datenstrom Yellow extension

Extension: Previousnext
Version: 0.8.3
Description: Show links to previous/next page.
Published: 2019-03-04 11:30:38
Developer: Datenstrom

Previousnext/previousnext.php: system/extensions/previousnext.php,create,update
@@ -1,30 +1,30 @@
<?php
// Links extension, https://github.com/datenstrom/yellow-extensions/tree/master/features/links
// Previousnext extension, https://github.com/datenstrom/yellow-extensions/tree/master/features/previousnext
// Copyright (c) 2013-2019 Datenstrom, https://datenstrom.se
// This file may be used and distributed under the terms of the public license.
class YellowLinks {
const VERSION = "0.8.2";
class YellowPreviousnext {
const VERSION = "0.8.3";
const TYPE = "feature";
public $yellow; //access to API
// Handle initialisation
public function onLoad($yellow) {
$this->yellow = $yellow;
$this->yellow->system->setDefault("linksPagePrevious", "0");
$this->yellow->system->setDefault("linksPageNext", "1");
$this->yellow->system->setDefault("linksStyle", "entry-links");
$this->yellow->system->setDefault("previousnextPagePrevious", "0");
$this->yellow->system->setDefault("previousnextPageNext", "1");
$this->yellow->system->setDefault("previousnextStyle", "entry-links");
}
// Handle page content of shortcut
public function onParseContentShortcut($page, $name, $text, $type) {
$output = null;
if ($name=="links" && ($type=="block" || $type=="inline")) {
$style = $this->yellow->system->get("linksStyle");
$pages = $this->getLinkPages($page);
if ($name=="previousnext" && ($type=="block" || $type=="inline")) {
$style = $this->yellow->system->get("previousnextStyle");
$pages = $this->getRelatedPages($page);
$page->setLastModified($pages->getModified());
if ($this->yellow->system->get("linksPagePrevious")) $pagePrevious = $pages->getPagePrevious($page);
if ($this->yellow->system->get("linksPageNext")) $pageNext = $pages->getPageNext($page);
if ($this->yellow->system->get("previousnextPagePrevious")) $pagePrevious = $pages->getPagePrevious($page);
if ($this->yellow->system->get("previousnextPageNext")) $pageNext = $pages->getPageNext($page);
if ($pagePrevious || $pageNext) {
$output = "<div class=\"".htmlspecialchars($style)."\">\n";
$output .= "<p>";
@@ -46,11 +46,15 @@ public function onParseContentShortcut($page, $name, $text, $type) {
// Handle page extra data
public function onParsePageExtra($page, $name) {
return $this->onParseContentShortcut($page, $name, "", "block");
$output = null;
if ($name=="previousnext" || $name=="links") {
$output = $this->onParseContentShortcut($page, "previousnext", "", "block");
}
return $output;
}
// Return link pages
public function getLinkPages($page) {
// Return related pages
public function getRelatedPages($page) {
switch ($page->get("layout")) {
case "blog": $blogLocation = $this->yellow->system->get("blogLocation");
if (!empty($blogLocation)) {
@@ -5,16 +5,16 @@ The following themes are available:

* [Berlin](https://github.com/datenstrom/yellow-extensions/tree/master/themes/berlin):
Berlin is a simple and beautiful theme inspired by Dieter Rams.
* [Blogsite](https://github.com/datenstrom/yellow-extensions/tree/master/themes/blogsite):
Blogsite is a basic blogger theme.
* [Flatsite](https://github.com/datenstrom/yellow-extensions/tree/master/themes/flatsite):
Flatsite is a clean website theme.
* [Knowhow](https://github.com/datenstrom/yellow-extensions/tree/master/themes/knowhow):
Knowhow is a theme for a GitHub-like knowledge base.
* [Bern](https://github.com/datenstrom/yellow-extensions/tree/master/themes/bern):
Bern is a modern business theme.
* [Helsinki](https://github.com/datenstrom/yellow-extensions/tree/master/themes/helsinki):
Helsinki is a theme for a GitHub-like knowledge base.
* [Lund](https://github.com/datenstrom/yellow-extensions/tree/master/themes/lund):
Lund is a basic blogger theme.
* [Paris](https://github.com/datenstrom/yellow-extensions/tree/master/themes/paris):
Paris is an elegant theme for writers.
* [Stockholm](https://github.com/datenstrom/yellow-extensions/tree/master/themes/stockholm):
Stockholm is a modern business theme.
Stockholm is a clean website theme.

The following themes are obsolete:

@@ -25,4 +25,4 @@ The following themes are obsolete:
* [Lateral](https://github.com/nibreh/yellow-theme-lateral):
Lateral is a clean theme with fixed sidebar, inspired by Indexhibit.

Want to make a new theme? [Use the flatsite extension](https://github.com/datenstrom/yellow-extensions/tree/master/themes/flatsite).
Want to make a new theme? [Use the Stockholm extension](https://github.com/datenstrom/yellow-extensions/tree/master/themes/stockholm).
@@ -0,0 +1,23 @@
Bern 0.8.2
==========
Bern is a modern business theme. [See demo](https://developers.datenstrom.se/themes/bern).

<p align="center"><img src="bern-screenshot.png?raw=true" alt="Screenshot"></p>

## How to install extension

1. [Download and install Datenstrom Yellow](https://github.com/datenstrom/yellow/).
2. [Download extension](https://github.com/datenstrom/yellow-extensions/raw/master/zip/bern.zip). If you are using Safari, right click and select 'Download file as'.
3. Copy `bern.zip` into your `system/extensions` folder.

To uninstall delete the [extension files](extension.ini).

## How to change theme

To change the theme of your website, open file `system/settings/system.ini` and change `Theme: bern`. A different theme can be defined in the settings at the top of each page. [Read more](https://developers.datenstrom.se/help/adjusting-system#system-settings).

The extension uses [Open Sans](http://www.opensans.com) by Steve Matteson. It's licensed under [Apache license](https://opensource.org/licenses/Apache-2.0).

## Designer

Datenstrom. [Get support](https://developers.datenstrom.se/help/support).
BIN +1001 Bytes themes/bern/bern-icon.png
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 9108209

Please sign in to comment.
You can’t perform that action at this time.