-
Notifications
You must be signed in to change notification settings - Fork 0
/
header_scripts.php
30 lines (29 loc) · 1.47 KB
/
header_scripts.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
<script>
AddToCartModalContent = window.AddToCartModalContent || function(title, img){
var html = ''
+ '<section>'
+ '<span class="mw-icon-shop" style="font-size:50px;"></span>'
+ '<h5>' + title + '</h5>'
+ '<p><?php _e("has been added to your cart"); ?></p></section>'
+ '<a href="javascript:;" onclick="addtocartmodal.remove();" class="mw-ui-btn"><?php _e("Continue shopping"); ?></a>'
+ '<a href="<?php print checkout_url(); ?>" class="mw-ui-btn mw-ui-btn-invert"><?php _e("Checkout"); ?></a>';
return html;
}
</script>
<script>
mw.require("<?php print TEMPLATE_URL; ?>js/owl/owl.carousel.css");
mw.require("<?php print TEMPLATE_URL; ?>js/owl/owl.carousel.min.js");
mw.require("<?php print TEMPLATE_URL; ?>js/fotorama/fotorama.js");
mw.require("<?php print TEMPLATE_URL; ?>js/fotorama/fotorama.css");
mw.require("<?php print TEMPLATE_URL; ?>js/justified/justifiedGallery.js");
mw.require("<?php print TEMPLATE_URL; ?>js/justified/justifiedGallery.min.css");
</script>
<script src="<?php print TEMPLATE_URL; ?>js/default.js"></script>
<link rel="stylesheet" href="<?php print TEMPLATE_URL; ?>style.css" type="text/css" />
<?php
$colorscheme = get_option('colorscheme', 'mw-template-photon');
if($colorscheme == false){
$colorscheme = 'dark';
}
?>
<link rel="stylesheet" type="text/css" href="<?php print TEMPLATE_URL; ?>colors/<?php print $colorscheme; ?>.css" id="colorScheme" />