<?php
- /**
- * Project: FlatMark
- * File: config-basic.php
- * Description: Configuration for a single-language setup (basic configuration).
- * Author: elektrischerwalfisch
- * License: MIT (or another open-source license)
- * Version: 1.0
- */
+/**
+ * Basic Configuration for flatMark
+ *
+ * Defines language and page loading behavior for single-language sites.
+ *
+ * @package flatMark
+ */
// Define page language
$lang = 'de';
<?php
- /**
- * Project: FlatMark
- * File: config-multilang.php
- * Description: Configuration for multilingual setup (supports multiple languages).
- * Author: elektrischerwalfisch
- * License: MIT (or another open-source license)
- * Version: 1.0
- */
+/**
+ * Multilingual configuration for flatMark
+ *
+ * Defines language and page loading behavior for multi-language sites.
+ *
+ * @package flatMark
+ */
// Define supported languages (first one is default)
$supportedLanguages = ['en', 'de'];
<?php
- /**
- * Project: FlatMark
- * File: index.php
- * Description: Main entry point for the website.
- * Dynamically loads Markdown content, basic or multilingual configuration and shortcode-settings.
- * Author: elektrischerwalfisch
- * License: MIT (or another open-source license)
- * Version: 1.0
- */
+/**
+ * Project: flatMark
+ * Version: 1.0
+ *
+ * Project URI: https://github.com/elektrischerwalfisch/flatmark
+ * Author: elektrischerwalfisch
+ * Author URI: https://www.elektrischerwalfisch.de
+ * License: MIT (or another open-source license)
+ */
// Start output buffering (prevents page to "jump" before everything is loaded)
ob_start();
$requestUri = trim($_SERVER['REQUEST_URI'], '/');
$uriParts = explode('/', $requestUri);
- // Multilingual setup. If your site is a single-language setup, change 'config-multilang.php' to 'config-basic.php'
+ // Multilingual setup. If your site is a single-language setup, change to 'config-basic.php'
require 'config-multilang.php';
// Read the content of the requested Markdown file into a string
+/**
+* Stylesheet for flatMark theme
+*
+* @package flatMark
+* @subpackage Theme
+*/
+
/* FONTS */
@font-face {
h2, h3, p, ul, ol {margin-bottom: var(--space-below-01);}
-a {color: var(--color-01); text-decoration: underline;}
+a {color: var(--color-02); text-decoration: underline;}
a:hover {text-decoration: none;outline: 0;}
ul {list-style: none;}
img {border: none;max-width: 100%;height: auto;}
+/**
+* JavaScript functions for flatMark theme
+*
+* @package flatMark
+* @subpackage Theme
+*/
+
document.addEventListener("DOMContentLoaded", function() {
// HEADER: generate toggle-button, nav-wrapper and set variables
<?php
+/**
+ * Shortcode definitions and handlers.
+ *
+ * @package flatMark
+ * @subpackage Theme
+ */
function processShortcodes($markdown) {