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){