Files
medicalalert-web-reloaded/wp/wp-content/plugins/iper-medical/templates/template-medical-home.php
Tony Volpe 4eb982d7a8 Merged in feature/from-pantheon (pull request #16)
code from pantheon

* code from pantheon
2024-01-10 17:03:02 +00:00

147 lines
6.2 KiB
PHP

<?php
//call_the_style();
//TEST
session_start();
session_destroy();
//[FP]
iper_hook_css();
get_header('product');
/* foreach($id_setting as $id_single) {
print_r($id_single);
}*///richiama la funzione per settare gli stili. vedi functions.php
/* $idPRODUCT=1;
$chiamta1=$wpdb->prepare("CALL IPER_MA_RATEPLAN_LIST(%d)",
$idPRODUCT
);
$rateplans=callDBStored($chiamta1);
if(!empty($rateplans)){
foreach($rateplans as $single){
$single->META_WP_ID;
get_post($single->META_WP_ID);
}
}*/
?>
<div class="container_">
<!-- <div id="slider-home" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="item active">
<a href="#" title="Slide name"><img src="<?php echo $theme_url; ?>/images/slider1.png" alt="slide"></a>
<a class="disclaimer" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<span>"Lorem ipsum dolor sit amet, consectetur adipiscing elit.”</span>
</a>
<a class="call-out" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<small><?php echo get_option(cta_title); ?></small>
<span class="number"><?php echo get_option(cta_tel); ?></span>
<span class="action"><?php echo get_option(cta_descr); ?></span>
</a>
</div>
<div class="item">
<a href="#" title="Slide name"><img src="<?php echo $theme_url; ?>/images/slider1.png" alt="slide"></a>
<a class="disclaimer" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<span>"2Lorem ipsum dolor sit amet, consectetur adipiscing elit.”</span>
</a>
<a class="call-out" href="<?php echo get_permalink($config['id_medical_product']); ?>" title="Slide name">
<small>Operators Are Standing By</small>
<span class="number">1.800.800.2537</span>
<span class="action">CALL NOW TO ORDER!</span>
</a>
</div>
</div>
</div>
<div class="title-list med-home">Select Your Product</div>
<hr>
</div>-->
<?php include_once('nav_bar.php'); ?>
<div class="row">
<div id="home-content" class="col-xs-12">
<?php echo $post->post_content;?>
</div>
</div>
<!-- Scripts -->
<!-- <script type="text/javascript" src="/wp-content/plugins/iper-medical/templates/script/select-product.js"></script> -->
<script type="text/javascript">
(function(window, $, _, undefined) {
$(document).ready(function() {
var cards = '';
woo.getCoreProducts(function(products) {
for(var key in products) {
//if(products[key].sku !== 'shipping'){
if(products[key].sku != 'shipping' && products[key].sku != '01t1I000000kskAQAQ' ) {
//if(products[key].sku != 'shipping' && products[key].sku != '01t1I0000045X6C' && products[key.sku != '01t1I000000kskA']) {
cards += woo.createProductCard(products[key]);
}
}
$('#core-products').html(cards);
}, $);
});
})(window, jQuery, undefined);
</script>
<!-- End Scripts -->
<!--<?php echo do_shortcode('[product_medical_list]'); ?>-->
<!-- Generate Product List -->
<div class="list-product">
<div id="core-products" class="row"></div>
</div>
<!-- End Generate Product List -->
</div>
<!-- Begin Gift card -->
<div class="container" style=" background-color:rgba(197, 208, 222, 0.2); padding-bottom: 40px;">
<h2 style="text-align: center; color: rgb(156, 48, 57); text-transform: uppercase; font-size: 36px; letter-spacing: 2px; display: block; margin-bottom: 12px;">Online Special!</h2>
<h3 style="text-align: center; color: rgb(0, 47, 94); margin-top: 0px;">Order a Medical Alert System today and receive a $10 gift card of your choice!*</h3>
<div class="row">
<div class="mobile-gcard"><center style="">
<img src="/wp-content/uploads/2017/06/gift-cards-amazon.png" alt="Amazon" style="" width="157">
<img src="/wp-content/uploads/2017/06/gift-cards-target.png" alt="Target" style="" width="157">
<img src="/wp-content/uploads/2017/06/gift-cards-dunkin-donuts.png" alt="Dunkin Donuts" width="157" style="">
<img src="/wp-content/uploads/2017/06/gift-cards-walmart.png" alt="Walmart" width="157" style="">
<img src="/wp-content/uploads/2017/06/gift-cards-olive-garden.png" alt="Olive Garden" width="157">
<img src="/wp-content/uploads/2017/06/gift-cards-kohls.png" alt="Kohls" width="157">
</center></div>
</div>
<input id="gCard" value="Gift Card" name="gCard" type="hidden">
<h4 style="text-align: center; color: rgb(0, 47, 94);">Choose from these gift cards and many more after you order!</h4>
<p style="text-align: center; color: rgb(153, 153, 153); font-size: 10px; width: 75%; margin: auto;">
**Gift card offer with annual rate plan only. Customer must activate and return signed monitoring agreement within 30 days of purchase in order to qualify. Offer only valid if order is placed online.<br>
The listed merchants are in no way affiliated with sponsor company nor are the listed merchants considered sponsors or co-sponsors of this program. Uses of merchant names and/or logos are by permission of each respective merchant and all trademarks are the property of their respective owners. Terms and conditions are applied to gift cards/certificates. Please see the merchant gift card/certificate for additional terms and conditions, which are subject to change at merchant's sole discretion. Merchants are not liable for any actual or alleged claims related to this offer. All logos are registered trademarks. All rights reserved. Must be 18 years or older to participate. A U.S. address is required for delivery. Other restrictions may apply.
</p>
</div>
<!-- End Gift card-->
<?php include($ABS_path . "/footer.php");
get_footer(); ?>