File: /var/www/html/wp-content/themes/ormedia/page-download.php
<?php
/* Template Name: download */
// if($_REQUEST['eye']==1){
// $url = get_template_directory_uri().'/tmp/eye_for_mac.zip';
// $label = "下载 Eye for Mac";
// }else{
// $url = get_template_directory_uri().'/tmp/KeyManaPro_v1.1.8.apk';
// $label = "下載KeyMana Pro測試APK v1.1.8";
// }
$url = get_template_directory_uri().'/tmp/KeyManaPro_v1.1.8.apk';
$label = "下載 KeyMana Pro";
$url_r = get_template_directory_uri().'/tmp/KeyMana_v1.0.1.apk';
$label_r = "下載住戶版";
$bg = get_template_directory_uri().'/image/bg-download.jpg';
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <div style="max-width:500px;margin: 0 auto;position: relative;height: 100%;background: url('<?php echo $bg;?>');background-size: cover; background-position-x: center;"> -->
<div style="max-width:800px;margin: 0 auto;position: relative;">
<img src="<?php echo $bg;?>" style="width:100%;">
<div style="position: absolute; left: 20px;right: 20px;bottom: 40px;">
<a class="no_deco" style="background: #2D6A37;color:#fff;margin-bottom: 20px;" href="<?php echo $url; ?>">
<?php echo $label; ?>
</a>
<a class="no_deco" style="background: #D8EFD1;color:#2D6A37;" href="<?php echo $url_r; ?>">
<?php echo $label_r; ?>
</a>
</div>
</div>
<style>
html,body{
margin: 0;
border: 0;
padding: 0;
}
.no_deco {
text-decoration: none;
border-radius: 20px;
padding: 10px 5px;
text-align: center;
display: block;
}
</style>