Initial commit

This commit is contained in:
“VeLiTi”
2025-01-30 11:43:37 +01:00
commit 6f1cc27ec4
823 changed files with 233091 additions and 0 deletions

88
home.php Normal file
View File

@@ -0,0 +1,88 @@
<?php
// Prevent direct access to file
defined(security_key) or exit;
// Get the 4 most recent added products
$stmt = $pdo->prepare('SELECT p.*, (SELECT m.full_path FROM products_media pm JOIN media m ON m.id = pm.media_id WHERE pm.product_id = p.id ORDER BY pm.position ASC LIMIT 1) AS img FROM products p WHERE p.status = 1 ORDER BY p.date_added DESC LIMIT 4');
$stmt->execute();
$recently_added_products = $stmt->fetchAll(PDO::FETCH_ASSOC);
//LINK to products page:
$products_link = url(link_to_collection);
?>
<?=template_header_top($home_text)?>
<div class="featured" style="background-image:url(<?=featured_image?>);background-position: center center;">
<?=template_menu()?>
<h2><?=$h2_brand_name_1?></h2>
<p><?=$h2_brand_name_2?></p>
<a class="link-button action-btn" role="button" href="<?=$products_link?>" title="<?=$h2_brand_visit?>"><?=$h2_brand_visit?></a>
</div>
<div class="container highlight-section">
<h2 class="title-message" href="<?=$products_link?>">
<?=$h2_brand_wow?>
</h2>
<p class="paragraph neutral-paragraph-text" style="font-size: 30px;">
</p>
</div>
<?php
//SHOW OFFER
if(show_offer_home_page){
echo '
<div class="" style="text-align: center;">
<p class="p.paragraph.neutral-paragraph-text-1" style="font-family:\'gerb\';font-size: 15px;">'.show_offer_home_text.'</p>
</div>
';
}
?>
<section class="container neutral-cover-section-1" style="background-image:url(custom/assets/morval_checkout.jpg);background-size: cover;background-repeat: no-repeat;background-position: 50% 50%;">
<div class="recentlyadded">
<?php
$view = highlightedProducts($pdo,category_id_highlighted_products_1,highlighted_product_range_1);
echo $view;
?>
</div>
</section>
<section class="container neutral-cover-section-1">
<div class="recentlyadded">
<?php
$view = highlightedProducts($pdo,category_id_highlighted_products_2,highlighted_product_range_2);
echo $view;
?>
</div>
</section>
<section class="container neutral-features-section-4-1" style="background-image:url(custom/assets/picture2.jpg);background-size: cover;background-repeat: no-repeat;background-position: 50% 50%;">
<div class="container neutral-three-columns-1">
<div class="container neutral-feature-wrapper-1 neutral-left-align-items-1">
<div class="container container-feature-icon-wrapper-1"><span class="icon"></span>
<h4 class="neutral-feature-title-1 neutral-margin-left-1">Timeless</h4>
</div>
<p class="paragraph neutral-paragraph-text-1">
Morval Watches are unique, robust, stylish and timeless timepieces that will last for generations!
</p>
<a class="link-text neutral-text-link-1" href="<?=$products_link?>">shop now &gt;</a>
</div>
<div class="container neutral-feature-wrapper-1 neutral-left-align-items-1">
<div class="container container-feature-icon-wrapper-1"><span class="icon"></span>
<h4 class="neutral-feature-title-1 neutral-margin-left-1">Quality</h4>
</div>
<p class="paragraph neutral-paragraph-text-1">
Morval watches meet the highest quality requirements and can compete with the well-known Swiss brands. The parts are supplied by renowned manufacturers from Europe and beyond. A Morval contains a Swiss-made caliber (STP) that is known for its reliable quality.
</p>
<a class="link-text neutral-text-link-1" href="<?=$products_link?>">shop now &gt;</a>
</div>
<div class="container neutral-feature-wrapper-1 neutral-left-align-items-1">
<div class="container container-feature-icon-wrapper-1"><span class="icon"></span>
<h4 class="neutral-feature-title-1 neutral-margin-left-1">Price</h4>
</div>
<p class="paragraph neutral-paragraph-text-1">
Morval stands for an excellent price-quality ratio
</p>
<a class="link-text neutral-text-link-1" href="<?=$products_link?>">shop now &gt;</a>
</div>
</div>
</section>
</div>
<?=template_footer()?>