From ce02c8c3fda4763f2710976beac7df9e8579c182 Mon Sep 17 00:00:00 2001 From: elektrischerwalfisch Date: Sat, 12 Apr 2025 17:31:20 +0200 Subject: [PATCH] rename file --- README.md | 4 ++-- index.php | 6 +++--- theme/{shortcodes.php => functions.php} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename theme/{shortcodes.php => functions.php} (100%) diff --git a/README.md b/README.md index f7de02e..e23865f 100644 --- a/README.md +++ b/README.md @@ -109,13 +109,13 @@ flatMark supports simple shortcodes for structured content. You can see all shor This content has a colored background. {/background} -These shortcodes are part of the theme and are all located in the file `/theme/shortcodes.php`. +These shortcodes are part of the theme and are all located in the file `/theme/functions.php`. You can edit this file to change existing shortcodes or add even more. An example-page with all shortcodes is provided with the installation: `/pages-en/shortcode-examples.md` ## Customization -All customizable parts of flatMark are located in the `theme/` folder. This includes the main stylesheet (`theme/css/style.css`), a JavaScript file for interactive behavior (`theme/js/presets.js`), and the `theme/shortcodes.php` file where custom shortcodes can be defined. You can freely modify these files to match your design and functionality needs. Additional assets like images, fonts, or scripts can also be placed in this folder to keep everything neatly organized in one place. +All customizable parts of flatMark are located in the `theme/` folder. This includes the main stylesheet (`theme/css/style.css`), a JavaScript file for interactive behavior (`theme/js/presets.js`), and the `theme/functions.php` file where custom shortcodes can be defined. You can freely modify these files to match your design and functionality needs. Additional assets like images, fonts, or scripts can also be placed in this folder to keep everything neatly organized in one place. ## flatMark as CMS diff --git a/index.php b/index.php index be614ea..23cc7da 100644 --- a/index.php +++ b/index.php @@ -13,8 +13,8 @@ ob_start(); // Include shortcode functions (if file exists) - if (file_exists('theme/shortcodes.php')) { - require 'theme/shortcodes.php'; + if (file_exists('theme/functions.php')) { + require 'theme/functions.php'; } // Include Parsedown @@ -72,7 +72,7 @@ $footerContent = $Parsedown->text($footerContent); } - // Apply theme/shortcodes.php before converting to HTML (if function exists) + // Apply theme/functions.php before converting to HTML (if function exists) if (function_exists('processShortcodes')) { $markdown = processShortcodes($markdown); } diff --git a/theme/shortcodes.php b/theme/functions.php similarity index 100% rename from theme/shortcodes.php rename to theme/functions.php -- 2.47.3