Initial rewiring

This commit is contained in:
“VeLiTi”
2025-01-30 13:43:02 +01:00
parent 6f1cc27ec4
commit 390a6e9f4f
14 changed files with 38 additions and 38 deletions

View File

@@ -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){
<meta name="viewport" content="width=device-width,minimum-scale=1">
<title>$site_title - $title</title>
<link rel="icon" type="image/png" href="{$base_url}$icon_image">
<link href="{$base_url}style.css" rel="stylesheet" type="text/css">
<link href="{$base_url}custom.css" rel="stylesheet" type="text/css">
<link href="{$base_url}custom/css/style.css" rel="stylesheet" type="text/css">
<link href="{$base_url}custom/css/custom.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.0.0/css/all.css">
$veliti_analytics
$head
@@ -110,7 +110,7 @@ if (veliti_analytics){
// Template Header (related to MENU function)
function template_header_top($title, $head = '') {
include 'translations_'.strtoupper(language_code).'.php';
include './custom/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;
$home_link = url('index.php');
@@ -156,8 +156,8 @@ function template_header_top($title, $head = '') {
<meta name="viewport" content="width=device-width,minimum-scale=1">
<title>$site_title - $title</title>
<link rel="icon" type="image/png" href="{$base_url}$icon_image">
<link href="{$base_url}style.css" rel="stylesheet" type="text/css">
<link href="{$base_url}custom.css" rel="stylesheet" type="text/css">
<link href="{$base_url}custom/css/style.css" rel="stylesheet" type="text/css">
<link href="{$base_url}custom/css/custom.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.0.0/css/all.css">
$veliti_analytics
$head
@@ -171,7 +171,7 @@ function template_header_top($title, $head = '') {
}
// Template Menu
function template_menu(){
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;
$home_link = url('index.php');
@@ -225,7 +225,7 @@ function template_menu(){
// Template footer
function template_footer() {
include 'translations_'.strtoupper(language_code).'.php';
include './custom/translations/translations_'.strtoupper(language_code).'.php';
$base_url = base_url;
$rewrite_url = rewrite_url ? 'true' : 'false';
$year = date('Y');
@@ -291,7 +291,7 @@ function template_footer() {
//++++++++++++++++++++++++++++++++++++++++++++++++++++
//Template header order email
function template_order_email_header() {
include 'translations_'.strtoupper(language_code).'.php';
include './custom/translations/translations_'.strtoupper(language_code).'.php';
$home_link = url('index.php');
$myaccount_link = url('index.php?page=myaccount');
@@ -501,7 +501,7 @@ EOT;
}
// Template order footer
function template_order_email_footer() {
include 'translations_'.strtoupper(language_code).'.php';
include './custom/translations/translations_'.strtoupper(language_code).'.php';
$home_link = url('index.php');
$products_link = url(link_to_collection);
$about_link = url('index.php?page=about');