| 1 |
<?php |
| 2 |
/** |
| 3 |
* POS template. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/woocommerce-pos/pos.php. |
| 6 |
* HOWEVER, this is not recommended , don't be surprised if your POS breaks |
| 7 |
*/ |
| 8 |
|
| 9 |
\defined( 'ABSPATH' ) || exit; |
| 10 |
?> |
| 11 |
<!DOCTYPE html> |
| 12 |
<html> |
| 13 |
<head> |
| 14 |
<title><?php /* translators: Document title shown for the POS page. */ esc_html_e( 'Point of Sale', 'woocommerce-pos' ); ?> - <?php echo esc_html( bloginfo( 'name' ) ); ?></title> |
| 15 |
<meta charset="utf-8"/> |
| 16 |
|
| 17 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
| 18 |
<meta name="theme-color" content="#000000"> |
| 19 |
<meta name="mobile-web-app-capable" content="yes"> |
| 20 |
|
| 21 |
<link rel="icon" href="<?php echo esc_attr( WCPOS\WooCommercePOS\PLUGIN_URL ); ?>assets/img/favicon.ico"> |
| 22 |
<link rel="icon" type="image/png" sizes="32x32" |
| 23 |
href="<?php echo esc_attr( WCPOS\WooCommercePOS\PLUGIN_URL ); ?>assets/img/favicon-32x32.png"> |
| 24 |
<link rel="icon" type="image/png" sizes="16x16" |
| 25 |
href="<?php echo esc_attr( WCPOS\WooCommercePOS\PLUGIN_URL ); ?>assets/img/favicon-16x16.png"> |
| 26 |
<link rel="apple-touch-icon" sizes="180x180" |
| 27 |
href="<?php echo esc_attr( WCPOS\WooCommercePOS\PLUGIN_URL ); ?>assets/img/apple-touch-icon.png"> |
| 28 |
|
| 29 |
<!-- IE 10 Metro tile icon --> |
| 30 |
<meta name="msapplication-TileColor" content="#323A46"> |
| 31 |
<meta name="msapplication-TileImage" |
| 32 |
content="<?php echo esc_attr( WCPOS\WooCommercePOS\PLUGIN_URL ); ?>assets/img/icon-256x256.png"> |
| 33 |
|
| 34 |
<style> |
| 35 |
/** |
| 36 |
* Matches Expo build |
| 37 |
|
| 38 |
* Extend the react-native-web reset: |
| 39 |
* https://necolas.github.io/react-native-web/docs/setup/#root-element |
| 40 |
*/ |
| 41 |
html, |
| 42 |
body, |
| 43 |
#root { |
| 44 |
width: 100%; |
| 45 |
/* To smooth any scrolling behavior */ |
| 46 |
-webkit-overflow-scrolling: touch; |
| 47 |
margin: 0px; |
| 48 |
padding: 0px; |
| 49 |
/* Allows content to fill the viewport and go beyond the bottom */ |
| 50 |
min-height: 100%; |
| 51 |
} |
| 52 |
#root { |
| 53 |
flex-shrink: 0; |
| 54 |
flex-basis: auto; |
| 55 |
flex-grow: 1; |
| 56 |
display: flex; |
| 57 |
flex: 1; |
| 58 |
} |
| 59 |
|
| 60 |
html { |
| 61 |
scroll-behavior: smooth; |
| 62 |
/* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */ |
| 63 |
-webkit-text-size-adjust: 100%; |
| 64 |
height: calc(100% + env(safe-area-inset-top)); |
| 65 |
} |
| 66 |
|
| 67 |
body { |
| 68 |
display: flex; |
| 69 |
/* Allows you to scroll below the viewport; default value is visible */ |
| 70 |
overflow-y: auto; |
| 71 |
overscroll-behavior-y: none; |
| 72 |
text-rendering: optimizeLegibility; |
| 73 |
-webkit-font-smoothing: antialiased; |
| 74 |
-moz-osx-font-smoothing: grayscale; |
| 75 |
-ms-overflow-style: scrollbar; |
| 76 |
} |
| 77 |
/* Enable for apps that support dark-theme */ |
| 78 |
/*@media (prefers-color-scheme: dark) { |
| 79 |
body { |
| 80 |
background-color: black; |
| 81 |
} |
| 82 |
}*/ |
| 83 |
|
| 84 |
#splash { |
| 85 |
display: flex; |
| 86 |
flex-direction: column; |
| 87 |
justify-content: center; |
| 88 |
align-items: center; |
| 89 |
height: 100%; |
| 90 |
width: 100%; |
| 91 |
background-color: #fafbfc; |
| 92 |
} |
| 93 |
|
| 94 |
#splash img { |
| 95 |
width: 120px; |
| 96 |
height: 120px; |
| 97 |
} |
| 98 |
</style> |
| 99 |
|
| 100 |
<?php do_action( 'woocommerce_pos_head' ); ?> |
| 101 |
</head> |
| 102 |
<body> |
| 103 |
|
| 104 |
<div id="root"> |
| 105 |
<div id="splash"> |
| 106 |
<img src="<?php echo esc_attr( WCPOS\WooCommercePOS\PLUGIN_URL ); ?>assets/img/wcpos-icon.svg" |
| 107 |
alt="WCPOS"/> |
| 108 |
</div> |
| 109 |
</div> |
| 110 |
|
| 111 |
</body> |
| 112 |
<?php do_action( 'woocommerce_pos_footer' ); ?> |
| 113 |
|
| 114 |
</html> |
| 115 |
|