CMXX - Placeorder initial version
This commit is contained in:
140
home.php
140
home.php
@@ -8,50 +8,110 @@ $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>
|
||||
|
||||
template_header_top($home_text);
|
||||
|
||||
$view = '
|
||||
<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 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){
|
||||
</div>';
|
||||
|
||||
echo '
|
||||
<div class="" style="text-align: center;">
|
||||
//SHOW OFFER
|
||||
if(show_offer_home_page){
|
||||
$view .='
|
||||
<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>';
|
||||
}
|
||||
$view .='
|
||||
<section class="news-section">
|
||||
<div class="news-container">
|
||||
<div class="news-header">
|
||||
<h2>Latest News</h2>
|
||||
<p>Stay updated with the latest from Morval Watches</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>
|
||||
|
||||
<div class="news-grid">
|
||||
<article class="news-card">
|
||||
<div class="news-card-content">
|
||||
<div class="news-meta">
|
||||
<span class="news-date">February 10, 2025</span>
|
||||
<span class="news-tag">New Release</span>
|
||||
</div>
|
||||
<h3 class="news-title">New Thomas II Collection Released</h3>
|
||||
<p class="news-preview">Discover our latest Thomas II collection featuring premium Swiss movements and unique colorways.</p>
|
||||
<a href="#" class="read-more">Read More</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="news-card">
|
||||
<div class="news-card-content">
|
||||
<div class="news-meta">
|
||||
<span class="news-date">February 5, 2025</span>
|
||||
<span class="news-tag">Limited Edition</span>
|
||||
</div>
|
||||
<h3 class="news-title">Limited Edition Navy Blue Now Available</h3>
|
||||
<p class="news-preview">Experience the depth of our signature Navy Blue finish, now available in a special limited edition run.</p>
|
||||
<a href="#" class="read-more">Read More</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="news-card">
|
||||
<div class="news-card-content">
|
||||
<div class="news-meta">
|
||||
<span class="news-date">January 28, 2025</span>
|
||||
<span class="news-tag">Press</span>
|
||||
</div>
|
||||
<h3 class="news-title">Morval Featured in Watch Magazine</h3>
|
||||
<p class="news-preview">Our commitment to Dutch craftsmanship and Swiss quality gains international recognition.</p>
|
||||
<a href="#" class="read-more">Read More</a>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="view-all-container">
|
||||
<a href="#" class="view-all-btn">View All News</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>';
|
||||
|
||||
//SHOW HIGHLIGHTS
|
||||
if (category_id_highlighted_products_1){
|
||||
$view .='
|
||||
<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">';
|
||||
$view .= highlightedProducts($clientsecret,category_id_highlighted_products_1,($highlight_1 ?? 'highlight 1'));
|
||||
|
||||
$view .='
|
||||
</div>
|
||||
</section>';
|
||||
}
|
||||
|
||||
if (category_id_highlighted_products_2){
|
||||
$view .='
|
||||
<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>
|
||||
<div class="recentlyadded"> ';
|
||||
|
||||
$view .= highlightedProducts($clientsecret,category_id_highlighted_products_2, ($highlight_2 ?? 'highlight 2'));
|
||||
|
||||
$view .='
|
||||
</div>
|
||||
</section>';
|
||||
}
|
||||
$view .='
|
||||
<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">
|
||||
@@ -61,7 +121,7 @@ $products_link = url(link_to_collection);
|
||||
<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 ></a>
|
||||
<a class="link-text neutral-text-link-1" href="'.$products_link.'">shop now ></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>
|
||||
@@ -70,7 +130,7 @@ $products_link = url(link_to_collection);
|
||||
<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 ></a>
|
||||
<a class="link-text neutral-text-link-1" href="'.$products_link.'">shop now ></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>
|
||||
@@ -79,10 +139,14 @@ $products_link = url(link_to_collection);
|
||||
<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 ></a>
|
||||
<a class="link-text neutral-text-link-1" href="'.$products_link.'">shop now ></a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
<?=template_footer()?>
|
||||
//OUTPUT
|
||||
echo $view;
|
||||
|
||||
template_footer()
|
||||
?>
|
||||
Reference in New Issue
Block a user