-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-header.php
More file actions
73 lines (52 loc) · 1.96 KB
/
template-header.php
File metadata and controls
73 lines (52 loc) · 1.96 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php if (ocart_get_option('wishlist') || ocart_get_option('ocml') || ocart_get_option('ocmc')) { ?>
<div id="topbar">
<div class="wrap">
<?php if (ocart_get_option('ocml')) { ?>
<div class="switchbar switchbar-l">
<label><?php _e('Choose Language:','ocart'); ?></label>
<?php ocart_show_languages(); ?>
</div>
<?php } ?>
<?php if (ocart_get_option('ocmc')) { ?>
<div class="switchbar switchbar-c">
<label><?php _e('Currency:','ocart'); ?></label>
<?php ocart_show_currencies(); ?>
</div>
<?php } ?>
<?php if (ocart_get_option('wishlist')) { ?>
<div id="wishlist"><a href=""><?php printf(__('My Wishlist (<span id="ajax_wishlist_count">%s</span>)','ocart'), ocart_wishlist_count()); ?></a></div>
<?php } ?>
<div class="clear"></div>
</div>
</div>
<?php } ?>
<div id="header-holder">
<div id="header">
<div class="wrap">
<div id="logo"><a href="<?php echo home_url(); ?>/"><?php ocart_logo_img() ?></a></div>
<ul id="toplinks">
<?php if (is_home() || is_single() && get_post_type() == 'product') { ?>
<?php if (ocart_get_option('show_bloglink')) { ?>
<li><a href="<?php echo get_permalink( get_page_by_path( 'blog' ) ); ?>"><?php echo get_the_title(get_page_by_path('blog')->ID); ?></a></li>
<?php } ?>
<?php } else { ?>
<li><a href="<?php echo home_url(); ?>"><?php _e('Shop','ocart'); ?></a></li>
<?php } ?>
<?php wp_nav_menu( array( 'theme_location' => 'header_menu', 'container' => false, 'items_wrap' => '%3$s', 'fallback_cb' => false ) ); ?>
<?php ocart_login(); ?>
</ul>
<?php if (!ocart_get_option('disable_cart')) { ?>
<ul id="cart">
<li class="cart"><a href="#" class="cart-link"><span class="ajax_items_count"><?php ocart_cart_items_count(); ?></span></a>
<div class="cartpopup">
<div class="cartpopup-inner">
<?php ocart_smallcart(); ?>
</div>
</div>
</li>
</ul>
<?php } ?>
<div class="clear"></div>
</div>
</div>
</div>