Current File : /customers/3/5/c/campinoeksjo.se/httpd.www/wp-content/themes/MHreklam/product.php |
<?php
/**
* Template Name:Menu
*/
get_header(); ?>
<?php
$uri_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri_segments = explode('/', $uri_path);
$url = $uri_segments[2];
$urlone = $uri_segments[1];
//print_r($urlone);
//exit;
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$term_name = $term->name; // will show the name
?>
<section class="productpage">
<div class="tabsdata padding">
<div class="container mogileimge">
<div class="toptabing">
<?php wp_nav_menu( array( 'theme_location' => 'header_menu','menu' => 'Dishes Category', 'menu_class' => 'nav nav-tabs','container' => 'false' ) ); ?>
<!-- <div class="menas">
<a href="">Måndag-Fredag 11.00 -14.00 </a>
</div> -->
<!-- <div class="menas">
<a href="">Måndag-Fredag 11.00 -14.00 </a>
<a href="">MENU IN ENGLISH</a>
</div> -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="Pizza">
<div class="product-desc imgdem">
<div class="doteds">
<img src="https://campinoeksjo.se/wp-content/uploads/2022/01/reddots-2.png">
</div>
<?php
if(get_field('logo_image'))
{
?>
<img src="<?php echo get_field('logo_image'); ?>" alt="logo_image" />
<?php
}
else
{
?>
<img src="<?php echo get_template_directory_uri(); ?>/img/itsalways.png">
<?php
}
?>
<div class="doteds">
<img src="https://campinoeksjo.se/wp-content/uploads/2022/01/reddots-2.png">
</div>
</div>
<div class="textblock">
<div class="wrapper flex clearfix">
<div class="col col50">
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<!-- <tr class="user-iconn">
<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' => $urlone
)
)
);
$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 < 29) { ?>
<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>
</div>
<div class="col col50">
<table class="menu top" style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<?php if($count > 28) { ?>
<!-- <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 } ?>
<?php
$args = array(
'post_type' => 'featured_dishes','posts_per_page' => '-1',
'tax_query' => array(
array(
'taxonomy' => 'dishes_category',
'field' => 'slug',
'terms' => $urlone
)
)
);
$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 > 28) { ?>
<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>
<div class="heartimg">
<img src="<?php the_post_thumbnail_url(); ?>">
</div>
<br>
<?php $inner_image = get_field('inner_image'); ?>
<?php if($inner_image !="") { ?>
<div class="heartimg">
<img src="<?php echo $inner_image; ?>">
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php
$heading_one = get_field('heading_one');
$content_one = get_field('content_one');
$heading_two = get_field('heading_two');
$content_two = get_field('content_two');
$heading_three = get_field('heading_three');
$content_three = get_field('content_three');
$heading_four = get_field('heading_four');
$content_four = get_field('content_four');
?>
<section class="textblock">
<div class="wrapper row clearfix">
<?php if($heading_one !="") { ?>
<div class="col-lg-4 col100 text-center">
<div class="lopsel" style="background-image:url(https://campinoeksjo.se/wp-content/uploads/2022/01/pizzade.png);">
<h3><?php echo $heading_one; ?></h3>
<p><?php echo $content_one; ?></p>
</div>
</div>
<?php } ?>
<?php if($heading_two !="") { ?>
<div class="col-lg-4 col100 text-center">
<div class="lopsel" style="background-image:url(https://campinoeksjo.se/wp-content/uploads/2022/01/pizzade.png);">
<h3><?php echo $heading_two; ?></h3>
<p><?php echo $content_two; ?></p>
</div>
</div>
<?php } ?>
<?php if($heading_three !="") { ?>
<div class="col-lg-4 col100 text-center">
<div class="lopsel" style="background-image:url(https://campinoeksjo.se/wp-content/uploads/2022/01/pizzade.png);">
<h3><?php echo $heading_three; ?></h3>
<p><?php echo $content_three; ?></p>
</div>
</div>
<?php } ?>
<?php if($heading_three !="") { ?>
<div class="col-lg-4 col100 text-center">
<div class="lopsel" style="background-image:url(https://campinoeksjo.se/wp-content/uploads/2022/01/pizzade.png);">
<h3><?php echo $heading_four; ?></h3>
<p><?php echo $content_four; ?></p>
</div>
</div>
<?php } ?>
</div>
</section>
<!-- <section class="textblock">
<div class="wrapper row clearfix">
<div class="col-lg-4 col100 text-center">
<p><img loading="lazy" class="aligncenter size-full wp-image-467" src="<?php echo get_template_directory_uri(); ?>/img/pizzade.png" alt="" width="460" height="90"></p>
</div>
<div class="col-lg-4 col100 text-center">
<p><img loading="lazy" class="aligncenter size-full wp-image-467" src="<?php echo get_template_directory_uri(); ?>/img/pizzade.png" alt="" width="460" height="90"></p>
</div>
<div class="col-lg-4 col100 text-center">
<p><img loading="lazy" class="aligncenter size-full wp-image-467" src="<?php echo get_template_directory_uri(); ?>/img/pizzade.png" alt="" width="460" height="90"></p>
</div>
</div>
</section> -->
<!-- <section class="textblock">
<div class="row">
<div class="col-lg-5 mogileimge">
<img src="<?php echo get_template_directory_uri(); ?>/img/campino.jpg" alt="" class="title-img" style="width:100%;">
</div>
<div class="col-lg-7">
<div class="wrapper flex clearfix">
<div class="lefio">
<table style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 33.3333%;"><strong>Small &</strong>
Delicious <br>
Onions <br>Pepperoni <br>
Banana <br>
Pineapple <br>
Fresh peppers <br>
Pesto <br>
Artichoke <br>
Jalapeño <br>
Arugula <br>
salad Marinated olive mix <br>
Cocktail </font>tomatoes <br>
Fresh mushrooms <br>
Grilled eggplant <br>
French <br>
fries Pickled red onions
</td>
<td style="width: 33.3333%;">
<strong>Seafood</strong><br>
Shrimp tails <br>
Tuna <br>
Hand-peeled shrimp
<p></p>
<p><strong>Meat</strong><br>
Chicken </font>
fillet <br>
Ham </font>
Beef <br>fillet <br>
Kebab meat <br>
Pepperoni <br>sausage Beef mince <br>
Bacon <br>
Prosciutto
</p>
</td>
<td style="width: 33.3333%;">
<strong>Cheese & Eggs</strong><br>
Mozzarella <br>
Salad Cheese <br>
Parmesan </font>Cheese <br>
Eggs
<p></p>
<p><strong>Dressing</strong><br>
Kebabdressing <br>
Bearnaise
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section> -->
</div>
<!-- <div role="tabpanel" class="tab-pane" id="Kebab">
<div class="product-desc imgdem">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
<img src="<?php echo get_template_directory_uri(); ?>/img/itsalwaystimeforkebab.png">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
</div>
</div> -->
<!-- <div role="tabpanel" class="tab-pane" id="Sallad">
<div class="product-desc imgdem">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
<img src="<?php echo get_template_directory_uri(); ?>/img/itsalwaystimeforsallad.png">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
</div>
</div> -->
<!-- <div role="tabpanel" class="tab-pane" id="Dressing">
<div class="product-desc imgdem">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
<img src="<?php echo get_template_directory_uri(); ?>/img/itsalwaystimefordressing.png">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
</div>
</div> -->
<!-- <div role="tabpanel" class="tab-pane" id="Dryck">
<div class="product-desc imgdem">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
<img src="<?php echo get_template_directory_uri(); ?>/img/itsalwaystimefordryck.png">
<div class="doteds">
<img src="<?php echo get_template_directory_uri(); ?>/img/reddots.png">
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
</section>
<section class="stretch-full-width section-products-sale-event" style="background-size: cover; background-position: center center; background-image: url(https://campinoeksjo.se/wp-content/uploads/2021/06/1-1.jpg ); height: 420px;">
<div class="container">
<div class="padingboth">
<div class="dagen">
<div class="domens">
<h1>Dagens Lunch 115:-</h1>
<p class="textreds">Måndag-Fredag 11.00 -14.00</p>
<!-- <span>90:-</span> -->
</div>
</div>
<p>VALFRI Maträtt inkl. dricka, Sallad, Bröd och Kaffe</p>
</div>
</div>
</section>
<?php get_footer(); ?>