File: /home/franzo/public_html/3dsigns.newwindowmarketing.co.uk/header.php
<html>
<head>
<link rel="stylesheet" href="css/uptown.css">
<style>
<?php echo $customCSS; ?>
</style>
<?php
$myPage = $_SERVER['PHP_SELF'];
if($myPage == 'settings.php'){
$pageTitle = 'All Values';
}elseif($myPage == '/addOption.php'){
$pageTitle = 'Add Product Delivery Options';
}elseif($myPage == '/dietitian/createDiscount.php'){
$pageTitle = 'Create Discount';
}elseif($myPage == '/dietitian/createBulkDiscount.php'){
$pageTitle = 'Create Bulk Discounts';
}elseif($myPage == '/dietitian/viewDiscounts.php'){
$pageTitle = 'View Discounts';
}elseif($myPage == '/dietitian/assignDiscount.php'){
$pageTitle = 'Assign Discount to Dietitian';
}elseif($myPage == '/dietitian/resetCodeCounter.php'){
$pageTitle = 'Reset Code Counter / Bulk Delete';
}elseif($myPage == '/dietitian/exportCodes.php'){
$pageTitle = 'Export Codes';
}else{
$pageTitle = 'Product Delivery Options';
}
?>
<script src="https://cdn.shopify.com/s/assets/external/app.js"></script>
<script type="text/javascript">
ShopifyApp.init({
apiKey: '<?php echo $apiKey; ?>',
shopOrigin: 'https://<?php echo $siteURL; ?>'
});
ShopifyApp.ready(function(){
ShopifyApp.Bar.initialize({
buttons: {
primary: {
label: "Sync Products",
href: "productsDBsync.php",
target: "app"
},
secondary: [
{ label: "View Delivery Options", href: "settings.php", target: "app" },
{ label: "Add Delivery Option", href: "addOption.php", target: "app" }/*,
{ label: "Discount Codes",
type: "dropdown",
links: [
{ label: "Create Dicount Code", href: "createDiscount.php", target: "app" },
{ label: "Create Bulk Dicount", href: "createBulkDiscount.php", target: "app" },
{ label: "View Discount Codes", href: "viewDiscounts.php", target: "app" },
{ label: "Reset Code Counter / Bulk Delete", href: "resetCodeCounter.php", target: "app" },
{ label: "Export Codes", href: "exportCodes.php", target: "app" }
]
}*/
],
},
icon: "<?php echo $appURL; ?>discount.png",
title: '<?php echo $pageTitle; ?>'
});
});
</script>
</head>