Current File : /customers/3/5/c/campinoeksjo.se/httpd.www/wp-content/themes/MHreklam/index.php |
<?php
/**
* Template Name:Home
*/
get_header(); ?>
<!-- Hero Section Begin -->
<section class="hero">
<div class="hero__slider owl-carousel">
<?php
$args = array(
'post_type' => 'slider',
'posts_per_page' => -1
);
$my_query = new WP_Query($args);
$count = 1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<div class="hero__item set-bg" data-setbg="<?php echo $thumb['0']; ?>">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-lg-12">
<div class="hero__text">
<?php the_content(); ?>
<h2 style="color: black;"><?php the_title(); ?></h2>
<a href="<?php if(get_field('contact_link')) { echo get_field('contact_link');} else { echo ""; } ?>" class="primary-btn">Kontakta Oss</a>
</div>
</div>
</div>
</div>
</div>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</div>
</section>
<?php $welcome_background_image = get_field('welcome_background_image'); ?>
<section class="secabouts" style="background-image: url(<?php echo $welcome_background_image; ?>);">
<div class="container">
<div class="row">
<div class="col-lg-6 col-sm-6">
<div class="leftcatery">
<span>Välkommen</span>
<h1><?php if(get_field('best_pizza_heading')) { echo get_field('best_pizza_heading');} else { echo ""; } ?></h1>
<?php if(get_field('best_pizza_content')) { echo get_field('best_pizza_content');} else { echo ""; } ?>
<!-- <button onclick="window.location.href='<?php if(get_field('read_more_link')) { echo get_field('read_more_link');} else { echo ""; } ?>'" class="abotus">READ MORE ABOUT US</button> -->
</div>
</div>
<div class="col-lg-6 col-sm-6">
</div>
</div>
</div>
</section>
<!-- Hero Section End -->
<section class="dilseo">
<?php
if(get_field('pizza_image'))
{
?>
<img src="<?php echo get_field('pizza_image'); ?>" alt="pizza_image" style="width: 100%;"/>
<?php
}
else
{
?>
<img src="<?php echo get_template_directory_uri(); ?>/img/dils.png" style="width: 100%;">
<?php
}
?>
</section>
<section class="tabingsec">
<div class="container">
<div class="row">
<div class="title">
<h2>Pizzameny</h2>
</div>
</div>
<ul class="nav nav-tabs">
<li><a href="https://campinoeksjo.se/pizza/" class="active">Pizza</a></li>
<li><a href="https://campinoeksjo.se/kebab-kyckling-falafel/">Kebab, Kyckling & Falafel</a></li>
<li><a href="https://campinoeksjo.se/sallad/">Sallad</a></li>
<li><a href="https://campinoeksjo.se/a-la-carte/">A La Carte</a></li>
<!-- <li><a data-toggle="tab" href="#dressing">Dressing</a></li> -->
</ul>
<div class="tab-content">
<div id="pizza" class="tab-pane fade in active show">
<div class="pizaslot">
<div class="row">
<div class="listpizza">
<ul>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr>
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '-1',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'pizza'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count < 3) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '4',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'pizza'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count > 2) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
</ul>
</div>
</div>
</div>
<button onclick="window.location.href='<?php echo get_page_link(242);?>'" class="explore">Se Hela Menyn</button>
</div>
<div id="kebab" class="tab-pane fade">
<div class="pizaslot">
<ul>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '-1',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'kebab-kyckling-falafel'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count < 3) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '4',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'kebab-kyckling-falafel'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count > 2) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
</ul>
</div>
<button onclick="window.location.href='<?php echo get_page_link(245);?>'" class="explore">Explore Menu</button>
</div>
<div id="sallad" class="tab-pane fade">
<div class="pizaslot">
<ul>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '-1',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'sallad'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count < 3) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '4',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'sallad'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count > 2) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
</ul>
</div>
<button onclick="window.location.href='<?php echo get_page_link(249);?>'" class="explore">Explore Menu</button>
</div>
<div id="carte" class="tab-pane fade">
<div class="pizaslot">
<ul>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '-1',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'a-la-carte'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count < 3) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?><?php if($small_size_price != "") { ?> kr <?php } ?> </strong></td>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> <?php if($large_size_price != "") { ?> kr <?php } ?> </strong></td>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
<li>
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr>
<td style="width: 25%;"></td>
<td style="width: 25%;"><i class="fa fa-user" style="font-size: 30px;"></i></td>
<td style="width: 25%;"><i class="fa fa-users" style="font-size: 30px;" aria-hidden="true"></i></td>
</tr> -->
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '4',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => 'a-la-carte'
)
)
);
$my_query = new WP_Query($args);
$count=1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<?php if($count > 2) { ?>
<tr>
<td style="width: 25%;">
<strong><?php echo $count; ?>. <?php the_title(); ?></strong><br>
<?php the_content(); ?>
</td>
<?php
$small_size_price = get_field('small_size_price');
$large_size_price = get_field('large_size_price');
?>
<?php if($small_size_price != "") { ?>
<td style="width: 25%;"><strong><?php if(get_field('small_size_price')) { echo get_field('small_size_price');} else { echo ""; } ?> kr<!-- <i class="fa fa-eur" aria-hidden="true"></i> --></strong></td>
<?php } ?>
<?php if($large_size_price != "") { ?>
<td style="width: 25%;"><strong><?php if(get_field('large_size_price')) { echo get_field('large_size_price');} else { echo ""; } ?> kr<!-- <i class="fa fa-eur" aria-hidden="true"></i> --></strong></td>
<?php } ?>
</tr>
<?php } ?>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</tbody>
</table>
</li>
</ul>
</div>
<button onclick="window.location.href='<?php echo get_page_link(254);?>'" class="explore">Explore Menu</button>
</div>
</div>
</div>
</section>
<?php $dagens_background_image = get_field('dagens_background_image'); ?>
<section class="stretch-full-width section-products-sale-event" style="background-size: cover; background-position: center center; background-image: url(<?php echo $dagens_background_image; ?> ); height: 420px;">
<div class="container">
<div class="padingboth">
<div class="dagen">
<div class="domens">
<h1>Dagens Lunch 120:-</h1>
<p class="textreds"><?php if(get_field('dagens_lunch_content')) { echo get_field('dagens_lunch_content');} else { echo ""; } ?></p>
<!-- <span>90:-</span> -->
</div>
</div>
<p><?php if(get_field('dagens_lunch_contents')) { echo get_field('dagens_lunch_contents');} else { echo ""; } ?></p>
</div>
</div>
</div>
</section>
<section class="pepornis">
<div class="container">
<div class="row">
<?php
$args = array(
'post_type' => 'products',
'posts_per_page' => 4
);
$my_query = new WP_Query($args);
$count = 1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<div class="col-lg-3 col-sm-3">
<div class="overviws">
<a href="<?php if(get_field('product_link')) { echo get_field('product_link');} else { echo ""; } ?>">
<div class="viewsimg">
<img src="<?php echo $thumb['0']; ?>">
<!-- <span>kr <?php if(get_field('price')) { echo get_field('price');} else { echo ""; } ?></span> -->
</div>
</a>
<h3><a href="<?php if(get_field('product_link')) { echo get_field('product_link');} else { echo ""; } ?>"><?php the_title(); ?></a></h3>
</div>
</div>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</div>
</div>
</section>
<!-- Testimonial Section Begin -->
<?php $testimonial_background_image = get_field('testimonial_background_image'); ?>
<section class="testimonial spad" style="background-image: url('<?php echo $testimonial_background_image; ?>');">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="section-title">
<span style="color:#fff;"><?php if(get_field('reviews_heading')) { echo get_field('reviews_heading');} else { echo ""; } ?></span>
<h2 style="color:#fff;"><?php if(get_field('people_say_heading')) { echo get_field('people_say_heading');} else { echo ""; } ?></h2>
</div>
</div>
</div>
<div class="row">
<div class="testimonial__slider owl-carousel">
<?php
$args = array(
'post_type' => 'what_people_say',
'posts_per_page' => -1
);
$my_query = new WP_Query($args);
$count = 1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<div class="col-lg-12">
<div class="testimonial__item">
<span><i class="fa fa-quote-right" aria-hidden="true"></i></span>
<?php the_content(); ?>
</div>
</div>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</div>
</div>
</div>
</section>
<!-- Testimonial Section End -->
<div class="features-list">
<div class="container">
<div class="row">
<?php
$args = array(
'post_type' => 'company_features',
'posts_per_page' => 4
);
$my_query = new WP_Query($args);
$count = 1;
while($my_query->have_posts()) :
$my_query->the_post();
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->id), 'full');
?>
<div class="feature col-xs-12 col-sm-3">
<div class="feature-icon"><img src="<?php echo $thumb['0']; ?>"></div>
<div class="feature-label">
<h4><?php the_title(); ?></h4>
<?php the_content(); ?>
</div>
</div>
<?php
$count++;
endwhile;
wp_reset_query();
?>
</div>
</div>
</div>
<?php get_footer(); ?>