-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
52 lines (50 loc) · 1.92 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="off-canvas-wrapper">
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
<div class="off-canvas position-left reveal-for-medium" id="offCanvas" data-off-canvas>
<a href="/" class="logo"><img src="<?php echo get_template_directory_uri() ?>/assets/img/logo.png" /></a>
<ul class="vertical menu">
<li>
<a href="http://foundation.zurb.com/learn/about.html"><span>Kínálatunk</span></a>
<ul class="submenu menu vertical image" data-submenu="">
<?php
//global $post;
$args = array(
'number' => $number,
'orderby' => $orderby,
'order' => $order,
'hide_empty' => $hide_empty,
'include' => $ids
);
$product_categories = get_terms( 'product_cat', $args );
foreach ($product_categories as $term) : ?>
<li class="small-6 medium-12 float-left">
<a href="<?php echo get_term_link( $term->term_id, 'product_cat' ); ?>">
<?php
$thumbnail_id = get_woocommerce_term_meta( $term->term_id, 'thumbnail_id', true );
$image = wp_get_attachment_url( $thumbnail_id );
if ( $image ) {
echo '<img src="' . $image . '" alt="" />';
}
?>
<span class="category-name"><?php echo $term->name ?></span>
</a>
</li>
<?php endforeach; ?>
</ul>
</li>
</ul>
</div>
<div class="off-canvas-content" data-off-canvas-content>
<header class="title-bar hide-for-medium">
<div class="title-bar-left">
<button class="menu-icon" type="button" data-open="offCanvas"></button>
</div>
</header>