From 390a6e9f4f0d98d1bf7bf9bf0b79b2f165c10af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Thu, 30 Jan 2025 13:43:02 +0100 Subject: [PATCH] Initial rewiring --- admin/language.php | 8 +++---- {font => custom/css/font}/.DS_Store | Bin {font => custom/css/font}/GOODDOGP.TXT | 0 {font => custom/css/font}/GOODDP__.TTF | Bin {font => custom/css/font}/Gerb-Bold.ttf | Bin {font => custom/css/font}/Gerb.ttf | Bin .../font}/Montserrat-VariableFont_wght.ttf | Bin custom/customfunctions.php | 20 +++++++++--------- custom/email/order-details-template.php | 2 +- custom/email/order-invoice-template.php | 2 +- custom/email/order-notification-template.php | 2 +- custom/settings/config.php | 4 ++-- functions.php | 18 ++++++++-------- index.php | 20 +++++++++--------- 14 files changed, 38 insertions(+), 38 deletions(-) rename {font => custom/css/font}/.DS_Store (100%) rename {font => custom/css/font}/GOODDOGP.TXT (100%) rename {font => custom/css/font}/GOODDP__.TTF (100%) rename {font => custom/css/font}/Gerb-Bold.ttf (100%) rename {font => custom/css/font}/Gerb.ttf (100%) rename {font => custom/css/font}/Montserrat-VariableFont_wght.ttf (100%) diff --git a/admin/language.php b/admin/language.php index 9a3cdae..f1b06f7 100644 --- a/admin/language.php +++ b/admin/language.php @@ -3,15 +3,15 @@ defined('admin') or exit; // Capture post data if (isset($_POST['language_US'], $_POST['language_NL'])) { // Save templates - file_put_contents('../custom/translations_US.php', $_POST['language_US']); - file_put_contents('../custom/translations_NL.php', $_POST['language_NL']); + file_put_contents('../custom/translations/translations_US.php', $_POST['language_US']); + file_put_contents('../custom/translations/translations_NL.php', $_POST['language_NL']); header('Location: index.php?page=language&success_msg=1'); exit; } // Read language_US template PHP file -$contents = file_get_contents('../custom/translations_US.php'); +$contents = file_get_contents('../custom/translations/translations_US.php'); // Read language template PHP file -$contents2 = file_get_contents('../custom/translations_NL.php'); +$contents2 = file_get_contents('../custom/translations/translations_NL.php'); // Handle success messages if (isset($_GET['success_msg'])) { if ($_GET['success_msg'] == 1) { diff --git a/font/.DS_Store b/custom/css/font/.DS_Store similarity index 100% rename from font/.DS_Store rename to custom/css/font/.DS_Store diff --git a/font/GOODDOGP.TXT b/custom/css/font/GOODDOGP.TXT similarity index 100% rename from font/GOODDOGP.TXT rename to custom/css/font/GOODDOGP.TXT diff --git a/font/GOODDP__.TTF b/custom/css/font/GOODDP__.TTF similarity index 100% rename from font/GOODDP__.TTF rename to custom/css/font/GOODDP__.TTF diff --git a/font/Gerb-Bold.ttf b/custom/css/font/Gerb-Bold.ttf similarity index 100% rename from font/Gerb-Bold.ttf rename to custom/css/font/Gerb-Bold.ttf diff --git a/font/Gerb.ttf b/custom/css/font/Gerb.ttf similarity index 100% rename from font/Gerb.ttf rename to custom/css/font/Gerb.ttf diff --git a/font/Montserrat-VariableFont_wght.ttf b/custom/css/font/Montserrat-VariableFont_wght.ttf similarity index 100% rename from font/Montserrat-VariableFont_wght.ttf rename to custom/css/font/Montserrat-VariableFont_wght.ttf diff --git a/custom/customfunctions.php b/custom/customfunctions.php index 328a612..d5f81ba 100644 --- a/custom/customfunctions.php +++ b/custom/customfunctions.php @@ -17,7 +17,7 @@ function get_countries() { // Template Header default including MENU function template_header($title, $head = '') { - include 'translations_'.strtoupper(language_code).'.php'; + include './custom/translations/translations_'.strtoupper(language_code).'.php'; // Get the amount of items in the shopping cart, this will be displayed in the header. $num_items_in_cart = isset($_SESSION['cart']) ? array_sum(array_column($_SESSION['cart'], 'quantity')) : 0; @@ -62,8 +62,8 @@ if (veliti_analytics){