<span class="marketAttr" data-l1key="categorie" style="font-size: 1em;font-weight: bold;"></span> <br/><br/> <?php if ($market->getPurchase() == 1) { if ($market->getStatus('stable') == 1) { echo ' <a class="btn btn-success bt_installFromMarket" data-version="stable" style="color : white;" data-market_logicalId="' . $market->getLogicalId() . '" data-market_id="' . $market->getId() . '" ><i class="fa fa-plus-circle"></i> {{Installer stable}}</a>'; } if ($market->getStatus('beta') == 1) { echo ' <a class="btn btn-warning bt_installFromMarket" data-version="beta" style="color : white;" data-market_logicalId="' . $market->getLogicalId() . '" data-market_id="' . $market->getId() . '" ><i class="fa fa-plus-circle"></i> {{Installer beta}}</a>'; } } else { if ($market->getPrivate() == 1) { echo '<div class="alert alert-info">{{Ce plugin est pour le moment privé. Vous devez attendre qu\'il devienne public ou avoir un code pour y accèder}}</div>'; } else { if (config::byKey('market::apikey') != '' || config::byKey('market::username') != '' && config::byKey('market::password') != '') { $purchase_info = market::getPurchaseInfo(); if (isset($purchase_info['user_id']) && is_numeric($purchase_info['user_id']) && isset($purchase_info['paypal::url']) && isset($purchase_info['paypal::marchandMail'])) { ?> <a class="btn btn-default" href='https://market.jeedom.fr/index.php?v=d&p=profils' target="_blank"><i class="fa fa-eur"></i> Code promo</a> <form action="<?php echo $purchase_info['paypal::url']; ?> /cgi-bin/webscr" method="post" style="display: inline-block;position: relative;top: 5px;" target="_blank" id='form_paypal'> <input type='hidden' name="amount" value="<?php echo $market->getCost(); ?> " /> <input name="currency_code" type="hidden" value="EUR" /> <input name="shipping" type="hidden" value="0.00" /> <input name="tax" type="hidden" value="0.00" /> <input name="return" type="hidden" value="<?php